Lines Matching refs:head
53 unsigned int head; /* circular buffer head */
416 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE),
425 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE);
430 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE))
479 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE);
483 memcpy(bc->buf + bc->head, s, len);
484 bc->head = (bc->head + len) & (BUF_SIZE - 1);
546 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE);
693 bc->head = 0;