Home
last modified time | relevance | path

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

12345678910>>...15

/Linux-v5.4/drivers/gpu/drm/amd/display/dc/basics/
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 …]
/Linux-v5.4/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_()
379 int mem_rsv_size, int struct_size) in fdt_packblocks_() argument
385 strings_off = struct_off + struct_size; in fdt_packblocks_()
390 memmove(new + struct_off, old + fdt_off_dt_struct(old), struct_size); in fdt_packblocks_()
392 fdt_set_size_dt_struct(new, struct_size); in fdt_packblocks_()
403 int mem_rsv_size, struct_size; in fdt_open_into() local
415 struct_size = fdt_size_dt_struct(fdt); in fdt_open_into()
417 struct_size = 0; in fdt_open_into()
418 while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END) in fdt_open_into()
[all …]
/Linux-v5.4/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-v5.4/drivers/clk/imx/
Dclk-imx7ulp.c64 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SCG1_END), in imx7ulp_clk_scg1_init()
153 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC2_END), in imx7ulp_clk_pcc2_init()
208 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_PCC3_END), in imx7ulp_clk_pcc3_init()
261 clk_data = kzalloc(struct_size(clk_data, hws, IMX7ULP_CLK_SMC1_END), in imx7ulp_clk_smc1_init()
/Linux-v5.4/kernel/bpf/
Dbtf.c1160 u32 struct_size = struct_type->size; in btf_int_check_member() local
1181 if (struct_size < bytes_offset || in btf_int_check_member()
1182 struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) { in btf_int_check_member()
1198 u32 struct_size = struct_type->size; in btf_int_check_kflag_member() local
1237 if (struct_size < bytes_offset || in btf_int_check_kflag_member()
1238 struct_size - bytes_offset < BITS_ROUNDUP_BYTES(nr_copy_bits)) { in btf_int_check_kflag_member()
1544 u32 struct_size, struct_bits_off, bytes_offset; in btf_ptr_check_member() local
1546 struct_size = struct_type->size; in btf_ptr_check_member()
1556 if (struct_size - bytes_offset < sizeof(void *)) { in btf_ptr_check_member()
1848 u32 struct_size, bytes_offset; in btf_array_check_member() local
[all …]
/Linux-v5.4/drivers/ntb/
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()
/Linux-v5.4/include/drm/ttm/
Dttm_bo_api.h480 unsigned struct_size);
483 unsigned struct_size);
/Linux-v5.4/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()
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-v5.4/drivers/ntb/test/
Dntb_msi_test.c322 size_t struct_size; in ntb_msit_probe() local
355 struct_size = sizeof(*nm) + sizeof(*nm->peers) * peers; in ntb_msit_probe()
357 nm = devm_kzalloc(&ntb->dev, struct_size, GFP_KERNEL); in ntb_msit_probe()
/Linux-v5.4/drivers/mtd/nand/raw/
Ddenali_dt.c85 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_dt_chip_init()
113 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_dt_legacy_chip_init()
Ddenali_pci.c96 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_pci_probe()
/Linux-v5.4/drivers/clk/bcm/
Dclk-bcm2835-aux.c36 struct_size(onecell, hws, in bcm2835_aux_clk_probe()
/Linux-v5.4/drivers/net/ethernet/intel/iavf/
Diavf_virtchnl.c255 len = struct_size(vqci, qpair, pairs); in iavf_configure_queues()
368 len = struct_size(vimi, vecmap, adapter->num_msix_vectors); in iavf_map_queues()
460 len = struct_size(veal, list, count); in iavf_add_ether_addrs()
466 len = struct_size(veal, list, count); in iavf_add_ether_addrs()
530 len = struct_size(veal, list, count); in iavf_del_ether_addrs()
536 len = struct_size(veal, list, count); in iavf_del_ether_addrs()
983 len = struct_size(vti, list, adapter->num_tc - 1); in iavf_enable_channels()
/Linux-v5.4/arch/s390/hypfs/
Dhypfs_diag0c.c43 diag0c_data = kzalloc(struct_size(diag0c_data, entry, cpu_count), in diag0c_store()
/Linux-v5.4/drivers/media/platform/sti/delta/
Ddelta-mjpeg-fw.h37 u32 struct_size; member
/Linux-v5.4/sound/soc/qcom/qdsp6/
Dq6core.c105 struct_size(fwk, svc_api_info, in q6core_callback()
122 struct_size(v, svc_api_info, in q6core_callback()
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_bo.c433 static size_t struct_size, user_struct_size; in vmw_bo_acc_size() local
437 if (unlikely(struct_size == 0)) { in vmw_bo_acc_size()
440 struct_size = backend_size + in vmw_bo_acc_size()
451 return ((user) ? user_struct_size : struct_size) + in vmw_bo_acc_size()
/Linux-v5.4/drivers/hwspinlock/
Dsirf_hwspinlock.c65 struct_size(hwspin, bank.lock, in sirf_hwspinlock_probe()
Du8500_hsem.c114 bank = kzalloc(struct_size(bank, lock, num_locks), GFP_KERNEL); in u8500_hsem_probe()
/Linux-v5.4/kernel/gcov/
Dgcc_3_4.c260 dup = kzalloc(struct_size(dup, counts, active), GFP_KERNEL); in gcov_info_dup()
378 iter = kzalloc(struct_size(iter, type_info, num_counter_active(info)), in gcov_iter_new()
/Linux-v5.4/drivers/clk/
Dclk-efm32gg.c25 clk_data = kzalloc(struct_size(clk_data, hws, CMU_MAX_CLKS), in efm32gg_cmu_init()
/Linux-v5.4/net/xdp/
Dxsk_queue.c77 newq = kvmalloc(struct_size(newq, handles, nentries), GFP_KERNEL); in xsk_reuseq_prepare()
/Linux-v5.4/drivers/input/rmi4/
Drmi_driver.h66 unsigned long struct_size; member
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/
Diwl-nvm-parse.c948 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
952 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
956 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
1113 regd = kzalloc(struct_size(regd, reg_rules, num_of_ch), GFP_KERNEL); in iwl_parse_nvm_mcc_info()
1183 copy_rd = kmemdup(regd, struct_size(regd, reg_rules, valid_rules), in iwl_parse_nvm_mcc_info()
1437 nvm = kzalloc(struct_size(nvm, channels, IWL_NUM_CHANNELS), GFP_KERNEL); in iwl_get_nvm()
/Linux-v5.4/fs/afs/
Dvl_list.c17 vlserver = kzalloc(struct_size(vlserver, name, name_len + 1), in afs_alloc_vlserver()
54 vllist = kzalloc(struct_size(vllist, servers, nr_servers), GFP_KERNEL); in afs_alloc_vlserver_list()

12345678910>>...15