Lines Matching defs:index
104 * If there aren't enough entries starting at the free index,
218 /* Map a TRE ring entry index to the transaction it is associated with */
219 static void gsi_trans_map(struct gsi_trans *trans, u32 index)
224 index += trans->used_count - 1;
226 /* Note: index *must* be used modulo the ring count here */
227 channel->trans_info.map[index % channel->tre_ring.count] = trans;
232 gsi_channel_trans_mapped(struct gsi_channel *channel, u32 index)
234 /* Note: index *must* be used modulo the ring count here */
235 return channel->trans_info.map[index % channel->tre_ring.count];
566 avail = tre_ring->count - tre_ring->index % tre_ring->count;
567 dest_tre = gsi_ring_virt(tre_ring, tre_ring->index);
583 gsi_trans_map(trans, tre_ring->index);
585 tre_ring->index += trans->used_count;
686 dest_tre = gsi_ring_virt(tre_ring, tre_ring->index);
689 tre_ring->index++;
729 * power-of-two number of transactions we can use an index