Home
last modified time | relevance | path

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

12345678910>>...38

/linux-6.15/drivers/gpu/drm/amd/display/dc/basics/
H A Dvector.c33 uint32_t struct_size) in dal_vector_construct() argument
47 vector->struct_size = struct_size; in dal_vector_construct()
57 uint32_t struct_size) in dal_vector_presized_costruct() argument
82 struct_size); in dal_vector_presized_costruct()
86 vector->struct_size = struct_size; in dal_vector_presized_costruct()
95 uint32_t struct_size) in dal_vector_presized_create() argument
114 uint32_t struct_size) in dal_vector_create() argument
193 vector->struct_size); in dal_vector_set_at_index()
227 vector->struct_size); in dal_vector_insert_at()
256 vector->struct_size); in dal_vector_clone()
[all …]
/linux-6.15/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_()
398 int struct_size, in fdt_packblocks_() argument
405 strings_off = struct_off + struct_size; in fdt_packblocks_()
412 fdt_set_size_dt_struct(new, struct_size); in fdt_packblocks_()
422 int mem_rsv_size, struct_size; in fdt_open_into() local
434 struct_size = fdt_size_dt_struct(fdt); in fdt_open_into()
436 struct_size = 0; in fdt_open_into()
437 while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END) in fdt_open_into()
439 if (struct_size < 0) in fdt_open_into()
[all …]
/linux-6.15/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);
/linux-6.15/scripts/coccinelle/misc/
H A Dstruct_size.cocci3 /// Check for code that could use struct_size().
46 + struct_size(E1, m, E2)
66 coccilib.org.print_todo(p[0], "WARNING should use struct_size")
72 msg="WARNING: Use struct_size"
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)
/linux-6.15/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()
/linux-6.15/net/xdp/
H A Dxsk_queue.c20 return struct_size(umem_ring, desc, q->nentries); in xskq_get_ring_size()
21 return struct_size(rxtx_ring, desc, q->nentries); in xskq_get_ring_size()
/linux-6.15/drivers/i2c/busses/
H A Di2c-ljca.c74 struct_size(w_packet, data, 1), NULL, 0); in ljca_i2c_init()
94 struct_size(w_packet, data, 1), (u8 *)r_packet, in ljca_i2c_start()
124 struct_size(w_packet, data, 1), (u8 *)r_packet, in ljca_i2c_stop()
154 struct_size(w_packet, data, 1), (u8 *)r_packet, in ljca_i2c_pure_read()
200 struct_size(w_packet, data, len), (u8 *)r_packet, in ljca_i2c_pure_write()
/linux-6.15/sound/soc/sof/
H A Dsof-client-probes-ipc3.c67 size_t size = struct_size(msg, dma, 1); in ipc3_probes_init()
180 size_t size = struct_size(msg, desc, num_desc); in ipc3_probes_points_add()
210 size_t size = struct_size(msg, buffer_id, num_buffer_id); in ipc3_probes_points_remove()
/linux-6.15/drivers/cxl/core/
H A Dfeatures.c87 kvmalloc(struct_size(entries, ent, count), GFP_KERNEL); in get_supported_features()
96 hdr_size = struct_size(mbox_out, ents, 0); in get_supported_features()
109 alloc_size = struct_size(mbox_out, ents, max_feats); in get_supported_features()
113 alloc_size = struct_size(mbox_out, ents, remain_feats); in get_supported_features()
410 struct_size(feat_out, ents, requested); in cxlctl_get_supported_features()
417 rpc_out->size = struct_size(feat_out, ents, requested); in cxlctl_get_supported_features()
/linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dnvm.c458 struct_size(mcc_resp_v8, channels, n_channels)) { in iwl_mvm_update_mcc()
462 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
483 struct_size(mcc_resp_v4, channels, n_channels)) { in iwl_mvm_update_mcc()
487 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
508 struct_size(mcc_resp_v3, channels, n_channels)) { in iwl_mvm_update_mcc()
512 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
/linux-6.15/Documentation/mm/
H A Dvmemmap_dedup.rst53 struct_size = HugeTLB_Size / PAGE_SIZE * sizeof(struct page) / PAGE_SIZE
63 struct_size = n * PAGE_SIZE / PAGE_SIZE * sizeof(struct page) / PAGE_SIZE
70 struct_size = n * sizeof(struct page) / PAGE_SIZE
88 struct_size = PAGE_SIZE / sizeof(pmd_t) * struct_size(pmd)
92 Where the struct_size(pmd) is the size of the ``struct page`` structs of a
/linux-6.15/drivers/misc/vmw_vmci/
H A Dvmci_handle_array.c22 array = kmalloc(struct_size(array, entries, capacity), GFP_ATOMIC); in vmci_handle_arr_create()
48 size_t new_size = struct_size(array, entries, in vmci_handle_arr_append_entry()
/linux-6.15/drivers/firmware/efi/libstub/
H A Drandom.c106 struct_size(seed, bits, seed_size), in efi_random_get_seed()
172 memzero_explicit(seed, struct_size(seed, bits, seed_size)); in efi_random_get_seed()
/linux-6.15/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()
/linux-6.15/drivers/net/wireless/intel/iwlwifi/mld/
H A Dmcc.c23 int notif_len = struct_size(resp_cp, channels, n_channels); in iwl_mld_parse_mcc_update_resp_v8()
45 struct_size(mcc_resp_v4, channels, n_channels)) in iwl_mld_parse_mcc_update_resp_v5_v6()
48 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mld_parse_mcc_update_resp_v5_v6()
/linux-6.15/drivers/platform/x86/intel/int3472/
H A Dtps68470.c120 *clk_pdata = devm_kzalloc(dev, struct_size(*clk_pdata, consumers, n_consumers), in skl_int3472_fill_clk_pdata()
195 cells[0].pdata_size = struct_size(clk_pdata, consumers, n_consumers); in skl_int3472_tps68470_probe()
/linux-6.15/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()
/linux-6.15/fs/afs/
H A Daddr_prefs.c218 size = struct_size(preflist, prefs, max_prefs); in afs_insert_address_pref()
399 psize = struct_size(old, prefs, max_prefs); in afs_proc_addr_prefs_write()
404 preflist = kmalloc(struct_size(preflist, prefs, max_prefs), GFP_KERNEL); in afs_proc_addr_prefs_write()
409 memcpy(preflist, old, struct_size(preflist, prefs, old->nr)); in afs_proc_addr_prefs_write()
/linux-6.15/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bca/
H A Dcore.c26 fweh = kzalloc(struct_size(fweh, evt_handler, BRCMF_BCA_E_LAST), in brcmf_bca_alloc_fweh_info()
/linux-6.15/drivers/net/wireless/broadcom/brcm80211/brcmfmac/wcc/
H A Dcore.c27 fweh = kzalloc(struct_size(fweh, evt_handler, BRCMF_WCC_E_LAST), in brcmf_wcc_alloc_fweh_info()
/linux-6.15/drivers/interconnect/
H A Dicc-clk.c87 onecell = devm_kzalloc(dev, struct_size(onecell, nodes, 2 * num_clocks), GFP_KERNEL); in icc_clk_register()
92 qp = devm_kzalloc(dev, struct_size(qp, clocks, num_clocks), GFP_KERNEL); in icc_clk_register()
/linux-6.15/drivers/gpio/
H A Dgpio-ljca.c90 struct_size(packet, item, packet->num), NULL, 0); in ljca_gpio_config()
108 struct_size(packet, item, packet->num), in ljca_gpio_read()
134 struct_size(packet, item, packet->num), NULL, 0); in ljca_gpio_write()
258 (u8 *)packet, struct_size(packet, item, packet->num), in ljca_enable_irq()
/linux-6.15/drivers/cxl/
H A Dpmem.c199 if (struct_size(cmd, out_buf, cmd->in_length) > buf_len) in cxl_pmem_get_config_data()
233 if (size_add(struct_size(cmd, in_buf, cmd->in_length), 4) > buf_len) in cxl_pmem_set_config_data()
237 kvzalloc(struct_size(set_lsa, data, cmd->in_length), GFP_KERNEL); in cxl_pmem_set_config_data()
248 .size_in = struct_size(set_lsa, data, cmd->in_length), in cxl_pmem_set_config_data()
/linux-6.15/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()
220 if (msg_len < struct_size(msg, flow, flow_cnt)) { in nfp_flower_cmsg_merge_hint_rx()
222 msg_len, struct_size(msg, flow, flow_cnt)); in nfp_flower_cmsg_merge_hint_rx()

12345678910>>...38