Lines Matching defs:head_id
72 * descriptor and @head_id that contains the ID of the newest descriptor.
78 * @tail_id is advanced, followed by advancing @head_id. And finally the
822 * equal to @head_id so there is no risk of pushing the tail past the
882 unsigned long head_id;
885 head_id = atomic_long_read(&desc_ring->head_id); /* LMM(desc_reserve:A) */
888 id = DESC_ID(head_id + 1);
966 } while (!atomic_long_try_cmpxchg(&desc_ring->head_id, &head_id,
1301 id = atomic_long_read(&desc_ring->head_id);
1766 unsigned long head_id;
1775 head_id = atomic_long_read(&desc_ring->head_id); /* LMM(prb_commit:A) */
1776 if (head_id != e->id)
2029 unsigned long head_id;
2036 * It may not be possible to read a sequence number for @head_id.
2038 * sequence number of @head_id will be.
2045 * @head_id is loaded after @last_finalized_seq to ensure that
2065 head_id = atomic_long_read(&desc_ring->head_id); /* LMM(prb_next_reserve_seq:A) */
2081 * The @head_id is initialized such that the first
2086 if (head_id == DESC0_ID(desc_ring->count_bits))
2102 diff = head_id - last_finalized_id;
2105 * @head_id points to the most recently reserved record, but this
2337 atomic_long_set(&rb->desc_ring.head_id, DESC0_ID(descbits));