Lines Matching refs:tail
380 * Shared memory structure used to store the ring head and tail pointers.
546 * ring_state: Shared memory buffer containing ring head and tail indexes
801 u16 tail;
808 tail = le16_to_cpu(tails[ring->ring_id]);
810 "completion ring #%d: head: %d, tail: %d\n", ring->ring_id,
811 le16_to_cpu(heads[ring->ring_id]), tail);
813 while (tail != le16_to_cpu(READ_ONCE(heads[ring->ring_id]))) {
821 bcm4377_handle_completion(bcm4377, ring, tail);
823 tail = (tail + 1) % ring->n_entries;
824 tails[ring->ring_id] = cpu_to_le16(tail);
867 u16 head, tail, new_head;
888 tail = le16_to_cpu(bcm4377->ring_state->xfer_ring_tail[ring->ring_id]);
892 if (new_head == tail) {