/Zephyr-Core-3.6.0/subsys/tracing/test/ |
D | tracing_test.h | 4 * SPDX-License-Identifier: Apache-2.0 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 [all …]
|
D | tracing_string_format_test.c | 4 * SPDX-License-Identifier: Apache-2.0 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 [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/fifo/fifo_timeout/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 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 81 #define FIFO_THREAD_PRIO -5 [all …]
|
/Zephyr-Core-3.6.0/subsys/tracing/sysview/ |
D | SYSVIEW_Zephyr.txt | 9 NamedType TimeOut *="%u ticks" 0=TIMEOUT_NO_WAIT 4294967295=FOREVER 12 …-1=EPERM -2=ENOENT -3=ESRCH -4=EINTR -5=EIO -6=ENXIO … 13 NamedType ErrCodeMath *=%i 0=ESUCCESS -37=EDOM -38=ERANGE 14 …-40=EDESTADDRREQ -41=EPROTOTYPE -42=ENOPROTOOPT -43=EPROTONOSUPPORT -44=ESOCKTNOSUPPORT -45=EOPNO… 15 …-51=ENETUNREACH -52=ENETRESET -53=ECONNABORTED -54=ECONNRESET -55=ENOBUFS -56=EISCO… 16 NamedType ErrCodeNetIO *=%i 0=ESUCCESS -68=EINPROGRESS -69=EALREADY -11=EWOULDBLOCK -71=ENOSYS 17 …*=%i 0=ESUCCESS -74=ENOSR -75=ENOSTR -76=EPROTO -77=EBADMSG -78=ENODATA … 18 NamedType ErrCodeMsg *=%i 0=ESUCCESS -11=EAGAIN -80=ENOMSG 32 34 k_busy_wait Timeout=%u us 43 42 k_sem_take sem=%I, Timeout=%TimeOut| Returns %ErrCodePosix [all …]
|
/Zephyr-Core-3.6.0/tests/net/lib/lwm2m/interop/pytest/ |
D | leshan.py | 7 SPDX-License-Identifier: Apache-2.0 25 self.timeout = 10 42 - response: The response object received from the server. 45 - dict: The parsed JSON response as a dictionary. 48 - Exception: If the response indicates an error condition. 59 params = {'timeout': self.timeout} 62 resp = self._s.get(f'{self.api_url}{path}', params=params, timeout=self.timeout) 65 …def put_raw(self, path: str, data: str | dict | None = None, headers: dict | None = None, params: … 67 …resp = self._s.put(f'{self.api_url}{path}', data=data, headers=headers, params=params, timeout=sel… 70 def put(self, path: str, data: str | dict, uri_options: str = ''): [all …]
|
/Zephyr-Core-3.6.0/drivers/sensor/pms7003/ |
D | pms7003.c | 4 * SPDX-License-Identifier: Apache-2.0 9 /* sensor pms7003.c - Driver for plantower PMS7003 sensor 27 /* wait serial output with 1000ms timeout */ 41 * @brief wait for an array data from uart device with a timeout 44 * @param data the data array to be matched 45 * @param len the data array len 46 * @param timeout the timeout in milliseconds 47 * @return 0 if success; -ETIME if timeout 49 static int uart_wait_for(const struct device *dev, uint8_t *data, int len, in uart_wait_for() argument 50 int timeout) in uart_wait_for() argument [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/portability/cmsis_rtos_v1/src/ |
D | msgq.c | 4 * SPDX-License-Identifier: Apache-2.0 14 #define TIMEOUT 500 macro 24 uint32_t data = MESSAGE1; in send_msg_thread() local 27 osDelay(TIMEOUT); in send_msg_thread() 30 status = osMessagePut(message_id, data, osWaitForever); in send_msg_thread() 35 data = i; in send_msg_thread() 36 status = osMessagePut(message_id, data, osWaitForever); in send_msg_thread() 44 data = MESSAGE2; in send_msg_thread() 45 status = osMessagePut(message_id, data, 0); in send_msg_thread() 50 * less than TIMEOUT, before the queue is emptied out in send_msg_thread() [all …]
|
/Zephyr-Core-3.6.0/subsys/canbus/isotp/ |
D | Kconfig | 1 # ISO-TP configuration options 4 # SPDX-License-Identifier: Apache-2.0 7 bool "ISO-TP Transport [EXPERIMENTAL]" 18 module-str = ISOTP 30 int "Bs timeout [ms] (timeout for receiving the frame control)" 34 Timeout for the reception of the next FC frame. ISO 15765-2: 1000ms 37 int "Ar and As timeout [ms] (sending and receiving timeout)" 41 As (sender transmit timeout) and Ar (receiver transmit timeout). 42 ISO 15765-2: 1000ms 45 int "Cr timeout [ms] (timeout for consecutive frames)" [all …]
|
/Zephyr-Core-3.6.0/kernel/ |
D | msg_q.c | 4 * SPDX-License-Identifier: Apache-2.0 35 z_handle_obj_poll_events(&msgq->poll_events, state); in handle_poll_events() 42 msgq->msg_size = msg_size; in k_msgq_init() 43 msgq->max_msgs = max_msgs; in k_msgq_init() 44 msgq->buffer_start = buffer; in k_msgq_init() 45 msgq->buffer_end = buffer + (max_msgs * msg_size); in k_msgq_init() 46 msgq->read_ptr = buffer; in k_msgq_init() 47 msgq->write_ptr = buffer; in k_msgq_init() 48 msgq->used_msgs = 0; in k_msgq_init() 49 msgq->flags = 0; in k_msgq_init() [all …]
|
D | stack.c | 2 * Copyright (c) 2010-2016 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 8 * @brief fixed-size stack object 29 z_waitq_init(&stack->wait_q); in k_stack_init() 30 stack->lock = (struct k_spinlock) {}; in k_stack_init() 31 stack->next = stack->base = buffer; in k_stack_init() 32 stack->top = stack->base + num_entries; in k_stack_init() 52 stack->flags = K_STACK_FLAG_ALLOC; in z_impl_k_stack_alloc_init() 55 ret = -ENOMEM; in z_impl_k_stack_alloc_init() 78 CHECKIF(z_waitq_head(&stack->wait_q) != NULL) { in k_stack_cleanup() [all …]
|
D | mailbox.c | 4 * SPDX-License-Identifier: Apache-2.0 55 * Do run-time initialization of mailbox object subsystem. 94 z_waitq_init(&mbox->tx_msg_queue); in k_mbox_init() 95 z_waitq_init(&mbox->rx_msg_queue); in k_mbox_init() 96 mbox->lock = (struct k_spinlock) {}; in k_mbox_init() 115 * @return 0 if successfully matched, otherwise -1. 122 if (((tx_msg->tx_target_thread == (k_tid_t)K_ANY) || in mbox_message_match() 123 (tx_msg->tx_target_thread == rx_msg->tx_target_thread)) && in mbox_message_match() 124 ((rx_msg->rx_source_thread == (k_tid_t)K_ANY) || in mbox_message_match() 125 (rx_msg->rx_source_thread == tx_msg->rx_source_thread))) { in mbox_message_match() [all …]
|
/Zephyr-Core-3.6.0/drivers/modem/ |
D | modem_cmd_handler.h | 4 * Text-based command handler implementation for modem context driver. 10 * SPDX-License-Identifier: Apache-2.0 25 static int name_(struct modem_cmd_handler_data *data, uint16_t len, \ 30 .cmd_len = (uint16_t)sizeof(cmd_)-1, \ 40 .cmd_len = (uint16_t)sizeof(cmd_)-1, \ 52 .cmd_len = (uint16_t)sizeof(cmd_)-1, \ 75 int (*func)(struct modem_cmd_handler_data *data, uint16_t len, 122 /* user data */ 129 * @param data: command handler data reference 133 int modem_cmd_handler_get_error(struct modem_cmd_handler_data *data); [all …]
|
/Zephyr-Core-3.6.0/drivers/watchdog/ |
D | wdt_sam.c | 4 * SPDX-License-Identifier: Apache-2.0 13 * - Once the watchdog disable bit is set, it cannot be cleared till next 15 * - Since the MCU boots with WDT enabled, the CONFIG_WDT_DISABLE_AT_BOOT 18 * - If the application needs to use the watchdog in the system, then 49 const struct wdt_sam_dev_cfg *config = dev->config; in wdt_sam_isr() 51 Wdt * const wdt = config->regs; in wdt_sam_isr() 52 struct wdt_sam_dev_data *data = dev->data; in wdt_sam_isr() local 55 wdt_sr = wdt->WDT_SR; in wdt_sam_isr() 57 data->cb(dev, 0); in wdt_sam_isr() 64 * @param timeout Timeout value in milliseconds. [all …]
|
D | wdt_ite_it8xxx2.c | 3 * SPDX-License-Identifier: Apache-2.0 29 /* driver data */ 31 /* timeout callback used to handle watchdog event */ 33 /* indicate whether a watchdog timeout is installed */ 35 /* watchdog feed timeout in milliseconds */ 36 uint32_t timeout; member 42 const struct wdt_it8xxx2_config *const wdt_config = dev->config; in wdt_it8xxx2_install_timeout() 43 struct wdt_it8xxx2_data *data = dev->data; in wdt_it8xxx2_install_timeout() local 44 struct wdt_it8xxx2_regs *const inst = wdt_config->base; in wdt_it8xxx2_install_timeout() 47 if ((inst->ETWCFG) & IT8XXX2_WDT_LEWDCNTL) { in wdt_it8xxx2_install_timeout() [all …]
|
/Zephyr-Core-3.6.0/subsys/zbus/ |
D | zbus.c | 3 * SPDX-License-Identifier: Apache-2.0 31 k_timeout_t timeout) in _zbus_create_net_buf() argument 33 return net_buf_alloc_len(&_zbus_msg_subscribers_pool, size, timeout); in _zbus_create_net_buf() 44 k_timeout_t timeout) in _zbus_create_net_buf() argument 50 return net_buf_alloc(&_zbus_msg_subscribers_pool, timeout); in _zbus_create_net_buf() 63 curr = observation->chan; in _zbus_init() 67 curr->data->observers_start_idx = 0; in _zbus_init() 68 curr->data->observers_end_idx = 0; in _zbus_init() 70 curr->data->observers_start_idx = prev->data->observers_end_idx; in _zbus_init() 71 curr->data->observers_end_idx = prev->data->observers_end_idx; in _zbus_init() [all …]
|
/Zephyr-Core-3.6.0/drivers/i2c/ |
D | i2c_ll_stm32_v1.c | 2 * Copyright (c) 2017, I-SENSE group of ICCS 5 * SPDX-License-Identifier: Apache-2.0 25 #include "i2c-priv.h" 50 const struct i2c_stm32_config *cfg = dev->config; in stm32_i2c_disable_transfer_interrupts() 51 struct i2c_stm32_data *data = dev->data; in stm32_i2c_disable_transfer_interrupts() local 52 I2C_TypeDef *i2c = cfg->i2c; in stm32_i2c_disable_transfer_interrupts() 59 if (!data->smbalert_active) { in stm32_i2c_disable_transfer_interrupts() 66 const struct i2c_stm32_config *cfg = dev->config; in stm32_i2c_enable_transfer_interrupts() 67 I2C_TypeDef *i2c = cfg->i2c; in stm32_i2c_enable_transfer_interrupts() 78 const struct i2c_stm32_config *cfg = dev->config; in stm32_i2c_reset() [all …]
|
/Zephyr-Core-3.6.0/tests/drivers/uart/uart_async_api/src/ |
D | test_uart_async.c | 4 * SPDX-License-Identifier: Apache-2.0 95 struct test_data *data = (struct test_data *)user_data; in test_single_read_callback() local 97 switch (evt->type) { in test_single_read_callback() 102 data->tx_aborted_count++; in test_single_read_callback() 105 if ((uintptr_t)evt->data.rx.buf < (uintptr_t)tdata.rx_second_buffer) { in test_single_read_callback() 106 data->recv_bytes_first_buffer += evt->data.rx.len; in test_single_read_callback() 108 data->recv_bytes_second_buffer += evt->data.rx.len; in test_single_read_callback() 116 if (data->supply_second_buffer) { in test_single_read_callback() 118 uart_rx_buf_rsp(dev, data->rx_second_buffer, in test_single_read_callback() 119 sizeof(data->rx_second_buffer)); in test_single_read_callback() [all …]
|
/Zephyr-Core-3.6.0/include/zephyr/canbus/ |
D | isotp.h | 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief Public API for ISO-TP (ISO 15765-2:2016) 11 * ISO-TP is a transport protocol for CAN (Controller Area Network) 18 * @brief CAN ISO-TP Protocol 19 * @defgroup can_isotp CAN ISO-TP Protocol 31 * CAN_DL CAN LL data size 34 * DLC Data length code 44 * RX_DL CAN RX LL data size 45 * TX_DL CAN TX LL data size 50 * N_Result according to ISO 15765-2:2016 [all …]
|
/Zephyr-Core-3.6.0/include/zephyr/net/ |
D | net_offload.h | 4 * SPDX-License-Identifier: Apache-2.0 34 static inline int32_t timeout_to_int32(k_timeout_t timeout) in timeout_to_int32() argument 36 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in timeout_to_int32() 38 } else if (K_TIMEOUT_EQ(timeout, K_FOREVER)) { in timeout_to_int32() 39 return -1; in timeout_to_int32() 41 return k_ticks_to_ms_floor32(timeout.ticks); in timeout_to_int32() 80 int32_t timeout, 89 int32_t timeout, 93 * This function is called when user wants to send data to peer host. 97 int32_t timeout, [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/tracing/tracing_api/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 65 uint8_t *data, uint32_t length) in tracing_backends_output() argument 67 /* Check the output data. */ in tracing_backends_output() 76 if (strstr(data, string_tracked[i]) != NULL) { in tracing_backends_output() 85 if (strstr(data, "tracing_format_data_testing") != NULL) { in tracing_backends_output() 88 if (strstr(data, "tracing_format_raw_data_testing") != NULL) { in tracing_backends_output() 91 if (strstr(data, "tracing_format_string_testing") != NULL) { in tracing_backends_output() 108 * @details For asynchronous mode, self-designed tracing uart backend 123 k_timeout_t timeout = K_MSEC(1); in ZTEST() local 142 sys_trace_k_thread_sleep_enter(timeout); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/subsys/tracing/user/ |
D | tracing_user.h | 5 * SPDX-License-Identifier: Apache-2.0 53 #define sys_port_trace_k_thread_join_enter(thread, timeout) argument 54 #define sys_port_trace_k_thread_join_blocking(thread, timeout) argument 55 #define sys_port_trace_k_thread_join_exit(thread, timeout, ret) argument 56 #define sys_port_trace_k_thread_sleep_enter(timeout) argument 57 #define sys_port_trace_k_thread_sleep_exit(timeout, ret) argument 93 #define sys_port_trace_k_work_flush_blocking(work, timeout) argument 130 timeout) argument 132 timeout) argument 133 #define sys_port_trace_k_work_poll_submit_to_queue_exit(work_q, work, timeout, \ argument [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/lifo/lifo_usage/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 38 int32_t timeout; member 68 #define LIFO_THREAD_PRIO -5 98 /* data pushed at last should be read first */ in thread_entry_nowait() 108 static bool is_timeout_in_range(uint32_t start_time, uint32_t timeout) in is_timeout_in_range() argument 113 diff = k_cyc_to_ms_floor32(stop_time - start_time); in is_timeout_in_range() 114 return timeout <= diff; in is_timeout_in_range() 130 struct timeout_order_data *data = in test_multiple_threads_pending() local 133 if (data->timeout_order == ii) { in test_multiple_threads_pending() 135 data->q_order, (int) data->timeout, in test_multiple_threads_pending() [all …]
|
/Zephyr-Core-3.6.0/scripts/pylib/pytest-twister-harness/src/twister_harness/device/ |
D | device_adapter.py | 3 # SPDX-License-Identifier: Apache-2.0 30 simulator, QEMU) used in tests to gathering device output and send data to 34 def __init__(self, device_config: DeviceConfig) -> None: 50 def __repr__(self) -> str: 54 def env(self) -> dict[str, str]: 58 def launch(self) -> None: 82 def close(self) -> None: 92 def connect(self) -> None: 93 """Connect to device - allow for output gathering.""" 104 def disconnect(self) -> None: [all …]
|
/Zephyr-Core-3.6.0/subsys/net/ |
D | buf.c | 1 /* buf.c - Buffer management */ 4 * Copyright (c) 2015-2019 Intel Corporation 6 * SPDX-License-Identifier: Apache-2.0 45 /* Linker-defined symbol bound to the static pool structs */ 59 return pool - TYPE_SECTION_START(net_buf_pool); in pool_id() 64 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in net_buf_id() 65 size_t struct_size = ROUND_UP(sizeof(struct net_buf) + pool->user_data_size, in net_buf_id() 67 ptrdiff_t offset = (uint8_t *)buf - (uint8_t *)pool->__bufs; in net_buf_id() 75 size_t struct_size = ROUND_UP(sizeof(struct net_buf) + pool->user_data_size, in pool_get_uninit() 77 size_t byte_offset = (pool->buf_count - uninit_count) * struct_size; in pool_get_uninit() [all …]
|
/Zephyr-Core-3.6.0/include/zephyr/console/ |
D | tty.h | 4 * SPDX-License-Identifier: Apache-2.0 37 * "tty" device provides support for buffered, interrupt-driven, 38 * timeout-controlled access to an underlying UART device. For 39 * completeness, it also support non-interrupt-driven, busy-polling 48 * interrupt-driven operation) 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() [all …]
|