/linux-6.12.1/scripts/coccinelle/api/ |
D | memdup.cocci | 2 /// Use kmemdup rather than duplicating its implementation 42 + to = kmemdup(from,size,flag); 60 coccilib.org.print_todo(p[0], "WARNING opportunity for kmemdup") 66 coccilib.report.print_report(p[0], "WARNING opportunity for kmemdup")
|
/linux-6.12.1/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_private_obj.c | 24 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_layer_atomic_duplicate_state() 68 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_scaler_atomic_duplicate_state() 111 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_compiz_atomic_duplicate_state() 154 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_splitter_atomic_duplicate_state() 198 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_merger_atomic_duplicate_state() 241 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_improc_atomic_duplicate_state() 284 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_timing_ctrlr_atomic_duplicate_state() 327 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_pipeline_atomic_duplicate_state()
|
/linux-6.12.1/kernel/module/ |
D | livepatch.c | 34 mod->klp_info->sechdrs = kmemdup(info->sechdrs, size, GFP_KERNEL); in copy_module_elf() 42 mod->klp_info->secstrings = kmemdup(info->secstrings, size, GFP_KERNEL); in copy_module_elf()
|
/linux-6.12.1/scripts/ |
D | check-sysctl-docs | 130 /kmemdup.*/ { 131 match($0, /([^ \t]+) *= *kmemdup\(([^,]+) *,/, names)
|
/linux-6.12.1/drivers/usb/cdns3/ |
D | host.c | 94 cdns->xhci_plat_data = kmemdup(&xhci_plat_cdns3_xhci, in __cdns_host_init() 97 cdns->xhci_plat_data = kmemdup(&xhci_plat_cdnsp_xhci, in __cdns_host_init()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtw89/ |
D | acpi.c | 71 *policy_6ghz = kmemdup(ptr, expect_len, GFP_KERNEL); in rtw89_acpi_dsm_get_policy_6ghz() 115 *policy = kmemdup(ptr, sizeof(*ptr), GFP_KERNEL); in rtw89_acpi_dsm_get_policy_6ghz_sp()
|
/linux-6.12.1/drivers/net/wireless/microchip/wilc1000/ |
D | wlan_cfg.c | 363 wl->cfg.b = kmemdup(g_cfg_byte, sizeof(g_cfg_byte), GFP_KERNEL); in wilc_wlan_cfg_init() 367 wl->cfg.hw = kmemdup(g_cfg_hword, sizeof(g_cfg_hword), GFP_KERNEL); in wilc_wlan_cfg_init() 371 wl->cfg.w = kmemdup(g_cfg_word, sizeof(g_cfg_word), GFP_KERNEL); in wilc_wlan_cfg_init() 375 wl->cfg.s = kmemdup(g_cfg_str, sizeof(g_cfg_str), GFP_KERNEL); in wilc_wlan_cfg_init()
|
/linux-6.12.1/drivers/platform/x86/hp/hp-bioscfg/ |
D | spmobj-attributes.c | 233 bioscfg_drv.spm_data.signing_key = kmemdup(buf, length, GFP_KERNEL); in sk_store() 268 bioscfg_drv.spm_data.endorsement_key = kmemdup(buf, length, GFP_KERNEL); in kek_store() 313 bioscfg_drv.spm_data.auth_token = kmemdup(buf, length, GFP_KERNEL); in auth_token_store()
|
/linux-6.12.1/drivers/leds/ |
D | leds-gpio-register.c | 32 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device()
|
/linux-6.12.1/arch/arm/mach-lpc32xx/ |
D | pm.c | 86 iram_swap_area = kmemdup((void *)TEMP_IRAM_AREA, in lpc32xx_pm_enter()
|
/linux-6.12.1/drivers/i2c/ |
D | i2c-boardinfo.c | 76 kmemdup(info->resources, in i2c_register_board_info()
|
/linux-6.12.1/net/unix/ |
D | sysctl_net_unix.c | 31 table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL); in unix_sysctl_register()
|
/linux-6.12.1/arch/arm/mach-s3c/ |
D | platformdata.c | 26 npd = kmemdup(pd, pdsize, GFP_KERNEL); in s3c_set_platdata()
|
/linux-6.12.1/drivers/video/fbdev/nvidia/ |
D | nv_of.c | 71 *out_edid = kmemdup(pedid, EDID_LENGTH, GFP_KERNEL); in nvidia_probe_of_connector()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/ |
D | base.c | 114 mxm->mxms = kmemdup(obj->buffer.pointer, in mxm_shadow_dsm() 189 mxm->mxms = kmemdup(obj->buffer.pointer, in mxm_shadow_wmi()
|
/linux-6.12.1/arch/m68k/kernel/ |
D | bootinfo_proc.c | 66 bootinfo_copy = kmemdup(bootinfo_tmp, bootinfo_size, GFP_KERNEL); in init_bootinfo_procfs()
|
/linux-6.12.1/net/sched/ |
D | em_nbyte.c | 32 em->data = (unsigned long)kmemdup(data, em->datalen, GFP_KERNEL); in em_nbyte_change()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/core/ |
D | firmware.c | 52 blob->data = kmemdup(fw->data, fw->size, GFP_KERNEL); in nvkm_firmware_load_blob() 236 fw->img = kmemdup(src, fw->len, GFP_KERNEL); in nvkm_firmware_ctor()
|
/linux-6.12.1/include/net/tc_act/ |
D | tc_tunnel_key.h | 78 struct ip_tunnel_info *tun_copy = kmemdup(tun, tun_size, in tcf_tunnel_info_copy()
|
/linux-6.12.1/drivers/hid/ |
D | hid-razer.c | 90 buf = kmemdup(blackwidow_init, RAZER_BLACKWIDOW_TRANSFER_BUF_SIZE, GFP_KERNEL); in razer_probe()
|
D | hid-thrustmaster.c | 314 tm_wheel->model_request = kmemdup(&model_request, in thrustmaster_probe() 328 tm_wheel->change_request = kmemdup(&change_request, in thrustmaster_probe()
|
/linux-6.12.1/drivers/cpuidle/ |
D | cpuidle-arm.c | 83 drv = kmemdup(&arm_idle_driver, sizeof(*drv), GFP_KERNEL); in arm_idle_init_cpu()
|
/linux-6.12.1/lib/ |
D | fortify_kunit.c | 258 checker(len, kmemdup("hello there", len, gfp), kfree(p)); \ 376 checker(len, kmemdup(test_strs[i], len, gfp), \ 1004 copy = kmemdup(src, len, GFP_KERNEL); in fortify_test_kmemdup() 1010 copy = kmemdup(src, len - 1, GFP_KERNEL); in fortify_test_kmemdup() 1016 copy = kmemdup(src, 1, GFP_KERNEL); in fortify_test_kmemdup() 1022 copy = kmemdup(src, len + 1, GFP_KERNEL); in fortify_test_kmemdup() 1028 copy = kmemdup(src, len * 2, GFP_KERNEL); in fortify_test_kmemdup() 1034 copy = kmemdup(src + 1, len, GFP_KERNEL); in fortify_test_kmemdup()
|
/linux-6.12.1/drivers/gpu/drm/i915/display/ |
D | intel_atomic.c | 166 state = kmemdup(connector->state, sizeof(*state), GFP_KERNEL); in intel_digital_connector_duplicate_state() 243 crtc_state = kmemdup(old_crtc_state, sizeof(*crtc_state), GFP_KERNEL); in intel_crtc_duplicate_state()
|
/linux-6.12.1/sound/soc/qcom/qdsp6/ |
D | q6core.c | 104 core->fwk_version = kmemdup(data->payload, in q6core_callback() 121 core->svc_version = kmemdup(data->payload, in q6core_callback()
|