Home
last modified time | relevance | path

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

1234

/linux/drivers/net/wireless/ath/ath10k/
H A Dqmi_wlfw_v01.c15 .elem_size = sizeof(u32),
24 .elem_size = sizeof(enum wlfw_pipedir_enum_v01),
33 .elem_size = sizeof(u32),
42 .elem_size = sizeof(u32),
51 .elem_size = sizeof(u32),
64 .elem_size = sizeof(u32),
73 .elem_size = sizeof(enum wlfw_pipedir_enum_v01),
82 .elem_size = sizeof(u32),
95 .elem_size = sizeof(u16),
104 .elem_size = sizeof(u16),
[all …]
/linux/drivers/net/ipa/
H A Dipa_qmi_msg.c17 .elem_size =
27 .elem_size =
37 .elem_size =
47 .elem_size =
57 .elem_size =
67 .elem_size =
77 .elem_size =
87 .elem_size =
97 .elem_size =
107 .elem_size =
[all …]
/linux/drivers/soc/qcom/
H A Dqcom_pdr_msg.c15 .elem_size = sizeof(char),
24 .elem_size = sizeof(u32),
33 .elem_size = sizeof(u8),
42 .elem_size = sizeof(u32),
56 .elem_size = sizeof(char),
65 .elem_size = sizeof(u8),
74 .elem_size = sizeof(u32),
88 .elem_size = sizeof(struct qmi_response_type_v01),
98 .elem_size = sizeof(u8),
107 .elem_size = sizeof(u16),
[all …]
H A 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/include/linux/
H A Dmin_heap.h245 void __min_heap_sift_down_inline(min_heap_char *heap, int pos, size_t elem_size, in __min_heap_sift_down_inline() argument
248 const unsigned long lsbit = elem_size & -elem_size; in __min_heap_sift_down_inline()
252 size_t a = pos * elem_size; in __min_heap_sift_down_inline()
254 size_t n = heap->nr * elem_size; in __min_heap_sift_down_inline()
257 swp = select_swap_func(data, elem_size); in __min_heap_sift_down_inline()
260 for (b = a; c = 2 * b + elem_size, (d = c + elem_size) < n;) in __min_heap_sift_down_inline()
269 b = parent(b, lsbit, elem_size); in __min_heap_sift_down_inline()
274 b = parent(b, lsbit, elem_size); in __min_heap_sift_down_inline()
275 do_swap(data + b, data + c, elem_size, swp, args); in __min_heap_sift_down_inline()
285 void __min_heap_sift_up_inline(min_heap_char *heap, size_t elem_size, size_t idx, in __min_heap_sift_up_inline() argument
[all …]
/linux/drivers/net/wireless/ath/ath12k/
H A Dqmi.c24 .elem_size = sizeof(u8),
33 .elem_size = sizeof(u8),
42 .elem_size = sizeof(u8),
51 .elem_size = sizeof(u8),
68 .elem_size = sizeof(u8),
77 .elem_size = sizeof(u32),
86 .elem_size = sizeof(u8),
95 .elem_size = sizeof(u32),
104 .elem_size = sizeof(u8),
113 .elem_size = sizeof(u8),
[all …]
/linux/lib/
H A Dmin_heap.c23 void __min_heap_sift_down(min_heap_char *heap, int pos, size_t elem_size, in __min_heap_sift_down() argument
26 __min_heap_sift_down_inline(heap, pos, elem_size, func, args); in __min_heap_sift_down()
30 void __min_heap_sift_up(min_heap_char *heap, size_t elem_size, size_t idx, in __min_heap_sift_up() argument
33 __min_heap_sift_up_inline(heap, elem_size, idx, func, args); in __min_heap_sift_up()
37 void __min_heapify_all(min_heap_char *heap, size_t elem_size, in __min_heapify_all() argument
40 __min_heapify_all_inline(heap, elem_size, func, args); in __min_heapify_all()
44 bool __min_heap_pop(min_heap_char *heap, size_t elem_size, in __min_heap_pop() argument
47 return __min_heap_pop_inline(heap, elem_size, func, args); in __min_heap_pop()
51 void __min_heap_pop_push(min_heap_char *heap, const void *element, size_t elem_size, in __min_heap_pop_push() argument
54 __min_heap_pop_push_inline(heap, element, elem_size, func, args); in __min_heap_pop_push()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dqmi.c36 .elem_size = sizeof(u8),
45 .elem_size = sizeof(u32),
54 .elem_size = sizeof(u8),
63 .elem_size = sizeof(u32),
72 .elem_size = sizeof(u8),
81 .elem_size = sizeof(u8),
90 .elem_size = sizeof(u32),
99 .elem_size = sizeof(u8),
108 .elem_size = sizeof(u8),
117 .elem_size = sizeof(u8),
[all …]
/linux/drivers/infiniband/sw/rxe/
H A 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()
127 queue_addr_from_index(q, cons), new_q->elem_size); in resize_finish()
148 unsigned int elem_size, struct ib_udata *udata, in rxe_queue_resize() argument
158 new_q = rxe_queue_init(q->rxe, &num_elem, elem_size, q->type); in rxe_queue_resize()
H A Drxe_queue.h67 size_t elem_size; member
86 unsigned int elem_size, enum queue_type type);
89 unsigned int elem_size, struct ib_udata *udata,
/linux/samples/qmi/
H A 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/fs/nfs_common/
H A Dnfsacl.c99 .elem_size = 12, in nfsacl_encode()
134 err = 8 + nfsacl_desc.desc.elem_size * in nfsacl_encode()
157 const size_t elem_size = XDR_UNIT * 3; in nfs_stream_encode_acl() local
161 .elem_size = elem_size, in nfs_stream_encode_acl()
200 elem_size * nfsacl_desc.desc.array_len)) in nfs_stream_encode_acl()
342 .elem_size = 12, in nfsacl_decode()
366 return 8 + nfsacl_desc.desc.elem_size * in nfsacl_decode()
387 const size_t elem_size = XDR_UNIT * 3; in nfs_stream_decode_acl() local
390 .elem_size = elem_size, in nfs_stream_decode_acl()
403 if (!xdr_inline_decode(xdr, XDR_UNIT + elem_size * entries)) in nfs_stream_decode_acl()
/linux/include/linux/qed/
H A 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/drivers/net/ethernet/qlogic/qed/
H A 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/drivers/media/v4l2-core/
H A Dv4l2-ctrls-core.c78 unsigned int idx = i * ctrl->elem_size; in v4l2_ctrl_type_op_equal()
87 ctrl->elems * ctrl->elem_size); in v4l2_ctrl_type_op_equal()
115 void *p = ptr.p + idx * ctrl->elem_size; in std_init_compound()
118 memcpy(p, ctrl->p_def.p_const, ctrl->elem_size); in std_init_compound()
120 memset(p, 0, ctrl->elem_size); in std_init_compound()
198 unsigned int offset = i * ctrl->elem_size; in v4l2_ctrl_type_op_init()
818 void *p = ptr.p + idx * ctrl->elem_size; in std_validate_compound()
1240 idx *= ctrl->elem_size; in std_validate_elem()
1315 memcpy(to.p, from.p_const, elems * ctrl->elem_size); in ptr_to_ptr()
1377 tmp = kvmalloc(elems * ref->ctrl->elem_size, GFP_KERNEL); in req_alloc_array()
[all …]
H A Dv4l2-ctrls-api.c54 c->size = ctrl->elem_size; in ptr_to_user()
105 c->size > ctrl->p_array_alloc_elems * ctrl->elem_size) { in user_to_new()
111 memcpy(tmp, ctrl->p_new.p, ctrl->elems * ctrl->elem_size); in user_to_new()
112 memcpy(tmp + c->size, ctrl->p_cur.p, ctrl->elems * ctrl->elem_size); in user_to_new()
116 ctrl->p_array_alloc_elems = c->size / ctrl->elem_size; in user_to_new()
121 unsigned int elems = c->size / ctrl->elem_size; in user_to_new()
267 unsigned int max_size = ctrl->dims[0] * ctrl->elem_size; in prepare_ext_ctrls()
268 unsigned int tot_size = ctrl->elem_size; in prepare_ext_ctrls()
275 c->size = ctrl->elem_size * (c->size / ctrl->elem_size); in prepare_ext_ctrls()
291 unsigned int tot_size = ctrl->elems * ctrl->elem_size; in prepare_ext_ctrls()
[all …]
/linux/kernel/bpf/
H A Darraymap.c38 ptr = bpf_map_alloc_percpu(&array->map, array->elem_size, 8, in bpf_array_alloc_percpu()
87 u32 elem_size, index_mask, max_entries; in array_map_alloc() local
92 elem_size = round_up(attr->value_size, 8); in array_map_alloc()
124 array_size += PAGE_ALIGN((u64) max_entries * elem_size); in array_map_alloc()
126 array_size += (u64) max_entries * elem_size; in array_map_alloc()
150 array->elem_size = elem_size; in array_map_alloc()
162 return array->value + (u64)array->elem_size * index; in array_map_elem_ptr()
174 return array->value + (u64)array->elem_size * (index & array->index_mask); in array_map_lookup_elem()
196 u64 range = array->elem_size; in array_map_direct_value_meta()
212 u32 elem_size = array->elem_size; in array_map_gen_lookup() local
[all …]
H A Dbpf_lru_list.c565 u32 node_offset, u32 elem_size, in bpf_common_lru_populate() argument
578 buf += elem_size; in bpf_common_lru_populate()
583 u32 node_offset, u32 elem_size, in bpf_percpu_lru_populate() argument
605 buf += elem_size; in bpf_percpu_lru_populate()
614 u32 elem_size, u32 nr_elems) in bpf_lru_populate() argument
617 bpf_percpu_lru_populate(lru, buf, node_offset, elem_size, in bpf_lru_populate()
620 bpf_common_lru_populate(lru, buf, node_offset, elem_size, in bpf_lru_populate()
H A Dstackmap.c47 u64 elem_size = sizeof(struct stack_map_bucket) + in prealloc_elems_and_freelist() local
51 smap->elems = bpf_map_area_alloc(elem_size * smap->map.max_entries, in prealloc_elems_and_freelist()
60 pcpu_freelist_populate(&smap->freelist, smap->elems, elem_size, in prealloc_elems_and_freelist()
409 u32 trace_nr, copy_len, elem_size, num_elem, max_depth; in __bpf_get_stack() local
425 elem_size = user_build_id ? sizeof(struct bpf_stack_build_id) : sizeof(u64); in __bpf_get_stack()
426 if (unlikely(size % elem_size)) in __bpf_get_stack()
441 num_elem = size / elem_size; in __bpf_get_stack()
465 copy_len = trace_nr * elem_size; in __bpf_get_stack()
/linux/sound/hda/
H A 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/drivers/gpu/drm/etnaviv/
H A 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()
/linux/io_uring/
H A Dalloc_cache.h26 kasan_mempool_unpoison_object(entry, cache->elem_size); in io_alloc_cache_get()
41 cache->elem_size = size; in io_alloc_cache_init()
/linux/drivers/remoteproc/
H A 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/net/sunrpc/
H A Dxdr.c1977 desc->elem_size > buf->len) in xdr_xcode_array2()
1985 todo = desc->array_len * desc->elem_size; in xdr_xcode_array2()
1994 while (avail_here >= desc->elem_size) { in xdr_xcode_array2()
1998 c += desc->elem_size; in xdr_xcode_array2()
1999 avail_here -= desc->elem_size; in xdr_xcode_array2()
2003 elem = kmalloc(desc->elem_size, GFP_KERNEL); in xdr_xcode_array2()
2037 if (copied || avail_page < desc->elem_size) { in xdr_xcode_array2()
2039 desc->elem_size - copied); in xdr_xcode_array2()
2041 elem = kmalloc(desc->elem_size, in xdr_xcode_array2()
2055 if (copied == desc->elem_size) in xdr_xcode_array2()
[all …]
/linux/drivers/net/ethernet/huawei/hinic/
H A 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()

1234