Home
last modified time | relevance | path

Searched refs:snprintf (Results 76 - 100 of 5709) sorted by relevance

12345678910>>...229

/kernel/linux/linux-6.6/tools/thermal/tmon/
H A Dsysfs.c39 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_set_ulong()
63 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_get_ulong()
82 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_get_string()
131 snprintf(filename, sizeof(filename), "trip_point_%d_type", tpid); in get_trip_point_data()
217 snprintf(cdev_name, sizeof(cdev_name) - 2, "%s/%s", in find_tzone_cdev()
231 snprintf(cdev_trip_name, sizeof(cdev_trip_name) - 1, in find_tzone_cdev()
292 snprintf(tz_name, 256, "%s/%s%d", THERMAL_SYSFS, TZONE, i); in scan_tzones()
351 snprintf(cdev_name, 256, "%s/%s%d", THERMAL_SYSFS, CDEV, i); in scan_cdevs()
501 snprintf(tz_name, 256, "%s/%s%d", THERMAL_SYSFS, TZONE, in update_thermal_data()
514 snprintf(cdev_nam in update_thermal_data()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c90 snprintf(device_path, sizeof(device_path), "%s/binder-control", binderfs_mntpt); in __do_binderfs_test()
113 snprintf(device_path, sizeof(device_path), "%s/my-binder", binderfs_mntpt); in __do_binderfs_test()
144 snprintf(device_path, sizeof(device_path), "%s/binder-control", binderfs_mntpt); in __do_binderfs_test()
159 snprintf(device_path, sizeof(device_path), "%s/features/%s", in __do_binderfs_test()
256 snprintf(path, sizeof(path), "/proc/%d/setgroups", pid); in write_id_mapping()
271 ret = snprintf(path, sizeof(path), "/proc/%d/uid_map", pid); in write_id_mapping()
274 ret = snprintf(path, sizeof(path), "/proc/%d/gid_map", pid); in write_id_mapping()
337 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getuid()); in change_idmaps()
343 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getgid()); in change_idmaps()
422 snprintf(device_pat in TEST()
[all...]
/kernel/linux/linux-5.10/tools/usb/usbip/src/
H A Dutils.c23 snprintf(match_busid_attr_path, sizeof(match_busid_attr_path), in modify_match_busid()
29 cmd_size = snprintf(command, SYSFS_BUS_ID_SIZE + 4, "add %s", in modify_match_busid()
32 cmd_size = snprintf(command, SYSFS_BUS_ID_SIZE + 4, "del %s", in modify_match_busid()
/kernel/linux/linux-6.6/tools/usb/usbip/src/
H A Dutils.c23 snprintf(match_busid_attr_path, sizeof(match_busid_attr_path), in modify_match_busid()
29 cmd_size = snprintf(command, SYSFS_BUS_ID_SIZE + 4, "add %s", in modify_match_busid()
32 cmd_size = snprintf(command, SYSFS_BUS_ID_SIZE + 4, "del %s", in modify_match_busid()
/kernel/linux/linux-5.10/drivers/s390/block/
H A Ddasd_devmap.c726 return snprintf(buf, PAGE_SIZE, ff_flag ? "1\n" : "0\n"); in dasd_ff_show()
768 return snprintf(buf, PAGE_SIZE, ro_flag ? "1\n" : "0\n"); in dasd_ro_show()
829 return snprintf(buf, PAGE_SIZE, erplog ? "1\n" : "0\n"); in dasd_erplog_show()
1028 len = snprintf(buf, PAGE_SIZE, "%s\n", in dasd_discipline_show()
1034 len = snprintf(buf, PAGE_SIZE, "none\n"); in dasd_discipline_show()
1051 len = snprintf(buf, PAGE_SIZE, "new\n"); in dasd_device_status_show()
1054 len = snprintf(buf, PAGE_SIZE, "detected\n"); in dasd_device_status_show()
1057 len = snprintf(buf, PAGE_SIZE, "basic\n"); in dasd_device_status_show()
1060 len = snprintf(buf, PAGE_SIZE, "unformatted\n"); in dasd_device_status_show()
1063 len = snprintf(bu in dasd_device_status_show()
[all...]
/kernel/linux/linux-6.6/mm/
H A Dhugetlb_cgroup.c677 snprintf(buf, size, "%luGB", hsize / SZ_1G); in mem_fmt()
679 snprintf(buf, size, "%luMB", hsize / SZ_1M); in mem_fmt()
681 snprintf(buf, size, "%luKB", hsize / SZ_1K); in mem_fmt()
725 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.max", buf); in __hugetlb_cgroup_file_dfl_init()
733 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.rsvd.max", buf); in __hugetlb_cgroup_file_dfl_init()
741 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.current", buf); in __hugetlb_cgroup_file_dfl_init()
748 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.rsvd.current", buf); in __hugetlb_cgroup_file_dfl_init()
755 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.events", buf); in __hugetlb_cgroup_file_dfl_init()
763 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.events.local", buf); in __hugetlb_cgroup_file_dfl_init()
772 snprintf(cf in __hugetlb_cgroup_file_dfl_init()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/fnic/
H A Dfnic_attrs.c29 return snprintf(buf, PAGE_SIZE, "%s\n", fnic_state_str[fnic->state]); in fnic_show_state()
35 return snprintf(buf, PAGE_SIZE, "%s\n", DRV_VERSION); in fnic_show_drv_version()
43 return snprintf(buf, PAGE_SIZE, "%s\n", (lp->link_up) in fnic_show_link_state()
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
H A Dpm8001_ctl.c63 return snprintf(buf, PAGE_SIZE, "%d\n", in pm8001_ctl_mpi_interface_rev_show()
66 return snprintf(buf, PAGE_SIZE, "%d\n", in pm8001_ctl_mpi_interface_rev_show()
88 return snprintf(buf, PAGE_SIZE, "%d\n", in controller_fatal_error_show()
109 return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n", in pm8001_ctl_fw_version_show()
115 return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n", in pm8001_ctl_fw_version_show()
140 return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n", in pm8001_ctl_ila_version_show()
166 return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n", in pm8001_ctl_inactive_fw_version_show()
193 return snprintf(buf, PAGE_SIZE, "%d\n", in pm8001_ctl_max_out_io_show()
196 return snprintf(buf, PAGE_SIZE, "%d\n", in pm8001_ctl_max_out_io_show()
217 return snprintf(bu in pm8001_ctl_max_devices_show()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/pll/
H A Ddsi_pll_10nm.c684 snprintf(vco_name, 32, "dsi%dvco_clk", pll_10nm->id); in pll_10nm_register()
691 snprintf(clk_name, 32, "dsi%d_pll_out_div_clk", pll_10nm->id); in pll_10nm_register()
692 snprintf(parent, 32, "dsi%dvco_clk", pll_10nm->id); in pll_10nm_register()
706 snprintf(clk_name, 32, "dsi%d_pll_bit_clk", pll_10nm->id); in pll_10nm_register()
707 snprintf(parent, 32, "dsi%d_pll_out_div_clk", pll_10nm->id); in pll_10nm_register()
723 snprintf(clk_name, 32, "dsi%d_phy_pll_out_byteclk", pll_10nm->id); in pll_10nm_register()
724 snprintf(parent, 32, "dsi%d_pll_bit_clk", pll_10nm->id); in pll_10nm_register()
737 snprintf(clk_name, 32, "dsi%d_pll_by_2_bit_clk", pll_10nm->id); in pll_10nm_register()
738 snprintf(parent, 32, "dsi%d_pll_bit_clk", pll_10nm->id); in pll_10nm_register()
749 snprintf(clk_nam in pll_10nm_register()
[all...]
H A Ddsi_pll_7nm.c710 snprintf(vco_name, 32, "dsi%dvco_clk", pll_7nm->id); in pll_7nm_register()
717 snprintf(clk_name, 32, "dsi%d_pll_out_div_clk", pll_7nm->id); in pll_7nm_register()
718 snprintf(parent, 32, "dsi%dvco_clk", pll_7nm->id); in pll_7nm_register()
732 snprintf(clk_name, 32, "dsi%d_pll_bit_clk", pll_7nm->id); in pll_7nm_register()
733 snprintf(parent, 32, "dsi%d_pll_out_div_clk", pll_7nm->id); in pll_7nm_register()
749 snprintf(clk_name, 32, "dsi%d_phy_pll_out_byteclk", pll_7nm->id); in pll_7nm_register()
750 snprintf(parent, 32, "dsi%d_pll_bit_clk", pll_7nm->id); in pll_7nm_register()
763 snprintf(clk_name, 32, "dsi%d_pll_by_2_bit_clk", pll_7nm->id); in pll_7nm_register()
764 snprintf(parent, 32, "dsi%d_pll_bit_clk", pll_7nm->id); in pll_7nm_register()
775 snprintf(clk_nam in pll_7nm_register()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c86 snprintf(device_path, sizeof(device_path), "%s/binder-control", binderfs_mntpt); in __do_binderfs_test()
109 snprintf(device_path, sizeof(device_path), "%s/my-binder", binderfs_mntpt); in __do_binderfs_test()
140 snprintf(device_path, sizeof(device_path), "%s/binder-control", binderfs_mntpt); in __do_binderfs_test()
238 snprintf(path, sizeof(path), "/proc/%d/setgroups", pid); in write_id_mapping()
253 ret = snprintf(path, sizeof(path), "/proc/%d/uid_map", pid); in write_id_mapping()
256 ret = snprintf(path, sizeof(path), "/proc/%d/gid_map", pid); in write_id_mapping()
319 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getuid()); in change_idmaps()
325 snprintf(id_map, sizeof(id_map), "0 %d 1\n", getgid()); in change_idmaps()
403 snprintf(device_path, sizeof(device_path), in TEST()
412 snprintf(devic in TEST()
[all...]
/kernel/linux/linux-5.10/security/tomoyo/
H A Daudit.c38 len = snprintf(buffer, tomoyo_buffer_len - 1, "argv[]={ "); in tomoyo_print_bprm()
106 snprintf(buffer, tomoyo_buffer_len - 1, in tomoyo_print_bprm()
165 pos = snprintf(buffer, tomoyo_buffer_len - 1, in tomoyo_print_header()
196 pos += snprintf(buffer + pos, in tomoyo_print_header()
206 pos += snprintf(buffer + pos, tomoyo_buffer_len - 1 - pos, in tomoyo_print_header()
216 pos += snprintf(buffer + pos, in tomoyo_print_header()
221 pos += snprintf(buffer + pos, tomoyo_buffer_len - 1 - pos, in tomoyo_print_header()
279 pos = snprintf(buf, len, "%s", header); in tomoyo_init_log()
283 pos += snprintf(buf + pos, len - pos, in tomoyo_init_log()
287 pos += snprintf(bu in tomoyo_init_log()
[all...]
/kernel/linux/linux-6.6/security/tomoyo/
H A Daudit.c38 len = snprintf(buffer, tomoyo_buffer_len - 1, "argv[]={ "); in tomoyo_print_bprm()
106 snprintf(buffer, tomoyo_buffer_len - 1, in tomoyo_print_bprm()
165 pos = snprintf(buffer, tomoyo_buffer_len - 1, in tomoyo_print_header()
196 pos += snprintf(buffer + pos, in tomoyo_print_header()
206 pos += snprintf(buffer + pos, tomoyo_buffer_len - 1 - pos, in tomoyo_print_header()
216 pos += snprintf(buffer + pos, in tomoyo_print_header()
221 pos += snprintf(buffer + pos, tomoyo_buffer_len - 1 - pos, in tomoyo_print_header()
279 pos = snprintf(buf, len, "%s", header); in tomoyo_init_log()
283 pos += snprintf(buf + pos, len - pos, in tomoyo_init_log()
287 pos += snprintf(bu in tomoyo_init_log()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_dump.c56 snprintf(test_file, sizeof(test_file), "%s.o", t->file); in test_btf_dump_case()
78 snprintf(out_file, sizeof(out_file), "/tmp/%s.output.XXXXXX", t->file); in test_btf_dump_case()
99 snprintf(test_file, sizeof(test_file), "progs/%s.c", t->file); in test_btf_dump_case()
105 snprintf(test_file, sizeof(test_file), "%s.c", t->file); in test_btf_dump_case()
113 snprintf(diff_cmd, sizeof(diff_cmd), in test_btf_dump_case()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/
H A Dsysfs.c78 count = snprintf(buf, PAGE_SIZE, "0 (No Interference" in b43legacy_attr_interfmode_show()
82 count = snprintf(buf, PAGE_SIZE, "1 (Non-WLAN Interference" in b43legacy_attr_interfmode_show()
86 count = snprintf(buf, PAGE_SIZE, "2 (WLAN Interference" in b43legacy_attr_interfmode_show()
158 count = snprintf(buf, PAGE_SIZE, "1 (Short Preamble" in b43legacy_attr_preamble_show()
161 count = snprintf(buf, PAGE_SIZE, "0 (Short Preamble" in b43legacy_attr_preamble_show()
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/
H A Dnfp_port.c118 n = snprintf(name, len, "p%d", eth_port->label_port); in nfp_port_get_phys_port_name()
120 n = snprintf(name, len, "p%ds%d", eth_port->label_port, in nfp_port_get_phys_port_name()
125 n = snprintf(name, len, "pf%d", port->pf_id); in nfp_port_get_phys_port_name()
127 n = snprintf(name, len, "pf%ds%d", port->pf_id, in nfp_port_get_phys_port_name()
131 n = snprintf(name, len, "pf%dvf%d", port->pf_id, port->vf_id); in nfp_port_get_phys_port_name()
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43legacy/
H A Dsysfs.c78 count = snprintf(buf, PAGE_SIZE, "0 (No Interference" in b43legacy_attr_interfmode_show()
82 count = snprintf(buf, PAGE_SIZE, "1 (Non-WLAN Interference" in b43legacy_attr_interfmode_show()
86 count = snprintf(buf, PAGE_SIZE, "2 (WLAN Interference" in b43legacy_attr_interfmode_show()
158 count = snprintf(buf, PAGE_SIZE, "1 (Short Preamble" in b43legacy_attr_preamble_show()
161 count = snprintf(buf, PAGE_SIZE, "0 (Short Preamble" in b43legacy_attr_preamble_show()
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/
H A Dinspur-ipsps.c73 return snprintf(buf, PAGE_SIZE, "%s\n", data); in ipsps_string_show()
94 return snprintf(buf, PAGE_SIZE, "%u.%02u%u-%u.%02u\n", in ipsps_fw_version_show()
114 return snprintf(buf, PAGE_SIZE, "[%s] %s %s\n", in ipsps_mode_show()
118 return snprintf(buf, PAGE_SIZE, "%s [%s] %s\n", in ipsps_mode_show()
122 return snprintf(buf, PAGE_SIZE, "%s %s [%s]\n", in ipsps_mode_show()
126 return snprintf(buf, PAGE_SIZE, "unspecified\n"); in ipsps_mode_show()
/kernel/linux/linux-5.10/drivers/staging/greybus/
H A Daudio_manager_module.c171 snprintf(name_string, 128, "NAME=%s", module->desc.name); in send_add_uevent()
172 snprintf(vid_string, 64, "VID=%d", module->desc.vid); in send_add_uevent()
173 snprintf(pid_string, 64, "PID=%d", module->desc.pid); in send_add_uevent()
174 snprintf(intf_id_string, 64, "INTF_ID=%d", module->desc.intf_id); in send_add_uevent()
175 snprintf(ip_devices_string, 64, "I/P DEVICES=0x%X", in send_add_uevent()
177 snprintf(op_devices_string, 64, "O/P DEVICES=0x%X", in send_add_uevent()
/kernel/linux/linux-6.6/drivers/staging/greybus/
H A Daudio_manager_module.c172 snprintf(name_string, 128, "NAME=%s", module->desc.name); in send_add_uevent()
173 snprintf(vid_string, 64, "VID=%d", module->desc.vid); in send_add_uevent()
174 snprintf(pid_string, 64, "PID=%d", module->desc.pid); in send_add_uevent()
175 snprintf(intf_id_string, 64, "INTF_ID=%d", module->desc.intf_id); in send_add_uevent()
176 snprintf(ip_devices_string, 64, "I/P DEVICES=0x%X", in send_add_uevent()
178 snprintf(op_devices_string, 64, "O/P DEVICES=0x%X", in send_add_uevent()
/kernel/linux/linux-5.10/drivers/s390/cio/
H A Dqdio_debug.h31 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
43 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
56 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
/kernel/linux/linux-6.6/drivers/scsi/fnic/
H A Dfnic_attrs.c17 return snprintf(buf, PAGE_SIZE, "%s\n", fnic_state_str[fnic->state]); in fnic_show_state()
23 return snprintf(buf, PAGE_SIZE, "%s\n", DRV_VERSION); in fnic_show_drv_version()
31 return snprintf(buf, PAGE_SIZE, "%s\n", (lp->link_up) in fnic_show_link_state()
/kernel/linux/linux-6.6/drivers/s390/cio/
H A Dqdio_debug.h31 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
43 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
56 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
/kernel/linux/linux-5.10/drivers/input/tablet/
H A Daiptek.c1039 return snprintf(buf, PAGE_SIZE, "%dx%d\n", in show_tabletSize()
1067 return snprintf(buf, PAGE_SIZE, "%s\n", in show_tabletPointerMode()
1104 return snprintf(buf, PAGE_SIZE, "%s\n", in show_tabletCoordinateMode()
1146 return snprintf(buf, PAGE_SIZE, "%s\n", in show_tabletToolMode()
1177 return snprintf(buf, PAGE_SIZE, "disable\n"); in show_tabletXtilt()
1179 return snprintf(buf, PAGE_SIZE, "%d\n", in show_tabletXtilt()
1219 return snprintf(buf, PAGE_SIZE, "disable\n"); in show_tabletYtilt()
1221 return snprintf(buf, PAGE_SIZE, "%d\n", in show_tabletYtilt()
1260 return snprintf(buf, PAGE_SIZE, "%d\n", aiptek->curSetting.jitterDelay); in show_tabletJitterDelay()
1289 return snprintf(bu in show_tabletProgrammableDelay()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dcgroup_util.c63 snprintf(ret, len, "%s/%s", root, name); in cg_name()
73 snprintf(ret, len, "%s/%s_%d", root, name, index); in cg_name_indexed()
83 snprintf(ret, len, "%s/%s", cgroup, control); in cg_control()
92 snprintf(path, sizeof(path), "%s/%s", cgroup, control); in cg_read()
183 snprintf(path, sizeof(path), "%s/%s", cgroup, control); in cg_write()
296 snprintf(pidbuf, sizeof(pidbuf), "%d", pid); in cg_enter()
322 snprintf(buf, sizeof(buf), "%d", getpid()); in cg_run()
445 snprintf(buf, sizeof(buf), "%d", getpid()); in cg_run_nowait()
537 snprintf(path, sizeof(path), "/proc/%s/%s", in proc_read_text()
540 snprintf(pat in proc_read_text()
[all...]

Completed in 18 milliseconds

12345678910>>...229