/linux-6.6.21/scripts/coccinelle/api/alloc/ |
D | alloc_cast.cocci | 36 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\|
|
D | zalloc-simple.cocci | 39 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)
|
/linux-6.6.21/drivers/dma/qcom/ |
D | hidma_mgmt_sys.c | 190 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()
|
/linux-6.6.21/lib/ |
D | fortify_kunit.c | 276 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)
|
/linux-6.6.21/drivers/base/ |
D | devres.c | 821 void *devm_kmalloc(struct device *dev, size_t size, gfp_t gfp) in devm_kmalloc() function 841 EXPORT_SYMBOL_GPL(devm_kmalloc); 871 return devm_kmalloc(dev, new_size, gfp); in devm_krealloc() 959 buf = devm_kmalloc(dev, size, gfp); in devm_kstrdup() 1010 p = devm_kmalloc(dev, len+1, gfp); in devm_kvasprintf() 1081 p = devm_kmalloc(dev, len, gfp); in devm_kmemdup()
|
/linux-6.6.21/drivers/clk/bcm/ |
D | clk-bcm2835-aux.c | 33 onecell = devm_kmalloc(dev, in bcm2835_aux_clk_probe()
|
/linux-6.6.21/drivers/soc/atmel/ |
D | sfr.c | 50 priv = devm_kmalloc(dev, sizeof(*priv), GFP_KERNEL); in atmel_sfr_probe()
|
/linux-6.6.21/drivers/char/ipmi/ |
D | kcs_bmc_cdev_ipmi.c | 488 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()
|
/linux-6.6.21/drivers/net/ethernet/dec/tulip/ |
D | eeprom.c | 120 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()
|
/linux-6.6.21/drivers/misc/pvpanic/ |
D | pvpanic-pci.c | 81 pi = devm_kmalloc(&pdev->dev, sizeof(*pi), GFP_KERNEL); in pvpanic_pci_probe()
|
D | pvpanic-mmio.c | 95 pi = devm_kmalloc(dev, sizeof(*pi), GFP_KERNEL); in pvpanic_mmio_probe()
|
/linux-6.6.21/drivers/input/misc/ |
D | cpcap-pwrbutton.c | 56 button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); in cpcap_power_button_probe()
|
/linux-6.6.21/drivers/hid/ |
D | hid-u2fzero.c | 322 dev->buf_out = devm_kmalloc(&hdev->dev, in u2fzero_probe() 327 dev->buf_in = devm_kmalloc(&hdev->dev, in u2fzero_probe()
|
/linux-6.6.21/drivers/virt/ |
D | vmgenid.c | 33 state = devm_kmalloc(&device->dev, sizeof(*state), GFP_KERNEL); in vmgenid_add()
|
/linux-6.6.21/drivers/media/rc/ |
D | pwm-ir-tx.c | 90 pwm_ir = devm_kmalloc(&pdev->dev, sizeof(*pwm_ir), GFP_KERNEL); in pwm_ir_probe()
|
/linux-6.6.21/drivers/usb/chipidea/ |
D | ci_hdrc_usb2.c | 58 ci_pdata = devm_kmalloc(dev, sizeof(*ci_pdata), GFP_KERNEL); in ci_hdrc_usb2_probe()
|
/linux-6.6.21/drivers/clk/hisilicon/ |
D | reset.c | 94 rstc = devm_kmalloc(&pdev->dev, sizeof(*rstc), GFP_KERNEL); in hisi_reset_init()
|
D | clk-hi3519.c | 147 crg = devm_kmalloc(&pdev->dev, sizeof(*crg), GFP_KERNEL); in hi3519_clk_probe()
|
/linux-6.6.21/drivers/nvdimm/ |
D | dax_devs.c | 114 pfn_sb = devm_kmalloc(dev, sizeof(*pfn_sb), GFP_KERNEL); in nd_dax_probe()
|
/linux-6.6.21/drivers/video/backlight/ |
D | pandora_bl.c | 116 priv = devm_kmalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in pandora_backlight_probe()
|
/linux-6.6.21/drivers/char/tpm/eventlog/ |
D | acpi.c | 139 log->bios_event_log = devm_kmalloc(&chip->dev, len, GFP_KERNEL); in tpm_read_log_acpi()
|
/linux-6.6.21/sound/soc/sof/ |
D | sof-client-ipc-kernel-injector.c | 107 priv->kernel_buffer = devm_kmalloc(dev, alloc_size, GFP_KERNEL); in sof_msg_inject_probe()
|
/linux-6.6.21/drivers/phy/amlogic/ |
D | phy-meson-g12a-mipi-dphy-analog.c | 128 priv = devm_kmalloc(dev, sizeof(*priv), GFP_KERNEL); in phy_g12a_mipi_dphy_analog_probe()
|
/linux-6.6.21/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-core.c | 561 ss->flows[i].biv = devm_kmalloc(ss->dev, AES_BLOCK_SIZE, in allocate_flows() 569 ss->flows[i].iv[j] = devm_kmalloc(ss->dev, AES_BLOCK_SIZE, in allocate_flows() 578 ss->flows[i].pad = devm_kmalloc(ss->dev, MAX_PAD_SIZE, in allocate_flows() 585 devm_kmalloc(ss->dev, max(SHA256_DIGEST_SIZE, in allocate_flows()
|
/linux-6.6.21/drivers/mfd/ |
D | tps6105x.c | 134 tps6105x = devm_kmalloc(&client->dev, sizeof(*tps6105x), GFP_KERNEL); in tps6105x_probe()
|