| /kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/ |
| H A D | sysfs.c | 57 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u", cpu); in sysfs_is_cpu_online() 66 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/online", cpu); in sysfs_is_cpu_online() 111 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_file_exists() 131 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_read_file() 166 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_write_file() 312 snprintf(value, SYSFS_PATH_MAX, "%u", disable); in sysfs_idlestate_disable() 361 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpuidle"); in sysfs_get_idlestate_count() 365 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpu%u/cpuidle/state0", cpu); in sysfs_get_idlestate_count() 370 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU in sysfs_get_idlestate_count() 389 snprintf(pat in sysfs_cpuidle_read_file() [all...] |
| /kernel/linux/linux-6.6/drivers/hwmon/ |
| H A D | scpi-hwmon.c | 188 snprintf(sensor->input, sizeof(sensor->input), in scpi_hwmon_probe() 190 snprintf(sensor->label, sizeof(sensor->input), in scpi_hwmon_probe() 195 snprintf(sensor->input, sizeof(sensor->input), in scpi_hwmon_probe() 197 snprintf(sensor->label, sizeof(sensor->input), in scpi_hwmon_probe() 202 snprintf(sensor->input, sizeof(sensor->input), in scpi_hwmon_probe() 204 snprintf(sensor->label, sizeof(sensor->input), in scpi_hwmon_probe() 209 snprintf(sensor->input, sizeof(sensor->input), in scpi_hwmon_probe() 211 snprintf(sensor->label, sizeof(sensor->input), in scpi_hwmon_probe() 216 snprintf(sensor->input, sizeof(sensor->input), in scpi_hwmon_probe() 218 snprintf(senso in scpi_hwmon_probe() [all...] |
| /kernel/linux/linux-6.6/tools/power/cpupower/utils/helpers/ |
| H A D | sysfs.c | 57 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u", cpu); in sysfs_is_cpu_online() 66 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/online", cpu); in sysfs_is_cpu_online() 111 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_file_exists() 131 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_read_file() 166 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_write_file() 312 snprintf(value, SYSFS_PATH_MAX, "%u", disable); in sysfs_idlestate_disable() 361 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpuidle"); in sysfs_get_idlestate_count() 365 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpu%u/cpuidle/state0", cpu); in sysfs_get_idlestate_count() 370 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU in sysfs_get_idlestate_count() 389 snprintf(pat in sysfs_cpuidle_read_file() [all...] |
| /third_party/cups-filters/backend/ |
| H A D | ieee1284.c | 136 snprintf(devparport, sizeof(devparport), "/dev/parport%s", in backendGetDeviceID() 449 snprintf(temp, sizeof(temp), "%s %s", mfg, mdl); in backendGetMakeModel() 637 snprintf(buffer, bufsize, "Xerox %s", make_and_model); in normalize_make_and_model() 645 snprintf(buffer, bufsize, "Kodak %s", make_and_model + 7); in normalize_make_and_model() 653 snprintf(buffer, bufsize, "Apple LaserWriter%s", make_and_model + 11); in normalize_make_and_model() 661 snprintf(buffer, bufsize, "Seiko %s", make_and_model); in normalize_make_and_model() 669 snprintf(buffer, bufsize, "EFI %s", make_and_model); in normalize_make_and_model() 678 snprintf(buffer, bufsize, "Canon %s", make_and_model); in normalize_make_and_model() 686 snprintf(buffer, bufsize, "Fargo %s", make_and_model); in normalize_make_and_model() 695 snprintf(buffe in normalize_make_and_model() [all...] |
| /third_party/ltp/testcases/kernel/fs/doio/ |
| H A D | write_log.c | 132 snprintf(Wlog_Error_String, sizeof(Wlog_Error_String), in wlog_open() 144 snprintf(Wlog_Error_String, sizeof(Wlog_Error_String), in wlog_open() 221 snprintf(Wlog_Error_String, sizeof(Wlog_Error_String), in wlog_record_write() 228 snprintf(Wlog_Error_String, sizeof(Wlog_Error_String), in wlog_record_write() 236 snprintf(Wlog_Error_String, sizeof(Wlog_Error_String), in wlog_record_write() 242 snprintf(Wlog_Error_String, sizeof(Wlog_Error_String), in wlog_record_write() 277 snprintf(Wlog_Error_String, sizeof(Wlog_Error_String), in wlog_scan_backward() 284 snprintf(Wlog_Error_String, sizeof(Wlog_Error_String), in wlog_scan_backward() 312 snprintf(Wlog_Error_String, sizeof(Wlog_Error_String), in wlog_scan_backward() 321 snprintf(Wlog_Error_Strin in wlog_scan_backward() [all...] |
| /kernel/linux/linux-5.10/drivers/scsi/snic/ |
| H A D | snic_attrs.c | 30 return snprintf(buf, PAGE_SIZE, "%s\n", snic->name); in snic_show_sym_name() 40 return snprintf(buf, PAGE_SIZE, "%s\n", in snic_show_state() 49 return snprintf(buf, PAGE_SIZE, "%s\n", SNIC_DRV_VERSION); in snic_show_drv_version() 62 return snprintf(buf, PAGE_SIZE, "%s\n", in snic_show_link_state()
|
| /third_party/ltp/testcases/kernel/uevents/ |
| H A D | uevent01.c | 58 snprintf(ev_msg, sizeof(ev_msg), in verify_uevent() 61 snprintf(ev_dev_path, sizeof(ev_dev_path), in verify_uevent() 64 snprintf(ev_dev_minor, sizeof(ev_dev_minor), "MINOR=%i", dev_num); in verify_uevent() 65 snprintf(ev_dev_name, sizeof(ev_dev_name), "DEVNAME=loop%i", dev_num); in verify_uevent()
|
| /third_party/vulkan-loader/loader/ |
| H A D | dlopen_fuchsia.c | 65 snprintf(g_error, sizeof(g_error), "libvulkan.so:dlopen_fuchsia: no connection to loader svc\n"); in dlopen_fuchsia() 72 snprintf(g_error, sizeof(g_error), "libvulkan.so:dlopen_fuchsia: Get() failed: %d\n", st); in dlopen_fuchsia() 77 snprintf(g_error, sizeof(g_error), "libvulkan.so:dlopen_fuchsia: Get() returned invalid vmo\n"); in dlopen_fuchsia() 84 snprintf(g_error, sizeof(g_error), "%s", dlerror()); in dlopen_fuchsia()
|
| /kernel/linux/linux-5.10/mm/ |
| H A D | hugetlb_cgroup.c | 581 snprintf(buf, size, "%luGB", hsize >> 30); in mem_fmt() 583 snprintf(buf, size, "%luMB", hsize >> 20); in mem_fmt() 585 snprintf(buf, size, "%luKB", hsize >> 10); in mem_fmt() 629 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.max", buf); in __hugetlb_cgroup_file_dfl_init() 637 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.rsvd.max", buf); in __hugetlb_cgroup_file_dfl_init() 645 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.current", buf); in __hugetlb_cgroup_file_dfl_init() 652 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.rsvd.current", buf); in __hugetlb_cgroup_file_dfl_init() 659 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.events", buf); in __hugetlb_cgroup_file_dfl_init() 667 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.events.local", buf); in __hugetlb_cgroup_file_dfl_init() 693 snprintf(cf in __hugetlb_cgroup_file_legacy_init() [all...] |
| /kernel/linux/linux-6.6/drivers/bluetooth/ |
| H A D | btqca.c | 466 snprintf(config->fwname, sizeof(config->fwname), in qca_download_firmware() 611 snprintf(config.fwname, sizeof(config.fwname), in qca_uart_setup() 615 snprintf(config.fwname, sizeof(config.fwname), in qca_uart_setup() 619 snprintf(config.fwname, sizeof(config.fwname), in qca_uart_setup() 627 snprintf(config.fwname, sizeof(config.fwname), in qca_uart_setup() 631 snprintf(config.fwname, sizeof(config.fwname), in qca_uart_setup() 635 snprintf(config.fwname, sizeof(config.fwname), in qca_uart_setup() 639 snprintf(config.fwname, sizeof(config.fwname), in qca_uart_setup() 655 snprintf(config.fwname, sizeof(config.fwname), in qca_uart_setup() 663 snprintf(confi in qca_uart_setup() [all...] |
| /third_party/cups-filters/filter/pdftopdf/ |
| H A D | pdftopdf_jcl.cc | 34 snprintf(buf,sizeof(buf),"%d",deviceCopies); in emitJCLOptions() 50 snprintf(buf,sizeof(buf),"pdftopdfJCL%s", in emitJCLOptions() 141 snprintf(buf,sizeof(buf),"%d",param.deviceCopies); in emitPreamble() 152 snprintf(ppd->jcl_ps, size, "@PJL SET QTY=%d\n%s", in emitPreamble() 155 snprintf(ppd->jcl_ps, size, "@PJL SET COPIES=%d\n%s", in emitPreamble() 190 snprintf(buf,sizeof(buf),"%d",param.deviceCopies); in emitComment()
|
| /third_party/toybox/toys/pending/ |
| H A D | lsof.c | 94 snprintf(toybuf, sizeof(toybuf), "/proc/%d/fdinfo/%s", fi->pi.pid, fi->fd); in fill_flags() 104 snprintf(fi->size_off, sizeof(fi->size_off), "0t%lld", pos); in fill_flags() 264 snprintf(fi->type, sizeof(fi->type), "%04o", sb.st_mode & S_IFMT); in fill_stat() 273 snprintf(fi->device, sizeof(fi->device), "%d,%d", in fill_stat() 278 snprintf(fi->size_off, sizeof(fi->size_off), "%lld", in fill_stat() 282 snprintf(fi->node, sizeof(fi->node), "%ld", (long)sb.st_ino); in fill_stat() 311 snprintf(fi->fd, sizeof(fi->fd), "%s", name); in visit_symlink() 312 snprintf(toybuf, sizeof(toybuf), "/proc/%d/%s", pi->pid, path); in visit_symlink() 314 snprintf(fi->fd, sizeof(fi->fd), "%s", path); in visit_symlink() 316 snprintf(toybu in visit_symlink() [all...] |
| /third_party/libinput/tools/ |
| H A D | shared.c | 270 snprintf(options->disable_pattern, in tools_parse_option() 279 snprintf(options->match, in tools_parse_option() 587 snprintf(path, path_len, "%s", devnode); in find_touchpad_device() 630 snprintf(new_path, in setup_path() 651 rc = snprintf(executable, in tools_exec_command() 694 printed = snprintf(buf, sz, "%s=", name); in sprintf_event_codes() 705 printed = snprintf(buf + off, sz - off, "%c%s;", enable ? '+' : '-', name); in sprintf_event_codes() 721 printed = snprintf(buf, sz, "%s=", name); in sprintf_input_props() 731 printed = snprintf(buf + off, sz - off, "%c%s;", enable ? '+' : '-', name); in sprintf_input_props() 760 snprintf(bu in tools_list_device_quirks() [all...] |
| /third_party/libcoap/man/ |
| H A D | examples-code-check.c | 155 snprintf(file_name, sizeof(file_name), "tmp/%s-header.c", file); in check_synopsis() 172 snprintf(buffer, sizeof(buffer), in check_synopsis() 294 snprintf(&outbuf[len], sizeof(outbuf)-len, "%*.*s%c", in decode_synopsis_definition() 297 snprintf(&outbuf[len], sizeof(outbuf)-len, "%*.*s U%c", in decode_synopsis_definition() 310 snprintf(&outbuf[len], sizeof(outbuf)-len, "%s", cp); in decode_synopsis_definition() 325 snprintf(&outbuf[len-3], sizeof(outbuf)-(len-3), in decode_synopsis_definition() 464 snprintf(man_name, sizeof(man_name), "%s", pdir_ent->d_name); in main() 482 snprintf(file_name, sizeof(file_name), "tmp/%s.h", in main() 496 snprintf(file_name, sizeof(file_name), "tmp/%s.h", in main() 627 snprintf(outbu in main() [all...] |
| /third_party/mesa3d/src/gallium/auxiliary/hud/ |
| H A D | hud_sensors_temp.c | 223 snprintf(gr->name, sizeof(gr->name), "%.6s..%s (%s)", in hud_sensors_temp_graph_install() 263 snprintf(sti->chipname, sizeof(sti->chipname), "%s", chipname); in create_object() 264 snprintf(sti->featurename, sizeof(sti->featurename), "%s", featurename); in create_object() 265 snprintf(sti->name, sizeof(sti->name), "%s.%s", sti->chipname, in create_object() 355 snprintf(line, sizeof(line), " sensors_temp_cu-%s", sti->name); in hud_get_num_sensors() 358 snprintf(line, sizeof(line), " sensors_temp_cr-%s", sti->name); in hud_get_num_sensors() 361 snprintf(line, sizeof(line), " sensors_volt_cu-%s", sti->name); in hud_get_num_sensors() 364 snprintf(line, sizeof(line), " sensors_curr_cu-%s", sti->name); in hud_get_num_sensors() 367 snprintf(line, sizeof(line), " sensors_pow_cu-%s", sti->name); in hud_get_num_sensors()
|
| /third_party/cups-filters/filter/foomatic-rip/ |
| H A D | pdf.c | 50 snprintf(gscommand, CMDLINE_MAX, "%s -dNODISPLAY -dNOSAFER -dNOPAUSE -q -c " in pdf_count_pages() 127 snprintf(filename, PATH_MAX, "%s/foomatic-XXXXXX", temp_dir()); in pdf_extract_pages() 132 snprintf(filename_arg, PATH_MAX, "-sOutputFile=%s", filename); in pdf_extract_pages() 138 snprintf(first_arg, 50, "-dFirstPage=%d", first); in pdf_extract_pages() 140 snprintf(last_arg, 50, "-dLastPage=%d", last); in pdf_extract_pages() 143 snprintf(gscommand, CMDLINE_MAX, "%s -q -dNOPAUSE -dBATCH -dSAFER -dNOINTERPOLATE -dNOMEDIAATTRS" in pdf_extract_pages() 303 snprintf(tmpfilename, PATH_MAX, "%s/foomatic-XXXXXX", temp_dir()); in print_pdf()
|
| /third_party/selinux/libsepol/src/ |
| H A D | util.c | 113 snprintf(p, sizeof(avbuf) - avlen, " %s", in sepol_av_to_string() 146 len = snprintf(p, sizeof(xpermsbuf) - xpermslen, "ioctl { "); in sepol_extended_perms_to_string() 168 len = snprintf(p, sizeof(xpermsbuf) - xpermslen, "0x%hx-0x%hx ", low_value, value); in sepol_extended_perms_to_string() 170 len = snprintf(p, sizeof(xpermsbuf) - xpermslen, "0x%hx ", value); in sepol_extended_perms_to_string() 176 len = snprintf(p, sizeof(xpermsbuf) - xpermslen, "0x%hx-0x%hx ", low_value, (uint16_t) (value|0xff)); in sepol_extended_perms_to_string() 178 len = snprintf(p, sizeof(xpermsbuf) - xpermslen, "0x%hx-0x%hx ", value, (uint16_t) (value|0xff)); in sepol_extended_perms_to_string() 192 len = snprintf(p, sizeof(xpermsbuf) - xpermslen, "}"); in sepol_extended_perms_to_string()
|
| /kernel/linux/linux-5.10/fs/hmdfs/comm/ |
| H A D | device_node.c | 204 size += snprintf(buf + size, PAGE_SIZE - size, "peers status\n"); in sbi_status_show() 208 size += snprintf(buf + size, PAGE_SIZE - size, "%s %d\n", in sbi_status_show() 211 size += snprintf( in sbi_status_show() 217 size += snprintf(buf + size, PAGE_SIZE - size, in sbi_status_show() 254 size += snprintf(buf + size, PAGE_SIZE - size, in sbi_stat_show() 256 size += snprintf(buf + size, PAGE_SIZE - size, in sbi_stat_show() 260 size += snprintf(buf + size, PAGE_SIZE - size, in sbi_stat_show() 301 return snprintf(buf, PAGE_SIZE, "%u\n", to_sbi(kobj)->dcache_precision); in sbi_dcache_precision_show() 332 return snprintf(buf, PAGE_SIZE, "%lu\n", in sbi_dcache_threshold_show() 365 ret = snprintf(bu in server_statistic_show() [all...] |
| /kernel/linux/linux-6.6/fs/hmdfs/comm/ |
| H A D | device_node.c | 204 size += snprintf(buf + size, PAGE_SIZE - size, "peers status\n"); in sbi_status_show() 208 size += snprintf(buf + size, PAGE_SIZE - size, "%s %d\n", in sbi_status_show() 211 size += snprintf( in sbi_status_show() 217 size += snprintf(buf + size, PAGE_SIZE - size, in sbi_status_show() 254 size += snprintf(buf + size, PAGE_SIZE - size, in sbi_stat_show() 256 size += snprintf(buf + size, PAGE_SIZE - size, in sbi_stat_show() 260 size += snprintf(buf + size, PAGE_SIZE - size, in sbi_stat_show() 301 return snprintf(buf, PAGE_SIZE, "%u\n", to_sbi(kobj)->dcache_precision); in sbi_dcache_precision_show() 332 return snprintf(buf, PAGE_SIZE, "%lu\n", in sbi_dcache_threshold_show() 365 ret = snprintf(bu in server_statistic_show() [all...] |
| /kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
| H A D | fd-003-kthread.c | 47 snprintf(buf, sizeof(buf), "/proc/%u", pid); in kernel_thread_fd() 138 snprintf(buf, sizeof(buf), "%d", i); in test_lookup() 142 snprintf(buf, sizeof(buf), "%d", i); in test_lookup() 146 snprintf(buf, sizeof(buf), "%u", u); in test_lookup() 150 snprintf(buf, sizeof(buf), "%u", u); in test_lookup()
|
| /kernel/linux/linux-5.10/drivers/w1/slaves/ |
| H A D | w1_ds2423.c | 65 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 74 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 97 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 100 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 106 c -= snprintf(out_buf + PAGE_SIZE - c, c, "Connection error"); in w1_slave_show()
|
| /kernel/linux/linux-6.6/drivers/w1/slaves/ |
| H A D | w1_ds2423.c | 65 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 74 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 97 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 100 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 106 c -= snprintf(out_buf + PAGE_SIZE - c, c, "Connection error"); in w1_slave_show()
|
| /kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
| H A D | fd-003-kthread.c | 47 snprintf(buf, sizeof(buf), "/proc/%u", pid); in kernel_thread_fd() 138 snprintf(buf, sizeof(buf), "%d", i); in test_lookup() 142 snprintf(buf, sizeof(buf), "%d", i); in test_lookup() 146 snprintf(buf, sizeof(buf), "%u", u); in test_lookup() 150 snprintf(buf, sizeof(buf), "%u", u); in test_lookup()
|
| /third_party/libsnd/src/ |
| H A D | test_log_printf.c | 33 snprintf (buffer, sizeof (buffer), (fmt)) ; \ 40 snprintf (buffer, sizeof (buffer), (fmt), (a), (a)) ; \ 47 snprintf (buffer, sizeof (buffer), (fmt), (a), (a), (a), (a)) ; \ 54 snprintf (buffer, sizeof (buffer), (fmt), (a), (a), (a), (a), (a)) ; \ 61 snprintf (buffer, sizeof (buffer), (fmt), (a), (a), (a), (a), (a), (a)) ; \
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_dsaf_rcb.c | 937 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_rcb_pkt_num", index); in hns_rcb_get_strings() 939 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_ppe_tx_pkt_num", index); in hns_rcb_get_strings() 941 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_ppe_drop_pkt_num", index); in hns_rcb_get_strings() 943 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_fbd_num", index); in hns_rcb_get_strings() 946 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_pkt_num", index); in hns_rcb_get_strings() 948 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_bytes", index); in hns_rcb_get_strings() 950 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_err_cnt", index); in hns_rcb_get_strings() 952 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_io_err", index); in hns_rcb_get_strings() 954 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_sw_err", index); in hns_rcb_get_strings() 956 snprintf(buf in hns_rcb_get_strings() [all...] |