Home
last modified time | relevance | path

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

/openbmc/linux/drivers/firmware/google/
H A Dgsmi.c93 struct gsmi_buf *name_buf; /* variable name buffer */ member
316 .name_ptr = gsmi_dev.name_buf->address, in gsmi_get_variable()
334 memset(gsmi_dev.name_buf->start, 0, gsmi_dev.name_buf->length); in gsmi_get_variable()
335 memcpy(gsmi_dev.name_buf->start, name, name_len * 2); in gsmi_get_variable()
380 .name_ptr = gsmi_dev.name_buf->address, in gsmi_get_next_variable()
381 .name_len = gsmi_dev.name_buf->length, in gsmi_get_next_variable()
401 memcpy(gsmi_dev.name_buf->start, name, *name_size); in gsmi_get_next_variable()
419 memcpy(name, gsmi_dev.name_buf->start, GSMI_BUF_SIZE); in gsmi_get_next_variable()
439 .name_ptr = gsmi_dev.name_buf->address, in gsmi_set_variable()
460 memset(gsmi_dev.name_buf->start, 0, gsmi_dev.name_buf->length); in gsmi_set_variable()
[all …]
/openbmc/linux/fs/btrfs/
H A Dprops.c154 char *name_buf = NULL; in iterate_object_props() local
210 kfree(name_buf); in iterate_object_props()
212 name_buf = kmalloc(name_buf_len, GFP_NOFS); in iterate_object_props()
213 if (!name_buf) { in iterate_object_props()
218 read_extent_buffer(leaf, name_buf, name_ptr, name_len); in iterate_object_props()
219 name_buf[name_len] = '\0'; in iterate_object_props()
221 handler = find_prop_handler(name_buf, handlers); in iterate_object_props()
249 kfree(name_buf); in iterate_object_props()
/openbmc/linux/kernel/cgroup/
H A 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()
/openbmc/linux/tools/perf/util/
H A Dbpf_lock_contention.c179 static char name_buf[KSYM_NAME_LEN]; in lock_contention_get_name() local
241 snprintf(name_buf, sizeof(name_buf), "%s+%#lx", sym->name, offset); in lock_contention_get_name()
243 snprintf(name_buf, sizeof(name_buf), "%#lx", (unsigned long)addr); in lock_contention_get_name()
246 return name_buf; in lock_contention_get_name()
/openbmc/linux/init/
H A Dinitramfs.c253 static __initdata char *header_buf, *symlink_buf, *name_buf; variable
304 read_into(name_buf, N_ALIGN(name_len), GotName); in do_header()
507 name_buf = kmalloc(N_ALIGN(PATH_MAX), GFP_KERNEL); in unpack_to_rootfs()
509 if (!header_buf || !symlink_buf || !name_buf) in unpack_to_rootfs()
554 kfree(name_buf); in unpack_to_rootfs()
/openbmc/linux/tools/power/x86/turbostat/
H A Dturbostat.c4204 char name_buf[16]; in dump_sysfs_cstate_config() local
4225 if (!fgets(name_buf, sizeof(name_buf), input)) in dump_sysfs_cstate_config()
4229 sp = strchr(name_buf, '-'); in dump_sysfs_cstate_config()
4231 sp = strchrnul(name_buf, '\n'); in dump_sysfs_cstate_config()
4235 remove_underbar(name_buf); in dump_sysfs_cstate_config()
4244 fprintf(outf, "cpu%d: %s: %s", base_cpu, name_buf, desc); in dump_sysfs_cstate_config()
6450 char name_buf[16]; in probe_sysfs() local
6461 if (!fgets(name_buf, sizeof(name_buf), input)) in probe_sysfs()
6465 sp = strchr(name_buf, '-'); in probe_sysfs()
6467 sp = strchrnul(name_buf, '\n'); in probe_sysfs()
[all …]
/openbmc/linux/drivers/extcon/
H A Dextcon.c431 char name_buf[120]; in extcon_sync() local
481 snprintf(name_buf, sizeof(name_buf), "NAME=%s", prop_buf); in extcon_sync()
482 envp[env_offset++] = name_buf; in extcon_sync()