Home
last modified time | relevance | path

Searched refs:sscanf (Results 1 – 25 of 462) sorted by relevance

12345678910>>...19

/linux/tools/power/cpupower/bench/
H A Dparse.c178 if (sscanf(line, "%14s = %30s", opt, val) < 2) in prepare_config()
184 sscanf(val, "%li", &config->sleep); in prepare_config()
187 sscanf(val, "%li", &config->load); in prepare_config()
190 sscanf(val, "%li", &config->load_step); in prepare_config()
193 sscanf(val, "%li", &config->sleep_step); in prepare_config()
196 sscanf(val, "%u", &config->cycles); in prepare_config()
199 sscanf(val, "%u", &config->rounds); in prepare_config()
202 sscanf(val, "%u", &config->verbose); in prepare_config()
208 sscanf(val, "%u", &config->cpu); in prepare_config()
H A Dmain.c93 sscanf(optarg, "%li", &config->sleep); in main()
97 sscanf(optarg, "%li", &config->load); in main()
101 sscanf(optarg, "%u", &config->cpu); in main()
122 sscanf(optarg, "%u", &config->cycles); in main()
126 sscanf(optarg, "%u", &config->rounds); in main()
130 sscanf(optarg, "%li", &config->load_step); in main()
134 sscanf(optarg, "%li", &config->sleep_step); in main()
/linux/drivers/char/
H A Dtlclk.c334 sscanf(buf, "%lX", &tmp); in store_received_ref_clk3a()
356 sscanf(buf, "%lX", &tmp); in store_received_ref_clk3b()
378 sscanf(buf, "%lX", &tmp); in store_enable_clk3b_output()
399 sscanf(buf, "%lX", &tmp); in store_enable_clk3a_output()
420 sscanf(buf, "%lX", &tmp); in store_enable_clkb1_output()
442 sscanf(buf, "%lX", &tmp); in store_enable_clka1_output()
463 sscanf(buf, "%lX", &tmp); in store_enable_clkb0_output()
484 sscanf(buf, "%lX", &tmp); in store_enable_clka0_output()
505 sscanf(buf, "%lX", &tmp); in store_select_amcb2_transmit_clock()
547 sscanf(buf, "%lX", &tmp); in store_select_amcb1_transmit_clock()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Ddebugfs-vif.c81 if (sscanf(buf + 11, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
85 if (sscanf(buf + 15, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
89 if (sscanf(buf + 18, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
93 if (sscanf(buf + 16, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
97 if (sscanf(buf + 16, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
101 if (sscanf(buf + 5, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
105 if (sscanf(buf + 20, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
112 if (sscanf(buf + 14, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
116 if (sscanf(buf + 18, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
120 if (sscanf(buf + 12, "%d", &val) != 1) in iwl_dbgfs_pm_params_write()
[all …]
/linux/tools/power/cpupower/utils/helpers/
H A Dcpuid.c72 sscanf(value, "processor\t: %u", &proc); in get_cpu_info()
85 sscanf(value, "cpu family\t: %u", in get_cpu_info()
88 sscanf(value, "model\t\t: %u", in get_cpu_info()
91 sscanf(value, "stepping\t: %u", in get_cpu_info()
H A Dbitmask.c207 sret = sscanf(p, "%u%c", &a, &nextc); in bitmask_parselist()
215 sret = sscanf(c1, "%u%c", &b, &nextc); in bitmask_parselist()
220 sret = sscanf(c1, "%u%c", &s, &nextc); in bitmask_parselist()
/linux/tools/lib/bpf/
H A Dusdt.c464 if (sscanf(lib_path, "/proc/%d/root%s", &tmp_pid, path) == 2 && pid == tmp_pid) in parse_vma_segs()
1288 if (sscanf(arg_str, " %d @ %ld ( %%%15[^)] ) %n", arg_sz, &off, reg_name, &len) == 3) { in parse_usdt_arg()
1296 } else if (sscanf(arg_str, " %d @ ( %%%15[^)] ) %n", arg_sz, reg_name, &len) == 2) { in parse_usdt_arg()
1304 } else if (sscanf(arg_str, " %d @ %%%15s %n", arg_sz, reg_name, &len) == 2) { in parse_usdt_arg()
1313 } else if (sscanf(arg_str, " %d @ $%ld %n", arg_sz, &off, &len) == 2) { in parse_usdt_arg()
1336 if (sscanf(arg_str, " %d @ %ld ( %%r%u ) %n", arg_sz, &off, &reg, &len) == 3) { in parse_usdt_arg()
1345 } else if (sscanf(arg_str, " %d @ %%r%u %n", arg_sz, &reg, &len) == 2) { in parse_usdt_arg()
1354 } else if (sscanf(arg_str, " %d @ %ld %n", arg_sz, &off, &len) == 2) { in parse_usdt_arg()
1373 if (sscanf(reg_name, "x%d", &reg_num) == 1) { in calc_pt_regs_off()
1389 if (sscanf(arg_str, " %d @ \[ %15[a-z0-9] , %ld ] %n", arg_sz, reg_name, &off, &len) == 3) { in parse_usdt_arg()
[all …]
/linux/drivers/cpufreq/
H A Dcpufreq_conservative.c155 ret = sscanf(buf, "%u", &input); in sampling_down_factor_store()
171 ret = sscanf(buf, "%u", &input); in up_threshold_store()
187 ret = sscanf(buf, "%u", &input); in down_threshold_store()
204 ret = sscanf(buf, "%u", &input); in ignore_nice_load_store()
229 ret = sscanf(buf, "%u", &input); in freq_step_store()
H A Dcpufreq_ondemand.c211 ret = sscanf(buf, "%u", &input); in io_is_busy_store()
228 ret = sscanf(buf, "%u", &input); in up_threshold_store()
246 ret = sscanf(buf, "%u", &input); in sampling_down_factor_store()
274 ret = sscanf(buf, "%u", &input); in ignore_nice_load_store()
300 ret = sscanf(buf, "%u", &input); in powersave_bias_store()
/linux/tools/testing/selftests/mm/
H A Dvm_util.c188 if (sscanf(buffer, "RssAnon:%10lu kB", &rss_anon) != 1) in rss_anon()
226 if (sscanf(buffer, addr_pattern, &thp) != 1) in __check_huge()
287 if (sscanf(line, "Hugepagesize: %lu kB", &hps) == 1) { in default_huge_page_size()
314 if (sscanf(entry->d_name, "hugepages-%zukB", &kb) != 1) in detect_hugetlb_page_sizes()
379 if (sscanf(line, "HugePages_Free: %lu", &fhp) == 1) in get_free_hugepages()
/linux/tools/testing/selftests/rtc/
H A Dsetdate.c47 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main()
50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_debugfs.c788 cnt = sscanf(&cmd_buf[7], "%i", &vsi_seid); in i40e_dbg_command_write()
815 cnt = sscanf(&cmd_buf[7], "%i", &vsi_seid); in i40e_dbg_command_write()
837 cnt = sscanf(&cmd_buf[9], "%i %i", &uplink_seid, &vsi_seid); in i40e_dbg_command_write()
883 cnt = sscanf(&cmd_buf[9], "%i", &veb_seid); in i40e_dbg_command_write()
913 cnt = sscanf(&cmd_buf[8], "%i %u", &vsi_seid, &v); in i40e_dbg_command_write()
940 cnt = sscanf(&cmd_buf[8], "%i", &vsi_seid); in i40e_dbg_command_write()
963 cnt = sscanf(&cmd_buf[8], "%i", &vsi_seid); in i40e_dbg_command_write()
969 cnt = sscanf(&cmd_buf[8], "%i", &vsi_seid); in i40e_dbg_command_write()
975 cnt = sscanf(&cmd_buf[7], "%i", &vf_id); in i40e_dbg_command_write()
983 cnt = sscanf(&cmd_buf[12], "%i %i %i", in i40e_dbg_command_write()
[all …]
/linux/Documentation/sound/cards/
H A Dmultisound.sh859 X sscanf(argv[0], "0x%x", &io) != 1 ||
860 X sscanf(argv[1], "%d", &irq) != 1 ||
861 X sscanf(argv[2], "0x%x", &mem) != 1)
907 X sscanf(argv[0], "0x%x", &io) != 1 ||
908 X sscanf(argv[1], "%d", &irq) != 1)
919 X sscanf(argv[0], "0x%x", &io0) != 1 ||
920 X sscanf(argv[0], "0x%x", &io1) != 1 ||
921 X sscanf(argv[1], "%d", &irq) != 1)
932 X sscanf(argv[0], "0x%x", &io) != 1)
948 X sscanf(argv[0], "0x%x", &config_port);
[all …]
/linux/drivers/net/wireless/broadcom/b43/
H A Ddebugfs.c91 res = sscanf(buf, "0x%X 0x%X", &routing, &addr); in shm16read__write_file()
116 res = sscanf(buf, "0x%X 0x%X 0x%X 0x%X", in shm16write__write_file()
167 res = sscanf(buf, "0x%X 0x%X", &routing, &addr); in shm32read__write_file()
192 res = sscanf(buf, "0x%X 0x%X 0x%X 0x%X", in shm32write__write_file()
244 res = sscanf(buf, "0x%X", &addr); in mmio16read__write_file()
264 res = sscanf(buf, "0x%X 0x%X 0x%X", &addr, &mask, &set); in mmio16write__write_file()
308 res = sscanf(buf, "0x%X", &addr); in mmio32read__write_file()
328 res = sscanf(buf, "0x%X 0x%X 0x%X", &addr, &mask, &set); in mmio32write__write_file()
/linux/drivers/xen/xen-pciback/
H A Dpci_stub.c1072 switch (sscanf(buf, " %x:%x:%x.%x %n", domain, bus, slot, func, in str_to_slot()
1076 sscanf(buf, " %x:%x:%x.* %n", domain, bus, slot, &parsed); in str_to_slot()
1080 sscanf(buf, " %x:%x:*.* %n", domain, bus, &parsed); in str_to_slot()
1088 switch (sscanf(buf, " %x:%x.%x %n", bus, slot, func, &parsed)) { in str_to_slot()
1091 sscanf(buf, " %x:%x.* %n", bus, slot, &parsed); in str_to_slot()
1095 sscanf(buf, " %x:*.* %n", bus, &parsed); in str_to_slot()
1109 sscanf(buf, " %x:%x:%x.%x-%x:%x:%x %n", domain, bus, slot, func, in str_to_quirk()
1116 sscanf(buf, " %x:%x.%x-%x:%x:%x %n", bus, slot, func, reg, size, in str_to_quirk()
1581 err = sscanf(pci_devs_to_hide + pos, in pcistub_init()
1587 sscanf(pci_devs_to_hide + pos, in pcistub_init()
[all …]
/linux/drivers/scsi/bnx2i/
H A Dbnx2i_sysfs.c75 if (sscanf(buf, " 0x%x ", &val) > 0) { in bnx2i_set_sq_info()
125 if (sscanf(buf, " 0x%x ", &val) > 0) { in bnx2i_set_ccell_info()
/linux/usr/
H A Dgen_init_cpio.c148 …if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &ui… in cpio_mkslink_line()
219 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { in cpio_mkgeneric_line()
290 if (7 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d %c %u %u", in cpio_mknod_line()
469 if (5 > sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) in cpio_mkfile_line()
490 if (sscanf(line + end, "%" str(PATH_MAX) "s %n", in cpio_mkfile_line()
/linux/tools/testing/selftests/thermal/intel/workload_hint/
H A Dworkload_hint_test.c60 ret = sscanf(argv[1], "%d", &delay); in main()
146 ret = sscanf(index_str, "%d", &index); in main()
/linux/tools/power/cpupower/utils/
H A Dcpupower-set.c82 if (sscanf(optarg, "%29s", epp) != 1) { in cmd_set()
93 if (sscanf(optarg, "%19s", mode) != 1) { in cmd_set()
/linux/drivers/md/
H A Ddm-stats.c987 s = sscanf(h, "%llu%c", &hi, &ch); in parse_histogram()
1036 } else if (sscanf(a, "%llu+%llu%c", &start, &len, &dummy) != 2 || in message_stats_create()
1045 if (sscanf(a, "/%u%c", &divisor, &dummy) == 1) { in message_stats_create()
1053 } else if (sscanf(a, "%llu%c", &step, &dummy) != 1 || in message_stats_create()
1059 if (a && sscanf(a, "%u%c", &feature_args, &dummy) == 1) { in message_stats_create()
1134 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) in message_stats_delete()
1149 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) in message_stats_clear()
1189 if (sscanf(argv[1], "%d%c", &id, &dummy) != 1 || id < 0) in message_stats_print()
1194 sscanf(argv[2], "%lu%c", &idx_start, &dummy) != 1) in message_stats_print()
1197 sscanf(argv[3], "%lu%c", &idx_len, &dummy) != 1) in message_stats_print()
[all …]
/linux/net/atm/
H A Dmpoa_proc.c254 if (sscanf(buff, "del %hhu.%hhu.%hhu.%hhu", in parse_qos()
260 if (sscanf(buff, "add %hhu.%hhu.%hhu.%hhu tx=%d,%d rx=tx", in parse_qos()
264 } else if (sscanf(buff, "add %hhu.%hhu.%hhu.%hhu tx=%d,%d rx=%d,%d", in parse_qos()
/linux/tools/iio/
H A Dlsiio.c64 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_device), "%i", in dump_one_device()
87 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_trigger), in dump_one_trigger()
/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_devlink.c66 if (sscanf(prod_info, "%2u.%2u.%2u", &major, &minor, &revision) != 3) in es58x_parse_sw_version()
109 if (sscanf(prod_info, "%c%3u/%3u", &letter, &major, &minor) != 3) in es58x_parse_hw_rev()
/linux/drivers/net/netdevsim/
H A Dbus.c147 err = sscanf(buf, "%u %u %u", &id, &port_count, &num_queues); in new_device_store()
202 err = sscanf(buf, "%u", &id); in del_device_store()
243 err = sscanf(buf, "%d:%u %d:%u", &netnsfd_a, &ifidx_a, &netnsfd_b, in link_device_store()
334 err = sscanf(buf, "%u:%u", &netnsfd, &ifidx); in unlink_device_store()
/linux/drivers/power/supply/
H A Dtest_power.c472 if (1 != sscanf(key, "%d", &tmp)) in param_set_battery_capacity()
487 if (1 != sscanf(key, "%d", &tmp)) in param_set_battery_voltage()
502 if (1 != sscanf(key, "%d", &tmp)) in param_set_battery_charge_counter()
517 if (1 != sscanf(key, "%d", &tmp)) in param_set_battery_current()

12345678910>>...19