Lines Matching defs:tail_id
71 * The descriptor ring has a @tail_id that contains the ID of the oldest
78 * @tail_id is advanced, followed by advancing @head_id. And finally the
82 * The @tail_id can only be advanced if the new @tail_id would be in the
769 unsigned long tail_id)
775 d_state = desc_read(desc_ring, tail_id, &desc, NULL, NULL);
785 DESC_ID_PREV_WRAP(desc_ring, tail_id)) {
800 desc_make_reusable(desc_ring, tail_id);
817 * Check the next descriptor after @tail_id before pushing the tail
825 d_state = desc_read(desc_ring, DESC_ID(tail_id + 1), &desc,
836 atomic_long_cmpxchg(&desc_ring->tail_id, tail_id,
837 DESC_ID(tail_id + 1)); /* LMM(desc_push_tail:B) */
841 * reloading @tail_id in order to see a new tail ID in the
864 * Re-check the tail ID. The descriptor following @tail_id is
868 if (atomic_long_read(&desc_ring->tail_id) == tail_id) /* LMM(desc_push_tail:D) */
915 if (id_prev_wrap == atomic_long_read(&desc_ring->tail_id
1973 id = atomic_long_read(&rb->desc_ring.tail_id); /* LMM(prb_first_seq:A) */
1986 * reloading @tail_id in order to see a new tail in the case
2338 atomic_long_set(&rb->desc_ring.tail_id, DESC0_ID(descbits));