Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/firmware/google/
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 …]
/linux-6.12.1/fs/btrfs/
Dprops.c156 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-6.12.1/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-6.12.1/tools/perf/util/
Dbpf_lock_contention.c325 static char name_buf[KSYM_NAME_LEN]; in lock_contention_get_name() local
378 snprintf(name_buf, sizeof(name_buf), "cgroup:%" PRIu64 "", cgrp_id); in lock_contention_get_name()
379 return name_buf; in lock_contention_get_name()
398 snprintf(name_buf, sizeof(name_buf), "%s+%#lx", sym->name, offset); in lock_contention_get_name()
400 snprintf(name_buf, sizeof(name_buf), "%#lx", (unsigned long)addr); in lock_contention_get_name()
403 return name_buf; in lock_contention_get_name()
/linux-6.12.1/init/
Dinitramfs.c255 static __initdata char *header_buf, *symlink_buf, *name_buf; variable
306 read_into(name_buf, N_ALIGN(name_len), GotName); in do_header()
494 name_buf = kmalloc(N_ALIGN(PATH_MAX), GFP_KERNEL); in unpack_to_rootfs()
496 if (!header_buf || !symlink_buf || !name_buf) in unpack_to_rootfs()
541 kfree(name_buf); in unpack_to_rootfs()
/linux-6.12.1/fs/bcachefs/
Dtests.c806 char name_buf[20]; in bch2_btree_perf_test() local
874 scnprintf(name_buf, sizeof(name_buf), "%s:", testname); in bch2_btree_perf_test()
878 name_buf, nr_buf.buf, nr_threads, in bch2_btree_perf_test()
Dfsck.c373 char name_buf[20]; in reattach_inode() local
386 snprintf(name_buf, sizeof(name_buf), "subvol-%u", inode->bi_subvol); in reattach_inode()
388 snprintf(name_buf, sizeof(name_buf), "%llu", inode->bi_inum); in reattach_inode()
408 struct qstr name = (struct qstr) QSTR(name_buf); in reattach_inode()
/linux-6.12.1/fs/proc/
Dtask_mmu.c460 char build_id_buf[BUILD_ID_SIZE_MAX], *name_buf = NULL; in do_procmap_query() local
555 name_buf = kmalloc(name_buf_sz, GFP_KERNEL); in do_procmap_query()
556 if (!name_buf) { in do_procmap_query()
562 name = d_path(path, name_buf, name_buf_sz); in do_procmap_query()
567 name_sz = name_buf + name_buf_sz - name; in do_procmap_query()
569 name_sz = 1 + snprintf(name_buf, name_buf_sz, name_fmt ?: "%s", name); in do_procmap_query()
570 name = name_buf; in do_procmap_query()
585 kfree(name_buf); in do_procmap_query()
588 kfree(name_buf); in do_procmap_query()
602 kfree(name_buf); in do_procmap_query()
/linux-6.12.1/drivers/extcon/
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()
/linux-6.12.1/tools/power/x86/turbostat/
Dturbostat.c6391 char name_buf[16]; in probe_intel_uncore_frequency_cluster() local
6408 sprintf(name_buf, "UMHz%d.%d", domain_id, cluster_id); in probe_intel_uncore_frequency_cluster()
6410 add_counter(0, path, name_buf, 0, SCOPE_PACKAGE, COUNTER_K2M, FORMAT_AVERAGE, 0, package_id); in probe_intel_uncore_frequency_cluster()
6552 char name_buf[16]; in dump_sysfs_cstate_config() local
6573 if (!fgets(name_buf, sizeof(name_buf), input)) in dump_sysfs_cstate_config()
6577 sp = strchr(name_buf, '-'); in dump_sysfs_cstate_config()
6579 sp = strchrnul(name_buf, '\n'); in dump_sysfs_cstate_config()
6583 remove_underbar(name_buf); in dump_sysfs_cstate_config()
6592 fprintf(outf, "cpu%d: %s: %s", base_cpu, name_buf, desc); in dump_sysfs_cstate_config()
9644 char name_buf[16]; in probe_sysfs() local
[all …]
/linux-6.12.1/drivers/firmware/qcom/
Dqcom_scm.c1654 char *name_buf __free(qcom_tzmem) = qcom_tzmem_alloc(__scm->mempool, in qcom_scm_qseecom_app_get_id()
1657 if (!name_buf) in qcom_scm_qseecom_app_get_id()
1660 memcpy(name_buf, app_name, app_name_len); in qcom_scm_qseecom_app_get_id()
1666 desc.args[0] = qcom_tzmem_to_phys(name_buf); in qcom_scm_qseecom_app_get_id()