Lines Matching defs:tail
283 u16 tail;
285 /* cache head and tail of queue */
287 tail = ch->ch_r_tail & RQUEUEMASK;
294 if ((qleft = tail - head - 1) < 0)
443 ch->ch_rqueue[tail], ch->ch_equeue[tail]);
445 ch->ch_r_tail = tail = (tail + 1) & RQUEUEMASK;
477 u16 tail;
506 writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx);
508 "Tx data: %x\n", circ->buf[circ->tail]);
509 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1);
523 /* cache head and tail of queue */
525 tail = circ->tail & (UART_XMIT_SIZE - 1);
533 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail;
539 memcpy_toio(&ch->ch_neo_uart->txrxburst, circ->buf + tail, s);
541 tail = (tail + s) & (UART_XMIT_SIZE - 1);
547 /* Update the final tail */
548 circ->tail = tail & (UART_XMIT_SIZE - 1);