Lines Matching refs:head
1128 netmap_extra_alloc(struct netmap_adapter *na, uint32_t *head, uint32_t n)
1135 *head = 0; /* default, 'null' index ie empty list */
1137 uint32_t cur = *head; /* save current head */
1138 uint32_t *p = netmap_buf_malloc(nmd, &pos, head);
1141 *head = cur; /* restore */
1144 nm_prdis(5, "allocate buffer %d -> %d", *head, cur);
1145 *p = cur; /* link to previous head */
1154 netmap_extra_free(struct netmap_adapter *na, uint32_t head)
1162 for (i = 0; head >=2 && head < p->objtotal; i++) {
1163 cur = head;
1164 buf = lut[head].vaddr;
1165 head = *buf;
1170 if (head != 0)
1171 nm_prerr("breaking with head %d", head);
1929 ring->head = kring->rhead;
1935 ring->head, ring->cur, ring->tail);