Home
last modified time | relevance | path

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

12345678910>>...15

/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 …]
/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);
/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()
/drivers/firmware/efi/libstub/
Drandom.c98 struct_size(seed, bits, seed_size), in efi_random_get_seed()
136 memzero_explicit(seed, struct_size(seed, bits, seed_size)); in efi_random_get_seed()
/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()
/drivers/net/ethernet/intel/ice/
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) - \
/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()
/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()
/drivers/gpu/drm/vmwgfx/
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()
/drivers/net/ethernet/intel/iavf/
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()
/drivers/gpio/
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()
/drivers/clk/bcm/
Dclk-bcm2835-aux.c34 struct_size(onecell, hws, in bcm2835_aux_clk_probe()
Dclk-bcm2711-dvp.c39 struct_size(dvp->data, hws, NR_CLOCKS), in clk_dvp_probe()
/drivers/net/wireless/intel/iwlwifi/
Diwl-nvm-parse.c1038 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
1042 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
1046 data = kzalloc(struct_size(data, channels, in iwl_parse_nvm_data()
1240 regd = kzalloc(struct_size(regd, reg_rules, num_of_ch), GFP_KERNEL); in iwl_parse_nvm_mcc_info()
1313 copy_rd = kmemdup(regd, struct_size(regd, reg_rules, valid_rules), in iwl_parse_nvm_mcc_info()
1564 nvm = kzalloc(struct_size(nvm, channels, IWL_NUM_CHANNELS), GFP_KERNEL); in iwl_get_nvm()
/drivers/leds/
Dleds-gpio.c139 priv = devm_kzalloc(dev, struct_size(priv, leds, count), GFP_KERNEL); in gpio_leds_create()
254 priv = devm_kzalloc(&pdev->dev, struct_size(priv, leds, pdata->num_leds), in gpio_led_probe()
/drivers/hwspinlock/
Dsirf_hwspinlock.c64 struct_size(hwspin, bank.lock, in sirf_hwspinlock_probe()
Du8500_hsem.c108 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks), in u8500_hsem_probe()
/drivers/staging/wfx/
Dhif_tx_mib.c110 int buf_len = struct_size(arg, ie_table, tbl_len); in hif_set_beacon_filter_table()
210 size_t size = struct_size(arg, tx_rate_retry_policy, 1); in hif_set_tx_rate_retry_policy()
/drivers/media/platform/sti/delta/
Ddelta-mjpeg-fw.h37 u32 struct_size; member
/drivers/clk/imgtec/
Dclk-boston.c61 onecell = kzalloc(struct_size(onecell, hws, BOSTON_CLK_COUNT), in clk_boston_setup()
/drivers/dma/
Duniphier-xdmac.c295 xd = kzalloc(struct_size(xd, nodes, nr), GFP_NOWAIT); in uniphier_xdmac_prep_dma_memcpy()
351 xd = kzalloc(struct_size(xd, nodes, sg_len), GFP_NOWAIT); in uniphier_xdmac_prep_slave_sg()
495 xdev = devm_kzalloc(dev, struct_size(xdev, channels, nr_chans), in uniphier_xdmac_probe()
/drivers/clk/
Dclk-efm32gg.c25 clk_data = kzalloc(struct_size(clk_data, hws, CMU_MAX_CLKS), in efm32gg_cmu_init()
/drivers/staging/ralink-gdma/
Dralink-gdma.c523 desc = kzalloc(struct_size(desc, sg, sg_len), GFP_ATOMIC); in gdma_dma_prep_slave_sg()
578 desc = kzalloc(struct_size(desc, sg, num_periods), GFP_ATOMIC); in gdma_dma_prep_dma_memcpy()
623 desc = kzalloc(struct_size(desc, sg, num_periods), GFP_ATOMIC); in gdma_dma_prep_dma_cyclic()
814 struct_size(dma_dev, chan, data->chancnt), in gdma_dma_probe()
/drivers/input/rmi4/
Drmi_driver.h66 unsigned long struct_size; member
/drivers/mtd/nand/raw/
Ddenali_pci.c95 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_pci_probe()

12345678910>>...15