Home
last modified time | relevance | path

Searched refs:elem_size (Results 1 – 25 of 86) sorted by relevance

1234

/Linux-v5.15/drivers/net/wireless/ath/ath10k/
Dqmi_wlfw_v01.c14 .elem_size = sizeof(u32),
23 .elem_size = sizeof(enum wlfw_pipedir_enum_v01),
32 .elem_size = sizeof(u32),
41 .elem_size = sizeof(u32),
50 .elem_size = sizeof(u32),
63 .elem_size = sizeof(u32),
72 .elem_size = sizeof(enum wlfw_pipedir_enum_v01),
81 .elem_size = sizeof(u32),
94 .elem_size = sizeof(u16),
103 .elem_size = sizeof(u16),
[all …]
/Linux-v5.15/drivers/net/ipa/
Dipa_qmi_msg.c16 .elem_size =
26 .elem_size =
36 .elem_size =
46 .elem_size =
56 .elem_size =
66 .elem_size =
76 .elem_size =
86 .elem_size =
96 .elem_size =
106 .elem_size =
[all …]
/Linux-v5.15/drivers/soc/qcom/
Dpdr_internal.h35 .elem_size = sizeof(char),
44 .elem_size = sizeof(u32),
53 .elem_size = sizeof(u8),
62 .elem_size = sizeof(u32),
81 .elem_size = sizeof(char),
90 .elem_size = sizeof(u8),
99 .elem_size = sizeof(u32),
123 .elem_size = sizeof(struct qmi_response_type_v01),
133 .elem_size = sizeof(u8),
142 .elem_size = sizeof(u16),
[all …]
Dqmi_encdec.c121 min_msg_len += (temp_ei->elem_size == sizeof(u8) ? in qmi_calc_min_msg_len()
133 min_msg_len += temp_ei->elem_len * temp_ei->elem_size; in qmi_calc_min_msg_len()
136 min_msg_len += (temp_ei->elem_len * temp_ei->elem_size); in qmi_calc_min_msg_len()
167 u32 elem_len, u32 elem_size) in qmi_encode_basic_elem() argument
172 QMI_ENCDEC_ENCODE_N_BYTES(buf_dst, buf_src, elem_size); in qmi_encode_basic_elem()
173 rc += elem_size; in qmi_encode_basic_elem()
213 buf_src = buf_src + temp_ei->elem_size; in qmi_encode_struct_elem()
274 string_len, temp_ei->elem_size); in qmi_encode_string_elem()
341 memcpy(&data_len_value, buf_src, temp_ei->elem_size); in qmi_encode()
342 data_len_sz = temp_ei->elem_size == sizeof(u8) ? in qmi_encode()
[all …]
/Linux-v5.15/drivers/net/wireless/ath/ath11k/
Dqmi.c27 .elem_size = sizeof(u8),
36 .elem_size = sizeof(u32),
45 .elem_size = sizeof(u8),
54 .elem_size = sizeof(u32),
63 .elem_size = sizeof(u8),
72 .elem_size = sizeof(u8),
81 .elem_size = sizeof(u32),
90 .elem_size = sizeof(u8),
99 .elem_size = sizeof(u8),
108 .elem_size = sizeof(u8),
[all …]
/Linux-v5.15/include/linux/
Dmin_heap.h28 int elem_size; member
45 left = data + ((pos * 2 + 1) * func->elem_size); in min_heapify()
46 parent = data + (pos * func->elem_size); in min_heapify()
52 right = data + ((pos * 2 + 2) * func->elem_size); in min_heapify()
89 memcpy(data, data + (heap->nr * func->elem_size), func->elem_size); in min_heap_pop()
103 memcpy(heap->data, element, func->elem_size); in min_heap_pop_push()
121 memcpy(data + (pos * func->elem_size), element, func->elem_size); in min_heap_push()
126 child = data + (pos * func->elem_size); in min_heap_push()
127 parent = data + ((pos - 1) / 2) * func->elem_size; in min_heap_push()
/Linux-v5.15/drivers/infiniband/sw/rxe/
Drxe_queue.c56 unsigned int elem_size, enum queue_type type) in rxe_queue_init() argument
74 q->elem_size = elem_size; in rxe_queue_init()
77 if (elem_size < cache_line_size()) in rxe_queue_init()
78 elem_size = cache_line_size(); in rxe_queue_init()
79 elem_size = roundup_pow_of_two(elem_size); in rxe_queue_init()
81 q->log2_elem_size = order_base_2(elem_size); in rxe_queue_init()
87 buf_size = sizeof(struct rxe_queue_buf) + num_slots * elem_size; in rxe_queue_init()
120 new_q->elem_size); in resize_finish()
131 unsigned int elem_size, struct ib_udata *udata, in rxe_queue_resize() argument
140 new_q = rxe_queue_init(q->rxe, &num_elem, elem_size, q->type); in rxe_queue_resize()
Drxe_queue.h48 size_t elem_size; member
67 unsigned int elem_size, enum queue_type type);
70 unsigned int elem_size, struct ib_udata *udata,
/Linux-v5.15/samples/qmi/
Dqmi_sample_client.c49 .elem_size = sizeof(u8),
58 .elem_size = sizeof(char),
78 .elem_size = sizeof(char),
87 .elem_size = sizeof(u8),
96 .elem_size = sizeof(struct test_name_type_v01),
120 .elem_size = sizeof(struct qmi_response_type_v01),
130 .elem_size = sizeof(u8),
139 .elem_size = sizeof(char),
148 .elem_size = sizeof(u8),
157 .elem_size = sizeof(struct test_name_type_v01),
[all …]
/Linux-v5.15/fs/nfs_common/
Dnfsacl.c98 .elem_size = 12, in nfsacl_encode()
133 err = 8 + nfsacl_desc.desc.elem_size * in nfsacl_encode()
156 const size_t elem_size = XDR_UNIT * 3; in nfs_stream_encode_acl() local
160 .elem_size = elem_size, in nfs_stream_encode_acl()
199 elem_size * nfsacl_desc.desc.array_len)) in nfs_stream_encode_acl()
341 .elem_size = 12, in nfsacl_decode()
365 return 8 + nfsacl_desc.desc.elem_size * in nfsacl_decode()
386 const size_t elem_size = XDR_UNIT * 3; in nfs_stream_decode_acl() local
389 .elem_size = elem_size, in nfs_stream_decode_acl()
402 if (!xdr_inline_decode(xdr, XDR_UNIT + elem_size * entries)) in nfs_stream_decode_acl()
/Linux-v5.15/include/linux/qed/
Dqed_chain.h113 u16 elem_size; member
155 size_t elem_size; member
163 #define ELEMS_PER_PAGE(elem_size, page_size) \ argument
164 ((page_size) / (elem_size))
166 #define UNUSABLE_ELEMS_PER_PAGE(elem_size, mode) \ argument
168 (u8)(1 + ((sizeof(struct qed_chain_next) - 1) / (elem_size))) : \
171 #define USABLE_ELEMS_PER_PAGE(elem_size, page_size, mode) \ argument
172 ((u32)(ELEMS_PER_PAGE((elem_size), (page_size)) - \
173 UNUSABLE_ELEMS_PER_PAGE((elem_size), (mode))))
175 #define QED_CHAIN_PAGE_CNT(elem_cnt, elem_size, page_size, mode) \ argument
[all …]
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/
Dqed_chain.c16 chain->elem_size = params->elem_size; in qed_chain_init()
21 chain->elem_per_page = ELEMS_PER_PAGE(params->elem_size, in qed_chain_init()
23 chain->usable_per_page = USABLE_ELEMS_PER_PAGE(params->elem_size, in qed_chain_init()
26 chain->elem_unusable = UNUSABLE_ELEMS_PER_PAGE(params->elem_size, in qed_chain_init()
53 size = chain->elem_size * chain->usable_per_page; in qed_chain_init_next_ptr_elem()
76 size = chain->elem_size * chain->usable_per_page; in qed_chain_free_next_ptr()
164 chain_size = ELEMS_PER_PAGE(params->elem_size, params->page_size); in qed_chain_alloc_sanity_check()
333 params->elem_size, in qed_chain_alloc()
344 params->num_elems, params->elem_size, in qed_chain_alloc()
/Linux-v5.15/drivers/media/v4l2-core/
Dv4l2-ctrls-core.c76 idx *= ctrl->elem_size; in std_equal()
90 idx *= ctrl->elem_size; in std_equal()
92 ctrl->elem_size); in std_equal()
116 void *p = ptr.p + idx * ctrl->elem_size; in std_init_compound()
119 memcpy(p, ctrl->p_def.p_const, ctrl->elem_size); in std_init_compound()
121 memset(p, 0, ctrl->elem_size); in std_init_compound()
171 idx *= ctrl->elem_size; in std_init()
342 void *p = ptr.p + idx * ctrl->elem_size; in std_validate_compound()
761 idx *= ctrl->elem_size; in std_validate()
803 memcpy(to.p, from.p_const, ctrl->elems * ctrl->elem_size); in ptr_to_ptr()
[all …]
/Linux-v5.15/sound/hda/
Darray.c21 if (snd_BUG_ON(!array->elem_size)) in snd_array_new()
25 int oldsize = array->alloced * array->elem_size; in snd_array_new()
26 int size = (num + 1) * array->elem_size; in snd_array_new()
/Linux-v5.15/kernel/bpf/
Darraymap.c37 ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8, in bpf_array_alloc_percpu()
85 u32 elem_size, index_mask, max_entries; in array_map_alloc() local
90 elem_size = round_up(attr->value_size, 8); in array_map_alloc()
122 array_size += PAGE_ALIGN((u64) max_entries * elem_size); in array_map_alloc()
124 array_size += (u64) max_entries * elem_size; in array_map_alloc()
148 array->elem_size = elem_size; in array_map_alloc()
167 return array->value + array->elem_size * (index & array->index_mask); in array_map_lookup_elem()
189 u64 range = array->elem_size; in array_map_direct_value_meta()
205 u32 elem_size = round_up(map->value_size, 8); in array_map_gen_lookup() local
222 if (is_power_of_2(elem_size)) { in array_map_gen_lookup()
[all …]
Dbpf_local_storage.c67 if (charge_mem && mem_charge(smap, owner, smap->elem_size)) in bpf_selem_alloc()
70 selem = bpf_map_kzalloc(&smap->map, smap->elem_size, in bpf_selem_alloc()
79 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
104 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_unlink_storage_nolock()
359 mem_uncharge(smap, owner, smap->elem_size); in bpf_local_storage_update()
586 smap->elem_size = in bpf_local_storage_map_alloc()
Dstackmap.c66 u64 elem_size = sizeof(struct stack_map_bucket) + in prealloc_elems_and_freelist() local
70 smap->elems = bpf_map_area_alloc(elem_size * smap->map.max_entries, in prealloc_elems_and_freelist()
79 pcpu_freelist_populate(&smap->freelist, smap->elems, elem_size, in prealloc_elems_and_freelist()
443 u32 init_nr, trace_nr, copy_len, elem_size, num_elem; in __bpf_get_stack() local
458 elem_size = (user && user_build_id) ? sizeof(struct bpf_stack_build_id) in __bpf_get_stack()
460 if (unlikely(size % elem_size)) in __bpf_get_stack()
467 num_elem = size / elem_size; in __bpf_get_stack()
490 copy_len = trace_nr * elem_size; in __bpf_get_stack()
Dbpf_lru_list.c560 u32 node_offset, u32 elem_size, in bpf_common_lru_populate() argument
573 buf += elem_size; in bpf_common_lru_populate()
578 u32 node_offset, u32 elem_size, in bpf_percpu_lru_populate() argument
600 buf += elem_size; in bpf_percpu_lru_populate()
609 u32 elem_size, u32 nr_elems) in bpf_lru_populate() argument
612 bpf_percpu_lru_populate(lru, buf, node_offset, elem_size, in bpf_lru_populate()
615 bpf_common_lru_populate(lru, buf, node_offset, elem_size, in bpf_lru_populate()
/Linux-v5.15/drivers/gpu/drm/etnaviv/
Detnaviv_drv.h92 static inline size_t size_vstruct(size_t nelem, size_t elem_size, size_t base) in size_vstruct() argument
94 if (elem_size && nelem > (SIZE_MAX - base) / elem_size) in size_vstruct()
96 return base + nelem * elem_size; in size_vstruct()
/Linux-v5.15/lib/
Dtest_min_heap.c72 .elem_size = sizeof(int), in test_heapify_all()
105 .elem_size = sizeof(int), in test_heap_push()
138 .elem_size = sizeof(int), in test_heap_pop_push()
/Linux-v5.15/drivers/remoteproc/
Dqcom_sysmon.c196 .elem_size = sizeof(struct qmi_response_type_v01),
217 .elem_size = sizeof(uint8_t),
227 .elem_size = sizeof(char),
237 .elem_size = sizeof(uint32_t),
247 .elem_size = sizeof(uint8_t),
257 .elem_size = sizeof(uint32_t),
275 .elem_size = sizeof(struct qmi_response_type_v01),
/Linux-v5.15/net/sunrpc/
Dxdr.c1814 desc->elem_size > buf->len) in xdr_xcode_array2()
1822 todo = desc->array_len * desc->elem_size; in xdr_xcode_array2()
1831 while (avail_here >= desc->elem_size) { in xdr_xcode_array2()
1835 c += desc->elem_size; in xdr_xcode_array2()
1836 avail_here -= desc->elem_size; in xdr_xcode_array2()
1840 elem = kmalloc(desc->elem_size, GFP_KERNEL); in xdr_xcode_array2()
1874 if (copied || avail_page < desc->elem_size) { in xdr_xcode_array2()
1876 desc->elem_size - copied); in xdr_xcode_array2()
1878 elem = kmalloc(desc->elem_size, in xdr_xcode_array2()
1892 if (copied == desc->elem_size) in xdr_xcode_array2()
[all …]
/Linux-v5.15/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_eqs.c28 (ALIGN((eq)->q_len * (eq)->elem_size, pg_size) / (pg_size))
30 #define GET_EQ_NUM_ELEMS_IN_PG(eq, pg_size) ((pg_size) / (eq)->elem_size)
50 (((idx) & ((eq)->num_elem_in_pg - 1)) * (eq)->elem_size))
65 #define ELEMENT_SIZE_IN_32B(eq) (((eq)->elem_size) >> 5)
485 u32 page_size_val, elem_size, val, ctrl1; in get_ctrl1_val() local
493 elem_size = EQ_SET_HW_ELEM_SIZE_VAL(eq); in get_ctrl1_val()
502 HINIC_AEQ_CTRL_1_SET(elem_size, ELEM_SIZE) | in get_ctrl1_val()
744 eq->elem_size = HINIC_AEQE_SIZE; in init_eq()
746 eq->elem_size = HINIC_CEQE_SIZE; in init_eq()
/Linux-v5.15/drivers/net/wireless/ath/wil6210/
Dtxrx_edma.c68 sz = sring->elem_size * sring->size; in wil_sring_free()
82 size_t sz = sring->elem_size * sring->size; in wil_sring_alloc()
132 sring->elem_size = sizeof(struct wil_ring_tx_status); in wil_tx_init_edma()
217 (sring->va + (sring->elem_size * sring->swhead)); in wil_get_next_rx_status_msg()
221 memcpy(msg, (void *)_msg, sring->elem_size); in wil_get_next_rx_status_msg()
343 size_t elem_size, in wil_init_rx_sring() argument
356 sring->elem_size = elem_size; in wil_init_rx_sring()
606 size_t elem_size = wil->use_compressed_rx_status ? in wil_rx_init_edma() local
631 desc_ring_size, status_ring_size, elem_size); in wil_rx_init_edma()
654 rc = wil_init_rx_sring(wil, status_ring_size, elem_size, in wil_rx_init_edma()
[all …]
/Linux-v5.15/drivers/slimbus/
Dqcom-ngd-ctrl.c227 .elem_size = sizeof(uint32_t),
237 .elem_size = sizeof(uint8_t),
247 .elem_size = sizeof(enum slimbus_mode_enum_type_v01),
257 .elem_size = 0,
269 .elem_size = sizeof(struct qmi_response_type_v01),
279 .elem_size = 0,
291 .elem_size = sizeof(enum slimbus_pm_enum_type_v01),
301 .elem_size = sizeof(uint8_t),
310 .elem_size = sizeof(enum slimbus_resp_enum_type_v01),
319 .elem_size = 0,
[all …]

1234