Lines Matching refs:xmit
86 struct circ_buf xmit;
107 /* number of characters left in xmit buffer before we ask for more */
178 if (info->xmit.head != info->xmit.tail
179 && info->xmit.buf
311 if (info->xmit.head == info->xmit.tail
320 custom.serdat = info->xmit.buf[info->xmit.tail++] | 0x100;
322 info->xmit.tail = info->xmit.tail & (SERIAL_XMIT_SIZE-1);
325 if (CIRC_CNT(info->xmit.head,
326 info->xmit.tail,
333 if (info->xmit.head == info->xmit.tail) {
496 if (info->xmit.buf)
499 info->xmit.buf = (unsigned char *) page;
533 info->xmit.head = info->xmit.tail = 0;
580 if (info->xmit.buf) {
581 free_page((unsigned long) info->xmit.buf);
582 info->xmit.buf = NULL;
748 if (!info->xmit.buf)
752 if (CIRC_SPACE(info->xmit.head,
753 info->xmit.tail,
759 info->xmit.buf[info->xmit.head++] = ch;
760 info->xmit.head &= SERIAL_XMIT_SIZE-1;
770 if (info->xmit.head == info->xmit.tail
773 || !info->xmit.buf)
792 if (!info->xmit.buf)
797 c = CIRC_SPACE_TO_END(info->xmit.head,
798 info->xmit.tail,
805 memcpy(info->xmit.buf + info->xmit.head, buf, c);
806 info->xmit.head = ((info->xmit.head + c) &
814 if (info->xmit.head != info->xmit.tail
834 return CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE);
841 return CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE);
850 info->xmit.head = info->xmit.tail = 0;