Lines Matching refs:xmit
71 struct circ_buf xmit; member
155 if (info->xmit.head != info->xmit.tail in rs_start()
156 && info->xmit.buf in rs_start()
275 if (info->xmit.head == info->xmit.tail in transmit_chars()
284 amiga_custom.serdat = info->xmit.buf[info->xmit.tail++] | 0x100; in transmit_chars()
286 info->xmit.tail = info->xmit.tail & (SERIAL_XMIT_SIZE-1); in transmit_chars()
289 if (CIRC_CNT(info->xmit.head, in transmit_chars()
290 info->xmit.tail, in transmit_chars()
297 if (info->xmit.head == info->xmit.tail) { in transmit_chars()
460 if (info->xmit.buf) in startup()
463 info->xmit.buf = (unsigned char *) page; in startup()
497 info->xmit.head = info->xmit.tail = 0; in startup()
541 if (info->xmit.buf) { in shutdown()
542 free_page((unsigned long) info->xmit.buf); in shutdown()
543 info->xmit.buf = NULL; in shutdown()
709 if (!info->xmit.buf) in rs_put_char()
713 if (CIRC_SPACE(info->xmit.head, in rs_put_char()
714 info->xmit.tail, in rs_put_char()
720 info->xmit.buf[info->xmit.head++] = ch; in rs_put_char()
721 info->xmit.head &= SERIAL_XMIT_SIZE-1; in rs_put_char()
731 if (info->xmit.head == info->xmit.tail in rs_flush_chars()
734 || !info->xmit.buf) in rs_flush_chars()
753 if (!info->xmit.buf) in rs_write()
758 c = CIRC_SPACE_TO_END(info->xmit.head, in rs_write()
759 info->xmit.tail, in rs_write()
766 memcpy(info->xmit.buf + info->xmit.head, buf, c); in rs_write()
767 info->xmit.head = ((info->xmit.head + c) & in rs_write()
775 if (info->xmit.head != info->xmit.tail in rs_write()
795 return CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in rs_write_room()
802 return CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in rs_chars_in_buffer()
811 info->xmit.head = info->xmit.tail = 0; in rs_flush_buffer()