Lines Matching refs:head
282 u16 head;
285 /* cache head and tail of queue */
286 head = ch->ch_r_head & RQUEUEMASK;
294 qleft = tail - head - 1;
345 n = min(((u32) total), (RQUEUESIZE - (u32) head));
366 memcpy_fromio(ch->ch_rqueue + head, &ch->ch_neo_uart->txrxburst, n);
372 memset(ch->ch_equeue + head, 0, n);
374 /* Add to and flip head if needed */
375 head = (head + n) & RQUEUEMASK;
451 memcpy_fromio(ch->ch_rqueue + head, &ch->ch_neo_uart->txrxburst, 1);
452 ch->ch_equeue[head] = (u8) linestatus;
455 ch->ch_rqueue[head], ch->ch_equeue[head]);
460 /* Add to and flip head if needed */
461 head = (head + 1) & RQUEUEMASK;
470 ch->ch_r_head = head & RQUEUEMASK;
471 ch->ch_e_head = head & EQUEUEMASK;
477 u16 head;
524 /* cache head and tail of queue */
525 head = circ->head & (UART_XMIT_SIZE - 1);
534 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail;