Lines Matching refs:head
80 uint32_t head;
389 uint32_t head, tail, count;
404 head = ring->head;
413 count = tail - head;
414 if (tail < head) {
425 if ((head + count) <= ring->size) {
427 memcpy(uevents, &kevents[head], count * sizeof(struct io_event));
429 uint32_t first_part = ring->size - head;
431 memcpy(uevents, &kevents[head], first_part * sizeof(struct io_event));
435 /* Update the head pointer. On x86, stores will not be reordered with older loads,
444 ring->head = (head + count) % ring->size;