Home
last modified time | relevance | path

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

12345678910>>...31

/Linux-v6.6/drivers/gpu/drm/amd/display/dc/basics/
Dvector.c33 uint32_t struct_size) in dal_vector_construct() argument
37 if (!struct_size || !capacity) { in dal_vector_construct()
43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct()
47 vector->struct_size = struct_size; in dal_vector_construct()
57 uint32_t struct_size) in dal_vector_presized_costruct() argument
63 if (!struct_size || !count) { in dal_vector_presized_costruct()
69 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct()
80 vector->container + i * struct_size, in dal_vector_presized_costruct()
82 struct_size); in dal_vector_presized_costruct()
86 vector->struct_size = struct_size; in dal_vector_presized_costruct()
[all …]
/Linux-v6.6/scripts/dtc/libfdt/
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_()
410 memmove(new + struct_off, old + fdt_off_dt_struct(old), 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()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/include/
Dvector.h31 uint32_t struct_size; member
41 uint32_t struct_size);
46 uint32_t struct_size);
54 uint32_t struct_size);
/Linux-v6.6/scripts/coccinelle/misc/
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-v6.6/drivers/char/tpm/eventlog/
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-v6.6/net/xdp/
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-v6.6/sound/soc/sof/
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-v6.6/drivers/net/wireless/intel/iwlwifi/mvm/
Dnvm.c451 struct_size(mcc_resp_v8, channels, n_channels)) { in iwl_mvm_update_mcc()
455 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
476 struct_size(mcc_resp_v4, channels, n_channels)) { in iwl_mvm_update_mcc()
480 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
501 struct_size(mcc_resp_v3, channels, n_channels)) { in iwl_mvm_update_mcc()
505 resp_len = struct_size(resp_cp, channels, n_channels); in iwl_mvm_update_mcc()
/Linux-v6.6/drivers/firmware/efi/libstub/
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-v6.6/drivers/clk/imx/
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-v6.6/Documentation/mm/
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-v6.6/include/linux/avf/
Dvirtchnl.h1381 (struct_size(p, member, count) + (old - 1 - struct_size(p, member, 0)))
1384 (struct_size(p, member, count - 1) + (old - struct_size(p, member, 0)))
1387 (struct_size(p, member, count) + (old - struct_size(p, member, 0)))
/Linux-v6.6/drivers/cxl/
Dpmem.c129 if (struct_size(cmd, out_buf, cmd->in_length) > buf_len) in cxl_pmem_get_config_data()
162 if (size_add(struct_size(cmd, in_buf, cmd->in_length), 4) > buf_len) in cxl_pmem_set_config_data()
166 kvzalloc(struct_size(set_lsa, data, cmd->in_length), GFP_KERNEL); in cxl_pmem_set_config_data()
177 .size_in = struct_size(set_lsa, data, cmd->in_length), in cxl_pmem_set_config_data()
/Linux-v6.6/Documentation/networking/device_drivers/qlogic/
Dqlge.rst23 def struct_size(struct_type):
29 return netdevice.value_() + align(struct_size("net_device"), NETDEV_ALIGN)
/Linux-v6.6/drivers/interconnect/
Dicc-clk.c87 onecell = devm_kzalloc(dev, struct_size(onecell, nodes, 2 * num_clocks), GFP_KERNEL); in icc_clk_register()
91 qp = devm_kzalloc(dev, struct_size(qp, clocks, num_clocks), GFP_KERNEL); in icc_clk_register()
/Linux-v6.6/include/linux/
Doverflow.h291 #define struct_size(p, member, count) \ macro
310 struct_size((type *)NULL, member, count)
/Linux-v6.6/drivers/platform/x86/intel/int3472/
Dtps68470.c120 *clk_pdata = devm_kzalloc(dev, struct_size(*clk_pdata, consumers, n_consumers), in skl_int3472_fill_clk_pdata()
192 cells[0].pdata_size = struct_size(clk_pdata, consumers, n_consumers); in skl_int3472_tps68470_probe()
/Linux-v6.6/arch/s390/appldata/
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-v6.6/drivers/crypto/intel/qat/qat_common/
Dqat_bl.c68 size_t sz_out, sz = struct_size(bufl, buffers, n); in __qat_bl_sgl_to_bufl()
132 sz_out = struct_size(buflout, buffers, n); in __qat_bl_sgl_to_bufl()
278 sz = struct_size(bufl, buffers, n); in qat_bl_sgl_map()
381 new_bl_size = struct_size(new_bl, buffers, new_bl->num_bufs); in qat_bl_realloc_map_new_dst()
/Linux-v6.6/drivers/gpio/
Dgpio-ljca.c86 struct_size(packet, item, packet->num), NULL, NULL); in gpio_config()
102 struct_size(packet, item, packet->num), ljca_gpio->ibuf, &ibuf_len); in ljca_gpio_read()
130 struct_size(packet, item, packet->num), NULL, NULL); in ljca_gpio_write()
229 struct_size(packet, item, packet->num), NULL, NULL); in ljca_enable_irq()
/Linux-v6.6/fs/xfs/libxfs/
Dxfs_attr_sf.h41 return struct_size(sfep, nameval, sfep->namelen + sfep->valuelen); in xfs_attr_sf_entsize()
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/flower/
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()
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_switch.h25 #define ICE_SW_RULE_VSI_LIST_SIZE(s, n) struct_size((s), vsi, (n))
26 #define ICE_SW_RULE_RX_TX_HDR_SIZE(s, l) struct_size((s), hdr_data, (l))
31 #define ICE_SW_RULE_LG_ACT_SIZE(s, n) struct_size((s), act, (n))
/Linux-v6.6/net/sched/
Dcls_u32.c358 root_ht = kzalloc(struct_size(root_ht, ht, 1), GFP_KERNEL); in u32_init()
819 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL); in u32_init_knode()
846 memcpy(&new->sel, s, struct_size(s, keys, s->nkeys)); in u32_init_knode()
966 ht = kzalloc(struct_size(ht, ht, divisor + 1), GFP_KERNEL); in u32_change()
1090 sel_size = struct_size(s, keys, s->nkeys); in u32_change()
1096 n = kzalloc(struct_size(n, sel.keys, s->nkeys), GFP_KERNEL); in u32_change()
1103 n->pf = __alloc_percpu(struct_size(n->pf, kcnts, s->nkeys), in u32_change()
1357 if (nla_put(skb, TCA_U32_SEL, struct_size(&n->sel, keys, n->sel.nkeys), in u32_dump()
1407 gpf = kzalloc(struct_size(gpf, kcnts, n->sel.nkeys), GFP_KERNEL); in u32_dump()
1421 if (nla_put_64bit(skb, TCA_U32_PCNT, struct_size(gpf, kcnts, n->sel.nkeys), in u32_dump()
/Linux-v6.6/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega10_processpptables.c353 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table()
576 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_socclk_voltage_dependency_table()
606 mclk_table = kzalloc(struct_size(mclk_table, entries, mclk_dep_table->ucNumEntries), in get_mclk_voltage_dependency_table()
643 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_gfxclk_voltage_dependency_table()
705 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_pix_clk_voltage_dependency_table()
758 clk_table = kzalloc(struct_size(clk_table, entries, num_entries), in get_dcefclk_voltage_dependency_table()
797 pcie_table = kzalloc(struct_size(pcie_table, entries, atom_pcie_table->ucNumEntries), in get_pcie_table()
856 table = kzalloc(struct_size(table, values, clk_volt_pp_table->count), in get_valid_clk()
1044 table = kzalloc(struct_size(table, entries, max_levels), GFP_KERNEL); in get_vddc_lookup_table()

12345678910>>...31