/Zephyr-latest/tests/kernel/timer/starve/src/ |
D | main.c | 32 now / MSEC_PER_SEC, now % MSEC_PER_SEC, iters); in tag() 46 k_ms_to_cyc_ceil32(MSEC_PER_SEC)); in ZTEST() 49 k_ms_to_ticks_ceil32(MSEC_PER_SEC)); in ZTEST() 54 if ((now / MSEC_PER_SEC) > CONFIG_APP_STOP_S) { in ZTEST() 63 stamp += STAMP_INTERVAL_s * MSEC_PER_SEC; in ZTEST() 70 tag(), -now_diff, last_now / MSEC_PER_SEC, in ZTEST() 71 last_now % MSEC_PER_SEC); in ZTEST()
|
/Zephyr-latest/scripts/coccinelle/ |
D | int_ms_to_timeout.cocci | 95 // ** scaled by MSEC_PER_SEC and replace with the corresponding 104 identifier MSEC_PER_SEC =~ "^MSEC_PER_SEC$"; 110 - MSEC_PER_SEC 113 - V * MSEC_PER_SEC 116 - K_MSEC(MSEC_PER_SEC) 119 - K_MSEC(V * MSEC_PER_SEC) 128 identifier MSEC_PER_SEC =~ "^MSEC_PER_SEC$"; 134 MSEC_PER_SEC 135 | V * MSEC_PER_SEC 143 identifier MSEC_PER_SEC =~ "^MSEC_PER_SEC$"; [all …]
|
/Zephyr-latest/subsys/shell/modules/kernel_service/ |
D | uptime.c | 12 #define MINUTES_FACTOR (MSEC_PER_SEC * SEC_PER_MIN) 41 seconds = milliseconds / MSEC_PER_SEC; in cmd_kernel_uptime() 42 milliseconds = milliseconds % MSEC_PER_SEC; in cmd_kernel_uptime()
|
/Zephyr-latest/tests/subsys/logging/log_blocking/src/ |
D | main.c | 62 end_ms += MAX_STALL_TIMEOUT_S * MSEC_PER_SEC; in create_start_end() 65 end_ms += MAX_STALL_TIMEOUT_S * MSEC_PER_SEC; in create_start_end() 67 end_ms += MSEC_PER_SEC * DIV_ROUND_UP(CONFIG_TEST_NUM_LOGS, CONFIG_TEST_INPUT_LOG_RATE); in create_start_end() 69 end_ms += MSEC_PER_SEC * DIV_ROUND_UP(CONFIG_TEST_NUM_LOGS, CONFIG_TEST_OUTPUT_LOG_RATE); in create_start_end() 81 if (i + 1 <= (CONFIG_TEST_OUTPUT_LOG_RATE * (now() - then())) / MSEC_PER_SEC) { in handle_output() 94 if (i + 1 <= CONFIG_TEST_INPUT_LOG_RATE * (now() - then()) / MSEC_PER_SEC) { in handle_input()
|
/Zephyr-latest/samples/boards/bbc/microbit/display/src/ |
D | main.c | 74 1 * MSEC_PER_SEC, "9876543210"); in main() 89 mb_display_image(disp, MB_DISPLAY_MODE_SINGLE, 2 * MSEC_PER_SEC, in main() 94 mb_display_image(disp, MB_DISPLAY_MODE_SCROLL, 1 * MSEC_PER_SEC, in main()
|
/Zephyr-latest/tests/unit/net_timeout/ |
D | main.c | 38 zassert_equal(((uint32_t)(INT32_MAX / MSEC_PER_SEC)), in ZTEST() 41 zassert_equal((UINT32_MAX / MSEC_PER_SEC), in ZTEST() 66 zassert_equal(nto.timer_timeout, lifetime * MSEC_PER_SEC, in ZTEST() 76 zassert_equal(nto.timer_timeout, lifetime * MSEC_PER_SEC, in ZTEST() 87 (lifetime * MSEC_PER_SEC) % NET_TIMEOUT_MAX_VALUE, in ZTEST() 98 (lifetime * (uint64_t)MSEC_PER_SEC) % NET_TIMEOUT_MAX_VALUE, in ZTEST() 107 zassert_equal(nto.wrap_counter, MSEC_PER_SEC - 1); in ZTEST() 120 uint64_t expected = now + lifetime * MSEC_PER_SEC; in ZTEST() 174 zassert_equal(net_timeout_remaining(&nto, now + MSEC_PER_SEC - 1U), in ZTEST() 177 zassert_equal(net_timeout_remaining(&nto, now + MSEC_PER_SEC), in ZTEST() [all …]
|
/Zephyr-latest/samples/boards/nordic/battery/src/ |
D | main.c | 38 unsigned int ms = now % MSEC_PER_SEC; in now_str() 43 now /= MSEC_PER_SEC; in now_str()
|
/Zephyr-latest/subsys/bluetooth/services/ |
D | cts.c | 58 (*unix_ms) *= MSEC_PER_SEC; in bt_cts_time_to_unix_ms() 60 (*unix_ms) += ((ct_time->fractions256 * MSEC_PER_SEC) / BT_CTS_FRACTION_256_MAX_VALUE); in bt_cts_time_to_unix_ms() 68 time_t unix_ts = unix_ms / MSEC_PER_SEC; in bt_cts_time_from_unix_ms() 71 unix_ms %= MSEC_PER_SEC; in bt_cts_time_from_unix_ms() 73 unix_ms /= MSEC_PER_SEC; in bt_cts_time_from_unix_ms()
|
/Zephyr-latest/include/zephyr/ |
D | sys_clock.h | 92 #define MSEC_PER_SEC 1000U macro 110 #define USEC_PER_SEC ((USEC_PER_MSEC) * (MSEC_PER_SEC)) 113 #define NSEC_PER_SEC ((NSEC_PER_USEC) * (USEC_PER_MSEC) * (MSEC_PER_SEC)) 176 (MSEC_PER_SEC % CONFIG_SYS_CLOCK_TICKS_PER_SEC) || \
|
/Zephyr-latest/tests/posix/eventfd/src/ |
D | stress.c | 62 const uint64_t report_ms = UPDATE_INTERVAL_S * MSEC_PER_SEC; in th_fun() 63 const uint64_t end_ms = CONFIG_TEST_DURATION_S * MSEC_PER_SEC; in th_fun() 84 printk("avg: %zu %s/s\n", (size_t)((count[id] * MSEC_PER_SEC) / end_ms), msg[id]); in th_fun()
|
/Zephyr-latest/samples/bluetooth/mesh_demo/src/ |
D | microbit.c | 59 2 * MSEC_PER_SEC, "A"); in button_pressed() 62 2 * MSEC_PER_SEC, "%X", (target & 0xf)); in button_pressed() 178 mb_display_image(disp, MB_DISPLAY_MODE_SINGLE, 2 * MSEC_PER_SEC, in board_heartbeat() 189 mb_display_print(disp, MB_DISPLAY_MODE_SINGLE, 2 * MSEC_PER_SEC, "%X", in board_other_dev_pressed()
|
/Zephyr-latest/drivers/lora/ |
D | hal_common.c | 48 *milliseconds = now % MSEC_PER_SEC; in RtcGetCalendarTime() 51 return now / MSEC_PER_SEC; in RtcGetCalendarTime()
|
/Zephyr-latest/lib/posix/options/ |
D | sleep.c | 24 return rem / MSEC_PER_SEC; in sleep()
|
D | timespec_to_timeout.c | 27 milli_secs = secs * MSEC_PER_SEC + nsecs / NSEC_PER_MSEC; in timespec_to_timeoutms()
|
/Zephyr-latest/samples/bluetooth/mesh/src/ |
D | microbit.c | 89 mb_display_image(disp, MB_DISPLAY_MODE_DEFAULT, 10 * MSEC_PER_SEC, in board_prov_complete() 98 1 * MSEC_PER_SEC, onoff, ARRAY_SIZE(onoff)); in board_init()
|
/Zephyr-latest/samples/sensor/6dof_motion_drdy/src/ |
D | main.c | 41 unsigned int ms = now % MSEC_PER_SEC; in now_str() 46 now /= MSEC_PER_SEC; in now_str()
|
/Zephyr-latest/samples/sensor/mpu6050/src/ |
D | main.c | 16 unsigned int ms = now % MSEC_PER_SEC; in now_str() 21 now /= MSEC_PER_SEC; in now_str()
|
/Zephyr-latest/samples/sensor/isl29035/src/ |
D | main.c | 31 unsigned int ms = now % MSEC_PER_SEC; in now_str() 36 now /= MSEC_PER_SEC; in now_str()
|
/Zephyr-latest/tests/posix/common/src/ |
D | sleep.c | 43 zassert_true((now - then) >= 1 * MSEC_PER_SEC); in ZTEST() 49 zassert_true((now - then) >= 2 * MSEC_PER_SEC); in ZTEST()
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv4_acd.c | 167 delay %= MSEC_PER_SEC * (IPV4_ACD_PROBE_MAX - IPV4_ACD_PROBE_MIN); in ipv4_acd_manage_timeout() 168 delay += MSEC_PER_SEC * IPV4_ACD_PROBE_MIN; in ipv4_acd_manage_timeout() 170 delay = MSEC_PER_SEC * IPV4_ACD_ANNOUNCE_WAIT; in ipv4_acd_manage_timeout() 245 delay = MSEC_PER_SEC * IPV4_ACD_RATE_LIMIT_INTERVAL; in acd_start_timer() 250 delay = sys_rand32_get() % (MSEC_PER_SEC * IPV4_ACD_PROBE_WAIT); in acd_start_timer()
|
D | net_timeout.c | 27 expire_timeout = (uint64_t)MSEC_PER_SEC * (uint64_t)lifetime; in net_timeout_set() 75 return (uint32_t)((uint64_t)ret / MSEC_PER_SEC); in net_timeout_remaining()
|
/Zephyr-latest/samples/sensor/icm42605/src/ |
D | main.c | 16 unsigned int ms = now % MSEC_PER_SEC; in now_str() 21 now /= MSEC_PER_SEC; in now_str()
|
/Zephyr-latest/tests/benchmarks/posix/threads/src/ |
D | main.c | 69 const uint64_t end_ms = now_ms + MSEC_PER_SEC * CONFIG_TEST_DURATION_S; in create_join_common() 70 uint64_t update_ms = now_ms + MSEC_PER_SEC * UPDATE_INTERVAL_S; in create_join_common() 112 update_ms += MSEC_PER_SEC * UPDATE_INTERVAL_S; in create_join_common()
|
/Zephyr-latest/samples/sensor/jc42/src/ |
D | main.c | 22 unsigned int ms = now % MSEC_PER_SEC; in now_str() 27 now /= MSEC_PER_SEC; in now_str()
|
/Zephyr-latest/samples/sensor/tdk_apex/src/ |
D | main.c | 42 unsigned int ms = now % MSEC_PER_SEC; in now_str() 47 now /= MSEC_PER_SEC; in now_str()
|