Home
last modified time | relevance | path

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

/Linux-v4.19/lib/
Dflex_array.c41 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 …]
Dlru_cache.c136 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/
Demulate_loadstore.c216 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()
Dpowerpc.c955 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/
Dflex_array.h24 int element_size; member
56 .element_size = (__element_size), \
73 struct flex_array *flex_array_alloc(int element_size, unsigned int total,
Dlru_cache.h187 size_t element_size; member
/Linux-v4.19/arch/powerpc/lib/
Dsstep.c672 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/
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-v4.19/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.h320 int element_size,
/Linux-v4.19/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.h317 u32 element_size; member
/Linux-v4.19/Documentation/
Dflexible-arrays.txt36 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/
Dflexible-arrays.rst34 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/
Dsstep.h115 u8 element_size; /* for VSX/VMX loads/stores */ member
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c154 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()
Dqplib_res.h99 u16 element_size; /* Size of each entry */ member
/Linux-v4.19/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()
/Linux-v4.19/net/sctp/
Dstream.c82 memset(elem, 0, fa->element_size); in fa_zero()