Lines Matching refs:c_cs
74 clp->c_cs = kmem_zalloc(size, KM_SLEEP); in clalloc()
81 clp->c_ce = clp->c_cs + size; in clalloc()
91 if (clp->c_cs) in clfree()
92 kmem_free(clp->c_cs, clp->c_cn); in clfree()
95 clp->c_cs = clp->c_cq = NULL; in clfree()
114 if (isset(clp->c_cq, clp->c_cf - clp->c_cs) ) in getc()
117 if (*(clp->c_cf - clp->c_cs + clp->c_cq)) in getc()
123 clp->c_cf = clp->c_cs; in getc()
156 clp->c_cf = clp->c_cs; in q_to_b()
187 i = clp->c_cf - clp->c_cs; in ndqb()
189 while (cc-- > 0 && !(clp->c_cs[i++] & (flag & ~TTY_QUOTE) || in ndqb()
196 while (cc-- > 0 && !(clp->c_cs[i++] & flag)) { in ndqb()
233 clp->c_cf = clp->c_cs; in ndflush()
255 if (!clp->c_cs) { in putc()
265 clp->c_cf = clp->c_cl = clp->c_cs; in putc()
269 i = clp->c_cl - clp->c_cs; in putc()
284 clp->c_cl = clp->c_cs; in putc()
344 if (!clp->c_cs) { in b_to_q()
351 clp->c_cf = clp->c_cl = clp->c_cs; in b_to_q()
364 clrbits(clp->c_cq, clp->c_cl - clp->c_cs, cc); in b_to_q()
366 memset(clp->c_cl - clp->c_cs + clp->c_cq, 0, cc); in b_to_q()
374 clp->c_cl = clp->c_cs; in b_to_q()
406 cp = clp->c_cs; in nextc()
410 if (isset(clp->c_cq, cp - clp->c_cs)) in nextc()
413 if (*(clp->c_cf - clp->c_cs + clp->c_cq)) in nextc()
442 if (isset(clp->c_cq, cp - clp->c_cs)) in firstc()
445 if (*(cp - clp->c_cs + clp->c_cq)) in firstc()
465 if (clp->c_cl == clp->c_cs) in unputc()
474 if (isset(clp->c_cq, clp->c_cl - clp->c_cs)) in unputc()
477 if (*(clp->c_cf - clp->c_cs + clp->c_cq)) in unputc()