Home
last modified time | relevance | path

Searched refs:kstrndup (Results 1 – 25 of 64) sorted by relevance

123

/linux/drivers/gpu/drm/nouveau/nvkm/nvfw/
H A Dls.c39 date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL); in nvfw_ls_desc_head()
123 date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL); in nvfw_ls_desc_v2()
/linux/drivers/md/
H A Ddm-init.c148 dev->target_args_array[n] = kstrndup(field[3], DM_MAX_STR_SIZE, in dm_parse_table_entry()
285 str = kstrndup(create, DM_MAX_STR_SIZE, GFP_KERNEL); in dm_init_init()
/linux/lib/
H A Dargv_split.c67 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); in argv_split()
H A Dtest_firmware.c216 *dst = kstrndup(name, count, gfp); in __kstrncpy()
673 name = kstrndup(buf, count, GFP_KERNEL); in trigger_request_store()
721 name = kstrndup(buf, count, GFP_KERNEL); in trigger_request_platform_store()
774 name = kstrndup(buf, count, GFP_KERNEL); in trigger_async_request_store()
819 name = kstrndup(buf, count, GFP_KERNEL); in trigger_custom_fallback_store()
1301 name = kstrndup(buf, count, GFP_KERNEL); in upload_register_store()
/linux/arch/powerpc/platforms/pseries/
H A Dof_helpers.c32 parent_path = kstrndup(path, tail - path, GFP_KERNEL); in pseries_of_derive_parent()
/linux/security/ipe/
H A Ddigest.c41 alg = kstrndup(valstr, sep - valstr, GFP_KERNEL); in ipe_digest_parse()
/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Doption.c84 if (optstr && (s = kstrndup(optstr, arglen, GFP_KERNEL))) { in nvkm_longopt()
/linux/drivers/cdrom/
H A Dgdrom.c663 model_name = kstrndup(id->modname, 16, GFP_KERNEL); in gdrom_outputversion()
666 manuf_name = kstrndup(id->mname, 16, GFP_KERNEL); in gdrom_outputversion()
669 firmw_ver = kstrndup(id->firmver, 16, GFP_KERNEL); in gdrom_outputversion()
/linux/security/smack/
H A Dsmack_access.c495 smack = kstrndup(string, i, GFP_NOFS); in smk_parse_smack()
655 char *smack = kstrndup(label, label_len, gfp); in smk_import_valid_label()
/linux/drivers/thunderbolt/
H A Deeprom.c335 sw->vendor_name = kstrndup(entry->data, in tb_drom_parse_entry_generic()
342 sw->device_name = kstrndup(entry->data, in tb_drom_parse_entry_generic()
/linux/fs/smb/server/mgmt/
H A Dshare_config.c168 share->path = kstrndup(ksmbd_share_config_path(resp), path_len, in share_config_request()
/linux/drivers/staging/greybus/
H A Dpower_supply.c489 gbpsy->manufacturer = kstrndup(resp.manufacturer, PROP_MAX, GFP_KERNEL); in gb_power_supply_description_get()
492 gbpsy->model_name = kstrndup(resp.model, PROP_MAX, GFP_KERNEL); in gb_power_supply_description_get()
495 gbpsy->serial_number = kstrndup(resp.serial_number, PROP_MAX, in gb_power_supply_description_get()
H A Dlight.c950 channel->color_name = kstrndup(conf.color_name, NAMES_MAX, GFP_KERNEL); in gb_lights_channel_config()
953 channel->mode_name = kstrndup(conf.mode_name, NAMES_MAX, GFP_KERNEL); in gb_lights_channel_config()
1012 light->name = kstrndup(conf.name, NAMES_MAX, GFP_KERNEL); in gb_lights_light_config()
/linux/kernel/power/
H A Dwakelock.c185 wl->name = kstrndup(name, len, GFP_KERNEL); in wakelock_lookup_add()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dshadow.c193 source = optarg ? kstrndup(optarg, optlen, GFP_KERNEL) : NULL; in nvbios_shadow()
/linux/drivers/firmware/google/
H A Dvpd.c114 info->key = kstrndup(key, key_len, GFP_KERNEL); in vpd_section_attrib_add()
/linux/drivers/vfio/mdev/
H A Dmdev_sysfs.c72 str = kstrndup(buf, count, GFP_KERNEL); in create_store()
/linux/drivers/nvdimm/
H A Dclaim.c129 name = kstrndup(buf, len, GFP_KERNEL); in nd_namespace_store()
/linux/lib/kunit/
H A Dexecutor.c101 parsed->suite_glob = kstrndup(filter_glob, period - filter_glob, GFP_KERNEL); in kunit_parse_glob_filter()
/linux/mm/
H A Dutil.c118 char *kstrndup(const char *s, size_t max, gfp_t gfp) in kstrndup() function
122 EXPORT_SYMBOL(kstrndup);
/linux/fs/smb/client/
H A Dcifs_unicode.c361 dst = kstrndup(src, maxlen, GFP_KERNEL); in cifs_strndup_from_utf16()
/linux/net/bridge/
H A Dbr_sysfs_if.c332 buf_copy = kstrndup(buf, count, GFP_KERNEL); in brport_store()
/linux/include/linux/
H A Dstring.h303 extern char *kstrndup(const char *s, size_t len, gfp_t gfp);
/linux/drivers/soc/ti/
H A Dknav_qmss_queue.c244 inst->name = kstrndup(name, KNAV_NAME_SIZE - 1, GFP_KERNEL); in __knav_queue_open()
799 pool->name = kstrndup(name, KNAV_NAME_SIZE - 1, GFP_KERNEL); in knav_pool_create()
1727 inst->irq_name = kstrndup(irq_name, sizeof(irq_name), GFP_KERNEL); in knav_queue_init_queue()
/linux/drivers/remoteproc/
H A Dqcom_common.c131 name = kstrndup(region.name, MAX_REGION_NAME_LENGTH - 1, GFP_KERNEL); in qcom_add_minidump_segments()

123