clp 1065 compat/svr4/svr4_stream.c struct sys_close_args clp;
clp 1091 compat/svr4/svr4_stream.c SCARG(&clp, fd) = st->s_afd;
clp 1093 compat/svr4/svr4_stream.c if ((error = sys_close(p, &clp, retval)) != 0) {
clp 816 dev/ic/isp_openbsd.c struct lportdb *clp = (struct lportdb *) arg;
clp 819 dev/ic/isp_openbsd.c switch (clp->port_type) {
clp 847 dev/ic/isp_openbsd.c "%s Fabric Device @ PortID 0x%x", pt, clp->portid);
clp 863 dev/ic/isp_openbsd.c if (fcp->isp_portid == clp->portid) {
clp 892 dev/ic/isp_openbsd.c if (lp->port_wwn == clp->port_wwn &&
clp 893 dev/ic/isp_openbsd.c lp->node_wwn == clp->node_wwn) {
clp 915 dev/ic/isp_openbsd.c lp->port_type = clp->port_type;
clp 916 dev/ic/isp_openbsd.c lp->fc4_type = clp->fc4_type;
clp 917 dev/ic/isp_openbsd.c lp->node_wwn = clp->node_wwn;
clp 918 dev/ic/isp_openbsd.c lp->port_wwn = clp->port_wwn;
clp 919 dev/ic/isp_openbsd.c lp->portid = clp->portid;
clp 57 dev/usb/ueaglevar.h #define ATM_CH_FILL(x, gfc, vpi, vci, pt, clp, hec) do { \
clp 61 dev/usb/ueaglevar.h (x)[3] = ((vci) & 0xf) << 4 | ((pt) & 0x7) << 1 | ((clp) & 0x1);\
clp 64 kern/tty_subr.c clalloc(struct clist *clp, int size, int quot)
clp 67 kern/tty_subr.c clp->c_cs = malloc(size, M_TTYS, M_WAITOK);
clp 68 kern/tty_subr.c bzero(clp->c_cs, size);
clp 71 kern/tty_subr.c clp->c_cq = malloc(QMEM(size), M_TTYS, M_WAITOK);
clp 72 kern/tty_subr.c bzero(clp->c_cq, QMEM(size));
clp 74 kern/tty_subr.c clp->c_cq = (u_char *)0;
clp 76 kern/tty_subr.c clp->c_cf = clp->c_cl = (u_char *)0;
clp 77 kern/tty_subr.c clp->c_ce = clp->c_cs + size;
clp 78 kern/tty_subr.c clp->c_cn = size;
clp 79 kern/tty_subr.c clp->c_cc = 0;
clp 84 kern/tty_subr.c clfree(struct clist *clp)
clp 86 kern/tty_subr.c if (clp->c_cs) {
clp 87 kern/tty_subr.c bzero(clp->c_cs, clp->c_cn);
clp 88 kern/tty_subr.c free(clp->c_cs, M_TTYS);
clp 90 kern/tty_subr.c if (clp->c_cq) {
clp 91 kern/tty_subr.c bzero(clp->c_cq, QMEM(clp->c_cn));
clp 92 kern/tty_subr.c free(clp->c_cq, M_TTYS);
clp 94 kern/tty_subr.c clp->c_cs = clp->c_cq = (u_char *)0;
clp 102 kern/tty_subr.c getc(struct clist *clp)
clp 108 kern/tty_subr.c if (clp->c_cc == 0)
clp 111 kern/tty_subr.c c = *clp->c_cf & 0xff;
clp 112 kern/tty_subr.c if (clp->c_cq) {
clp 113 kern/tty_subr.c if (isset(clp->c_cq, clp->c_cf - clp->c_cs) )
clp 116 kern/tty_subr.c if (++clp->c_cf == clp->c_ce)
clp 117 kern/tty_subr.c clp->c_cf = clp->c_cs;
clp 118 kern/tty_subr.c if (--clp->c_cc == 0)
clp 119 kern/tty_subr.c clp->c_cf = clp->c_cl = (u_char *)0;
clp 130 kern/tty_subr.c q_to_b(struct clist *clp, u_char *cp, int count)
clp 138 kern/tty_subr.c while (count > 0 && clp->c_cc > 0) {
clp 139 kern/tty_subr.c cc = clp->c_cl - clp->c_cf;
clp 140 kern/tty_subr.c if (clp->c_cf >= clp->c_cl)
clp 141 kern/tty_subr.c cc = clp->c_ce - clp->c_cf;
clp 144 kern/tty_subr.c bcopy(clp->c_cf, p, cc);
clp 147 kern/tty_subr.c clp->c_cc -= cc;
clp 148 kern/tty_subr.c clp->c_cf += cc;
clp 149 kern/tty_subr.c if (clp->c_cf == clp->c_ce)
clp 150 kern/tty_subr.c clp->c_cf = clp->c_cs;
clp 152 kern/tty_subr.c if (clp->c_cc == 0)
clp 153 kern/tty_subr.c clp->c_cf = clp->c_cl = (u_char *)0;
clp 163 kern/tty_subr.c ndqb(struct clist *clp, int flag)
clp 171 kern/tty_subr.c if ((cc = clp->c_cc) == 0)
clp 175 kern/tty_subr.c count = clp->c_cl - clp->c_cf;
clp 177 kern/tty_subr.c count = clp->c_ce - clp->c_cf;
clp 181 kern/tty_subr.c i = clp->c_cf - clp->c_cs;
clp 183 kern/tty_subr.c while (cc-- > 0 && !(clp->c_cs[i++] & (flag & ~TTY_QUOTE) ||
clp 184 kern/tty_subr.c isset(clp->c_cq, i))) {
clp 186 kern/tty_subr.c if (i == clp->c_cn)
clp 190 kern/tty_subr.c while (cc-- > 0 && !(clp->c_cs[i++] & flag)) {
clp 192 kern/tty_subr.c if (i == clp->c_cn)
clp 205 kern/tty_subr.c ndflush(struct clist *clp, int count)
clp 211 kern/tty_subr.c if (count == clp->c_cc) {
clp 212 kern/tty_subr.c clp->c_cc = 0;
clp 213 kern/tty_subr.c clp->c_cf = clp->c_cl = (u_char *)0;
clp 217 kern/tty_subr.c while (count > 0 && clp->c_cc > 0) {
clp 218 kern/tty_subr.c cc = clp->c_cl - clp->c_cf;
clp 219 kern/tty_subr.c if (clp->c_cf >= clp->c_cl)
clp 220 kern/tty_subr.c cc = clp->c_ce - clp->c_cf;
clp 224 kern/tty_subr.c clp->c_cc -= cc;
clp 225 kern/tty_subr.c clp->c_cf += cc;
clp 226 kern/tty_subr.c if (clp->c_cf == clp->c_ce)
clp 227 kern/tty_subr.c clp->c_cf = clp->c_cs;
clp 229 kern/tty_subr.c if (clp->c_cc == 0)
clp 230 kern/tty_subr.c clp->c_cf = clp->c_cl = (u_char *)0;
clp 239 kern/tty_subr.c putc(int c, struct clist *clp)
clp 245 kern/tty_subr.c if (clp->c_cc == clp->c_cn)
clp 248 kern/tty_subr.c if (clp->c_cc == 0) {
clp 249 kern/tty_subr.c if (!clp->c_cs) {
clp 253 kern/tty_subr.c if (clalloc(clp, 1024, 1)) {
clp 259 kern/tty_subr.c clp->c_cf = clp->c_cl = clp->c_cs;
clp 262 kern/tty_subr.c *clp->c_cl = c & 0xff;
clp 263 kern/tty_subr.c i = clp->c_cl - clp->c_cs;
clp 264 kern/tty_subr.c if (clp->c_cq) {
clp 266 kern/tty_subr.c setbit(clp->c_cq, i);
clp 268 kern/tty_subr.c clrbit(clp->c_cq, i);
clp 270 kern/tty_subr.c clp->c_cc++;
clp 271 kern/tty_subr.c clp->c_cl++;
clp 272 kern/tty_subr.c if (clp->c_cl == clp->c_ce)
clp 273 kern/tty_subr.c clp->c_cl = clp->c_cs;
clp 320 kern/tty_subr.c b_to_q(u_char *cp, int count, struct clist *clp)
clp 330 kern/tty_subr.c if (clp->c_cc == clp->c_cn)
clp 333 kern/tty_subr.c if (clp->c_cc == 0) {
clp 334 kern/tty_subr.c if (!clp->c_cs) {
clp 338 kern/tty_subr.c if (clalloc(clp, 1024, 1))
clp 341 kern/tty_subr.c clp->c_cf = clp->c_cl = clp->c_cs;
clp 345 kern/tty_subr.c while (count > 0 && clp->c_cc < clp->c_cn) {
clp 346 kern/tty_subr.c cc = clp->c_ce - clp->c_cl;
clp 347 kern/tty_subr.c if (clp->c_cf > clp->c_cl)
clp 348 kern/tty_subr.c cc = clp->c_cf - clp->c_cl;
clp 351 kern/tty_subr.c bcopy(p, clp->c_cl, cc);
clp 352 kern/tty_subr.c if (clp->c_cq) {
clp 353 kern/tty_subr.c clrbits(clp->c_cq, clp->c_cl - clp->c_cs, cc);
clp 357 kern/tty_subr.c clp->c_cc += cc;
clp 358 kern/tty_subr.c clp->c_cl += cc;
clp 359 kern/tty_subr.c if (clp->c_cl == clp->c_ce)
clp 360 kern/tty_subr.c clp->c_cl = clp->c_cs;
clp 378 kern/tty_subr.c nextc(struct clist *clp, u_char *cp, int *c)
clp 381 kern/tty_subr.c if (clp->c_cf == cp) {
clp 385 kern/tty_subr.c cc = clp->c_cc;
clp 391 kern/tty_subr.c if (++cp == clp->c_ce)
clp 392 kern/tty_subr.c cp = clp->c_cs;
clp 394 kern/tty_subr.c if (clp->c_cq) {
clp 395 kern/tty_subr.c if (isset(clp->c_cq, cp - clp->c_cs))
clp 412 kern/tty_subr.c firstc(struct clist *clp, int *c)
clp 416 kern/tty_subr.c cc = clp->c_cc;
clp 419 kern/tty_subr.c cp = clp->c_cf;
clp 421 kern/tty_subr.c if (clp->c_cq) {
clp 422 kern/tty_subr.c if (isset(clp->c_cq, cp - clp->c_cs))
clp 425 kern/tty_subr.c return clp->c_cf;
clp 432 kern/tty_subr.c unputc(struct clist *clp)
clp 438 kern/tty_subr.c if (clp->c_cc == 0)
clp 441 kern/tty_subr.c if (clp->c_cl == clp->c_cs)
clp 442 kern/tty_subr.c clp->c_cl = clp->c_ce - 1;
clp 444 kern/tty_subr.c --clp->c_cl;
clp 445 kern/tty_subr.c clp->c_cc--;
clp 447 kern/tty_subr.c c = *clp->c_cl & 0xff;
clp 448 kern/tty_subr.c if (clp->c_cq) {
clp 449 kern/tty_subr.c if (isset(clp->c_cq, clp->c_cl - clp->c_cs))
clp 452 kern/tty_subr.c if (clp->c_cc == 0)
clp 453 kern/tty_subr.c clp->c_cf = clp->c_cl = (u_char *)0;
clp 300 sys/tty.h u_char *firstc(struct clist *clp, int *c);