Lines Matching refs:tail
283 u16 tail;
285 /* cache head and tail of queue */
287 tail = ch->ch_r_tail & RQUEUEMASK;
294 qleft = tail - head - 1;
444 ch->ch_rqueue[tail], ch->ch_equeue[tail]);
446 ch->ch_r_tail = tail = (tail + 1) & RQUEUEMASK;
478 u16 tail;
507 writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx);
509 "Tx data: %x\n", circ->buf[circ->tail]);
510 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1);
524 /* cache head and tail of queue */
526 tail = circ->tail & (UART_XMIT_SIZE - 1);
534 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail;
540 memcpy_toio(&ch->ch_neo_uart->txrxburst, circ->buf + tail, s);
542 tail = (tail + s) & (UART_XMIT_SIZE - 1);
548 /* Update the final tail */
549 circ->tail = tail & (UART_XMIT_SIZE - 1);