| /linux/drivers/firmware/google/ |
| H A D | gsmi.c | 93 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 …]
|
| /linux/tools/perf/util/ |
| H A D | bpf_lock_contention.c | 564 static char name_buf[KSYM_NAME_LEN]; in lock_contention_get_name() local 581 snprintf(name_buf, sizeof(name_buf), "%s", task.comm); in lock_contention_get_name() 582 return name_buf; in lock_contention_get_name() 616 snprintf(name_buf, sizeof(name_buf), "&%s", slab_data->name); in lock_contention_get_name() 617 return name_buf; in lock_contention_get_name() 630 snprintf(name_buf, sizeof(name_buf), "cgroup:%" PRIu64 "", cgrp_id); in lock_contention_get_name() 631 return name_buf; in lock_contention_get_name() 650 snprintf(name_buf, sizeof(name_buf), "%s+%#lx", sym->name, offset); in lock_contention_get_name() 652 snprintf(name_buf, sizeof(name_buf), "%#lx", (unsigned long)addr); in lock_contention_get_name() 655 return name_buf; in lock_contention_get_name()
|
| /linux/fs/btrfs/ |
| H A D | props.c | 156 char *name_buf = NULL; in iterate_object_props() local 212 kfree(name_buf); in iterate_object_props() 214 name_buf = kmalloc(name_buf_len, GFP_NOFS); in iterate_object_props() 215 if (!name_buf) { in iterate_object_props() 220 read_extent_buffer(leaf, name_buf, name_ptr, name_len); in iterate_object_props() 221 name_buf[name_len] = '\0'; in iterate_object_props() 223 handler = find_prop_handler(name_buf, handlers); in iterate_object_props() 251 kfree(name_buf); in iterate_object_props()
|
| /linux/kernel/cgroup/ |
| H A D | debug.c | 89 char *name_buf; in current_css_set_cg_links_read() local 91 name_buf = kmalloc(NAME_MAX + 1, GFP_KERNEL); in current_css_set_cg_links_read() 92 if (!name_buf) in current_css_set_cg_links_read() 100 cgroup_name(c, name_buf, NAME_MAX + 1); in current_css_set_cg_links_read() 102 c->root->hierarchy_id, name_buf); in current_css_set_cg_links_read() 105 kfree(name_buf); in current_css_set_cg_links_read()
|
| /linux/kernel/liveupdate/ |
| H A D | luo_session.c | 369 char name_buf[128]; in luo_session_getfile() local 373 snprintf(name_buf, sizeof(name_buf), "[luo_session] %s", session->name); in luo_session_getfile() 374 file = anon_inode_getfile(name_buf, &luo_session_fops, session, O_RDWR); in luo_session_getfile()
|
| /linux/init/ |
| H A D | initramfs.c | 257 static __initdata char *header_buf, *symlink_buf, *name_buf; variable 308 read_into(name_buf, N_ALIGN(name_len), GotName); in do_header() 527 name_buf = bufs->name; in unpack_to_rootfs()
|
| /linux/drivers/extcon/ |
| H A D | extcon.c | 431 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()
|
| /linux/fs/proc/ |
| H A D | task_mmu.c | 660 char build_id_buf[BUILD_ID_SIZE_MAX], *name_buf = NULL; in do_procmap_query() local 754 name_buf = kmalloc(name_buf_sz, GFP_KERNEL); in do_procmap_query() 755 if (!name_buf) { in do_procmap_query() 761 name = d_path(path, name_buf, name_buf_sz); in do_procmap_query() 766 name_sz = name_buf + name_buf_sz - name; in do_procmap_query() 768 name_sz = 1 + snprintf(name_buf, name_buf_sz, name_fmt ?: "%s", name); in do_procmap_query() 769 name = name_buf; in do_procmap_query() 784 kfree(name_buf); in do_procmap_query() 787 kfree(name_buf); in do_procmap_query() 801 kfree(name_buf); in do_procmap_query()
|
| /linux/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 7010 char name_buf[16]; in probe_intel_uncore_frequency_cluster() local 7027 sprintf(name_buf, "UMHz%d.%d", domain_id, cluster_id); in probe_intel_uncore_frequency_cluster() 7041 add_counter(0, path, name_buf, 0, SCOPE_PACKAGE, COUNTER_K2M, FORMAT_AVERAGE, 0, package_id); in probe_intel_uncore_frequency_cluster() 7188 char name_buf[16]; in dump_sysfs_cstate_config() local 7209 if (!fgets(name_buf, sizeof(name_buf), input)) in dump_sysfs_cstate_config() 7213 sp = strchr(name_buf, '-'); in dump_sysfs_cstate_config() 7215 sp = strchrnul(name_buf, '\n'); in dump_sysfs_cstate_config() 7219 remove_underbar(name_buf); in dump_sysfs_cstate_config() 7228 fprintf(outf, "cpu%d: %s: %s", base_cpu, name_buf, desc); in dump_sysfs_cstate_config() 10858 char name_buf[16]; in probe_cpuidle_residency() local [all …]
|