Lines Matching refs:GSI_RING_ELEMENT_SIZE
151 BUILD_BUG_ON(!GSI_RING_ELEMENT_SIZE); in gsi_validate_build()
157 BUILD_BUG_ON(sizeof(struct gsi_event) != GSI_RING_ELEMENT_SIZE); in gsi_validate_build()
163 BUILD_BUG_ON(!is_power_of_2(GSI_RING_ELEMENT_SIZE)); in gsi_validate_build()
365 return ring->virt + (index % ring->count) * GSI_RING_ELEMENT_SIZE; in gsi_ring_virt()
371 return lower_32_bits(ring->addr) + index * GSI_RING_ELEMENT_SIZE; in gsi_ring_addr()
377 return (offset - gsi_ring_addr(ring, 0)) / GSI_RING_ELEMENT_SIZE; in gsi_ring_index()
728 val |= reg_encode(reg, EV_ELEMENT_SIZE, GSI_RING_ELEMENT_SIZE); in gsi_evt_ring_program()
732 val = reg_encode(reg, R_LENGTH, ring->count * GSI_RING_ELEMENT_SIZE); in gsi_evt_ring_program()
825 size_t size = channel->tre_ring.count * GSI_RING_ELEMENT_SIZE; in gsi_channel_program()
843 val |= reg_encode(reg, ELEMENT_SIZE, GSI_RING_ELEMENT_SIZE); in gsi_channel_program()
896 GSI_RING_ELEMENT_SIZE; in gsi_channel_program()
897 gpi->outstanding_threshold = 2 * GSI_RING_ELEMENT_SIZE; in gsi_channel_program()
1536 u32 size = count * GSI_RING_ELEMENT_SIZE; in gsi_ring_alloc()
1558 size_t size = ring->count * GSI_RING_ELEMENT_SIZE; in gsi_ring_free()