Home
last modified time | relevance | path

Searched refs:kstrdup (Results 1 – 200 of 209) sorted by relevance

12

/linux-4.4.14/drivers/parport/
Dprobe.c83 info->mfr = kstrdup(sep, GFP_KERNEL); in parse_data()
86 info->model = kstrdup(sep, GFP_KERNEL); in parse_data()
91 info->class_name = kstrdup(sep, GFP_KERNEL); in parse_data()
105 info->cmdset = kstrdup(sep, GFP_KERNEL); in parse_data()
112 info->description = kstrdup(sep, GFP_KERNEL); in parse_data()
Dshare.c871 devname = kstrdup(name, GFP_KERNEL); in parport_register_dev_model()
/linux-4.4.14/scripts/coccinelle/api/
Dkstrdup.cocci1 /// Use kstrdup rather than duplicating its implementation
23 + to = kstrdup(from, flag);
38 + to = kstrdup(from, flag);
/linux-4.4.14/arch/arm/mach-mvebu/
Dboard-v7.c133 new_compat->name = kstrdup("compatible", GFP_KERNEL); in i2c_quirk()
135 new_compat->value = kstrdup("marvell,mv78230-a0-i2c", in i2c_quirk()
Dkirkwood.c119 pmac->name = kstrdup("local-mac-address", GFP_KERNEL); in kirkwood_dt_eth_fixup()
Dcoherency.c209 p->name = kstrdup("arm,io-coherent", GFP_KERNEL); in armada_375_380_coherency_init()
/linux-4.4.14/net/sunrpc/xprtrdma/
Dtransport.c160 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses4()
172 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses6()
195 xprt->address_strings[RPC_DISPLAY_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
198 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
201 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
/linux-4.4.14/arch/xtensa/platforms/xtfpga/
Dsetup.c100 newfreq->name = kstrdup("clock-frequency", GFP_KERNEL); in update_clock_frequency()
127 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_local_mac()
/linux-4.4.14/mm/
Dutil.c44 char *kstrdup(const char *s, gfp_t gfp) in kstrdup() function
58 EXPORT_SYMBOL(kstrdup);
74 return kstrdup(s, gfp); in kstrdup_const()
Dzsmalloc.c1904 pool->name = kstrdup(name, GFP_KERNEL); in zs_create_pool()
/linux-4.4.14/drivers/gpu/drm/tilcdc/
Dtilcdc_slave_compat.c81 nprop->name = kstrdup(prop->name, GFP_KERNEL); in tilcdc_prop_dup()
120 prop->value = kstrdup(str, GFP_KERNEL); in tilcdc_prop_str_update()
/linux-4.4.14/sound/isa/gus/
Dgus_mem.c216 block.name = kstrdup(name, GFP_KERNEL); in snd_gf1_mem_alloc()
256 block.name = kstrdup("InterWave LFOs", GFP_KERNEL); in snd_gf1_mem_init()
262 block.name = kstrdup("Voice default (NULL's)", GFP_KERNEL); in snd_gf1_mem_init()
/linux-4.4.14/drivers/regulator/
Dfixed-helper.c38 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on()
Dgpio-regulator.c266 drvdata->desc.name = kstrdup(config->supply_name, GFP_KERNEL); in gpio_regulator_probe()
Dcore.c1234 node->dev_name = kstrdup(consumer_dev_name, GFP_KERNEL); in set_consumer_device_supply()
1285 regulator->supply_name = kstrdup(buf, GFP_KERNEL); in create_regulator()
1297 regulator->supply_name = kstrdup(supply_name, GFP_KERNEL); in create_regulator()
/linux-4.4.14/drivers/video/fbdev/core/
Dfb_cmdline.c58 options = kstrdup(fb_mode_option, GFP_KERNEL); in fb_get_options()
/linux-4.4.14/drivers/isdn/gigaset/
Di4l.c260 commands[AT_TYPE] = kstrdup("^SCTP=0\r", GFP_ATOMIC); in command_from_LL()
266 commands[AT_TYPE] = kstrdup("^SCTP=1\r", GFP_ATOMIC); in command_from_LL()
286 commands[AT_BC] = kstrdup("^SBC=9090A3\r", GFP_ATOMIC); in command_from_LL()
293 commands[AT_BC] = kstrdup("^SBC=8890\r", GFP_ATOMIC); in command_from_LL()
Dev-layer.c463 ptr = kstrdup(cs->respdata, GFP_ATOMIC); in gigaset_handle_modem_response()
544 ptr = kstrdup(psep, GFP_ATOMIC); in gigaset_handle_modem_response()
577 ptr = kstrdup(eoc, GFP_ATOMIC); in gigaset_handle_modem_response()
Dcapi.c1405 commands[AT_TYPE] = kstrdup(s, GFP_KERNEL); in do_connect_req()
1453 commands[AT_CLIP] = kstrdup(s, GFP_KERNEL); in do_connect_req()
/linux-4.4.14/fs/9p/
Dv9fs.c133 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options()
326 v9ses->uname = kstrdup(V9FS_DEFUSER, GFP_KERNEL); in v9fs_session_init()
330 v9ses->aname = kstrdup(V9FS_DEFANAME, GFP_KERNEL); in v9fs_session_init()
/linux-4.4.14/drivers/scsi/ufs/
Dufshcd-pltfrm.c118 clki->name = kstrdup(name, GFP_KERNEL); in ufshcd_parse_clock_info()
152 vreg->name = kstrdup(name, GFP_KERNEL); in ufshcd_populate_vreg()
/linux-4.4.14/fs/cachefiles/
Ddaemon.c487 dir = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_dir()
515 secctx = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_secctx()
541 tag = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_tag()
Dbind.c72 cache->tag = kstrdup("CacheFiles", GFP_KERNEL); in cachefiles_daemon_bind()
/linux-4.4.14/sound/core/
Dinfo_oss.c54 x = kstrdup(string, GFP_KERNEL); in snd_oss_info_register()
Djack.c229 jack->id = kstrdup(id, GFP_KERNEL); in snd_jack_new()
Dinfo.c709 entry->name = kstrdup(name, GFP_KERNEL); in snd_info_create_entry()
Dtimer.c109 timeri->owner = kstrdup(owner, GFP_KERNEL); in snd_timer_instance_new()
/linux-4.4.14/drivers/scsi/aic7xxx/
Daic7770_osm.c88 name = kstrdup(buf, GFP_ATOMIC); in aic7770_probe()
Daic79xx_osm_pci.c181 name = kstrdup(buf, GFP_ATOMIC); in ahd_linux_pci_dev_probe()
Daic7xxx_osm_pci.c228 name = kstrdup(buf, GFP_ATOMIC); in ahc_linux_pci_dev_probe()
/linux-4.4.14/fs/nfs/
Dgetroot.c78 void *name = kstrdup(devname, GFP_KERNEL); in nfs_get_root()
Dnfs4client.c1217 server->nfs_client->cl_hostname = kstrdup(hostname, GFP_KERNEL); in nfs4_update_server()
Dclient.c174 clp->cl_hostname = kstrdup(cl_init->hostname, GFP_KERNEL); in nfs_alloc_client()
Dsuper.c2024 args->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs23_validate_mount_data()
/linux-4.4.14/drivers/fmc/
Dfmc-match.c98 fmc->mezzanine_name = kstrdup(fmc->id.product_name, GFP_KERNEL); in fmc_fill_id_info()
Dfmc-chardev.c144 fc->misc.name = kstrdup(dev_name(&fmc->dev), GFP_KERNEL); in fc_probe()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dparam.c420 opt.err = kstrdup("defaulting to 2 (MSI-X)", in e1000e_check_options()
425 opt.err = kstrdup("defaulting to 1 (MSI)", GFP_KERNEL); in e1000e_check_options()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dreconfig.c36 np->full_name = kstrdup(path, GFP_KERNEL); in pSeries_reconfig_add_node()
181 if (!(new->name = kstrdup(name, GFP_KERNEL))) in new_property()
Dmobility.c104 new_prop->name = kstrdup(name, GFP_KERNEL); in update_dt_property()
Ddlpar.c57 prop->name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_property()
Dhotplug-memory.c94 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in dlpar_clone_drconf_property()
Diommu.c1086 win64->name = kstrdup(DIRECT64_PROPNAME, GFP_KERNEL); in enable_ddw()
/linux-4.4.14/kernel/trace/
Dtrace_uprobe.c254 tu->tp.call.name = kstrdup(event, GFP_KERNEL); in alloc_trace_uprobe()
258 tu->tp.class.system = kstrdup(group, GFP_KERNEL); in alloc_trace_uprobe()
466 tail = kstrdup(kbasename(filename), GFP_KERNEL); in create_trace_uprobe()
489 tu->filename = kstrdup(filename, GFP_KERNEL); in create_trace_uprobe()
509 parg->name = kstrdup(argv[i], GFP_KERNEL); in create_trace_uprobe()
514 parg->name = kstrdup(buf, GFP_KERNEL); in create_trace_uprobe()
Dtrace_kprobe.c120 sc->symbol = kstrdup(sym, GFP_KERNEL); in alloc_symbol_cache()
278 tk->symbol = kstrdup(symbol, GFP_KERNEL); in alloc_trace_kprobe()
297 tk->tp.call.name = kstrdup(event, GFP_KERNEL); in alloc_trace_kprobe()
306 tk->tp.class.system = kstrdup(group, GFP_KERNEL); in alloc_trace_kprobe()
720 parg->name = kstrdup(argv[i], GFP_KERNEL); in create_trace_kprobe()
725 parg->name = kstrdup(buf, GFP_KERNEL); in create_trace_kprobe()
Dtrace_probe.c515 parg->comm = kstrdup(arg, GFP_KERNEL); in traceprobe_parse_probe_arg()
Dtrace_events_filter.c641 filter->filter_string = kstrdup(filter_string, GFP_KERNEL); in replace_filter_string()
1264 elt->operand = kstrdup(operand, GFP_KERNEL); in postfix_append_operand()
Dtrace_events_trigger.c742 data->filter_str = kstrdup(filter_str, GFP_KERNEL); in set_trigger_filter()
Dblktrace.c1573 buf = kstrdup(str, GFP_KERNEL); in blk_trace_str2mask()
/linux-4.4.14/include/linux/
Dstring.h121 extern char *kstrdup(const char *s, gfp_t gfp);
Dfsnotify.h320 return kstrdup(name, GFP_KERNEL); in fsnotify_oldname_init()
/linux-4.4.14/drivers/pci/hotplug/
Drpaphp_slot.c65 slot->name = kstrdup(drc_name, GFP_KERNEL); in alloc_slot_struct()
/linux-4.4.14/drivers/base/
Ddevtmpfs.c175 path = kstrdup(nodepath, GFP_KERNEL); in create_path()
257 path = kstrdup(nodepath, GFP_KERNEL); in delete_path()
Dcore.c1368 s = kstrdup(dev_name(dev), GFP_KERNEL); in device_get_devnode()
1913 old_device_name = kstrdup(dev_name(dev), GFP_KERNEL); in device_rename()
/linux-4.4.14/net/nfc/hci/
Dllc.c63 llc_engine->name = kstrdup(name, GFP_KERNEL); in nfc_llc_register()
/linux-4.4.14/arch/arm/mach-mmp/
Dsram.c91 info->pool_name = kstrdup(pdata->pool_name, GFP_KERNEL); in sram_probe()
/linux-4.4.14/net/netfilter/
Dxt_LED.c131 ledinternal->trigger_id = kstrdup(ledinfo->id, GFP_KERNEL); in led_tg_check()
Dxt_IDLETIMER.c130 info->timer->attr.attr.name = kstrdup(info->label, GFP_KERNEL); in idletimer_tg_create()
Dxt_hashlimit.c258 hinfo->name = kstrdup(minfo->name, GFP_KERNEL); in htable_create()
/linux-4.4.14/sound/synth/emux/
Demux.c101 emu->name = kstrdup(name, GFP_KERNEL); in snd_emux_register()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_edid_load.c282 fwstr = kstrdup(edid_firmware, GFP_KERNEL); in drm_load_edid_firmware()
Ddrm_ioctl.c144 master->unique = kstrdup(dev->unique, GFP_KERNEL); in drm_set_busid()
/linux-4.4.14/drivers/uio/
Duio_fsl_elbc_gpcm.c296 *name = kstrdup(dt_name, GFP_KERNEL); in get_of_data()
385 info->mem[0].name = kstrdup(node->name, GFP_KERNEL); in uio_fsl_elbc_gpcm_probe()
/linux-4.4.14/drivers/md/
Ddm-exception-store.c81 type_name_dup = kstrdup(type_name, GFP_KERNEL); in get_type()
Ddm-stats.c304 s->program_id = kstrdup(program_id, GFP_KERNEL); in dm_stats_create()
309 s->aux_data = kstrdup(aux_data, GFP_KERNEL); in dm_stats_create()
895 new_aux_data = kstrdup(aux_data, GFP_KERNEL); in dm_stats_set_aux()
1111 program = kstrdup(argv[1], GFP_KERNEL); in message_stats_list()
Ddm-ioctl.c169 hc->name = kstrdup(name, GFP_KERNEL); in alloc_cell()
179 hc->uuid = kstrdup(uuid, GFP_KERNEL); in alloc_cell()
381 new_data = kstrdup(new, GFP_KERNEL); in dm_hash_rename()
Ddm-log.c77 type_name_dup = kstrdup(type_name, GFP_KERNEL); in get_type()
Ddm-crypt.c1582 cc->cipher_string = kstrdup(cipher_in, GFP_KERNEL); in crypt_ctr_cipher()
1604 cc->cipher = kstrdup(cipher, GFP_KERNEL); in crypt_ctr_cipher()
Ddm-verity.c809 v->alg_name = kstrdup(argv[7], GFP_KERNEL); in verity_ctr()
Ddm-mpath.c727 m->hw_handler_name = kstrdup(dm_shift_arg(as), GFP_KERNEL); in parse_hw_handler()
Ddm-cache-target.c2970 copy[i] = kstrdup(argv[i], GFP_KERNEL); in copy_ctr_args()
/linux-4.4.14/kernel/
Daudit_watch.c218 path = kstrdup(old->path, GFP_KERNEL); in audit_dupe_watch()
527 pathname = kstrdup(audit_mark_path(old->exe), GFP_KERNEL); in audit_dupe_exe()
Dkmod.c83 module_name = kstrdup(module_name, GFP_KERNEL); in call_modprobe()
Dauditfilter.c757 lsm_str = kstrdup(sf->lsm_str, GFP_KERNEL); in audit_dupe_lsm_field()
834 fk = kstrdup(old->filterkey, GFP_KERNEL); in audit_dupe_rule()
Dauditsc.c693 ctx->filterkey = kstrdup(rule->filterkey, GFP_ATOMIC); in audit_filter_rules()
718 *key = kstrdup(e->rule.filterkey, GFP_ATOMIC); in audit_filter_task()
Dmodule.c757 mod->field = kstrdup(s, GFP_KERNEL); \
1520 sattr->name = kstrdup(info->secstrings + sec->sh_name, in add_sect_attrs()
/linux-4.4.14/arch/s390/hypfs/
Dinode.c132 filp->private_data = kstrdup(data, GFP_KERNEL); in hypfs_open()
399 buffer = kstrdup(tmp, GFP_KERNEL); in hypfs_create_u64()
/linux-4.4.14/security/selinux/ss/
Dcontext.h125 dst->str = kstrdup(src->str, GFP_ATOMIC); in context_cpy()
Dservices.c1196 *scontext = kstrdup(context->str, GFP_ATOMIC); in context_struct_to_string()
1433 str = kstrdup(scontext2, gfp_flags); in security_context_to_sid_core()
1875 s = kstrdup(c->str, GFP_KERNEL); in convert_context()
2612 (*names)[i] = kstrdup(sym_name(&policydb, SYM_BOOLS, i), GFP_ATOMIC); in security_get_bools()
2885 classes[value] = kstrdup(name, GFP_ATOMIC); in get_classes_callback()
2924 perms[value] = kstrdup(name, GFP_ATOMIC); in get_permissions_callback()
3404 secattr->domain = kstrdup(sym_name(&policydb, SYM_TYPES, ctx->type - 1), in security_netlbl_sid_to_secattr()
Dmls.c387 tmpstr = freestr = kstrdup(str, gfp_mask); in mls_from_string()
Dpolicydb.c192 key = kstrdup(OBJECT_R, GFP_KERNEL); in roles_init()
/linux-4.4.14/include/linux/wimax/
Ddebug.h498 params_orig = kstrdup(_params, GFP_KERNEL); in d_parse_params()
/linux-4.4.14/drivers/xen/xenbus/
Dxenbus_dev_frontend.c243 watch->watch.node = kstrdup(path, GFP_KERNEL); in alloc_watch_adapter()
247 watch->token = kstrdup(token, GFP_KERNEL); in alloc_watch_adapter()
/linux-4.4.14/drivers/char/
Dmisc.c274 return kstrdup(c->nodename, GFP_KERNEL); in misc_devnode()
/linux-4.4.14/block/
Dcmdline-parser.c173 next = pbuf = buf = kstrdup(cmdline, GFP_KERNEL); in cmdline_parts_parse()
/linux-4.4.14/drivers/usb/gadget/
Dconfigfs.c121 str = kstrdup(s, GFP_KERNEL); in usb_string_copy()
261 name = kstrdup(page, GFP_KERNEL); in gadget_dev_desc_UDC_store()
655 cfg->c.label = kstrdup(buf, GFP_KERNEL); in config_desc_make()
1043 ext_prop->name = kstrdup(name, GFP_KERNEL); in ext_prop_make()
1455 gi->composite.gadget_driver.function = kstrdup(name, GFP_KERNEL); in gadgets_make()
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_parameters.c139 param->name = kstrdup(name, GFP_KERNEL); in iscsi_set_default_param()
145 param->value = kstrdup(value, GFP_KERNEL); in iscsi_set_default_param()
600 new_param->name = kstrdup(param->name, GFP_KERNEL); in iscsi_copy_param_list()
601 new_param->value = kstrdup(param->value, GFP_KERNEL); in iscsi_copy_param_list()
704 param->value = kstrdup(value, GFP_KERNEL); in iscsi_update_param_value()
Discsi_target_auth.c78 tmp = kstrdup(a_str, GFP_KERNEL); in chap_check_algorithm()
/linux-4.4.14/kernel/gcov/
Dfs.c309 copy = kstrdup(path, GFP_KERNEL); in link_target()
579 filename = kstrdup(gcov_info_filename(info), GFP_KERNEL); in add_node()
Dgcc_3_4.c256 dup->filename = kstrdup(info->filename, GFP_KERNEL); in gcov_info_dup()
Dgcc_4_7.c271 dup->filename = kstrdup(info->filename, GFP_KERNEL); in gcov_info_dup()
/linux-4.4.14/drivers/mtd/devices/
Dphram.c184 name = kstrdup(token, GFP_KERNEL); in parse_name()
/linux-4.4.14/arch/arm/mach-omap2/
Dmux.c902 options = kstrdup(omap_mux_options, GFP_KERNEL); in omap_mux_set_cmdline_signals()
935 dst->muxnames[i] = kstrdup(src->muxnames[i], in omap_mux_copy_names()
945 dst->balls[i] = kstrdup(src->balls[i], GFP_KERNEL); in omap_mux_copy_names()
Dusb-host.c393 config->supply_name = kstrdup(name, GFP_KERNEL); in usbhs_add_regulator()
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-audio-upstream.c660 dev->_audiofilename = kstrdup(dev->input_audiofilename, in cx25821_audio_upstream_init()
663 dev->_audiofilename = kstrdup(_defaultAudioName, in cx25821_audio_upstream_init()
/linux-4.4.14/init/
Dinitramfs.c135 de->name = kstrdup(name, GFP_KERNEL); in dir_add()
348 vcollected = kstrdup(collected, GFP_KERNEL); in do_name()
/linux-4.4.14/net/netlabel/
Dnetlabel_kapi.c118 entry->domain = kstrdup(domain, GFP_ATOMIC); in netlbl_cfg_unlbl_map_add()
349 entry->domain = kstrdup(domain, GFP_ATOMIC); in netlbl_cfg_cipsov4_map_add()
/linux-4.4.14/net/sunrpc/
Daddr.c296 return kstrdup(addrbuf, gfp_flags); in rpc_sockaddr2uaddr()
Dxprtsock.c257 kstrdup(buf, GFP_KERNEL); in xs_format_common_peer_addresses()
262 kstrdup(buf, GFP_KERNEL); in xs_format_common_peer_addresses()
269 kstrdup(buf, GFP_KERNEL); in xs_format_common_peer_addresses()
277 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xs_format_common_peer_addresses()
286 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xs_format_common_peer_ports()
289 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xs_format_common_peer_ports()
Dsvcauth_unix.c70 new->h.name = kstrdup(name, GFP_KERNEL); in unix_domain_find()
Dxprt.c1377 xprt->servername = kstrdup(args->servername, GFP_KERNEL); in xprt_create_transport()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-clk.c234 clk->dev_id = kstrdup(dev_id, GFP_KERNEL); in v4l2_clk_register()
/linux-4.4.14/arch/um/kernel/
Dprocess.c240 return kstrdup(string, GFP_KERNEL); in uml_strdup()
/linux-4.4.14/drivers/isdn/mISDN/
Ddsp_pipeline.c250 dup = kstrdup(cfg, GFP_ATOMIC); in dsp_pipeline_build()
/linux-4.4.14/drivers/scsi/
Dscsi_dh.c437 handler_name = kstrdup(sdev->handler->name, gfp); in scsi_dh_attached_handler_name()
Dlibiscsi.c3183 new_val = kstrdup(new_val_buf, GFP_NOIO); in iscsi_switch_str_param()
/linux-4.4.14/drivers/staging/dgap/
Ddgap.c647 p->u.board.status = kstrdup("No", GFP_KERNEL); in dgap_parsefile()
673 p->u.board.addrstr = kstrdup(s, GFP_KERNEL); in dgap_parsefile()
692 p->u.board.pcibusstr = kstrdup(s, GFP_KERNEL); in dgap_parsefile()
704 p->u.board.pcislotstr = kstrdup(s, GFP_KERNEL); in dgap_parsefile()
723 p->u.board.method = kstrdup(s, GFP_KERNEL); in dgap_parsefile()
738 p->u.board.status = kstrdup(s, GFP_KERNEL); in dgap_parsefile()
788 p->u.board.status = kstrdup(s, GFP_KERNEL); in dgap_parsefile()
792 p->u.conc.id = kstrdup(s, GFP_KERNEL); in dgap_parsefile()
796 p->u.module.id = kstrdup(s, GFP_KERNEL); in dgap_parsefile()
860 p->u.ttyname = kstrdup(s, GFP_KERNEL); in dgap_parsefile()
[all …]
/linux-4.4.14/sound/hda/
Dhdac_device.c179 newname = kstrdup(name, GFP_KERNEL); in snd_hdac_device_set_chip_name()
687 codec->vendor_name = kstrdup(c->name, GFP_KERNEL); in get_codec_vendor_name()
/linux-4.4.14/drivers/gpio/
Dgpiolib-of.c289 gc->label = kstrdup(np->full_name, GFP_KERNEL); in of_mm_gpiochip_add()
/linux-4.4.14/drivers/base/power/
Dclock_ops.c88 ce->con_id = kstrdup(con_id, GFP_KERNEL); in __pm_clk_add()
/linux-4.4.14/drivers/pci/
Dslot.c146 new_name = kstrdup(name, GFP_KERNEL); in make_slot_name()
/linux-4.4.14/fs/cifs/
Dconnect.c1200 vol->prepath = kstrdup(pos, GFP_KERNEL); in cifs_parse_devname()
1647 vol->username = kstrdup(string, GFP_KERNEL); in cifs_parse_mount_options()
1749 vol->domainname = kstrdup(string, GFP_KERNEL); in cifs_parse_mount_options()
1781 vol->iocharset = kstrdup(string, in cifs_parse_mount_options()
2540 ses->user_name = kstrdup(volume_info->username, GFP_KERNEL); in cifs_get_smb_ses()
2547 ses->password = kstrdup(volume_info->password, GFP_KERNEL); in cifs_get_smb_ses()
2552 ses->domainName = kstrdup(volume_info->domainname, GFP_KERNEL); in cifs_get_smb_ses()
2667 tcon->password = kstrdup(volume_info->password, GFP_KERNEL); in cifs_get_tcon()
Dcifsencrypt.c356 ses->domainName = kstrdup(defdmname, GFP_KERNEL); in build_avpair_blob()
/linux-4.4.14/arch/arm/mach-mxs/
Dmach-mxs.c189 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_fec_mac_prop()
/linux-4.4.14/net/ipv4/
Dtcp_cong.c305 saved_clone = clone = kstrdup(val, GFP_USER); in tcp_set_allowed_congestion_control()
/linux-4.4.14/drivers/video/fbdev/via/
Dviafbdev.c1980 viafb_mode1 = kstrdup(this_opt + 12, GFP_KERNEL); in viafb_setup()
1982 viafb_mode = kstrdup(this_opt + 11, GFP_KERNEL); in viafb_setup()
2010 viafb_active_dev = kstrdup(this_opt + 17, GFP_KERNEL); in viafb_setup()
2036 viafb_lcd_port = kstrdup(this_opt + 15, GFP_KERNEL); in viafb_setup()
2038 viafb_dvi_port = kstrdup(this_opt + 15, GFP_KERNEL); in viafb_setup()
/linux-4.4.14/arch/xtensa/platforms/iss/
Dsimdisk.c158 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach()
/linux-4.4.14/drivers/soc/dove/
Dpmu.c373 domain->base.name = kstrdup(np->name, GFP_KERNEL); in dove_init_pmu()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dxattr_cache.c124 xattr->xe_name = kstrdup(xattr_name, GFP_NOFS); in ll_xattr_cache_add()
/linux-4.4.14/fs/ceph/
Dsuper.c358 fsopt->snapdir_name = kstrdup(CEPH_SNAPDIRNAME_DEFAULT, GFP_KERNEL); in parse_mount_options()
745 req->r_path1 = kstrdup(path, GFP_NOFS); in open_root_dentry()
Dxattr.c882 req->r_path2 = kstrdup(name, GFP_NOFS); in ceph_sync_setxattr()
1054 req->r_path2 = kstrdup(name, GFP_NOFS); in ceph_send_removexattr()
Ddir.c339 req->r_path2 = kstrdup(fi->last_name, GFP_KERNEL); in ceph_readdir()
777 req->r_path2 = kstrdup(dest, GFP_KERNEL); in ceph_symlink()
/linux-4.4.14/drivers/mtd/nand/
Dtxx9ndfmc.c355 txx9_priv->mtdname = kstrdup(dev_name(&dev->dev), in txx9ndfmc_probe()
/linux-4.4.14/fs/afs/
Dsuper.c361 char *new_opts = kstrdup(options, GFP_KERNEL); in afs_mount()
/linux-4.4.14/fs/overlayfs/
Dsuper.c839 char *tmp = kstrdup(name, GFP_KERNEL); in ovl_mount_dir()
984 lowertmp = kstrdup(ufs->config.lowerdir, GFP_KERNEL); in ovl_fill_super()
/linux-4.4.14/drivers/mfd/
Dipaq-micro.c237 return kstrdup(retstr, GFP_KERNEL); in ipaq_micro_str()
/linux-4.4.14/drivers/s390/scsi/
Dzfcp_aux.c96 str_saved = kstrdup(devstr, GFP_KERNEL); in zfcp_init_device_setup()
/linux-4.4.14/drivers/target/
Dtarget_core_user.c701 udev->name = kstrdup(name, GFP_KERNEL); in tcmu_alloc_device()
1007 opts = kstrdup(page, GFP_KERNEL); in tcmu_set_configfs_dev_params()
Dtarget_core_rd.c575 opts = kstrdup(page, GFP_KERNEL); in rd_set_configfs_dev_params()
Dtarget_core_file.c622 opts = kstrdup(page, GFP_KERNEL); in fd_set_configfs_dev_params()
Dtarget_core_iblock.c505 opts = kstrdup(page, GFP_KERNEL); in iblock_set_configfs_dev_params()
Dtarget_core_pscsi.c740 opts = kstrdup(page, GFP_KERNEL); in pscsi_set_configfs_dev_params()
Dtarget_core_configfs.c1506 opts = kstrdup(page, GFP_KERNEL); in target_pr_res_aptpl_metadata_store()
1990 map_entries = kstrdup(page, GFP_KERNEL); in target_dev_lba_map_store()
/linux-4.4.14/drivers/platform/x86/
Dalienware-wmi.c404 name = kstrdup(buffer, GFP_KERNEL); in alienware_zone_init()
Dthinkpad_acpi.c9053 tp->bios_version_str = kstrdup(s, GFP_KERNEL); in get_thinkpad_model_data()
9081 tp->ec_version_str = kstrdup(ec_fw_string, GFP_KERNEL); in get_thinkpad_model_data()
9103 tp->model_str = kstrdup(s, GFP_KERNEL); in get_thinkpad_model_data()
9109 tp->model_str = kstrdup(s, GFP_KERNEL); in get_thinkpad_model_data()
9116 tp->nummodel_str = kstrdup(s, GFP_KERNEL); in get_thinkpad_model_data()
Dasus-laptop.c1765 asus->name = kstrdup(string, GFP_KERNEL); in asus_laptop_get_info()
/linux-4.4.14/fs/debugfs/
Dinode.c497 char *link = kstrdup(target, GFP_KERNEL); in debugfs_create_symlink()
/linux-4.4.14/sound/soc/
Dsoc-topology.c872 se->dobj.control.dtexts[i] = kstrdup(ec->texts[i], GFP_KERNEL); in soc_tplg_denum_create_texts()
1396 template.name = kstrdup(w->name, GFP_KERNEL); in soc_tplg_dapm_widget_create()
1399 template.sname = kstrdup(w->sname, GFP_KERNEL); in soc_tplg_dapm_widget_create()
Dsoc-core.c2523 return kstrdup(name, GFP_KERNEL); in fmt_single_name()
2540 return kstrdup(dai_drv->name, GFP_KERNEL); in fmt_multiple_name()
/linux-4.4.14/fs/btrfs/
Dsuper.c396 options = kstrdup(options, GFP_NOFS); in btrfs_parse_options()
785 opts = kstrdup(options, GFP_KERNEL); in btrfs_parse_early_options()
1248 return kstrdup("subvolid=0", GFP_NOFS); in setup_root_args()
/linux-4.4.14/drivers/s390/char/
Dkeyboard.c73 kbd->func_table[i] = kstrdup(func_table[i], in kbd_alloc()
/linux-4.4.14/drivers/input/touchscreen/
Dusbtouchscreen.c932 firmware_ver = kstrdup(&buf[2], GFP_NOIO); in nexio_init()
936 device_name = kstrdup(&buf[2], GFP_NOIO); in nexio_init()
/linux-4.4.14/drivers/of/
Ddynamic.c378 new->name = kstrdup(prop->name, allocflags); in __of_prop_dup()
Dbase.c2064 kstrdup(of_stdout_options, GFP_KERNEL)); in of_console_check()
/linux-4.4.14/arch/arm/plat-orion/
Dgpio.c548 ochip->chip.label = kstrdup(gc_label, GFP_KERNEL); in orion_gpio_init()
/linux-4.4.14/fs/affs/
Dsuper.c530 new_opts = kstrdup(data, GFP_KERNEL); in affs_remount()
/linux-4.4.14/arch/powerpc/platforms/52xx/
Dmpc52xx_gpt.c339 gpt->gc.label = kstrdup(node->full_name, GFP_KERNEL); in mpc52xx_gpt_gpio_setup()
/linux-4.4.14/fs/reiserfs/
Dsuper.c1231 qf_names[qtype] = kstrdup(arg, GFP_KERNEL); in reiserfs_parse_options()
1394 char *new_opts = kstrdup(arg, GFP_KERNEL); in reiserfs_remount()
1900 sbi->s_jdev = kstrdup(jdev_name, GFP_KERNEL); in reiserfs_fill_super()
/linux-4.4.14/arch/um/drivers/
Dmconsole_kern.c726 notify_socket = kstrdup(notify_socket, GFP_KERNEL); in mconsole_init()
Dline.c394 char *new = kstrdup(init, GFP_KERNEL); in setup_one_line()
Dnet_kern.c689 str = kstrdup(str, GFP_KERNEL); in net_config()
Dubd_kern.c906 str = kstrdup(str, GFP_KERNEL); in ubd_config()
/linux-4.4.14/net/9p/
Dtrans_rdma.c186 tmp_options = kstrdup(params, GFP_KERNEL); in parse_opts()
Dtrans_fd.c742 tmp_options = kstrdup(params, GFP_KERNEL); in parse_opts()
Dclient.c137 tmp_options = kstrdup(opts, GFP_KERNEL); in parse_opts()
/linux-4.4.14/drivers/phy/
Dphy-qcom-ufs.c254 vreg->name = kstrdup(name, GFP_KERNEL); in __ufs_qcom_phy_init_vreg()
/linux-4.4.14/fs/nfsd/
Dexport.c417 fsloc->locations[i].hosts = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
426 fsloc->locations[i].path = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
/linux-4.4.14/lib/
Dkobject.c278 t = kstrdup(s, GFP_KERNEL); in kobject_set_name_vargs()
Ddynamic_debug.c1029 cmdline = kstrdup(saved_command_line, GFP_KERNEL); in dynamic_debug_init()
/linux-4.4.14/drivers/powercap/
Dpowercap_sys.c541 power_zone->name = kstrdup(name, GFP_KERNEL); in powercap_register_zone()
/linux-4.4.14/sound/pci/hda/
Dhda_sysfs.c584 (*codecp)->modelname = kstrdup(buf, GFP_KERNEL); in parse_model_mode()
Dhda_generic.c79 knew->name = kstrdup(name, GFP_KERNEL); in snd_hda_gen_add_kctl()
81 knew->name = kstrdup(knew->name, GFP_KERNEL); in snd_hda_gen_add_kctl()
Dhda_codec.c862 codec->modelname = kstrdup(codec->bus->modelname, GFP_KERNEL); in snd_hda_codec_new()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_cqm.c1361 str = kstrdup(scale, GFP_KERNEL); in intel_cqm_init()
/linux-4.4.14/drivers/acpi/
Dsysfs.c748 name = kstrdup(buffer, GFP_KERNEL); in acpi_irq_stats_init()
Dscan.c1254 pnp->unique_id = kstrdup(info->unique_id.string, in acpi_set_pnp_ids()
/linux-4.4.14/Documentation/DocBook/
Dkernel-api.xml.db168 API-kstrdup
169 API-kstrdup-const
Ddevice-drivers.xml.db276 API-devm-kstrdup
/linux-4.4.14/drivers/hwtracing/stm/
Dcore.c723 id = kstrdup(src->data->name, GFP_KERNEL); in stm_source_link_add()
/linux-4.4.14/security/apparmor/
Dpolicy.c138 policy->hname = kstrdup(name, GFP_KERNEL); in policy_init()
/linux-4.4.14/fs/
Dxattr.c879 new_xattr->name = kstrdup(name, GFP_KERNEL); in __simple_xattr_set()
Dnamespace.c1210 rcu_assign_pointer(sb->s_options, kstrdup(options, GFP_KERNEL)); in save_mount_options()
2315 mnt->mnt_sb->s_subtype = kstrdup(subtype, GFP_KERNEL); in fs_set_subtype()
Dexec.c1211 bprm->interp = kstrdup(interp, GFP_KERNEL); in bprm_change_interp()
/linux-4.4.14/net/sunrpc/auth_gss/
Dsvcauth_gss.c507 rsci.cred.cr_principal = kstrdup(buf, GFP_KERNEL); in rsc_parse()
785 new->h.name = kstrdup(name, GFP_KERNEL); in svcauth_gss_register_pseudoflavor()
Dauth_gss.c998 gss_auth->target_name = kstrdup(args->target_name, GFP_KERNEL); in gss_create_new()
/linux-4.4.14/drivers/pinctrl/sirf/
Dpinctrl-sirf.c810 sgpio->chip.gc.label = kstrdup(np->full_name, GFP_KERNEL); in sirfsoc_gpio_probe()
/linux-4.4.14/net/dsa/
Ddsa.c785 cd->port_names[port_index] = kstrdup(port_name, in dsa_of_probe()
/linux-4.4.14/drivers/mtd/
Dmtdpart.c361 name = kstrdup(part->name, GFP_KERNEL); in allocate_partition()
/linux-4.4.14/sound/soc/codecs/
Dsgtl5000.c867 ldo->desc.name = kstrdup(dev_name(codec->dev), GFP_KERNEL); in ldo_regulator_register()
/linux-4.4.14/security/smack/
Dsmack_lsm.c1048 *value = kstrdup(isp->smk_known, GFP_NOFS); in smack_inode_init_security()
3566 cp = kstrdup(skp->smk_known, GFP_KERNEL); in smack_getprocattr()
4366 copy = kstrdup(skp->smk_known, GFP_KERNEL); in smack_key_getsecurity()
/linux-4.4.14/drivers/usb/gadget/function/
Df_midi.c1140 midi->id = kstrdup(opts->id, GFP_KERNEL); in f_midi_alloc()
Df_fs.c1305 ffs->dev_name = kstrdup(dev_name, GFP_KERNEL); in ffs_fs_mount()
/linux-4.4.14/drivers/iio/
Dindustrialio-core.c629 full_postfix = kstrdup(postfix, GFP_KERNEL); in __iio_device_attr_init()
/linux-4.4.14/drivers/iommu/
Domap-iommu.c1259 arch_data->name = kstrdup(dev_name(&pdev->dev), GFP_KERNEL); in omap_iommu_add_device()
Diommu.c313 group->name = kstrdup(name, GFP_KERNEL); in iommu_group_set_name()
/linux-4.4.14/drivers/net/wimax/i2400m/
Dfw.c328 options_orig = kstrdup(_options, GFP_KERNEL); in i2400m_barker_db_init()
/linux-4.4.14/drivers/media/tuners/
Dtuner-xc2028.c1408 priv->ctrl.fname = kstrdup(p->fname, GFP_KERNEL); in xc2028_set_config()
/linux-4.4.14/drivers/pcmcia/
Dds.c471 new = kstrdup(tmp, GFP_KERNEL); in pcmcia_device_query()
/linux-4.4.14/fs/f2fs/
Dsuper.c1160 options = kstrdup((const char *)data, GFP_KERNEL); in f2fs_fill_super()
/linux-4.4.14/drivers/hwmon/
Dasus_atk0110.c916 sensor->acpi_name = kstrdup(name->string.pointer, GFP_KERNEL); in atk_add_sensor()
/linux-4.4.14/drivers/block/
Drbd.c1032 return kstrdup(snap_name, GFP_KERNEL); in _rbd_dev_v1_snap_name()
4555 pool_name = kstrdup(pool_name, GFP_KERNEL); in rbd_spec_fill_names()
5066 image_id = kstrdup("", GFP_KERNEL); in rbd_dev_image_id()
/linux-4.4.14/drivers/staging/android/ion/
Dion.c778 client->name = kstrdup(name, GFP_KERNEL); in ion_client_create()
/linux-4.4.14/sound/core/oss/
Dmixer_oss.c1219 tbl->name = kstrdup(str, GFP_KERNEL); in snd_mixer_oss_proc_write()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Dmac80211_if.c1475 t->name = kstrdup(name, GFP_ATOMIC); in brcms_init_timer()
/linux-4.4.14/drivers/char/ipmi/
Dipmi_ssif.c1727 addr_info->adapter_name = kstrdup(adapter_name, GFP_KERNEL); in new_ssif_client()
Dipmi_si_intf.c1805 char *str = kstrdup(val, GFP_KERNEL); in hotmod_handler()
/linux-4.4.14/fs/ext4/
Dsuper.c3104 char *orig_data = kstrdup(data, GFP_KERNEL); in ext4_fill_super()
4563 char *orig_data = kstrdup(data, GFP_KERNEL); in ext4_remount()
4578 old_opts.s_qf_names[i] = kstrdup(sbi->s_qf_names[i], in ext4_remount()
/linux-4.4.14/fs/ocfs2/dlm/
Ddlmdomain.c1977 dlm->name = kstrdup(domain, GFP_KERNEL); in dlm_alloc_ctxt()
/linux-4.4.14/drivers/video/fbdev/omap2/omapfb/
Domapfb-main.c2173 str = kstrdup(def_mode, GFP_KERNEL); in omapfb_parse_def_modes()
/linux-4.4.14/kernel/sched/
Dcore.c5433 entry->procname = kstrdup(buf, GFP_KERNEL); in sd_alloc_ctl_cpu_table()
5457 entry->procname = kstrdup(buf, GFP_KERNEL); in register_sched_domain_sysctl()
/linux-4.4.14/sound/pci/cs46xx/
Dcs46xx_lib.c421 module->module_name = kstrdup(fw_name, GFP_KERNEL); in load_firmware()

12