/Linux-v4.19/lib/ |
D | flex_array.c | 41 int data_size = fa->element_size * fa->total_nr_elements; in elements_fit_in_base() 88 struct flex_array *flex_array_alloc(int element_size, unsigned int total, in flex_array_alloc() argument 96 if (element_size) { in flex_array_alloc() 97 elems_per_part = FLEX_ARRAY_ELEMENTS_PER_PART(element_size); in flex_array_alloc() 108 ret->element_size = element_size; in flex_array_alloc() 162 return part_offset * fa->element_size; in index_inside_part() 207 if (!fa->element_size) in flex_array_put() 218 memcpy(dst, src, fa->element_size); in flex_array_put() 238 if (!fa->element_size) in flex_array_clear() 249 memset(dst, FLEX_ARRAY_FREE, fa->element_size); in flex_array_clear() [all …]
|
D | lru_cache.c | 136 lc->element_size = e_size; in lc_create() 149 memset(p, 0, lc->element_size); in lc_create() 227 memset(p, 0, lc->element_size); in lc_reset()
|
/Linux-v4.19/arch/powerpc/kvm/ |
D | emulate_loadstore.c | 216 if (op.element_size == 8) { in kvmppc_emulate_loadstore() 223 } else if (op.element_size == 4) { in kvmppc_emulate_loadstore() 233 if (size < op.element_size) { in kvmppc_emulate_loadstore() 239 size/op.element_size; in kvmppc_emulate_loadstore() 240 io_size_each = op.element_size; in kvmppc_emulate_loadstore() 345 if (op.element_size == 8) in kvmppc_emulate_loadstore() 348 else if (op.element_size == 4) in kvmppc_emulate_loadstore() 354 if (size < op.element_size) { in kvmppc_emulate_loadstore() 360 size/op.element_size; in kvmppc_emulate_loadstore() 361 io_size_each = op.element_size; in kvmppc_emulate_loadstore()
|
D | powerpc.c | 955 int index, int element_size) in kvmppc_get_vmx_offset_generic() argument 958 int elts = sizeof(vector128)/element_size; in kvmppc_get_vmx_offset_generic()
|
/Linux-v4.19/include/linux/ |
D | flex_array.h | 24 int element_size; member 56 .element_size = (__element_size), \ 73 struct flex_array *flex_array_alloc(int element_size, unsigned int total,
|
D | lru_cache.h | 187 size_t element_size; member
|
/Linux-v4.19/arch/powerpc/lib/ |
D | sstep.c | 672 switch (op->element_size) { in emulate_vsx_load() 756 switch (op->element_size) { in emulate_vsx_store() 1985 op->element_size = 1; in analyse_instr() 1990 op->element_size = 2; in analyse_instr() 1995 op->element_size = 4; in analyse_instr() 2001 op->element_size = 16; in analyse_instr() 2006 op->element_size = 1; in analyse_instr() 2011 op->element_size = 2; in analyse_instr() 2016 op->element_size = 4; in analyse_instr() 2170 op->element_size = 8; in analyse_instr() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | item.h | 16 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-v4.19/drivers/gpu/drm/qxl/ |
D | qxl_cmd.c | 40 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()
|
D | qxl_drv.h | 320 int element_size,
|
/Linux-v4.19/drivers/scsi/pm8001/ |
D | pm8001_init.c | 266 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 …]
|
D | pm8001_sas.h | 317 u32 element_size; member
|
/Linux-v4.19/Documentation/ |
D | flexible-arrays.txt | 36 struct flex_array *flex_array_alloc(int element_size, 40 The individual object size is provided by element_size, while total is the 48 DEFINE_FLEX_ARRAY(name, element_size, total);
|
/Linux-v4.19/Documentation/core-api/ |
D | flexible-arrays.rst | 34 struct flex_array *flex_array_alloc(int element_size, 38 The individual object size is provided by ``element_size``, while total is the 46 DEFINE_FLEX_ARRAY(name, element_size, total);
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | sstep.h | 115 u8 element_size; /* for VSX/VMX loads/stores */ member
|
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/ |
D | qplib_res.c | 154 hwq->element_size = 0; in bnxt_qplib_free_hwq() 163 u32 *elements, u32 element_size, u32 aux, in bnxt_qplib_alloc_init_hwq() argument 179 size = roundup_pow_of_two(element_size); in bnxt_qplib_alloc_init_hwq() 279 hwq->element_size = size; in bnxt_qplib_alloc_init_hwq()
|
D | qplib_res.h | 99 u16 element_size; /* Size of each entry */ member
|
/Linux-v4.19/tools/hv/ |
D | hv_kvp_daemon.c | 639 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()
|
/Linux-v4.19/net/sctp/ |
D | stream.c | 82 memset(elem, 0, fa->element_size); in fa_zero()
|