Home
last modified time | relevance | path

Searched refs:strtoul (Results 1 - 25 of 245) sorted by relevance

12345678910

/kernel/liteos_m/testsuites/unittest/posix/src/stdlib/
H A Dstrtoul_test.c71 * @tc.name : convert string by strtoul
78 unsigned long ret = strtoul(nPtr, &endPtr, 10);
80 LOG("[DEMO] posix stdlib test case 1:strtoul(base=10) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
82 LOG("[DEMO] posix stdlib test case 1:strtoul(base=10) ret:%lu,%s fail.\n", ret, nPtr);
91 * @tc.name : convert string by strtoul
98 unsigned long ret = strtoul(nPtr, &endPtr, 2);
100 LOG("[DEMO] posix stdlib test case 2:strtoul(base=2) ret:%lu,%s, endPtr:%s ok.\n", ret, nPtr, endPtr);
102 LOG("[DEMO] posix stdlib test case 2:strtoul(base=2) ret:%lu,%s fail.\n", ret, endPtr);
111 * @tc.name : convert string by strtoul
118 unsigned long ret = strtoul(nPt
[all...]
/kernel/liteos_a/apps/trace/src/
H A Dtrace.c95 info.eventType = strtoul(argv[2], NULL, 0); /* 2, argv number */ in TraceWrite()
96 info.identity = strtoul(argv[3], NULL, 0); /* 3, argv number */ in TraceWrite()
102 info.params[i] = strtoul(argv[4 + i], NULL, 0); in TraceWrite()
124 size_t mask = strtoul(argv[2], NULL, 0); in main()
127 size_t flag = strtoul(argv[2], NULL, 0); in main()
130 size_t size = strtoul(argv[2], NULL, 0); in main()
/kernel/liteos_m/testsuites/unittest/xts/io/
H A Dxts_io_stdlib_test.c179 * @tc.name strtoul basic function test
186 unsigned long ret = strtoul(nPtr, &endPtr, 10); /* 10 common data for test, no special meaning */
190 ret = strtoul(endPtr, &endPtr, 2); /* 2 common data for test, no special meaning */
194 ret = strtoul(endPtr, &endPtr, 16); /* 16 common data for test, no special meaning */
198 ret = strtoul(endPtr, &endPtr, 8); /* 8 common data for test, no special meaning */
202 ret = strtoul(endPtr, &endPtr, 0);
206 ret = strtoul(endPtr, &endPtr, 0);
210 ret = strtoul(endPtr, &endPtr, 65); /* 65 common data for test, no special meaning */
214 ret = strtoul(endPtr, &endPtr, 0);
218 ret = strtoul(endPt
[all...]
/kernel/liteos_a/kernel/base/misc/
H A Dvm_shellcmd.c153 vaddr = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdV2P()
217 lowMemThreshold = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdOom()
225 checkInterval = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdOom()
233 reclaimMemThreshold = strtoul((CHAR *)argv[1], &endPtr, 0); in OsShellCmdOom()
H A Dkill_shellcmd.c65 sigNo = strtoul(argv[0], &endPtr, 0); in OsShellCmdKill()
71 pidNo = strtoul(argv[1], &endPtr, 0); in OsShellCmdKill()
/kernel/linux/linux-5.10/arch/x86/tools/
H A Dinsn_sanity.c137 insn_buff[i] = (unsigned char)strtoul(tmp, &tmp, 16); in read_next_insn()
189 seed = (unsigned int)strtoul(optarg, &tmp, 0); in parse_args()
192 iter_start = strtoul(optarg, &tmp, 0); in parse_args()
199 iter_end = strtoul(optarg, &tmp, 0); in parse_args()
/kernel/linux/linux-6.6/arch/x86/tools/
H A Dinsn_sanity.c133 insn_buff[i] = (unsigned char)strtoul(tmp, &tmp, 16); in read_next_insn()
185 seed = (unsigned int)strtoul(optarg, &tmp, 0); in parse_args()
188 iter_start = strtoul(optarg, &tmp, 0); in parse_args()
195 iter_end = strtoul(optarg, &tmp, 0); in parse_args()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dudpgso_bench_rx.c307 cfg_connect_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts()
313 cfg_expected_pkt_len = strtoul(optarg, NULL, 0); in parse_opts()
316 cfg_expected_pkt_nr = strtoul(optarg, NULL, 0); in parse_opts()
319 cfg_port = strtoul(optarg, NULL, 0); in parse_opts()
325 cfg_rcv_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dudpgso_bench_rx.c307 cfg_connect_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts()
313 cfg_expected_pkt_len = strtoul(optarg, NULL, 0); in parse_opts()
316 cfg_expected_pkt_nr = strtoul(optarg, NULL, 0); in parse_opts()
319 cfg_port = strtoul(optarg, NULL, 0); in parse_opts()
325 cfg_rcv_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts()
/kernel/liteos_a/apps/perf/src/
H A Dmain.c59 size_t id = strtoul(argv[THREE_ARGS - 1], NULL, 0); in main()
64 size_t size = strtoul(argv[THREE_ARGS - 1], NULL, 0); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/watchdog/
H A Dwatchdog-test.c169 ping_rate = strtoul(optarg, NULL, 0); in main()
175 flags = strtoul(optarg, NULL, 0); in main()
193 flags = strtoul(optarg, NULL, 0); in main()
/kernel/linux/linux-5.10/tools/gpio/
H A Dgpio-event-mon.c180 loops = strtoul(optarg, NULL, 10); in main()
190 lines[num_lines] = strtoul(optarg, NULL, 10); in main()
194 debounce_period_us = strtoul(optarg, NULL, 10); in main()
/kernel/linux/linux-5.10/tools/power/acpi/tools/ec/
H A Dec_access.c80 read_byte_offset = strtoul(optarg, NULL, 16); in parse_opts()
86 write_byte_offset = strtoul(optarg, NULL, 16); in parse_opts()
89 write_value = strtoul(optarg, NULL, 16); in parse_opts()
/kernel/linux/linux-6.6/tools/gpio/
H A Dgpio-event-mon.c182 loops = strtoul(optarg, NULL, 10); in main()
192 lines[num_lines] = strtoul(optarg, NULL, 10); in main()
196 debounce_period_us = strtoul(optarg, NULL, 10); in main()
/kernel/linux/linux-6.6/tools/power/acpi/tools/ec/
H A Dec_access.c80 read_byte_offset = strtoul(optarg, NULL, 16); in parse_opts()
86 write_byte_offset = strtoul(optarg, NULL, 16); in parse_opts()
89 write_value = strtoul(optarg, NULL, 16); in parse_opts()
/kernel/liteos_a/kernel/extended/cpup/
H A Dcpup_shellcmd.c101 mode = strtoul(argv[0], &bufMode, 0); in OsShellCmdCpup()
117 pid = strtoul(argv[1], &bufID, 0); in OsShellCmdCpup()
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Ddbmethod.c56 address = strtoul(location, NULL, 16); in acpi_db_set_method_breakpoint()
128 value = strtoul(value_arg, NULL, 16); in acpi_db_set_method_data()
147 index = strtoul(index_arg, NULL, 16); in acpi_db_set_method_data()
246 num_statements = strtoul(statements, NULL, 0); in acpi_db_disassemble_aml()
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Ddbmethod.c56 address = strtoul(location, NULL, 16); in acpi_db_set_method_breakpoint()
128 value = strtoul(value_arg, NULL, 16); in acpi_db_set_method_data()
147 index = strtoul(index_arg, NULL, 16); in acpi_db_set_method_data()
246 num_statements = strtoul(statements, NULL, 0); in acpi_db_disassemble_aml()
/kernel/linux/linux-6.6/tools/testing/selftests/watchdog/
H A Dwatchdog-test.c246 ping_rate = strtoul(optarg, NULL, 0); in main()
267 flags = strtoul(optarg, NULL, 0); in main()
285 flags = strtoul(optarg, NULL, 0); in main()
/kernel/linux/linux-6.6/tools/arch/x86/kcpuid/
H A Dkcpuid.c354 sub = strtoul(tokens[1], NULL, 0); in parse_line()
379 bdesc->end = strtoul(end, NULL, 0); in parse_line()
385 bdesc->start = strtoul(start, NULL, 0); in parse_line()
638 user_index = strtoul(optarg, NULL, 0); in parse_options()
645 user_sub = strtoul(optarg, NULL, 0); in parse_options()
/kernel/linux/linux-5.10/arch/powerpc/boot/
H A Dmktree.c65 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); in main()
66 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); in main()
/kernel/linux/linux-6.6/arch/powerpc/boot/
H A Dmktree.c65 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); in main()
66 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/
H A Dmba_test.c128 bw_imc[runs] = strtoul(token_array[3], NULL, 0); in check_results()
130 bw_resc[runs] = strtoul(token_array[5], NULL, 0); in check_results()
H A Dcqm_test.c100 sum_llc_occu_resc += strtoul(token_array[3], NULL, 0); in check_results()
132 long_mask = strtoul(cbm_mask, NULL, 16); in cqm_resctrl_val()
H A Dmbm_test.c74 bw_resc[runs] = strtoul(token_array[5], NULL, 0); in check_results()
75 bw_imc[runs] = strtoul(token_array[3], NULL, 0); in check_results()

Completed in 10 milliseconds

12345678910