Home
last modified time | relevance | path

Searched refs:struct_size (Results 1 – 25 of 490) sorted by relevance

12345678910>>...20

/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/basics/
H A Dvector.c35 uint32_t struct_size) in dal_vector_construct() argument
39 if (!struct_size || !capacity) { in dal_vector_construct()
45 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct()
49 vector->struct_size = struct_size; in dal_vector_construct()
60 uint32_t struct_size) in dal_vector_presized_costruct() argument
66 if (!struct_size || !count) { in dal_vector_presized_costruct()
72 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct()
83 vector->container + i * struct_size, in dal_vector_presized_costruct()
85 struct_size); in dal_vector_presized_costruct()
89 vector->struct_size = struct_size; in dal_vector_presized_costruct()
[all …]
/OK3568_Linux_fs/kernel/scripts/dtc/libfdt/
H A Dfdt_rw.c14 int mem_rsv_size, int struct_size) in fdt_blocks_misordered_() argument
20 (fdt_off_dt_struct(fdt) + struct_size)) in fdt_blocks_misordered_()
394 int mem_rsv_size, int struct_size) in fdt_packblocks_() argument
400 strings_off = struct_off + struct_size; in fdt_packblocks_()
405 memmove(new + struct_off, old + fdt_off_dt_struct(old), struct_size); in fdt_packblocks_()
407 fdt_set_size_dt_struct(new, struct_size); in fdt_packblocks_()
418 int mem_rsv_size, struct_size; in fdt_open_into() local
430 struct_size = fdt_size_dt_struct(fdt); in fdt_open_into()
432 struct_size = 0; in fdt_open_into()
433 while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END) in fdt_open_into()
[all …]
/OK3568_Linux_fs/u-boot/scripts/dtc/libfdt/
H A Dfdt_rw.c59 int mem_rsv_size, int struct_size) in _fdt_blocks_misordered() argument
65 (fdt_off_dt_struct(fdt) + struct_size)) in _fdt_blocks_misordered()
408 int mem_rsv_size, int struct_size) in _fdt_packblocks() argument
414 strings_off = struct_off + struct_size; in _fdt_packblocks()
419 memmove(new + struct_off, old + fdt_off_dt_struct(old), struct_size); in _fdt_packblocks()
421 fdt_set_size_dt_struct(new, struct_size); in _fdt_packblocks()
432 int mem_rsv_size, struct_size; in fdt_open_into() local
444 struct_size = fdt_size_dt_struct(fdt); in fdt_open_into()
446 struct_size = 0; in fdt_open_into()
447 while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END) in fdt_open_into()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/include/
H A Dvector.h31 uint32_t struct_size; member
41 uint32_t struct_size);
46 uint32_t struct_size);
54 uint32_t struct_size);
/OK3568_Linux_fs/kernel/scripts/coccinelle/misc/
H A Darray_size_dup.cocci3 /// Check for array_size(), array3_size(), struct_size() duplicates.
153 struct_size(E1, E2, E3)
165 * struct_size(E1, E2, E3)@p2
172 msg = "WARNING: struct_size is used later (line %s) to compute the same size" % (p2[0].line)
180 msg = "WARNING: struct_size is used later (line %s) to compute the same size" % (p2[0].line)
190 * struct_size(E1, E2, E3)@p1
200 msg = "WARNING: struct_size is already used (line %s) to compute the same size" % (p1[0].line)
208 msg = "WARNING: struct_size is already used (line %s) to compute the same size" % (p1[0].line)
/OK3568_Linux_fs/kernel/sound/soc/sof/
H A Dprobe.c33 size_t size = struct_size(msg, dma, 1); in sof_ipc_probe_init()
154 size_t size = struct_size(msg, dma, num_dma); in sof_ipc_probe_dma_add()
188 size_t size = struct_size(msg, stream_tag, num_stream_tag); in sof_ipc_probe_dma_remove()
242 size_t size = struct_size(msg, desc, num_desc); in sof_ipc_probe_points_add()
274 size_t size = struct_size(msg, buffer_id, num_buffer_id); in sof_ipc_probe_points_remove()
/OK3568_Linux_fs/kernel/drivers/char/tpm/eventlog/
H A Dtpm2.c54 size = struct_size(event_header, event, event_header->event_size); in tpm2_bios_measurements_start()
100 event_size = struct_size(event_header, event, in tpm2_bios_measurements_next()
138 size = struct_size(event_header, event, in tpm2_binary_bios_measurements_show()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/fusion/adapted/struct/detail/
H A Dend_impl.hpp32 , struct_size<typename remove_const<Seq>::type>::value
56 , struct_size<typename remove_const<Seq>::type>::value
H A Dsize_impl.hpp23 : struct_size<typename remove_const<Seq>::type>
H A Dextension.hpp47 struct struct_size;
/OK3568_Linux_fs/kernel/net/xdp/
H A Dxsk_queue.c19 return struct_size(umem_ring, desc, q->nentries); in xskq_get_ring_size()
20 return struct_size(rxtx_ring, desc, q->nentries); in xskq_get_ring_size()
/OK3568_Linux_fs/kernel/drivers/clk/imx/
H A Dclk-imx7ulp.c52 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SCG1_END), in imx7ulp_clk_scg1_init()
141 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC2_END), in imx7ulp_clk_pcc2_init()
189 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC3_END), in imx7ulp_clk_pcc3_init()
236 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SMC1_END), in imx7ulp_clk_smc1_init()
/OK3568_Linux_fs/kernel/net/sched/
H A Dcls_u32.c356 root_ht = kzalloc(struct_size(root_ht, ht, 1), GFP_KERNEL); in u32_init()
367 tp_c = kzalloc(struct_size(tp_c, hlist->ht, 1), GFP_KERNEL); in u32_init()
803 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL); in u32_init_knode()
831 memcpy(&new->sel, s, struct_size(s, keys, s->nkeys)); in u32_init_knode()
940 ht = kzalloc(struct_size(ht, ht, divisor + 1), GFP_KERNEL); in u32_change()
1020 sel_size = struct_size(s, keys, s->nkeys); in u32_change()
1026 n = kzalloc(struct_size(n, sel.keys, s->nkeys), GFP_KERNEL); in u32_change()
1033 n->pf = __alloc_percpu(struct_size(n->pf, kcnts, s->nkeys), in u32_change()
1298 if (nla_put(skb, TCA_U32_SEL, struct_size(&n->sel, keys, n->sel.nkeys), in u32_dump()
1348 gpf = kzalloc(struct_size(gpf, kcnts, n->sel.nkeys), GFP_KERNEL); in u32_dump()
[all …]
/OK3568_Linux_fs/kernel/drivers/ntb/
H A Dmsi.c36 size_t struct_size; in ntb_msi_init() local
46 struct_size = sizeof(*ntb->msi) + sizeof(*ntb->msi->peer_mws) * peers; in ntb_msi_init()
48 ntb->msi = devm_kzalloc(&ntb->dev, struct_size, GFP_KERNEL); in ntb_msi_init()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ice/
H A Dice_flex_type.h108 struct_size((struct ice_buf_hdr *)0, section_entry, 1) - (hd_sz)) /\
206 struct_size((struct ice_label_section *)0, label, 1) - \
253 struct_size((struct ice_boost_tcam_section *)0, tcam, 1) - \
/OK3568_Linux_fs/kernel/arch/s390/appldata/
H A Dappldata_os.c132 new_size = struct_size(os_data, os_cpu, os_data->nr_cpus); in appldata_get_os_data()
167 max_size = struct_size(appldata_os_data, os_cpu, num_possible_cpus()); in appldata_os_init()
/OK3568_Linux_fs/kernel/Documentation/process/
H A Ddeprecated.rst86 header = kzalloc(struct_size(header, item, count), GFP_KERNEL);
88 .. note:: If you are using struct_size() on a structure containing a zero-length
93 See array_size(), array3_size(), and struct_size(),
275 instance = kmalloc(struct_size(instance, items, count), GFP_KERNEL);
306 instance = kmalloc(struct_size(instance, items, count - 1), GFP_KERNEL);
313 the struct_size() helper, otherwise we would have --unintentionally-- allocated
316 struct_size() and flex_array_size() helpers::
325 instance = kmalloc(struct_size(instance, items, count), GFP_KERNEL);
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/flower/
H A Dcmsg.c49 skb = nfp_flower_cmsg_alloc(app, struct_size(msg, ports, num_ports), in nfp_flower_cmsg_mac_repr_start()
219 if (msg_len < struct_size(msg, flow, flow_cnt)) { in nfp_flower_cmsg_merge_hint_rx()
221 msg_len, struct_size(msg, flow, flow_cnt)); in nfp_flower_cmsg_merge_hint_rx()
/OK3568_Linux_fs/kernel/fs/xfs/libxfs/
H A Dxfs_attr_sf.h41 return struct_size(sfep, nameval, sfep->namelen + sfep->valuelen); in xfs_attr_sf_entsize()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_bo.c435 static size_t struct_size, user_struct_size; in vmw_bo_acc_size() local
439 if (unlikely(struct_size == 0)) { in vmw_bo_acc_size()
442 struct_size = backend_size + in vmw_bo_acc_size()
453 return ((user) ? user_struct_size : struct_size) + in vmw_bo_acc_size()
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A Dcrash.c214 cmem = vzalloc(struct_size(cmem, ranges, nr_ranges)); in fill_up_crash_elf_data()
340 cmem = vzalloc(struct_size(cmem, ranges, 1)); in crash_setup_memmap_entries()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dbtf.c1827 u32 struct_size = struct_type->size; in btf_int_check_member() local
1848 if (struct_size < bytes_offset || in btf_int_check_member()
1849 struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) { in btf_int_check_member()
1865 u32 struct_size = struct_type->size; in btf_int_check_kflag_member() local
1904 if (struct_size < bytes_offset || in btf_int_check_kflag_member()
1905 struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) { in btf_int_check_kflag_member()
2234 u32 struct_size, struct_bits_off, bytes_offset; in btf_ptr_check_member() local
2236 struct_size = struct_type->size; in btf_ptr_check_member()
2246 if (struct_size - bytes_offset < sizeof(void *)) { in btf_ptr_check_member()
2551 u32 struct_size, bytes_offset; in btf_array_check_member() local
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/iavf/
H A Diavf_virtchnl.c259 len = struct_size(vqci, qpair, pairs); in iavf_configure_queues()
372 len = struct_size(vimi, vecmap, adapter->num_msix_vectors); in iavf_map_queues()
437 len = struct_size(veal, list, count); in iavf_add_ether_addrs()
443 len = struct_size(veal, list, count); in iavf_add_ether_addrs()
507 len = struct_size(veal, list, count); in iavf_del_ether_addrs()
513 len = struct_size(veal, list, count); in iavf_del_ether_addrs()
1071 len = struct_size(vti, list, adapter->num_tc - 1); in iavf_enable_channels()
/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpio-aggregator.c98 lookups = krealloc(aggr->lookups, struct_size(lookups, table, *n + 2), in aggr_add_gpio()
183 aggr->lookups = kzalloc(struct_size(aggr->lookups, table, 1), in new_device_store()
468 fwd = devm_kzalloc(dev, struct_size(fwd, tmp, in gpiochip_fwd_create()
/OK3568_Linux_fs/kernel/sound/soc/qcom/qdsp6/
H A Dq6core.c105 struct_size(fwk, svc_api_info, in q6core_callback()
122 struct_size(v, svc_api_info, in q6core_callback()

12345678910>>...20