Lines Matching refs:head
282 u16 head;
285 /* cache head and tail of queue */
286 head = ch->ch_r_head & RQUEUEMASK;
294 if ((qleft = tail - head - 1) < 0)
344 n = min(((u32) total), (RQUEUESIZE - (u32) head));
365 memcpy_fromio(ch->ch_rqueue + head, &ch->ch_neo_uart->txrxburst, n);
371 memset(ch->ch_equeue + head, 0, n);
373 /* Add to and flip head if needed */
374 head = (head + n) & RQUEUEMASK;
450 memcpy_fromio(ch->ch_rqueue + head, &ch->ch_neo_uart->txrxburst, 1);
451 ch->ch_equeue[head] = (u8) linestatus;
454 ch->ch_rqueue[head], ch->ch_equeue[head]);
459 /* Add to and flip head if needed */
460 head = (head + 1) & RQUEUEMASK;
469 ch->ch_r_head = head & RQUEUEMASK;
470 ch->ch_e_head = head & EQUEUEMASK;
476 u16 head;
523 /* cache head and tail of queue */
524 head = circ->head & (UART_XMIT_SIZE - 1);
533 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail;