Home
last modified time | relevance | path

Searched refs:name_buf (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/drivers/firmware/google/
Dgsmi.c89 struct gsmi_buf *name_buf; /* variable name buffer */ member
298 .name_ptr = gsmi_dev.name_buf->address, in gsmi_get_variable()
316 memset(gsmi_dev.name_buf->start, 0, gsmi_dev.name_buf->length); in gsmi_get_variable()
317 memcpy(gsmi_dev.name_buf->start, name, name_len * 2); in gsmi_get_variable()
361 .name_ptr = gsmi_dev.name_buf->address, in gsmi_get_next_variable()
362 .name_len = gsmi_dev.name_buf->length, in gsmi_get_next_variable()
382 memcpy(gsmi_dev.name_buf->start, name, *name_size); in gsmi_get_next_variable()
400 memcpy(name, gsmi_dev.name_buf->start, GSMI_BUF_SIZE); in gsmi_get_next_variable()
420 .name_ptr = gsmi_dev.name_buf->address, in gsmi_set_variable()
441 memset(gsmi_dev.name_buf->start, 0, gsmi_dev.name_buf->length); in gsmi_set_variable()
[all …]
/Linux-v4.19/fs/btrfs/
Dprops.c155 char *name_buf = NULL; in iterate_object_props() local
211 kfree(name_buf); in iterate_object_props()
213 name_buf = kmalloc(name_buf_len, GFP_NOFS); in iterate_object_props()
214 if (!name_buf) { in iterate_object_props()
219 read_extent_buffer(leaf, name_buf, name_ptr, name_len); in iterate_object_props()
220 name_buf[name_len] = '\0'; in iterate_object_props()
222 handler = find_prop_handler(name_buf, handlers); in iterate_object_props()
250 kfree(name_buf); in iterate_object_props()
/Linux-v4.19/kernel/cgroup/
Ddebug.c91 char *name_buf; in current_css_set_cg_links_read() local
93 name_buf = kmalloc(NAME_MAX + 1, GFP_KERNEL); in current_css_set_cg_links_read()
94 if (!name_buf) in current_css_set_cg_links_read()
103 cgroup_name(c, name_buf, NAME_MAX + 1); in current_css_set_cg_links_read()
105 c->root->hierarchy_id, name_buf); in current_css_set_cg_links_read()
109 kfree(name_buf); in current_css_set_cg_links_read()
/Linux-v4.19/init/
Dinitramfs.c221 static __initdata char *header_buf, *symlink_buf, *name_buf; variable
269 read_into(name_buf, N_ALIGN(name_len), GotName); in do_header()
450 name_buf = kmalloc(N_ALIGN(PATH_MAX), GFP_KERNEL); in unpack_to_rootfs()
452 if (!header_buf || !symlink_buf || !name_buf) in unpack_to_rootfs()
497 kfree(name_buf); in unpack_to_rootfs()
/Linux-v4.19/tools/power/x86/turbostat/
Dturbostat.c3394 char name_buf[16]; in dump_sysfs_cstate_config() local
3410 fgets(name_buf, sizeof(name_buf), input); in dump_sysfs_cstate_config()
3413 sp = strchr(name_buf, '-'); in dump_sysfs_cstate_config()
3415 sp = strchrnul(name_buf, '\n'); in dump_sysfs_cstate_config()
3427 fprintf(outf, "cpu%d: %s: %s", base_cpu, name_buf, desc); in dump_sysfs_cstate_config()
5281 char name_buf[16]; in probe_sysfs() local
5296 fgets(name_buf, sizeof(name_buf), input); in probe_sysfs()
5299 sp = strchr(name_buf, '-'); in probe_sysfs()
5301 sp = strchrnul(name_buf, '\n'); in probe_sysfs()
5309 if (is_deferred_skip(name_buf)) in probe_sysfs()
[all …]
/Linux-v4.19/drivers/extcon/
Dextcon.c418 char name_buf[120]; in extcon_sync() local
468 snprintf(name_buf, sizeof(name_buf), "NAME=%s", prop_buf); in extcon_sync()
469 envp[env_offset++] = name_buf; in extcon_sync()
/Linux-v4.19/tools/perf/util/
Dbpf-loader.c718 char name_buf[EVENTS_WRITE_BUFSIZE]; in bpf__unprobe() local
721 snprintf(name_buf, EVENTS_WRITE_BUFSIZE, in bpf__unprobe()
723 name_buf[EVENTS_WRITE_BUFSIZE - 1] = '\0'; in bpf__unprobe()
725 delfilter = strfilter__new(name_buf, NULL); in bpf__unprobe()
735 pr_debug("Failed to delete %s\n", name_buf); in bpf__unprobe()
/Linux-v4.19/block/
Dgenhd.c902 char name_buf[BDEVNAME_SIZE]; in printk_all_partitions() local
925 , disk_name(disk, part->partno, name_buf), in printk_all_partitions()