Home
last modified time | relevance | path

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

12345678910>>...22

/openbmc/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()
/openbmc/linux/drivers/char/
H A Dtlclk.c333 sscanf(buf, "%lX", &tmp); in store_received_ref_clk3a()
355 sscanf(buf, "%lX", &tmp); in store_received_ref_clk3b()
377 sscanf(buf, "%lX", &tmp); in store_enable_clk3b_output()
398 sscanf(buf, "%lX", &tmp); in store_enable_clk3a_output()
419 sscanf(buf, "%lX", &tmp); in store_enable_clkb1_output()
441 sscanf(buf, "%lX", &tmp); in store_enable_clka1_output()
462 sscanf(buf, "%lX", &tmp); in store_enable_clkb0_output()
483 sscanf(buf, "%lX", &tmp); in store_enable_clka0_output()
504 sscanf(buf, "%lX", &tmp); in store_select_amcb2_transmit_clock()
546 sscanf(buf, "%lX", &tmp); in store_select_amcb1_transmit_clock()
[all …]
/openbmc/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 …]
/openbmc/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()
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/
H A Dx86_basename.patch4 Subject: [PATCH] replace basename() with sscanf()
23 - if (sscanf(basename(sysfs_name), "int13_dev%hhx", &devnum) != 1) {
24 + if (sscanf(strrchr(sysfs_name,'/') + 1, "int13_dev%hhx", &devnum) != 1) {
/openbmc/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()
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()
1405 } else if (sscanf(arg_str, " %d @ %ld %n", arg_sz, &off, &len) == 2) { in parse_usdt_arg()
1491 } else if (sscanf(arg_str, " %d @ %ld %n", arg_sz, &off, &len) == 2) { in parse_usdt_arg()
1554 if (sscanf(arg_str, " %d @ \[ %15[a-z0-9] , #%ld ] %n", in parse_usdt_arg()
[all …]
/openbmc/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()
205 ret = sscanf(buf, "%u", &input); in ignore_nice_load_store()
230 ret = sscanf(buf, "%u", &input); in freq_step_store()
H A Dcpufreq_ondemand.c212 ret = sscanf(buf, "%u", &input); in io_is_busy_store()
229 ret = sscanf(buf, "%u", &input); in up_threshold_store()
247 ret = sscanf(buf, "%u", &input); in sampling_down_factor_store()
275 ret = sscanf(buf, "%u", &input); in ignore_nice_load_store()
301 ret = sscanf(buf, "%u", &input); in powersave_bias_store()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/bonnie/bonnie++/
H A Dfix-csv2html-data.patch76 - && sscanf(data[row_ind][column_ind - 1], "%lf", &work) == 1
77 - && sscanf(data[row_ind][column_ind], "%lf", &cpu) == 1)
79 + && sscanf(::data[row_ind][column_ind - 1], "%lf", &work) == 1
80 + && sscanf(::data[row_ind][column_ind], "%lf", &cpu) == 1)
122 - || sscanf(data[row_ind][column_ind], "%lf", &arr[row_ind].val) == 0)
124 + || sscanf(::data[row_ind][column_ind], "%lf", &arr[row_ind].val) == 0)
/openbmc/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()
/openbmc/qemu/util/
H A Dqemu-config.c117 if (sscanf(line, "[%63s \"%63[^\"]\"]", group, value) == 2) { in qemu_config_foreach()
121 } else if (sscanf(line, "[%63[^]]]", group) == 1) { in qemu_config_foreach()
139 if (sscanf(line, " %63s = \"%1023[^\"]\"", arg, value) == 2 || in qemu_config_foreach()
140 sscanf(line, " %63s = \"\"", arg) == 1) { in qemu_config_foreach()
/openbmc/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()
/openbmc/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 …]
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_debugfs.c811 cnt = sscanf(&cmd_buf[7], "%i", &vsi_seid); in i40e_dbg_command_write()
837 cnt = sscanf(&cmd_buf[7], "%i", &vsi_seid); in i40e_dbg_command_write()
989 cnt = sscanf(&cmd_buf[7], "%i", &vf_id); in i40e_dbg_command_write()
997 cnt = sscanf(&cmd_buf[12], "%i %i %i", in i40e_dbg_command_write()
1003 cnt = sscanf(&cmd_buf[12], "%i %i %i", in i40e_dbg_command_write()
1009 cnt = sscanf(&cmd_buf[13], "%i %i %i", in i40e_dbg_command_write()
1155 cnt = sscanf(&cmd_buf[18], "%i %i %i", in i40e_dbg_command_write()
1217 cnt = sscanf(&cmd_buf[4], "%i", &address); in i40e_dbg_command_write()
1294 cnt = sscanf(&cmd_buf[11], in i40e_dbg_command_write()
1342 cnt = sscanf(&cmd_buf[20], in i40e_dbg_command_write()
[all …]
/openbmc/linux/drivers/xen/xen-pciback/
H A Dpci_stub.c1009 switch (sscanf(buf, " %x:%x:%x.%x %n", domain, bus, slot, func, in str_to_slot()
1013 sscanf(buf, " %x:%x:%x.* %n", domain, bus, slot, &parsed); in str_to_slot()
1017 sscanf(buf, " %x:%x:*.* %n", domain, bus, &parsed); in str_to_slot()
1028 sscanf(buf, " %x:%x.* %n", bus, slot, &parsed); in str_to_slot()
1032 sscanf(buf, " %x:*.* %n", bus, &parsed); in str_to_slot()
1518 err = sscanf(pci_devs_to_hide + pos, in pcistub_init()
1524 sscanf(pci_devs_to_hide + pos, in pcistub_init()
1530 sscanf(pci_devs_to_hide + pos, in pcistub_init()
1538 err = sscanf(pci_devs_to_hide + pos, in pcistub_init()
1544 sscanf(pci_devs_to_hide + pos, in pcistub_init()
[all …]
/openbmc/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()
/openbmc/linux/usr/
H A Dgen_init_cpio.c147 …if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &ui… in cpio_mkslink_line()
218 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { in cpio_mkgeneric_line()
289 if (7 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d %c %u %u", in cpio_mknod_line()
462 if (5 > sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) in cpio_mkfile_line()
483 if (sscanf(line + end, "%" str(PATH_MAX) "s %n", in cpio_mkfile_line()
/openbmc/qemu/system/
H A Drtc.c115 if (sscanf(startdate, "%d-%d-%dT%d:%d:%d", &tm.tm_year, &tm.tm_mon, in configure_rtc_base_datetime()
118 } else if (sscanf(startdate, "%d-%d-%d", in configure_rtc_base_datetime()
/openbmc/linux/tools/testing/selftests/mm/
H A Dvm_util.c130 if (sscanf(buffer, addr_pattern, &thp) != 1) in __check_huge()
191 if (sscanf(line, "Hugepagesize: %lu kB", &hps) == 1) { in default_huge_page_size()
218 if (sscanf(entry->d_name, "hugepages-%zukB", &kb) != 1) in detect_hugetlb_page_sizes()
/openbmc/linux/block/
H A Dearly-lookup.c61 if (sscanf(slash + 1, "PARTNROFF=%d%c", &offset, &c) != 1) in devt_from_partuuid()
202 if (sscanf(name, "%u:%u%c", &maj, &min, &dummy) == 2 || in devt_from_devnum()
203 sscanf(name, "%u:%u:%u:%c", &maj, &min, &offset, &dummy) == 3) { in devt_from_devnum()
/openbmc/linux/drivers/firmware/efi/
H A Defi-pstore.c66 if (sscanf(name, "dump-type%u-%u-%d-%llu-%c", in efi_pstore_read_func()
78 } else if (sscanf(name, "dump-type%u-%u-%d-%llu", in efi_pstore_read_func()
87 } else if (sscanf(name, "dump-type%u-%u-%llu", in efi_pstore_read_func()
/openbmc/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()

12345678910>>...22