/Zephyr-latest/subsys/net/ip/ |
D | net_timeout.c | 10 void net_timeout_set(struct net_timeout *timeout, in net_timeout_set() argument 16 timeout->timer_start = now; in net_timeout_set() 18 /* Highly unlikely, but a zero timeout isn't correctly handled by the in net_timeout_set() 22 timeout->wrap_counter = 0; in net_timeout_set() 23 timeout->timer_timeout = 0; in net_timeout_set() 28 timeout->wrap_counter = expire_timeout / in net_timeout_set() 30 timeout->timer_timeout = expire_timeout - in net_timeout_set() 32 (uint64_t)timeout->wrap_counter; in net_timeout_set() 34 /* The implementation requires that the fractional timeout be zero in net_timeout_set() 35 * only when the timeout has completed, so if the residual is zero in net_timeout_set() [all …]
|
/Zephyr-latest/subsys/tracing/test/ |
D | tracing_test.h | 23 #define sys_port_trace_k_thread_join_enter(thread, timeout) \ argument 24 sys_trace_k_thread_join_blocking(thread, timeout) 25 #define sys_port_trace_k_thread_join_blocking(thread, timeout) \ argument 26 sys_trace_k_thread_join_blocking(thread, timeout) 27 #define sys_port_trace_k_thread_join_exit(thread, timeout, ret) \ argument 28 sys_trace_k_thread_join_exit(thread, timeout, ret) 29 #define sys_port_trace_k_thread_sleep_enter(timeout) sys_trace_k_thread_sleep_enter(timeout) argument 30 #define sys_port_trace_k_thread_sleep_exit(timeout, ret) sys_trace_k_thread_sleep_exit(timeout, ret) argument 73 #define sys_port_trace_k_work_flush_blocking(work, timeout) argument 84 #define sys_port_trace_k_work_queue_stop_enter(queue, timeout) argument [all …]
|
D | tracing_string_format_test.c | 96 void sys_trace_k_thread_sleep_enter(k_timeout_t timeout) in sys_trace_k_thread_sleep_enter() argument 101 void sys_trace_k_thread_sleep_exit(k_timeout_t timeout, int ret) in sys_trace_k_thread_sleep_exit() argument 177 void sys_trace_k_thread_join_blocking(struct k_thread *thread, k_timeout_t timeout) in sys_trace_k_thread_join_blocking() argument 179 TRACING_STRING("%s %p, timeout: %u\n", __func__, thread, (uint32_t)timeout.ticks); in sys_trace_k_thread_join_blocking() 182 void sys_trace_k_thread_join_exit(struct k_thread *thread, k_timeout_t timeout, int ret) in sys_trace_k_thread_join_exit() argument 184 TRACING_STRING("%s %p, timeout: %u\n", __func__, thread, (uint32_t)timeout.ticks); in sys_trace_k_thread_join_exit() 238 k_timeout_t timeout) in sys_trace_k_condvar_wait_enter() argument 244 k_timeout_t timeout, int ret) in sys_trace_k_condvar_wait_exit() argument 259 void sys_trace_k_sem_take_enter(struct k_sem *sem, k_timeout_t timeout) in sys_trace_k_sem_take_enter() argument 261 TRACING_STRING("%s: %p, timeout: %u\n", __func__, sem, (uint32_t)timeout.ticks); in sys_trace_k_sem_take_enter() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | net_timeout.h | 18 * @brief Network long timeout primitives and helpers 19 * @defgroup net_timeout Network long timeout primitives and helpers 62 * timeout event. 72 /** Portion of remaining timeout that does not exceed 89 /** @brief Configure a network timeout structure. 91 * @param timeout a pointer to the timeout state. 93 * @param lifetime the duration of the timeout in seconds. 95 * @param now the time at which the timeout started counting down, in 98 void net_timeout_set(struct net_timeout *timeout, 102 /** @brief Return the 64-bit system time at which the timeout will complete. [all …]
|
D | net_offload.h | 36 static inline int32_t timeout_to_int32(k_timeout_t timeout) in timeout_to_int32() argument 38 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in timeout_to_int32() 40 } else if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in timeout_to_int32() 43 return k_ticks_to_ms_floor32(timeout.ticks); in timeout_to_int32() 82 int32_t timeout, 91 int32_t timeout, 99 int32_t timeout, 109 int32_t timeout, 118 int32_t timeout, 211 * is executed. cb is called even if the timeout was set to [all …]
|
D | sntp.h | 75 * @param timeout Timeout of waiting for sntp response (in milliseconds). 79 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout). 81 int sntp_query(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *ts); 87 * @param timeout Timeout of waiting for sntp response (in milliseconds). 91 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout). 93 int sntp_recv_response(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *ts); 109 * @param timeout Query timeout 113 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout). 115 int sntp_simple(const char *server, uint32_t timeout, 127 * @param timeout Query timeout [all …]
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | net_timeout.rst | 3 Network Timeout 18 Timeout processing is often affected by latency, so that the time at which the 19 timeout is checked may be some time after it should have expired. Handling 29 The net_timeout API provides a generic timeout mechanism to correctly track 37 #. Configure a network timeout using :c:func:`net_timeout_set()`. 39 timeout occurs. Schedule a timeout to occur after this delay. 40 #. When the timeout callback is invoked, use :c:func:`net_timeout_evaluate()` 41 again to determine whether the timeout has completed, or whether there is 43 #. While the timeout is running, use :c:func:`net_timeout_remaining` to get 44 the number of seconds until the timeout expires. This may be used to [all …]
|
/Zephyr-latest/subsys/tracing/sysview/ |
D | SYSVIEW_Zephyr.txt | 9 NamedType TimeOut *="%u ticks" 0=TIMEOUT_NO_WAIT 4294967295=FOREVER 32 34 k_busy_wait Timeout=%u us 43 42 k_sem_take sem=%I, Timeout=%TimeOut| Returns %ErrCodePosix 53 50 k_queue_get q=%I, Timeout=%TimeOut | Returns %p 61 57 k_stack_pop stack=%I, data=%p, Timeout=%TimeOut | Returns %ErrCodePosix 65 60 k_msgq_put msgq=%I, data=%p, Timeout=%TimeOut | Returns %ErrCodeMsg 66 61 k_msgq_get msgq=%I, data=%p, Timeout=%TimeOut | Returns %ErrCodeMsg 72 66 k_mbox_put mbox=%I, tx_msg=%p, Timeout=%TimeOut | Returns %ErrCodeMsg 74 68 k_mbox_get mbox=%I, rx_msg=%p, buffer=%p, Timeout=%TimeOut | Returns %ErrCodeMsg 76 70 k_mbox_data_block_get rx_msg=%p, pool=%p, block=%p, Timeout=%TimeOut | Returns %ErrCodePo… [all …]
|
D | tracing_sysview.h | 41 #define sys_port_trace_k_thread_join_enter(thread, timeout) \ argument 43 (uint32_t)timeout.ticks) 44 #define sys_port_trace_k_thread_join_blocking(thread, timeout) argument 45 #define sys_port_trace_k_thread_join_exit(thread, timeout, ret) \ argument 48 #define sys_port_trace_k_thread_sleep_enter(timeout) \ argument 49 SEGGER_SYSVIEW_RecordU32(TID_SLEEP, (uint32_t)k_ticks_to_ms_floor32(timeout.ticks)) 51 #define sys_port_trace_k_thread_sleep_exit(timeout, ret) \ argument 153 #define sys_port_trace_k_work_flush_blocking(work, timeout) argument 183 #define sys_port_trace_k_work_queue_stop_enter(queue, timeout) \ argument 185 (uint32_t)timeout.ticks) [all …]
|
/Zephyr-latest/kernel/ |
D | kheap.c | 66 k_timeout_t timeout) in k_heap_aligned_alloc() argument 68 k_timepoint_t end = sys_timepoint_calc(timeout); in k_heap_aligned_alloc() 73 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, aligned_alloc, heap, timeout); in k_heap_aligned_alloc() 75 __ASSERT(!arch_is_in_isr() || K_TIMEOUT_EQ(timeout, K_NO_WAIT), ""); in k_heap_aligned_alloc() 83 (ret != NULL) || K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_heap_aligned_alloc() 90 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_heap, aligned_alloc, heap, timeout); in k_heap_aligned_alloc() 97 timeout = sys_timepoint_timeout(end); in k_heap_aligned_alloc() 98 (void) z_pend_curr(&heap->lock, key, &heap->wait_q, timeout); in k_heap_aligned_alloc() 102 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, aligned_alloc, heap, timeout, ret); in k_heap_aligned_alloc() 108 void *k_heap_alloc(struct k_heap *heap, size_t bytes, k_timeout_t timeout) in k_heap_alloc() argument [all …]
|
D | nothread.c | 20 int32_t z_impl_k_sleep(k_timeout_t timeout) in z_impl_k_sleep() argument 27 SYS_PORT_TRACING_FUNC_ENTER(k_thread, sleep, timeout); in z_impl_k_sleep() 30 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in z_impl_k_sleep() 33 SYS_PORT_TRACING_FUNC_EXIT(k_thread, sleep, timeout, (int32_t) K_TICKS_FOREVER); in z_impl_k_sleep() 38 ticks = timeout.ticks; in z_impl_k_sleep() 40 /* ticks is delta timeout */ in z_impl_k_sleep() 43 /* ticks is absolute timeout expiration */ in z_impl_k_sleep() 57 SYS_PORT_TRACING_FUNC_EXIT(k_thread, sleep, timeout, ret); in z_impl_k_sleep()
|
D | timeout.c | 65 * scheduled relatively to the currently firing timeout's original tick in elapsed() 69 * This means that timeouts being scheduled from within timeout callbacks in elapsed() 71 * timeout. in elapsed() 74 * preempts a timeout callback and schedules a timeout. in elapsed() 100 k_timeout_t timeout) in z_add_timeout() argument 102 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in z_add_timeout() 117 (Z_TICK_ABS(timeout.ticks) >= 0)) { in z_add_timeout() 118 k_ticks_t ticks = Z_TICK_ABS(timeout.ticks) - curr_tick; in z_add_timeout() 122 to->dticks = timeout.ticks + 1 + elapsed(); in z_add_timeout() 159 static k_ticks_t timeout_rem(const struct _timeout *timeout) in timeout_rem() argument [all …]
|
/Zephyr-latest/subsys/tracing/user/ |
D | tracing_user.h | 107 #define sys_port_trace_k_thread_join_enter(thread, timeout) argument 108 #define sys_port_trace_k_thread_join_blocking(thread, timeout) argument 109 #define sys_port_trace_k_thread_join_exit(thread, timeout, ret) argument 110 #define sys_port_trace_k_thread_sleep_enter(timeout) argument 111 #define sys_port_trace_k_thread_sleep_exit(timeout, ret) argument 147 #define sys_port_trace_k_work_flush_blocking(work, timeout) argument 158 #define sys_port_trace_k_work_queue_stop_enter(queue, timeout) argument 159 #define sys_port_trace_k_work_queue_stop_blocking(queue, timeout) argument 160 #define sys_port_trace_k_work_queue_stop_exit(queue, timeout, ret) argument 187 timeout) argument [all …]
|
/Zephyr-latest/include/zephyr/tracing/ |
D | tracing.h | 80 * @param timeout Timeout period 82 #define sys_port_trace_k_thread_join_enter(thread, timeout) argument 87 * @param timeout Timeout period 89 #define sys_port_trace_k_thread_join_blocking(thread, timeout) argument 94 * @param timeout Timeout period 97 #define sys_port_trace_k_thread_join_exit(thread, timeout, ret) argument 101 * @param timeout Timeout period 103 #define sys_port_trace_k_thread_sleep_enter(timeout) argument 107 * @param timeout Timeout period 110 #define sys_port_trace_k_thread_sleep_exit(timeout, ret) argument [all …]
|
/Zephyr-latest/subsys/tracing/ctf/ |
D | tracing_ctf.h | 31 #define sys_port_trace_k_thread_join_enter(thread, timeout) argument 32 #define sys_port_trace_k_thread_join_blocking(thread, timeout) argument 33 #define sys_port_trace_k_thread_join_exit(thread, timeout, ret) argument 34 #define sys_port_trace_k_thread_sleep_enter(timeout) argument 35 #define sys_port_trace_k_thread_sleep_exit(timeout, ret) argument 82 #define sys_port_trace_k_work_flush_blocking(work, timeout) argument 93 #define sys_port_trace_k_work_queue_stop_enter(queue, timeout) argument 94 #define sys_port_trace_k_work_queue_stop_blocking(queue, timeout) argument 95 #define sys_port_trace_k_work_queue_stop_exit(queue, timeout, ret) argument 122 timeout) argument [all …]
|
/Zephyr-latest/tests/kernel/fpu_sharing/generic/ |
D | testcase.yaml | 10 timeout: 600 20 timeout: 600 30 timeout: 600 38 timeout: 600 49 timeout: 600 58 timeout: 600 73 timeout: 600 87 timeout: 600 102 timeout: 600 109 timeout: 600
|
/Zephyr-latest/tests/kernel/fifo/fifo_timeout/src/ |
D | main.c | 16 * @brief Test fifo APIs timeout 18 * This module tests following fifo timeout scenarios 20 * First, the thread waits with a timeout and times out. Then it wait with a 21 * timeout, but gets the data in time. 23 * Then, multiple timeout tests are done for the threads, to test the ordering 24 * of queueing/dequeueing when timeout occurs, first on one fifo, then on 28 * data in time, except the last one: this tests that the timeout is 45 uint32_t timeout; member 101 static bool is_timeout_in_range(uint32_t start_time, uint32_t timeout) in is_timeout_in_range() argument 109 return timeout <= diff; in is_timeout_in_range() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/ |
D | test_blockwise.py | 30 to = leshan.timeout 32 leshan.timeout = 600 37 lines = dut.readlines_until(regex='app_fw_update: UPDATE', timeout=5.0) 44 leshan.timeout = to 51 to = leshan.timeout 53 # Set timeout to 1 second to force Leshan to stop sending 54 leshan.timeout = 1 61 # Now send the firmware again using longer timeout 62 leshan.timeout = 600 67 lines = dut.readlines_until(regex='app_fw_update: UPDATE', timeout=5.0) [all …]
|
/Zephyr-latest/include/zephyr/console/ |
D | tty.h | 38 * timeout-controlled access to an underlying UART device. For 55 * @brief Set receive timeout for tty device. 57 * Set timeout for getchar() operation. Default timeout after 61 * @param timeout timeout in milliseconds, or 0, or SYS_FOREVER_MS. 63 static inline void tty_set_rx_timeout(struct tty_serial *tty, int32_t timeout) in tty_set_rx_timeout() argument 65 tty->rx_timeout = timeout; in tty_set_rx_timeout() 69 * @brief Set transmit timeout for tty device. 71 * Set timeout for putchar() operation, for a case when output buffer is full. 72 * Default timeout after device initialization is SYS_FOREVER_MS. 75 * @param timeout timeout in milliseconds, or 0, or SYS_FOREVER_MS. [all …]
|
/Zephyr-latest/subsys/net/lib/sntp/ |
D | sntp_simple.c | 12 static int sntp_simple_helper(struct sockaddr *addr, socklen_t addr_len, uint32_t timeout, in sntp_simple_helper() argument 26 if (timeout == SYS_FOREVER_MS) { in sntp_simple_helper() 27 deadline = (uint64_t)timeout; in sntp_simple_helper() 29 deadline = k_uptime_get() + (uint64_t)timeout; in sntp_simple_helper() 32 /* Timeout for current iteration */ in sntp_simple_helper() 43 * Retry recv with current iteration timeout in sntp_simple_helper() 44 * until an error or timeout (flushing the socket in sntp_simple_helper() 45 * of old iteration responses until we timeout or in sntp_simple_helper() 74 int sntp_simple_addr(struct sockaddr *addr, socklen_t addr_len, uint32_t timeout, in sntp_simple_addr() argument 84 return sntp_simple_helper(addr, addr_len, timeout, ts); in sntp_simple_addr() [all …]
|
/Zephyr-latest/tests/boards/espressif/wifi/ |
D | Kconfig | 53 If timeout happens in all attempts, test will fail. 56 int "Wi-Fi Scan Timeout (in seconds)" 59 Timeout duration for Wi-Fi scanning. 63 int "Wi-Fi Connect Timeout (in seconds)" 66 Timeout duration for connecting to Wi-Fi network. 70 int "Wi-Fi Disconnect Timeout (in seconds)" 73 Timeout duration for disconnecting from Wi-Fi network. 77 int "Gateway Ping Timeout (in seconds)" 80 Timeout duration for pinging the network gateway.
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_dw.h | 57 * by the time a second timeout occurs then generate a system reset 82 * Timeout Range Register 104 * Timeout period 109 * Timeout period for initialization 155 * Upper limit of Timeout Period parameters 163 * Upper limit of Initial Timeout Period parameters 195 * Describes the initial timeout period that is available directly after reset. It controls the 202 * Selects the timeout period that is available directly after reset. It controls the reset value 203 * of the register. If WDT_HC_TOP is set to 1, then the default timeout period is the only possible 204 * timeout period. Can choose one of 16 values. [all …]
|
/Zephyr-latest/lib/os/zvfs/ |
D | zvfs_poll.c | 20 int zvfs_poll_internal(struct zvfs_pollfd *fds, int nfds, k_timeout_t timeout) in zvfs_poll_internal() argument 36 end = sys_timepoint_calc(timeout); in zvfs_poll_internal() 64 timeout = K_NO_WAIT; in zvfs_poll_internal() 65 end = sys_timepoint_calc(timeout); in zvfs_poll_internal() 96 if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in zvfs_poll_internal() 99 poll_timeout = k_ticks_to_ms_floor32(timeout.ticks); in zvfs_poll_internal() 106 timeout = sys_timepoint_timeout(end); in zvfs_poll_internal() 109 ret = k_poll(poll_events, pev - poll_events, timeout); in zvfs_poll_internal() 110 /* EAGAIN when timeout expired, EINTR when cancelled (i.e. EOF) */ in zvfs_poll_internal() 161 timeout = sys_timepoint_timeout(end); in zvfs_poll_internal() [all …]
|
/Zephyr-latest/dts/bindings/watchdog/ |
D | gd,gd32-fwdgt.yaml | 14 initial-timeout-ms: 18 Set timeout value in milliseconds. 19 The following equation gives the maximum timeout value 21 timeout = (reload + 1) / (peripheral_freqency / prescaler). 32 0.25 [timeout in sec] = (1999 [reload] + 1) / (32000 [freq] / 4 [prescaler]) 33 0.25 [timeout in sec] = (2499 [reload] + 1) / (40000 [freq] / 4 [prescaler])
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/ |
D | shell.py | 26 self, device: DeviceAdapter, prompt: str = 'uart:~$', timeout: float | None = None 30 self.base_timeout: float = timeout or device.base_timeout 32 def wait_for_prompt(self, timeout: float | None = None) -> bool: 35 statement will occur (return True) or timeout will be exceeded (return 38 timeout = timeout or self.base_timeout 39 timeout_time = time.time() + timeout 44 line = self._device.readline(timeout=0.5, print_output=False) 46 # ignore read timeout and try to send enter once again 54 self, command: str, timeout: float | None = None, print_output: bool = True 62 timeout = timeout or self.base_timeout [all …]
|