Home
last modified time | relevance | path

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

12345678910>>...24

/linux/scripts/coccinelle/api/
H A 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/drivers/gpu/drm/arm/display/komeda/
H A 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/net/mac80211/tests/
H A Dutil.c230 kmemdup(bitrates, sizeof(bitrates), GFP_KERNEL); in t_sdata_init()
236 sband->channels = kmemdup(channels_2ghz, in t_sdata_init()
240 sband->bitrates = kmemdup(bitrates, in t_sdata_init()
246 sband->channels = kmemdup(channels_5ghz, in t_sdata_init()
250 sband->bitrates = kmemdup(bitrates, in t_sdata_init()
/linux/kernel/module/
H A 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/drivers/usb/cdns3/
H A 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/drivers/net/wireless/microchip/wilc1000/
H A 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/drivers/platform/x86/hp/hp-bioscfg/
H A 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/drivers/leds/
H A Dleds-gpio-register.c32 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dgh100.c300 gsp->fmc.hash = kmemdup(hash, hash_len, GFP_KERNEL); in gh100_gsp_oneinit()
301 gsp->fmc.pkey = kmemdup(pkey, pkey_len, GFP_KERNEL); in gh100_gsp_oneinit()
302 gsp->fmc.sig = kmemdup(sig, sig_len, GFP_KERNEL); in gh100_gsp_oneinit()
/linux/arch/arm/mach-lpc32xx/
H A Dpm.c86 iram_swap_area = kmemdup((void *)TEMP_IRAM_AREA, in lpc32xx_pm_enter()
/linux/drivers/i2c/
H A Di2c-boardinfo.c76 kmemdup(info->resources, in i2c_register_board_info()
/linux/arch/arm/mach-s3c/
H A Dplatformdata.c26 npd = kmemdup(pd, pdsize, GFP_KERNEL); in s3c_set_platdata()
/linux/drivers/video/fbdev/nvidia/
H A Dnv_of.c71 *out_edid = kmemdup(pedid, EDID_LENGTH, GFP_KERNEL); in nvidia_probe_of_connector()
/linux/arch/m68k/kernel/
H A Dbootinfo_proc.c66 bootinfo_copy = kmemdup(bootinfo_tmp, bootinfo_size, GFP_KERNEL); in init_bootinfo_procfs()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/
H A Dbase.c114 mxm->mxms = kmemdup(obj->buffer.pointer, in mxm_shadow_dsm()
189 mxm->mxms = kmemdup(obj->buffer.pointer, in mxm_shadow_wmi()
/linux/drivers/hid/
H A Dhid-kysona.c100 write_buf = kmemdup(kysona_online_request, sizeof(kysona_online_request), GFP_KERNEL); in kysona_m600_fetch_online()
130 write_buf = kmemdup(kysona_battery_request, sizeof(kysona_battery_request), GFP_KERNEL); in kysona_m600_fetch_battery()
H A Dhid-razer.c90 buf = kmemdup(blackwidow_init, RAZER_BLACKWIDOW_TRANSFER_BUF_SIZE, GFP_KERNEL); in razer_probe()
H A Dhid-thrustmaster.c323 tm_wheel->model_request = kmemdup(&model_request, in thrustmaster_probe()
337 tm_wheel->change_request = kmemdup(&change_request, in thrustmaster_probe()
/linux/include/net/tc_act/
H A Dtc_tunnel_key.h78 struct ip_tunnel_info *tun_copy = kmemdup(tun, tun_size, in tcf_tunnel_info_copy()
/linux/drivers/cpuidle/
H A Dcpuidle-arm.c83 drv = kmemdup(&arm_idle_driver, sizeof(*drv), GFP_KERNEL); in arm_idle_init_cpu()
/linux/net/xfrm/
H A Dxfrm_sysctl.c50 table = kmemdup(xfrm_table, sizeof(xfrm_table), GFP_KERNEL); in xfrm_sysctl_init()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_atomic.c165 state = kmemdup(connector->state, sizeof(*state), GFP_KERNEL); in intel_digital_connector_duplicate_state()
242 crtc_state = kmemdup(old_crtc_state, sizeof(*crtc_state), GFP_KERNEL); in intel_crtc_duplicate_state()
/linux/sound/soc/qcom/qdsp6/
H A Dq6core.c104 core->fwk_version = kmemdup(data->payload, in q6core_callback()
121 core->svc_version = kmemdup(data->payload, in q6core_callback()
/linux/lib/tests/
H A Dfortify_kunit.c275 checker(len, kmemdup("hello there", len, gfp), kfree(p)); \
393 checker(len, kmemdup(test_strs[i], len, gfp), \
1036 copy = kmemdup(src, len, GFP_KERNEL); in fortify_test_kmemdup()
1042 copy = kmemdup(src, len - 1, GFP_KERNEL); in fortify_test_kmemdup()
1048 copy = kmemdup(src, 1, GFP_KERNEL); in fortify_test_kmemdup()
1054 copy = kmemdup(src, len + 1, GFP_KERNEL); in fortify_test_kmemdup()
1060 copy = kmemdup(src, len * 2, GFP_KERNEL); in fortify_test_kmemdup()
1066 copy = kmemdup(src + 1, len, GFP_KERNEL); in fortify_test_kmemdup()
/linux/crypto/asymmetric_keys/
H A Dmscode_parser.c122 ctx->digest = kmemdup(value, vlen, GFP_KERNEL); in mscode_note_digest()

12345678910>>...24