Home
last modified time | relevance | path

Searched refs:kmemdup (Results 1 – 25 of 664) sorted by relevance

12345678910>>...27

/linux-6.12.1/scripts/coccinelle/api/
Dmemdup.cocci2 /// 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/
Dkomeda_private_obj.c24 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/
Dlivepatch.c34 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/
Dcheck-sysctl-docs130 /kmemdup.*/ {
131 match($0, /([^ \t]+) *= *kmemdup\(([^,]+) *,/, names)
/linux-6.12.1/drivers/usb/cdns3/
Dhost.c94 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/
Dacpi.c71 *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/
Dwlan_cfg.c363 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/
Dspmobj-attributes.c233 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/
Dleds-gpio-register.c32 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device()
/linux-6.12.1/arch/arm/mach-lpc32xx/
Dpm.c86 iram_swap_area = kmemdup((void *)TEMP_IRAM_AREA, in lpc32xx_pm_enter()
/linux-6.12.1/drivers/i2c/
Di2c-boardinfo.c76 kmemdup(info->resources, in i2c_register_board_info()
/linux-6.12.1/net/unix/
Dsysctl_net_unix.c31 table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL); in unix_sysctl_register()
/linux-6.12.1/arch/arm/mach-s3c/
Dplatformdata.c26 npd = kmemdup(pd, pdsize, GFP_KERNEL); in s3c_set_platdata()
/linux-6.12.1/drivers/video/fbdev/nvidia/
Dnv_of.c71 *out_edid = kmemdup(pedid, EDID_LENGTH, GFP_KERNEL); in nvidia_probe_of_connector()
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/
Dbase.c114 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/
Dbootinfo_proc.c66 bootinfo_copy = kmemdup(bootinfo_tmp, bootinfo_size, GFP_KERNEL); in init_bootinfo_procfs()
/linux-6.12.1/net/sched/
Dem_nbyte.c32 em->data = (unsigned long)kmemdup(data, em->datalen, GFP_KERNEL); in em_nbyte_change()
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/core/
Dfirmware.c52 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/
Dtc_tunnel_key.h78 struct ip_tunnel_info *tun_copy = kmemdup(tun, tun_size, in tcf_tunnel_info_copy()
/linux-6.12.1/drivers/hid/
Dhid-razer.c90 buf = kmemdup(blackwidow_init, RAZER_BLACKWIDOW_TRANSFER_BUF_SIZE, GFP_KERNEL); in razer_probe()
Dhid-thrustmaster.c314 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/
Dcpuidle-arm.c83 drv = kmemdup(&arm_idle_driver, sizeof(*drv), GFP_KERNEL); in arm_idle_init_cpu()
/linux-6.12.1/lib/
Dfortify_kunit.c258 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/
Dintel_atomic.c166 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/
Dq6core.c104 core->fwk_version = kmemdup(data->payload, in q6core_callback()
121 core->svc_version = kmemdup(data->payload, in q6core_callback()

12345678910>>...27