Home
last modified time | relevance | path

Searched refs:GSI_RING_ELEMENT_SIZE (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ipa/
Dgsi.c205 BUILD_BUG_ON(!GSI_RING_ELEMENT_SIZE); in gsi_validate_build()
211 BUILD_BUG_ON(sizeof(struct gsi_event) != GSI_RING_ELEMENT_SIZE); in gsi_validate_build()
217 BUILD_BUG_ON(!is_power_of_2(GSI_RING_ELEMENT_SIZE)); in gsi_validate_build()
220 BUILD_BUG_ON(GSI_RING_ELEMENT_SIZE > field_max(ELEMENT_SIZE_FMASK)); in gsi_validate_build()
223 BUILD_BUG_ON(GSI_RING_ELEMENT_SIZE > field_max(EV_ELEMENT_SIZE_FMASK)); in gsi_validate_build()
293 return ring->virt + (index % ring->count) * GSI_RING_ELEMENT_SIZE; in gsi_ring_virt()
299 return (ring->addr & GENMASK(31, 0)) + index * GSI_RING_ELEMENT_SIZE; in gsi_ring_addr()
305 return (offset - gsi_ring_addr(ring, 0)) / GSI_RING_ELEMENT_SIZE; in gsi_ring_index()
607 size_t size = evt_ring->ring.count * GSI_RING_ELEMENT_SIZE; in gsi_evt_ring_program()
612 val |= u32_encode_bits(GSI_RING_ELEMENT_SIZE, EV_ELEMENT_SIZE_FMASK); in gsi_evt_ring_program()
[all …]
Dgsi_private.h17 #define GSI_RING_ELEMENT_SIZE 16 /* bytes; must be a power of 2 */ macro
Dgsi_trans.c729 BUILD_BUG_ON(sizeof(struct gsi_tre) != GSI_RING_ELEMENT_SIZE); in gsi_channel_trans_init()