/drivers/gpu/drm/amd/display/dc/basics/ |
D | vector.c | 35 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/ |
D | vector.h | 31 uint32_t struct_size; member 41 uint32_t struct_size); 46 uint32_t struct_size); 54 uint32_t struct_size);
|
/drivers/char/tpm/eventlog/ |
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()
|
/drivers/firmware/efi/libstub/ |
D | random.c | 98 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/ |
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()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_flex_type.h | 108 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/ |
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()
|
/drivers/net/ethernet/netronome/nfp/flower/ |
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()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_bo.c | 435 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/ |
D | iavf_virtchnl.c | 259 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/ |
D | gpio-aggregator.c | 98 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/ |
D | clk-bcm2835-aux.c | 34 struct_size(onecell, hws, in bcm2835_aux_clk_probe()
|
D | clk-bcm2711-dvp.c | 39 struct_size(dvp->data, hws, NR_CLOCKS), in clk_dvp_probe()
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-nvm-parse.c | 1038 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/ |
D | leds-gpio.c | 139 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/ |
D | sirf_hwspinlock.c | 64 struct_size(hwspin, bank.lock, in sirf_hwspinlock_probe()
|
D | u8500_hsem.c | 108 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks), in u8500_hsem_probe()
|
/drivers/staging/wfx/ |
D | hif_tx_mib.c | 110 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/ |
D | delta-mjpeg-fw.h | 37 u32 struct_size; member
|
/drivers/clk/imgtec/ |
D | clk-boston.c | 61 onecell = kzalloc(struct_size(onecell, hws, BOSTON_CLK_COUNT), in clk_boston_setup()
|
/drivers/dma/ |
D | uniphier-xdmac.c | 295 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/ |
D | clk-efm32gg.c | 25 clk_data = kzalloc(struct_size(clk_data, hws, CMU_MAX_CLKS), in efm32gg_cmu_init()
|
/drivers/staging/ralink-gdma/ |
D | ralink-gdma.c | 523 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/ |
D | rmi_driver.h | 66 unsigned long struct_size; member
|
/drivers/mtd/nand/raw/ |
D | denali_pci.c | 95 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_pci_probe()
|