Home
last modified time | relevance | path

Searched refs:kstrdup (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/linux/scripts/coccinelle/api/
H A Dkstrdup.cocci2 /// Use kstrdup rather than duplicating its implementation
24 + to = kstrdup(from, flag);
39 + to = kstrdup(from, flag);
80 cocci.print_main("WARNING opportunity for kstrdup",p1)
88 cocci.print_main("WARNING opportunity for kstrdup",p1)
96 msg = "WARNING opportunity for kstrdup (strcpy on line %s)" % (p2[0].line)
104 msg = "WARNING opportunity for kstrdup (memcpy on line %s)" % (p2[0].line)
/linux/drivers/parport/
H A Dprobe.c80 info->mfr = kstrdup(sep, GFP_KERNEL); in parse_data()
83 info->model = kstrdup(sep, GFP_KERNEL); in parse_data()
88 info->class_name = kstrdup(sep, GFP_KERNEL); in parse_data()
102 info->cmdset = kstrdup(sep, GFP_KERNEL); in parse_data()
109 info->description = kstrdup(sep, GFP_KERNEL); in parse_data()
/linux/net/ethtool/
H A Dphy.c91 rep_data->name = kstrdup(dev_name(&phydev->mdio.dev), GFP_KERNEL); in phy_prepare_data()
92 rep_data->drvname = kstrdup(phydev->drv->name, GFP_KERNEL); in phy_prepare_data()
101 rep_data->upstream_sfp_name = kstrdup(sfp_get_name(pdn->parent_sfp_bus), in phy_prepare_data()
105 rep_data->downstream_sfp_name = kstrdup(sfp_get_name(phydev->sfp_bus), in phy_prepare_data()
/linux/net/sunrpc/xprtrdma/
H A Dtransport.c153 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses4()
165 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses6()
188 xprt->address_strings[RPC_DISPLAY_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
191 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
194 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
402 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()
406 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()
/linux/arch/arm/mach-versatile/
H A Dversatile.c149 newprop->name = kstrdup("status", GFP_KERNEL); in versatile_dt_pci_init()
150 newprop->value = kstrdup("disabled", GFP_KERNEL); in versatile_dt_pci_init()
/linux/arch/arm/mach-mvebu/
H A Dboard-v7.c132 new_compat->name = kstrdup("compatible", GFP_KERNEL); in i2c_quirk()
134 new_compat->value = kstrdup("marvell,mv78230-a0-i2c", in i2c_quirk()
/linux/drivers/interconnect/
H A Ddebugfs-client.c74 src = kstrdup(src, GFP_ATOMIC); in icc_get_set()
75 dst = kstrdup(dst, GFP_ATOMIC); in icc_get_set()
/linux/drivers/video/fbdev/core/
H A Dfb_cmdline.c54 *option = kstrdup(options, GFP_KERNEL); in fb_get_options()
/linux/lib/
H A Dstring_helpers.c718 return kstrdup("<unknown>", gfp); in kstrdup_quotable_file()
723 return kstrdup("<no_memory>", gfp); in kstrdup_quotable_file()
727 pathname = kstrdup("<too_long>", gfp); in kstrdup_quotable_file()
743 dst = kstrdup(src, gfp); in kstrdup_and_replace()
/linux/kernel/trace/
H A Dtrace_boot.c433 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms()
444 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms()
568 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
578 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
/linux/fs/smb/server/mgmt/
H A Dshare_config.c109 p->pattern = kstrdup(veto_list, KSMBD_DEFAULT_GFP); in parse_veto_list()
160 share->name = kstrdup(name, KSMBD_DEFAULT_GFP); in share_config_request()
/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_csi2_bridge.c124 val = kstrdup(val_el->string.pointer, GFP_KERNEL); in gmin_cfg_get_dsm()
156 return kstrdup(gv->val, GFP_KERNEL); in gmin_cfg_get_dmi_override()
346 vcm_type = kstrdup(obj->string.pointer, GFP_KERNEL); in atomisp_csi2_get_vcm_type()
/linux/fs/smb/client/
H A Dunc.c64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
H A Ddfs_cache.c100 npath = kstrdup(path, GFP_KERNEL); in dfs_cache_canonical_path()
369 t->name = kstrdup(name, GFP_ATOMIC); in alloc_target()
629 th = kstrdup(target->name, GFP_ATOMIC); in update_cache_entry_locked()
763 ref->path_name = kstrdup(path, GFP_ATOMIC); in setup_referral()
767 ref->node_name = kstrdup(target, GFP_ATOMIC); in setup_referral()
805 it->it_name = kstrdup(t->name, GFP_ATOMIC); in get_targets()
H A Dfs_context.c423 new_ctx->field = kstrdup(ctx->field, GFP_ATOMIC); \
544 orig = opts = kstrdup(options, GFP_KERNEL); in smb3_parse_opt()
560 *val = kstrdup(nval, GFP_KERNEL); in smb3_parse_opt()
613 s = kstrdup(prepath, gfp); in cifs_sanitize_prepath()
1048 cifs_sb->ctx->password = kstrdup(ses->password, GFP_KERNEL); in smb3_sync_session_ctx_passwords()
1056 cifs_sb->ctx->password2 = kstrdup(ses->password2, GFP_KERNEL); in smb3_sync_session_ctx_passwords()
1114 new_password = kstrdup(ctx->password, GFP_KERNEL); in smb3_reconfigure()
1126 new_password2 = kstrdup(ctx->password2, GFP_KERNEL); in smb3_reconfigure()
1540 fc->source = kstrdup(ctx->source, GFP_KERNEL); in smb3_fs_context_parse_param()
/linux/drivers/isdn/mISDN/
H A Ddsp_hwec.c57 dup = next = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
/linux/tools/power/pm-graph/config/
H A Dcgskip.txt39 kstrdup
/linux/drivers/gpu/drm/
H A Ddrm_edid_load.c72 fwstr = kstrdup(edid_firmware, GFP_KERNEL); in drm_edid_load_firmware()
/linux/kernel/module/
H A Dkmod.c88 module_name = kstrdup(orig_module_name, GFP_KERNEL); in call_modprobe()
/linux/arch/loongarch/kernel/
H A Denv.c49 cpuname = kstrdup(model, GFP_KERNEL); in init_cpu_fullname()
/linux/sound/core/
H A Dinfo_oss.c38 x = kstrdup(string, GFP_KERNEL); in snd_oss_info_register()
/linux/drivers/gpu/drm/i915/
H A Di915_mitigations.c39 str = kstrdup(val, GFP_KERNEL); in mitigations_set()
/linux/drivers/soc/aspeed/
H A Daspeed-socinfo.c131 attrs->machine = kstrdup(machine, GFP_KERNEL); in aspeed_socinfo_init()
/linux/drivers/block/rnbd/
H A Drnbd-clt-sysfs.c81 options = kstrdup(buf, GFP_KERNEL); in rnbd_clt_parse_map_options()
305 opt = kstrdup(buf, GFP_KERNEL); in rnbd_clt_unmap_dev_store()
406 opt = kstrdup(buf, GFP_KERNEL); in rnbd_clt_remap_dev_store()
/linux/fs/cachefiles/
H A Ddaemon.c566 dir = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_dir()
620 tag = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_tag()
800 cache->tag = kstrdup("CacheFiles", GFP_KERNEL); in cachefiles_daemon_bind()

12345678910>>...14