/linux/drivers/net/wireless/ath/ath10k/ |
A D | qmi_wlfw_v01.c | 14 .elem_size = sizeof(u32), 32 .elem_size = sizeof(u32), 41 .elem_size = sizeof(u32), 50 .elem_size = sizeof(u32), 63 .elem_size = sizeof(u32), 81 .elem_size = sizeof(u32), 94 .elem_size = sizeof(u16), 103 .elem_size = sizeof(u16), 116 .elem_size = sizeof(u32), 147 .elem_size = sizeof(u8), [all …]
|
/linux/drivers/net/ipa/ |
A D | ipa_qmi_msg.c | 16 .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/drivers/soc/qcom/ |
A D | pdr_internal.h | 35 .elem_size = sizeof(char), 44 .elem_size = sizeof(u32), 53 .elem_size = sizeof(u8), 62 .elem_size = sizeof(u32), 90 .elem_size = sizeof(u8), 99 .elem_size = sizeof(u32), 133 .elem_size = sizeof(u8), 151 .elem_size = sizeof(u8), 169 .elem_size = sizeof(u8), 178 .elem_size = sizeof(u8), [all …]
|
A D | qmi_encdec.c | 167 u32 elem_len, u32 elem_size) in qmi_encode_basic_elem() argument 173 rc += elem_size; in qmi_encode_basic_elem() 274 string_len, temp_ei->elem_size); in qmi_encode_string_elem() 378 temp_ei->elem_size); in qmi_encode() 440 u32 elem_len, u32 elem_size) in qmi_decode_basic_elem() argument 446 rc += elem_size; in qmi_decode_basic_elem() 548 string_len, temp_ei->elem_size); in qmi_decode_string_elem() 673 temp_ei->elem_size); in qmi_decode() 788 .elem_size = sizeof(u16), 797 .elem_size = sizeof(u16), [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | qmi.c | 27 .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), 90 .elem_size = sizeof(u8), 99 .elem_size = sizeof(u8), 108 .elem_size = sizeof(u8), 117 .elem_size = sizeof(u8), [all …]
|
/linux/include/linux/ |
A D | min_heap.h | 28 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/drivers/infiniband/sw/rxe/ |
A D | rxe_queue.c | 56 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() 126 queue_addr_from_index(q, cons), new_q->elem_size); in resize_finish() 147 unsigned int elem_size, struct ib_udata *udata, in rxe_queue_resize() argument 156 new_q = rxe_queue_init(q->rxe, &num_elem, elem_size, q->type); in rxe_queue_resize()
|
A D | rxe_queue.h | 61 size_t elem_size; member 80 unsigned int elem_size, enum queue_type type); 83 unsigned int elem_size, struct ib_udata *udata,
|
/linux/samples/qmi/ |
A D | qmi_sample_client.c | 49 .elem_size = sizeof(u8), 58 .elem_size = sizeof(char), 78 .elem_size = sizeof(char), 87 .elem_size = sizeof(u8), 130 .elem_size = sizeof(u8), 148 .elem_size = sizeof(u8), 188 .elem_size = sizeof(u8), 197 .elem_size = sizeof(u8), 241 .elem_size = sizeof(u8), 259 .elem_size = sizeof(u8), [all …]
|
/linux/fs/nfs_common/ |
A D | nfsacl.c | 98 .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/include/linux/qed/ |
A D | qed_chain.h | 113 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 172 ((u32)(ELEMS_PER_PAGE((elem_size), (page_size)) - \ 173 UNUSABLE_ELEMS_PER_PAGE((elem_size), (mode)))) 395 p_chain->elem_size); in qed_chain_produce() 466 p_chain->elem_size); in qed_chain_consume() 543 size = p_chain->elem_size * p_chain->usable_per_page; in qed_chain_get_last_elem() [all …]
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-ctrls-core.c | 76 idx *= ctrl->elem_size; in std_equal() 90 idx *= ctrl->elem_size; in std_equal() 92 ctrl->elem_size); in std_equal() 171 idx *= ctrl->elem_size; in std_init() 764 idx *= ctrl->elem_size; in std_validate() 1190 elem_size = sizeof(s64); in v4l2_ctrl_new() 1193 elem_size = max + 1; in v4l2_ctrl_new() 1196 elem_size = sizeof(u8); in v4l2_ctrl_new() 1199 elem_size = sizeof(u16); in v4l2_ctrl_new() 1301 sz_extra += elem_size; in v4l2_ctrl_new() [all …]
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_chain.c | 16 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/kernel/bpf/ |
A D | arraymap.c | 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() 124 array_size += (u64) max_entries * elem_size; in array_map_alloc() 148 array->elem_size = elem_size; in array_map_alloc() 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() 534 return array->value + array->elem_size * index; in bpf_array_map_seq_start() 668 val = array->value + array->elem_size * i; in bpf_for_each_array_elem() 1310 u32 elem_size = round_up(map->value_size, 8); in array_of_map_gen_lookup() local [all …]
|
A D | bpf_local_storage.c | 67 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()
|
A D | stackmap.c | 66 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()
|
A D | bpf_lru_list.c | 560 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/sound/hda/ |
A D | array.c | 21 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/ |
A D | etnaviv_drv.h | 92 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/net/sunrpc/ |
A D | xdr.c | 1816 desc->elem_size > buf->len) in xdr_xcode_array2() 1837 c += desc->elem_size; in xdr_xcode_array2() 1838 avail_here -= desc->elem_size; in xdr_xcode_array2() 1878 desc->elem_size - copied); in xdr_xcode_array2() 1894 if (copied == desc->elem_size) in xdr_xcode_array2() 1913 c += desc->elem_size; in xdr_xcode_array2() 1914 avail_page -= desc->elem_size; in xdr_xcode_array2() 1918 desc->elem_size - copied); in xdr_xcode_array2() 1934 if (copied == desc->elem_size) in xdr_xcode_array2() 1981 c += desc->elem_size; in xdr_xcode_array2() [all …]
|
/linux/drivers/remoteproc/ |
A D | qcom_sysmon.c | 196 .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/lib/ |
A D | test_min_heap.c | 72 .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/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_hw_eqs.c | 28 (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/drivers/net/wireless/ath/wil6210/ |
A D | txrx_edma.c | 68 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() 1061 memcpy(s, msg, sring->elem_size); in wil_sring_reap_rx_edma() [all …]
|
/linux/drivers/slimbus/ |
A D | qcom-ngd-ctrl.c | 227 .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), 319 .elem_size = 0, 331 .elem_size = sizeof(struct qmi_response_type_v01), [all …]
|