Home
last modified time | relevance | path

Searched refs:devm_kmalloc (Results 1 – 25 of 126) sorted by relevance

123456

/openbmc/linux/scripts/coccinelle/api/alloc/
H 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\|
H A Dzalloc-simple.cocci39 devm_kmalloc(...,E1,...)\|kvmalloc(E1, ...)\|kvmalloc_node(E1,...)\);
100 - x = devm_kmalloc(E2,E1,E3);
103 - x = (T *)devm_kmalloc(E2,E1,E3);
106 - x = (T)devm_kmalloc(E2,E1,E3);
332 x = (T)devm_kmalloc@p(E2,E1,E3);
350 msg="WARNING: devm_kzalloc should be used for %s, instead of devm_kmalloc/memset" % (x)
/openbmc/u-boot/include/dm/
H A Ddevice.h847 void *devm_kmalloc(struct udevice *dev, size_t size, gfp_t gfp);
850 return devm_kmalloc(dev, size, gfp | __GFP_ZERO); in devm_kzalloc()
857 return devm_kmalloc(dev, n * size, flags); in devm_kmalloc_array()
920 static inline void *devm_kmalloc(struct udevice *dev, size_t size, gfp_t gfp) in devm_kmalloc() function
/openbmc/linux/drivers/dma/qcom/
H A Dhidma_mgmt_sys.c190 attrs = devm_kmalloc(&dev->pdev->dev, in create_sysfs_entry()
215 chattr = devm_kmalloc(&mdev->pdev->dev, sizeof(*chattr), GFP_KERNEL); in create_sysfs_entry_channel()
242 mdev->chroots = devm_kmalloc(&mdev->pdev->dev, required, GFP_KERNEL); in hidma_mgmt_init_sys()
/openbmc/linux/lib/
H A Dfortify_kunit.c276 checker(expected_size, devm_kmalloc(dev, alloc_size, gfp), \
293 orig = devm_kmalloc(dev, alloc_size, gfp); \
308 DEFINE_ALLOC_SIZE_TEST_PAIR(devm_kmalloc)
/openbmc/linux/drivers/base/
H A Ddevres.c822 void *devm_kmalloc(struct device *dev, size_t size, gfp_t gfp) in devm_kmalloc() function
842 EXPORT_SYMBOL_GPL(devm_kmalloc);
872 return devm_kmalloc(dev, new_size, gfp); in devm_krealloc()
963 buf = devm_kmalloc(dev, size, gfp); in devm_kstrdup()
1014 p = devm_kmalloc(dev, len+1, gfp); in devm_kvasprintf()
1085 p = devm_kmalloc(dev, len, gfp); in devm_kmemdup()
/openbmc/linux/drivers/clk/bcm/
H A Dclk-bcm2835-aux.c33 onecell = devm_kmalloc(dev, in bcm2835_aux_clk_probe()
/openbmc/linux/drivers/soc/atmel/
H A Dsfr.c50 priv = devm_kmalloc(dev, sizeof(*priv), GFP_KERNEL); in atmel_sfr_probe()
/openbmc/linux/drivers/char/ipmi/
H A Dkcs_bmc_cdev_ipmi.c488 priv->data_in = devm_kmalloc(kcs_bmc->dev, KCS_MSG_BUFSIZ, GFP_KERNEL); in kcs_bmc_ipmi_add_device()
489 priv->data_out = devm_kmalloc(kcs_bmc->dev, KCS_MSG_BUFSIZ, GFP_KERNEL); in kcs_bmc_ipmi_add_device()
490 priv->kbuffer = devm_kmalloc(kcs_bmc->dev, KCS_MSG_BUFSIZ, GFP_KERNEL); in kcs_bmc_ipmi_add_device()
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A Deeprom.c120 tp->mtable = devm_kmalloc(&tp->pdev->dev, sizeof(struct mediatable) + in tulip_build_fake_mediatable()
227 mtable = devm_kmalloc(&tp->pdev->dev, struct_size(mtable, mleaf, count), in tulip_parse_eeprom()
/openbmc/linux/drivers/input/misc/
H A Dcpcap-pwrbutton.c56 button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); in cpcap_power_button_probe()
/openbmc/linux/drivers/virt/
H A Dvmgenid.c33 state = devm_kmalloc(&device->dev, sizeof(*state), GFP_KERNEL); in vmgenid_add()
/openbmc/linux/drivers/usb/chipidea/
H A Dci_hdrc_usb2.c58 ci_pdata = devm_kmalloc(dev, sizeof(*ci_pdata), GFP_KERNEL); in ci_hdrc_usb2_probe()
/openbmc/linux/drivers/media/rc/
H A Dpwm-ir-tx.c90 pwm_ir = devm_kmalloc(&pdev->dev, sizeof(*pwm_ir), GFP_KERNEL); in pwm_ir_probe()
H A Dgpio-ir-tx.c168 gpio_ir = devm_kmalloc(&pdev->dev, sizeof(*gpio_ir), GFP_KERNEL); in gpio_ir_tx_probe()
/openbmc/linux/drivers/hid/
H A Dhid-u2fzero.c322 dev->buf_out = devm_kmalloc(&hdev->dev, in u2fzero_probe()
327 dev->buf_in = devm_kmalloc(&hdev->dev, in u2fzero_probe()
/openbmc/linux/drivers/clk/hisilicon/
H A Dreset.c94 rstc = devm_kmalloc(&pdev->dev, sizeof(*rstc), GFP_KERNEL); in hisi_reset_init()
H A Dclk-hi3519.c147 crg = devm_kmalloc(&pdev->dev, sizeof(*crg), GFP_KERNEL); in hi3519_clk_probe()
/openbmc/linux/drivers/video/backlight/
H A Dpandora_bl.c116 priv = devm_kmalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in pandora_backlight_probe()
/openbmc/linux/drivers/nvdimm/
H A Ddax_devs.c114 pfn_sb = devm_kmalloc(dev, sizeof(*pfn_sb), GFP_KERNEL); in nd_dax_probe()
/openbmc/linux/drivers/char/tpm/eventlog/
H A Dacpi.c139 log->bios_event_log = devm_kmalloc(&chip->dev, len, GFP_KERNEL); in tpm_read_log_acpi()
/openbmc/linux/sound/soc/sof/
H A Dsof-client-ipc-kernel-injector.c107 priv->kernel_buffer = devm_kmalloc(dev, alloc_size, GFP_KERNEL); in sof_msg_inject_probe()
/openbmc/linux/drivers/phy/amlogic/
H A Dphy-meson-g12a-mipi-dphy-analog.c128 priv = devm_kmalloc(dev, sizeof(*priv), GFP_KERNEL); in phy_g12a_mipi_dphy_analog_probe()
/openbmc/linux/drivers/misc/pvpanic/
H A Dpvpanic.c150 pi = devm_kmalloc(dev, sizeof(*pi), GFP_KERNEL); in devm_pvpanic_probe()
/openbmc/linux/drivers/hwmon/
H A Dcorsair-cpro.c508 ccp->cmd_buffer = devm_kmalloc(&hdev->dev, OUT_BUFFER_SIZE, GFP_KERNEL); in ccp_probe()
512 ccp->buffer = devm_kmalloc(&hdev->dev, IN_BUFFER_SIZE, GFP_KERNEL); in ccp_probe()

123456