Home
last modified time | relevance | path

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

/linux-6.1.9/arch/powerpc/kvm/
Demulate_loadstore.c193 if (op.element_size == 8) { in kvmppc_emulate_loadstore()
200 } else if (op.element_size == 4) { in kvmppc_emulate_loadstore()
210 if (size < op.element_size) { in kvmppc_emulate_loadstore()
216 size/op.element_size; in kvmppc_emulate_loadstore()
217 io_size_each = op.element_size; in kvmppc_emulate_loadstore()
321 if (op.element_size == 8) in kvmppc_emulate_loadstore()
324 else if (op.element_size == 4) in kvmppc_emulate_loadstore()
330 if (size < op.element_size) { in kvmppc_emulate_loadstore()
336 size/op.element_size; in kvmppc_emulate_loadstore()
337 io_size_each = op.element_size; in kvmppc_emulate_loadstore()
Dpowerpc.c1017 int index, int element_size) in kvmppc_get_vmx_offset_generic() argument
1020 int elts = sizeof(vector128)/element_size; in kvmppc_get_vmx_offset_generic()
/linux-6.1.9/arch/powerpc/lib/
Dsstep.c785 switch (op->element_size) { in emulate_vsx_load()
871 switch (op->element_size) { in emulate_vsx_store()
2340 op->element_size = 1; in analyse_instr()
2345 op->element_size = 2; in analyse_instr()
2350 op->element_size = 4; in analyse_instr()
2356 op->element_size = 16; in analyse_instr()
2361 op->element_size = 1; in analyse_instr()
2366 op->element_size = 2; in analyse_instr()
2371 op->element_size = 4; in analyse_instr()
2525 op->element_size = 8; in analyse_instr()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Ditem.h16 unsigned char element_size; /* size of element in bit array */ member
212 BUG_ON(index && !item->element_size); in __mlxsw_item_bit_array_offset()
214 BITS_PER_BYTE % item->element_size != 0) { in __mlxsw_item_bit_array_offset()
216 item->name, item->offset, item->element_size); in __mlxsw_item_bit_array_offset()
220 max_index = (item->size.bytes << 3) / item->element_size - 1; in __mlxsw_item_bit_array_offset()
222 offset = be_index * item->element_size >> 3; in __mlxsw_item_bit_array_offset()
223 in_byte_index = index % (BITS_PER_BYTE / item->element_size); in __mlxsw_item_bit_array_offset()
224 *shift = in_byte_index * item->element_size; in __mlxsw_item_bit_array_offset()
238 tmp &= GENMASK(item->element_size - 1, 0); in __mlxsw_item_bit_array_get()
248 u8 mask = GENMASK(item->element_size - 1, 0) << shift; in __mlxsw_item_bit_array_set()
[all …]
/linux-6.1.9/drivers/gpu/drm/qxl/
Dqxl_cmd.c44 int element_size; member
58 int element_size, in qxl_ring_create() argument
70 ring->element_size = element_size; in qxl_ring_create()
136 elt = ring->ring->elements + idx * ring->element_size; in qxl_ring_push()
138 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.h277 int element_size,
/linux-6.1.9/drivers/scsi/pm8001/
Dpm8001_init.c328 pm8001_ha->memoryMap.region[AAP1].element_size = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
334 pm8001_ha->memoryMap.region[IOP].element_size = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
343 pm8001_ha->memoryMap.region[ci_offset+i].element_size = 4; in pm8001_alloc()
351 pm8001_ha->memoryMap.region[ib_offset+i].element_size in pm8001_alloc()
360 pm8001_ha->memoryMap.region[ib_offset+i].element_size in pm8001_alloc()
373 pm8001_ha->memoryMap.region[pi_offset+i].element_size = 4; in pm8001_alloc()
381 pm8001_ha->memoryMap.region[ob_offset+i].element_size in pm8001_alloc()
391 pm8001_ha->memoryMap.region[ob_offset+i].element_size in pm8001_alloc()
401 pm8001_ha->memoryMap.region[NVMD].element_size = 4096; in pm8001_alloc()
409 pm8001_ha->memoryMap.region[FORENSIC_MEM].element_size = 0x10000; in pm8001_alloc()
Dpm8001_sas.h303 u32 element_size; member
/linux-6.1.9/lib/
Dlru_cache.c125 lc->element_size = e_size; in lc_create()
138 memset(p, 0, lc->element_size); in lc_create()
216 memset(p, 0, lc->element_size); in lc_reset()
/linux-6.1.9/include/linux/
Dlru_cache.h175 size_t element_size; member
Defi.h820 size_t element_size);
/linux-6.1.9/arch/powerpc/include/asm/
Dsstep.h124 u8 element_size; /* for VSX/VMX loads/stores */ member
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dqplib_res.h153 u16 element_size; /* Size of each entry */ member
321 return (void *)(hwq->pbl_ptr[pg_num] + hwq->element_size * pg_idx); in bnxt_qplib_get_qe()
Dqplib_res.c175 hwq->element_size = 0; in bnxt_qplib_free_hwq()
355 hwq->element_size = stride; in bnxt_qplib_alloc_init_hwq()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras.c1239 const unsigned int element_size = in amdgpu_ras_sysfs_badpages_read() local
1241 unsigned int start = div64_ul(ppos + element_size - 1, element_size); in amdgpu_ras_sysfs_badpages_read()
1242 unsigned int end = div64_ul(ppos + count - 1, element_size); in amdgpu_ras_sysfs_badpages_read()
1253 s += scnprintf(&buf[s], element_size + 1, in amdgpu_ras_sysfs_badpages_read()
1643 data->element_size); in amdgpu_ras_interrupt_handler()
1688 data->element_size); in amdgpu_ras_interrupt_dispatch()
1743 .element_size = sizeof(struct amdgpu_iv_entry), in amdgpu_ras_interrupt_add_handler()
1750 data->aligned_element_size = ALIGN(data->element_size, 8); in amdgpu_ras_interrupt_add_handler()
Damdgpu_ras.h424 unsigned int element_size; member
/linux-6.1.9/tools/hv/
Dhv_kvp_daemon.c639 int element_size, int offset) in kvp_process_ipconfig_file() argument
656 if (len < strlen(config_buf) + element_size + 1) in kvp_process_ipconfig_file()