/linux/drivers/gpu/drm/amd/display/dc/basics/ |
A D | vector.c | 35 uint32_t struct_size) in dal_vector_construct() argument 49 vector->struct_size = struct_size; in dal_vector_construct() 60 uint32_t struct_size) in dal_vector_presized_costruct() argument 85 struct_size); in dal_vector_presized_costruct() 89 vector->struct_size = struct_size; in dal_vector_presized_costruct() 98 uint32_t struct_size) in dal_vector_presized_create() argument 117 uint32_t struct_size) in dal_vector_create() argument 196 vector->struct_size); in dal_vector_set_at_index() 230 vector->struct_size); in dal_vector_insert_at() 259 vector->struct_size); in dal_vector_clone() [all …]
|
/linux/scripts/dtc/libfdt/ |
A D | fdt_rw.c | 14 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/drivers/gpu/drm/amd/display/include/ |
A D | vector.h | 31 uint32_t struct_size; member 41 uint32_t struct_size); 46 uint32_t struct_size); 54 uint32_t struct_size);
|
/linux/scripts/coccinelle/misc/ |
A D | array_size_dup.cocci | 3 /// 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/drivers/char/tpm/eventlog/ |
A D | tpm2.c | 54 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/net/xdp/ |
A D | xsk_queue.c | 19 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()
|
/linux/drivers/cxl/ |
A D | pmem.c | 107 if (struct_size(cmd, out_buf, cmd->in_length) > buf_len) in cxl_pmem_get_config_data() 134 if (struct_size(cmd, in_buf, cmd->in_length) + 4 > buf_len) in cxl_pmem_set_config_data() 138 kvzalloc(struct_size(set_lsa, data, cmd->in_length), GFP_KERNEL); in cxl_pmem_set_config_data() 148 struct_size(set_lsa, data, cmd->in_length), in cxl_pmem_set_config_data()
|
/linux/drivers/clk/imx/ |
A D | clk-imx7ulp.c | 52 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()
|
A D | clk-imx8ulp.c | 152 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_CGC1_END), in imx8ulp_clk_cgc1_init() 236 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_CGC2_END), in imx8ulp_clk_cgc2_init() 319 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_PCC3_END), in imx8ulp_clk_pcc3_init() 402 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_PCC4_END), in imx8ulp_clk_pcc4_init() 457 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, IMX8ULP_CLK_PCC5_END), in imx8ulp_clk_pcc5_init()
|
/linux/net/sched/ |
A D | cls_u32.c | 356 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() 799 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() 936 ht = kzalloc(struct_size(ht, ht, divisor + 1), GFP_KERNEL); in u32_change() 1016 sel_size = struct_size(s, keys, s->nkeys); in u32_change() 1022 n = kzalloc(struct_size(n, sel.keys, s->nkeys), GFP_KERNEL); in u32_change() 1029 n->pf = __alloc_percpu(struct_size(n->pf, kcnts, s->nkeys), in u32_change() 1289 if (nla_put(skb, TCA_U32_SEL, struct_size(&n->sel, keys, n->sel.nkeys), in u32_dump() 1339 gpf = kzalloc(struct_size(gpf, kcnts, n->sel.nkeys), GFP_KERNEL); in u32_dump() [all …]
|
/linux/sound/soc/sof/ |
A D | sof-probes.c | 66 size_t size = struct_size(msg, dma, 1); in sof_ipc_probe_init() 183 size_t size = struct_size(msg, desc, num_desc); in sof_ipc_probe_points_add() 215 size_t size = struct_size(msg, buffer_id, num_buffer_id); in sof_ipc_probe_points_remove()
|
/linux/drivers/ntb/ |
A D | msi.c | 36 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()
|
/linux/Documentation/networking/device_drivers/qlogic/ |
A D | qlge.rst | 23 def struct_size(struct_type): 29 return netdevice.value_() + align(struct_size("net_device"), NETDEV_ALIGN)
|
/linux/arch/s390/appldata/ |
A D | appldata_os.c | 132 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/Documentation/process/ |
A D | deprecated.rst | 87 header = kzalloc(struct_size(header, item, count), GFP_KERNEL); 89 .. note:: If you are using struct_size() on a structure containing a zero-length 94 See array_size(), array3_size(), and struct_size(), 278 instance = kmalloc(struct_size(instance, items, count), GFP_KERNEL); 309 instance = kmalloc(struct_size(instance, items, count - 1), GFP_KERNEL); 316 the struct_size() helper, otherwise we would have --unintentionally-- allocated 319 struct_size() and flex_array_size() helpers:: 328 instance = kmalloc(struct_size(instance, items, count), GFP_KERNEL);
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_flex_type.h | 110 struct_size((struct ice_buf_hdr *)0, section_entry, 1) - (hd_sz)) /\ 275 struct_size((struct ice_label_section *)0, label, 1) - \ 328 struct_size((struct ice_boost_tcam_section *)0, tcam, 1) - \
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
A D | cmsg.c | 49 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()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
A D | vega10_processpptables.c | 354 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table() 577 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_socclk_voltage_dependency_table() 607 mclk_table = kzalloc(struct_size(mclk_table, entries, mclk_dep_table->ucNumEntries), in get_mclk_voltage_dependency_table() 644 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_gfxclk_voltage_dependency_table() 706 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_pix_clk_voltage_dependency_table() 759 clk_table = kzalloc(struct_size(clk_table, entries, num_entries), in get_dcefclk_voltage_dependency_table() 798 pcie_table = kzalloc(struct_size(pcie_table, entries, atom_pcie_table->ucNumEntries), in get_pcie_table() 857 table = kzalloc(struct_size(table, values, clk_volt_pp_table->count), in get_valid_clk() 1045 table = kzalloc(struct_size(table, entries, max_levels), GFP_KERNEL); in get_vddc_lookup_table()
|
A D | process_pptables_v1_0.c | 168 table = kzalloc(struct_size(table, entries, max_levels), GFP_KERNEL); in get_vddc_lookup_table() 324 table = kzalloc(struct_size(table, values, clk_volt_pp_table->count), in get_valid_clk() 374 mclk_table = kzalloc(struct_size(mclk_table, entries, mclk_dep_table->ucNumEntries), in get_mclk_voltage_dependency_table() 418 sclk_table = kzalloc(struct_size(sclk_table, entries, tonga_table->ucNumEntries), in get_sclk_voltage_dependency_table() 447 sclk_table = kzalloc(struct_size(sclk_table, entries, polaris_table->ucNumEntries), in get_sclk_voltage_dependency_table() 494 pcie_table = kzalloc(struct_size(pcie_table, entries, in get_pcie_table() 531 pcie_table = kzalloc(struct_size(pcie_table, entries, in get_pcie_table() 727 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table()
|
/linux/Documentation/translations/it_IT/process/ |
A D | deprecated.rst | 96 header = kzalloc(struct_size(header, item, count), GFP_KERNEL); 98 .. note:: Se per caso state usando struct_size() su una struttura dati che 104 array3_size(), e struct_size(), così come la famiglia di 313 instance = kmalloc(struct_size(instance, items, count), GFP_KERNEL); 348 instance = kmalloc(struct_size(instance, items, count - 1), GFP_KERNEL); 355 struct_size(), altrimenti avremmo --inavvertitamente-- allocato 358 combinazione con struct_size() e flex_array_size():: 367 instance = kmalloc(struct_size(instance, items, count), GFP_KERNEL);
|
/linux/fs/xfs/libxfs/ |
A D | xfs_attr_sf.h | 41 return struct_size(sfep, nameval, sfep->namelen + sfep->valuelen); in xfs_attr_sf_entsize()
|
/linux/fs/xfs/scrub/ |
A D | btree.h | 55 return struct_size((struct xchk_btree *)NULL, lastkey, nlevels - 1); in xchk_btree_sizeof()
|
/linux/drivers/gpio/ |
A D | gpio-aggregator.c | 45 lookups = krealloc(aggr->lookups, struct_size(lookups, table, *n + 2), in aggr_add_gpio() 126 aggr->lookups = kzalloc(struct_size(aggr->lookups, table, 1), in new_device_store() 398 fwd = devm_kzalloc(dev, struct_size(fwd, tmp, fwd_tmp_size(ngpios)), in gpiochip_fwd_create()
|
/linux/arch/x86/kernel/ |
A D | crash.c | 201 cmem = vzalloc(struct_size(cmem, ranges, nr_ranges)); in fill_up_crash_elf_data() 327 cmem = vzalloc(struct_size(cmem, ranges, 1)); in crash_setup_memmap_entries()
|
/linux/drivers/acpi/ |
A D | prmt.c | 106 module_info_size = struct_size(tm, handlers, module_info->handler_info_count); in acpi_parse_prmt() 126 mmio_range_size = struct_size(tm->mmio_info, addr_ranges, *mmio_count); in acpi_parse_prmt()
|