Lines Matching defs:tail
522 u16 tail;
551 tail = ch->ch_r_tail & rmask;
553 data_len = (head - tail) & rmask;
570 ch->ch_r_head = tail;
585 "Port %d throttled, not reading any data. head: %x tail: %x\n",
586 ch->ch_portnum, head, tail);
607 s = ((head >= tail) ? head : RQUEUESIZE) - tail;
626 if (*(ch->ch_equeue +tail +i) & UART_LSR_BI)
627 tty_insert_flip_char(tp, *(ch->ch_rqueue +tail +i), TTY_BREAK);
628 else if (*(ch->ch_equeue +tail +i) & UART_LSR_PE)
629 tty_insert_flip_char(tp, *(ch->ch_rqueue +tail +i), TTY_PARITY);
630 else if (*(ch->ch_equeue +tail +i) & UART_LSR_FE)
631 tty_insert_flip_char(tp, *(ch->ch_rqueue +tail +i), TTY_FRAME);
633 tty_insert_flip_char(tp, *(ch->ch_rqueue +tail +i), TTY_NORMAL);
636 tty_insert_flip_string(tp, ch->ch_rqueue + tail, s) ;
638 tail += s;
641 tail &= rmask;
644 ch->ch_r_tail = tail & rmask;
645 ch->ch_e_tail = tail & rmask;
851 u16 tail;
854 int temp_tail = port->state->xmit.tail;
859 tail = (channel->ch_w_tail) & tmask;
861 if ((bufcount = tail - head - 1) < 0)
897 port->state->xmit.tail = temp_tail;