Home
last modified time | relevance | path

Searched refs:devm_kzalloc (Results 1 – 25 of 3660) sorted by relevance

12345678910>>...147

/linux/sound/soc/atmel/
A Dsam9x5_wm8731.c88 card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
89 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
90 dai = devm_kzalloc(&pdev->dev, sizeof(*dai), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
91 comp = devm_kzalloc(&pdev->dev, 3 * sizeof(*comp), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
A Datmel-classd.c59 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in atmel_classd_dt_init()
472 dai_link = devm_kzalloc(dev, sizeof(*dai_link), GFP_KERNEL); in atmel_classd_asoc_card_init()
476 comp = devm_kzalloc(dev, 3 * sizeof(*comp), GFP_KERNEL); in atmel_classd_asoc_card_init()
537 dd = devm_kzalloc(dev, sizeof(*dd), GFP_KERNEL); in atmel_classd_probe()
593 card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); in atmel_classd_probe()
/linux/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_pci.c121 plat->axi = devm_kzalloc(&pdev->dev, sizeof(*plat->axi), GFP_KERNEL); in snps_gmac5_default_data()
162 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); in stmmac_pci_probe()
166 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, in stmmac_pci_probe()
172 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), in stmmac_pci_probe()
177 plat->safety_feat_cfg = devm_kzalloc(&pdev->dev, in stmmac_pci_probe()
A Ddwmac-loongson.c68 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); in loongson_dwmac_probe()
78 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, in loongson_dwmac_probe()
86 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), GFP_KERNEL); in loongson_dwmac_probe()
/linux/drivers/hwtracing/coresight/
A Dcoresight-syscfg-configfs.c16 ci_type = devm_kzalloc(cscfg_device(), sizeof(*ci_type), GFP_KERNEL); in cscfg_create_ci_type()
122 cfg_fs_preset = devm_kzalloc(cscfg_device(), in cscfg_add_preset_groups()
147 cfg_view = devm_kzalloc(dev, sizeof(struct cscfg_fs_config), GFP_KERNEL); in cscfg_create_config_group()
264 param_item = devm_kzalloc(dev, sizeof(struct cscfg_fs_param), GFP_KERNEL); in cscfg_create_params_group_items()
288 feat_view = devm_kzalloc(dev, sizeof(struct cscfg_fs_feature), GFP_KERNEL); in cscfg_create_feature_group()
293 params_group = devm_kzalloc(dev, sizeof(struct config_group), GFP_KERNEL); in cscfg_create_feature_group()
/linux/scripts/coccinelle/api/alloc/
A Dalloc_cast.cocci36 dma_alloc_coherent\|devm_kmalloc\|devm_kzalloc\|
59 dma_alloc_coherent\|devm_kmalloc\|devm_kzalloc\|
82 dma_alloc_coherent\|devm_kmalloc\|devm_kzalloc\|
99 dma_alloc_coherent\|devm_kmalloc\|devm_kzalloc\|
/linux/drivers/pci/controller/dwc/
A Dpci-layerscape-ep.c140 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL); in ls_pcie_ep_probe()
144 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL); in ls_pcie_ep_probe()
148 ls_epc = devm_kzalloc(dev, sizeof(*ls_epc), GFP_KERNEL); in ls_pcie_ep_probe()
A Dpcie-al.c52 al_pcie = devm_kzalloc(dev, sizeof(*al_pcie), GFP_KERNEL); in al_pcie_init()
56 res = devm_kzalloc(dev, sizeof(*res), GFP_KERNEL); in al_pcie_init()
325 al_pcie = devm_kzalloc(dev, sizeof(*al_pcie), GFP_KERNEL); in al_pcie_probe()
329 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL); in al_pcie_probe()
/linux/drivers/devfreq/
A Dexynos-bus.c208 bus->edev = devm_kzalloc(dev, size, GFP_KERNEL); in exynos_bus_parent_parse_of()
307 ondemand_data = devm_kzalloc(dev, sizeof(*ondemand_data), GFP_KERNEL); in exynos_bus_profile_init()
371 passive_data = devm_kzalloc(dev, sizeof(*passive_data), GFP_KERNEL); in exynos_bus_profile_init_passive()
404 bus = devm_kzalloc(&pdev->dev, sizeof(*bus), GFP_KERNEL); in exynos_bus_probe()
411 profile = devm_kzalloc(dev, sizeof(*profile), GFP_KERNEL); in exynos_bus_probe()
/linux/drivers/soc/fsl/qbman/
A Ddpaa_sys.c68 prop = devm_kzalloc(dev, sizeof(*prop), GFP_KERNEL); in qbman_init_private_mem()
71 prop->value = res_array = devm_kzalloc(dev, sizeof(__be32) * 4, in qbman_init_private_mem()
/linux/drivers/memory/
A Demif.c849 cust_cfgs = devm_kzalloc(emif->dev, sizeof(*cust_cfgs), in of_get_custom_configs()
933 emif = devm_kzalloc(dev, sizeof(struct emif_data), GFP_KERNEL); in of_get_memory_device_details()
934 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in of_get_memory_device_details()
935 dev_info = devm_kzalloc(dev, sizeof(*dev_info), GFP_KERNEL); in of_get_memory_device_details()
1024 emif = devm_kzalloc(dev, sizeof(*emif), GFP_KERNEL); in get_device_details()
1025 temp = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in get_device_details()
1026 dev_info = devm_kzalloc(dev, sizeof(*dev_info), GFP_KERNEL); in get_device_details()
1067 temp = devm_kzalloc(dev, sizeof(*cust_cfgs), GFP_KERNEL); in get_device_details()
1082 temp = devm_kzalloc(dev, size, GFP_KERNEL); in get_device_details()
1096 temp = devm_kzalloc(dev, sizeof(*pd->min_tck), GFP_KERNEL); in get_device_details()
/linux/drivers/scsi/isci/
A Dprobe_roms.c55 rom = devm_kzalloc(&pdev->dev, sizeof(*rom), GFP_KERNEL); in isci_request_oprom()
132 orom = devm_kzalloc(&pdev->dev, fw->size, GFP_KERNEL); in isci_request_firmware()
179 efi_data = devm_kzalloc(&pdev->dev, data_len, GFP_KERNEL); in isci_get_efi_var()
/linux/drivers/net/ethernet/samsung/sxgbe/
A Dsxgbe_platform.c45 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, in sxgbe_probe_config_dt()
51 dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*dma_cfg), GFP_KERNEL); in sxgbe_probe_config_dt()
94 plat_dat = devm_kzalloc(&pdev->dev, in sxgbe_platform_probe()
/linux/drivers/clk/qcom/
A Dcommon.c147 fixed = devm_kzalloc(dev, sizeof(*fixed), GFP_KERNEL); in _qcom_cc_register_board_clk()
164 factor = devm_kzalloc(dev, sizeof(*factor), GFP_KERNEL); in _qcom_cc_register_board_clk()
250 cc = devm_kzalloc(dev, sizeof(*cc), GFP_KERNEL); in qcom_cc_really_probe()
267 scd = devm_kzalloc(dev, sizeof(*scd), GFP_KERNEL); in qcom_cc_really_probe()
/linux/drivers/gpu/drm/msm/dp/
A Ddp_parser.c165 core_power->clk_config = devm_kzalloc(dev, in dp_parser_init_clk_data()
178 ctrl_power->clk_config = devm_kzalloc(dev, in dp_parser_init_clk_data()
193 stream_power->clk_config = devm_kzalloc(dev, in dp_parser_init_clk_data()
329 parser = devm_kzalloc(&pdev->dev, sizeof(*parser), GFP_KERNEL); in dp_parser_get()
/linux/drivers/crypto/ccree/
A Dcc_debugfs.c68 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in cc_debugfs_init()
83 verset = devm_kzalloc(dev, sizeof(*verset), GFP_KERNEL); in cc_debugfs_init()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dof.c32 cc = devm_kzalloc(dev, struct_size(cc, table, count), GFP_KERNEL); in brcmf_of_get_country_codes()
82 board_type = devm_kzalloc(dev, len, GFP_KERNEL); in brcmf_of_probe()
/linux/drivers/thermal/intel/int340x_thermal/
A Dint3403_thermal.c87 obj = devm_kzalloc(&priv->pdev->dev, sizeof(*obj), GFP_KERNEL); in int3403_sensor_add()
174 obj = devm_kzalloc(&priv->pdev->dev, sizeof(*obj), GFP_KERNEL); in int3403_cdev_add()
218 priv = devm_kzalloc(&pdev->dev, sizeof(struct int3403_priv), in int3403_add()
/linux/drivers/crypto/caam/
A Dcaamrng.c178 ctx->desc_sync = devm_kzalloc(ctx->ctrldev, CAAM_RNG_DESC_LEN, in caam_init()
183 ctx->desc_async = devm_kzalloc(ctx->ctrldev, CAAM_RNG_DESC_LEN, in caam_init()
238 ctx = devm_kzalloc(ctrldev, sizeof(*ctx), GFP_KERNEL); in caam_rng_init()
/linux/drivers/video/backlight/
A Dled_bl.c92 leds = devm_kzalloc(dev, sizeof(struct led_classdev *) * nb_leds, in led_bl_get_leds()
140 levels = devm_kzalloc(dev, sizeof(u32) * num_levels, in led_bl_parse_levels()
181 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in led_bl_probe()
/linux/drivers/net/ethernet/pensando/ionic/
A Dionic_debugfs.c150 desc_blob = devm_kzalloc(dev, sizeof(*desc_blob), GFP_KERNEL); in ionic_debugfs_add_qcq()
158 desc_blob = devm_kzalloc(dev, sizeof(*desc_blob), GFP_KERNEL); in ionic_debugfs_add_qcq()
176 desc_blob = devm_kzalloc(dev, sizeof(*desc_blob), GFP_KERNEL); in ionic_debugfs_add_qcq()
193 intr_ctrl_regset = devm_kzalloc(dev, sizeof(*intr_ctrl_regset), in ionic_debugfs_add_qcq()
/linux/sound/soc/ti/
A Domap-hdmi.c323 ad = devm_kzalloc(dev, sizeof(*ad), GFP_KERNEL); in omap_hdmi_audio_probe()
352 card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); in omap_hdmi_audio_probe()
363 devm_kzalloc(dev, sizeof(*(card->dai_link)), GFP_KERNEL); in omap_hdmi_audio_probe()
367 compnent = devm_kzalloc(dev, 3 * sizeof(*compnent), GFP_KERNEL); in omap_hdmi_audio_probe()
/linux/drivers/regulator/
A Dgpio-regulator.c139 config = devm_kzalloc(dev, in of_get_gpio_regulator_config()
166 config->gflags = devm_kzalloc(dev, in of_get_gpio_regulator_config()
242 drvdata = devm_kzalloc(dev, sizeof(struct gpio_regulator_data), in gpio_regulator_probe()
260 drvdata->gpiods = devm_kzalloc(dev, sizeof(struct gpio_desc *), in gpio_regulator_probe()
/linux/drivers/leds/
A Dleds-acer-a500.c78 white_led = devm_kzalloc(&pdev->dev, sizeof(*white_led), GFP_KERNEL); in a500_ec_leds_probe()
89 orange_led = devm_kzalloc(&pdev->dev, sizeof(*orange_led), GFP_KERNEL); in a500_ec_leds_probe()
/linux/sound/soc/fsl/
A Dimx-spdif.c28 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in imx_spdif_audio_probe()
29 comp = devm_kzalloc(&pdev->dev, 3 * sizeof(*comp), GFP_KERNEL); in imx_spdif_audio_probe()

Completed in 34 milliseconds

12345678910>>...147