Home
last modified time | relevance | path

Searched refs:element_size (Results 1 – 7 of 7) sorted by relevance

/drivers/net/ethernet/mellanox/mlxsw/
Ditem.h48 unsigned char element_size; /* size of element in bit array */ member
244 BUG_ON(index && !item->element_size); in __mlxsw_item_bit_array_offset()
246 BITS_PER_BYTE % item->element_size != 0) { in __mlxsw_item_bit_array_offset()
248 item->name, item->offset, item->element_size); in __mlxsw_item_bit_array_offset()
252 max_index = (item->size.bytes << 3) / item->element_size - 1; in __mlxsw_item_bit_array_offset()
254 offset = be_index * item->element_size >> 3; in __mlxsw_item_bit_array_offset()
255 in_byte_index = index % (BITS_PER_BYTE / item->element_size); in __mlxsw_item_bit_array_offset()
256 *shift = in_byte_index * item->element_size; in __mlxsw_item_bit_array_offset()
270 tmp &= GENMASK(item->element_size - 1, 0); in __mlxsw_item_bit_array_get()
280 u8 mask = GENMASK(item->element_size - 1, 0) << shift; in __mlxsw_item_bit_array_set()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_cmd.c40 int element_size; member
59 int element_size, in qxl_ring_create() argument
72 ring->element_size = element_size; in qxl_ring_create()
137 elt = ring->ring->elements + idx * ring->element_size; in qxl_ring_push()
139 memcpy((void *)elt, new_elt, ring->element_size); in qxl_ring_push()
167 ring_elt = ring->ring->elements + idx * ring->element_size; in qxl_ring_pop()
169 memcpy(element, (void *)ring_elt, ring->element_size); in qxl_ring_pop()
Dqxl_drv.h346 int element_size,
/drivers/scsi/pm8001/
Dpm8001_init.c266 pm8001_ha->memoryMap.region[AAP1].element_size = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
272 pm8001_ha->memoryMap.region[IOP].element_size = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
279 pm8001_ha->memoryMap.region[CI+i].element_size = 4; in pm8001_alloc()
287 pm8001_ha->memoryMap.region[IB+i].element_size = 128; in pm8001_alloc()
294 pm8001_ha->memoryMap.region[IB+i].element_size = 64; in pm8001_alloc()
304 pm8001_ha->memoryMap.region[PI+i].element_size = 4; in pm8001_alloc()
312 pm8001_ha->memoryMap.region[OB+i].element_size = 128; in pm8001_alloc()
320 pm8001_ha->memoryMap.region[OB+i].element_size = 64; in pm8001_alloc()
329 pm8001_ha->memoryMap.region[NVMD].element_size = 4096; in pm8001_alloc()
333 pm8001_ha->memoryMap.region[DEV_MEM].element_size = PM8001_MAX_DEVICES * in pm8001_alloc()
[all …]
Dpm8001_sas.h310 u32 element_size; member
/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c155 hwq->element_size = 0; in bnxt_qplib_free_hwq()
164 u32 *elements, u32 element_size, u32 aux, in bnxt_qplib_alloc_init_hwq() argument
180 size = roundup_pow_of_two(element_size); in bnxt_qplib_alloc_init_hwq()
280 hwq->element_size = size; in bnxt_qplib_alloc_init_hwq()
Dqplib_res.h99 u16 element_size; /* Size of each entry */ member