Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ipa/
Dipa_qmi_msg.c16 .elem_size =
26 .elem_size =
36 .elem_size =
46 .elem_size =
56 .elem_size =
66 .elem_size =
83 .elem_size =
101 .elem_size =
118 .elem_size =
136 .elem_size =
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dqmi.c21 .elem_size = sizeof(u8),
30 .elem_size = sizeof(u32),
39 .elem_size = sizeof(u8),
48 .elem_size = sizeof(u32),
57 .elem_size = sizeof(u8),
66 .elem_size = sizeof(u8),
75 .elem_size = sizeof(u32),
84 .elem_size = sizeof(u8),
93 .elem_size = sizeof(u8),
102 .elem_size = sizeof(u8),
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_queue.c57 unsigned int elem_size) 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()
119 new_q->elem_size); in resize_finish()
130 unsigned int elem_size, struct ib_udata *udata, in rxe_queue_resize() argument
139 new_q = rxe_queue_init(q->rxe, &num_elem, elem_size); in rxe_queue_resize()
Drxe_queue.h47 size_t elem_size; member
60 unsigned int elem_size);
63 unsigned int elem_size, struct ib_udata *udata,
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/dma/
Dcoh901318_lli.c244 u32 elem_size; in coh901318_lli_fill_sg() local
284 elem_size = MAX_DMA_PACKET_SIZE; in coh901318_lli_fill_sg()
287 elem_size = bytes_to_transfer; in coh901318_lli_fill_sg()
291 lli->control = val | elem_size; in coh901318_lli_fill_sg()
296 dst += elem_size; in coh901318_lli_fill_sg()
298 src += elem_size; in coh901318_lli_fill_sg()
302 bytes_to_transfer -= elem_size; in coh901318_lli_fill_sg()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/kernel/bpf/
Darraymap.c37 ptr = __alloc_percpu_gfp(array->elem_size, 8, in bpf_array_alloc_percpu()
85 u32 elem_size, index_mask, max_entries; in array_map_alloc() local
91 elem_size = round_up(attr->value_size, 8); in array_map_alloc()
123 array_size += PAGE_ALIGN((u64) max_entries * elem_size); in array_map_alloc()
125 array_size += (u64) max_entries * elem_size; in array_map_alloc()
132 cost += (u64)attr->max_entries * elem_size * num_possible_cpus(); in array_map_alloc()
163 array->elem_size = elem_size; in array_map_alloc()
183 return array->value + array->elem_size * (index & array->index_mask); in array_map_lookup_elem()
205 u64 range = array->elem_size; in array_map_direct_value_meta()
221 u32 elem_size = round_up(map->value_size, 8); in array_map_gen_lookup() local
[all …]
Dbpf_local_storage.c67 if (charge_mem && mem_charge(smap, owner, smap->elem_size)) in bpf_selem_alloc()
70 selem = kzalloc(smap->elem_size, GFP_ATOMIC | __GFP_NOWARN); in bpf_selem_alloc()
78 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
103 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_unlink_storage_nolock()
351 mem_uncharge(smap, owner, smap->elem_size); in bpf_local_storage_update()
579 smap->elem_size = in bpf_local_storage_map_alloc()
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()
Dstackmap.c67 u64 elem_size = sizeof(struct stack_map_bucket) + in prealloc_elems_and_freelist() local
71 smap->elems = bpf_map_area_alloc(elem_size * smap->map.max_entries, in prealloc_elems_and_freelist()
80 pcpu_freelist_populate(&smap->freelist, smap->elems, elem_size, in prealloc_elems_and_freelist()
576 u32 trace_nr, copy_len, elem_size, num_elem, max_depth; in __bpf_get_stack() local
591 elem_size = (user && user_build_id) ? sizeof(struct bpf_stack_build_id) in __bpf_get_stack()
593 if (unlikely(size % elem_size)) in __bpf_get_stack()
600 num_elem = size / elem_size; in __bpf_get_stack()
620 copy_len = trace_nr * elem_size; in __bpf_get_stack()
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
Detnaviv_drv.h98 static inline size_t size_vstruct(size_t nelem, size_t elem_size, size_t base) in size_vstruct() argument
100 if (elem_size && nelem > (SIZE_MAX - base) / elem_size) in size_vstruct()
102 return base + nelem * elem_size; in size_vstruct()
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dv4l2-ctrls.c1600 idx *= ctrl->elem_size; in std_equal()
1614 idx *= ctrl->elem_size; in std_equal()
1616 ctrl->elem_size); in std_equal()
1624 void *p = ptr.p + idx * ctrl->elem_size; in std_init_compound()
1627 memcpy(p, ctrl->p_def.p_const, ctrl->elem_size); in std_init_compound()
1629 memset(p, 0, ctrl->elem_size); in std_init_compound()
1654 idx *= ctrl->elem_size; in std_init()
1779 void *p = ptr.p + idx * ctrl->elem_size; in std_validate_compound()
2008 idx *= ctrl->elem_size; in std_validate()
2043 c->size = ctrl->elem_size; in ptr_to_user()
[all …]
/kernel/linux/linux-5.10/net/sunrpc/
Dxdr.c1578 desc->elem_size > buf->len) in xdr_xcode_array2()
1586 todo = desc->array_len * desc->elem_size; in xdr_xcode_array2()
1595 while (avail_here >= desc->elem_size) { in xdr_xcode_array2()
1599 c += desc->elem_size; in xdr_xcode_array2()
1600 avail_here -= desc->elem_size; in xdr_xcode_array2()
1604 elem = kmalloc(desc->elem_size, GFP_KERNEL); in xdr_xcode_array2()
1638 if (copied || avail_page < desc->elem_size) { in xdr_xcode_array2()
1640 desc->elem_size - copied); in xdr_xcode_array2()
1642 elem = kmalloc(desc->elem_size, in xdr_xcode_array2()
1656 if (copied == desc->elem_size) in xdr_xcode_array2()
[all …]
/kernel/linux/linux-5.10/fs/nfs_common/
Dnfsacl.c98 .elem_size = 12, in nfsacl_encode()
133 err = 8 + nfsacl_desc.desc.elem_size * in nfsacl_encode()
270 .elem_size = 12, in nfsacl_decode()
294 return 8 + nfsacl_desc.desc.elem_size * in nfsacl_decode()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/remoteproc/
Dqcom_sysmon.c189 .elem_size = sizeof(struct qmi_response_type_v01),
210 .elem_size = sizeof(uint8_t),
220 .elem_size = sizeof(char),
230 .elem_size = sizeof(uint32_t),
240 .elem_size = sizeof(uint8_t),
250 .elem_size = sizeof(uint32_t),
268 .elem_size = sizeof(struct qmi_response_type_v01),
/kernel/linux/linux-5.10/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()
743 eq->elem_size = HINIC_AEQE_SIZE; in init_eq()
745 eq->elem_size = HINIC_CEQE_SIZE; in init_eq()
/kernel/linux/linux-5.10/drivers/base/
Dswnode.c146 unsigned int elem_size, void *val, in property_entry_read_int_array() argument
154 elem_size); in property_entry_read_int_array()
156 if (!is_power_of_2(elem_size) || elem_size > sizeof(u64)) in property_entry_read_int_array()
159 length = nval * elem_size; in property_entry_read_int_array()
376 unsigned int elem_size, void *val, in software_node_read_int_array() argument
382 elem_size, val, nval); in software_node_read_int_array()

1234