Lines Matching refs:tail
292 u16 tail; in neo_copy_data_from_uart_to_queue() local
299 tail = ch->ch_r_tail & RQUEUEMASK; in neo_copy_data_from_uart_to_queue()
306 if ((qleft = tail - head - 1) < 0) in neo_copy_data_from_uart_to_queue()
455 ch->ch_rqueue[tail], ch->ch_equeue[tail]); in neo_copy_data_from_uart_to_queue()
457 ch->ch_r_tail = tail = (tail + 1) & RQUEUEMASK; in neo_copy_data_from_uart_to_queue()
489 u16 tail; in neo_copy_data_from_queue_to_uart() local
518 writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx); in neo_copy_data_from_queue_to_uart()
520 "Tx data: %x\n", circ->buf[circ->tail]); in neo_copy_data_from_queue_to_uart()
521 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
537 tail = circ->tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
545 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail; in neo_copy_data_from_queue_to_uart()
551 memcpy_toio(&ch->ch_neo_uart->txrxburst, circ->buf + tail, s); in neo_copy_data_from_queue_to_uart()
553 tail = (tail + s) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
560 circ->tail = tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()