/Zephyr-latest/subsys/modem/backends/ |
D | modem_backend_uart_async.c | 25 if (!atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_uart_stopped() 27 !atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_uart_stopped() 29 !atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_uart_stopped() 31 !atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_uart_stopped() 41 return atomic_test_bit(&backend->async.state, in modem_backend_uart_async_is_open() 47 return ring_buf_size_get(&backend->async.receive_rb); in get_receive_buf_length() 59 atomic_clear_bit(&backend->async.state, in modem_backend_uart_async_event_handler() 68 atomic_clear_bit(&backend->async.state, in modem_backend_uart_async_event_handler() 75 if (!atomic_test_and_set_bit(&backend->async.state, in modem_backend_uart_async_event_handler() 77 uart_rx_buf_rsp(backend->uart, backend->async.receive_bufs[0], in modem_backend_uart_async_event_handler() [all …]
|
D | Kconfig | 22 bool "Modem UART backend module async implementation" 44 int "Modem async UART transmit timeout in milliseconds" 48 int "Modem async UART receive idle timeout in milliseconds"
|
/Zephyr-latest/drivers/serial/ |
D | uart_esp32.c | 121 struct uart_esp32_async_data async; member 501 data->async.cb = NULL; in uart_esp32_irq_callback_set() 502 data->async.user_data = NULL; in uart_esp32_irq_callback_set() 551 data->async.rx_counter++; in uart_esp32_isr() 552 uart_esp32_async_timer_start(&data->async.rx_timeout_work, data->async.rx_timeout); in uart_esp32_isr() 572 if (data->async.rx_counter != data->async.rx_len) { in uart_esp32_dma_rx_done() 574 (uint32_t)data->async.rx_buf + data->async.rx_counter, in uart_esp32_dma_rx_done() 575 data->async.rx_len - data->async.rx_counter); in uart_esp32_dma_rx_done() 577 data->uhci_dev->pkt_thres.thrs = data->async.rx_len - data->async.rx_counter; in uart_esp32_dma_rx_done() 584 evt.data.rx.buf = data->async.rx_buf; in uart_esp32_dma_rx_done() [all …]
|
D | uart_mcux_lpuart.c | 122 struct mcux_lpuart_async_data async; member 409 data->async.user_callback = NULL; in mcux_lpuart_irq_callback_set() 410 data->async.user_data = NULL; in mcux_lpuart_irq_callback_set() 431 if (data->async.user_callback) { in async_user_callback() 432 data->async.user_callback(dev, evt, data->async.user_data); in async_user_callback() 440 (void)k_work_cancel_delayable(&data->async.tx_dma_params.timeout_work); in async_evt_tx_done() 442 LOG_DBG("TX done: %d", data->async.tx_dma_params.buf_len); in async_evt_tx_done() 445 .data.tx.buf = data->async.tx_dma_params.buf, in async_evt_tx_done() 446 .data.tx.len = data->async.tx_dma_params.buf_len in async_evt_tx_done() 450 data->async.tx_dma_params.buf = NULL; in async_evt_tx_done() [all …]
|
D | uart_npcx.c | 97 struct uart_npcx_async_data async; member 356 data->async.user_callback = NULL; in uart_npcx_irq_callback_set() 357 data->async.user_data = NULL; in uart_npcx_irq_callback_set() 423 if (data->async.user_callback) { in async_user_callback() 424 data->async.user_callback(dev, evt, data->async.user_data); in async_user_callback() 431 struct uart_npcx_rx_dma_params *rx_dma_params = &data->async.rx_dma_params; in async_evt_rx_rdy() 454 (void)k_work_cancel_delayable(&data->async.tx_dma_params.timeout_work); in async_evt_tx_done() 456 LOG_DBG("TX done: %d", data->async.tx_dma_params.buf_len); in async_evt_tx_done() 459 .data.tx.buf = data->async.tx_dma_params.buf, in async_evt_tx_done() 460 .data.tx.len = data->async.tx_dma_params.buf_len}; in async_evt_tx_done() [all …]
|
D | uart_nrfx_uarte.c | 226 struct uarte_async_cb *async; member 381 if (data->async && HW_RX_COUNTING_ENABLED(config)) { in uarte_disable_locked() 384 data->async->rx.total_byte_cnt = 0; in uarte_disable_locked() 385 data->async->rx.total_user_byte_cnt = 0; in uarte_disable_locked() 670 if (data->async) { in uarte_periph_enable() 676 for (int i = 0; i < data->async->rx.flush_cnt; i++) { in uarte_periph_enable() 776 ret = nrfx_gppi_channel_alloc(&data->async->rx.cnt.ppi); in uarte_nrfx_rx_counting_init() 783 nrfx_gppi_channel_endpoints_setup(data->async->rx.cnt.ppi, evt_addr, tsk_addr); in uarte_nrfx_rx_counting_init() 784 nrfx_gppi_channels_enable(BIT(data->async->rx.cnt.ppi)); in uarte_nrfx_rx_counting_init() 815 k_timer_init(&data->async->rx.timer, rx_timeout, NULL); in uarte_async_init() [all …]
|
D | uart_ns16550.c | 382 struct uart_ns16550_async_data async; member 827 if (data->async.tx_dma_params.dma_dev != NULL) { 845 if (data->async.tx_dma_params.dma_dev != NULL) { 846 data->async.next_rx_buffer = NULL; 847 data->async.next_rx_buffer_len = 0; 848 data->async.uart_dev = dev; 849 k_work_init_delayable(&data->async.rx_dma_params.timeout_work, 851 k_work_init_delayable(&data->async.tx_dma_params.timeout_work, 853 data->async.rx_dma_params.dma_cfg.head_block = 854 &data->async.rx_dma_params.active_dma_block; [all …]
|
D | uart_nrfx_uarte2.c | 138 struct uarte_async_data *async; member 179 (!UARTE_INT_ASYNC || (((struct uarte_nrfx_data *)dev->data)->async == NULL)) 195 data->async->user_callback = callback; in callback_set() 196 data->async->user_data = user_data; in callback_set() 232 k_timer_stop(&data->async->tx_timer); in on_tx_done() 234 data->async->user_callback(dev, &evt, data->async->user_data); in on_tx_done() 242 if (data->async->err) { in on_rx_done() 244 evt.data.rx_stop.reason = UARTE_ERROR_FROM_MASK(data->async->err); in on_rx_done() 249 data->async->err = 0; in on_rx_done() 251 data->async->user_callback(dev, &evt, data->async->user_data); in on_rx_done() [all …]
|
/Zephyr-latest/tests/subsys/pm/device_runtime_api/src/ |
D | test_driver.c | 15 bool async; member 27 if (data->async) { in test_driver_action() 29 data->async = false; in test_driver_action() 44 data->async = true; in test_driver_pm_async()
|
/Zephyr-latest/kernel/ |
D | mailbox.c | 40 static inline void mbox_async_alloc(struct k_mbox_async **async) in mbox_async_alloc() argument 42 (void)k_stack_pop(&async_msg_free, (stack_data_t *)async, K_FOREVER); in mbox_async_alloc() 46 static inline void mbox_async_free(struct k_mbox_async *async) in mbox_async_free() argument 48 k_stack_push(&async_msg_free, (stack_data_t)async); in mbox_async_free() 314 struct k_mbox_async *async; in k_mbox_async_put() local 322 mbox_async_alloc(&async); in k_mbox_async_put() 324 async->thread.prio = arch_current_thread()->base.prio; in k_mbox_async_put() 326 async->tx_msg = *tx_msg; in k_mbox_async_put() 327 async->tx_msg._syncing_thread = (struct k_thread *)&async->thread; in k_mbox_async_put() 328 async->tx_msg._async_sem = sem; in k_mbox_async_put() [all …]
|
/Zephyr-latest/tests/drivers/spi/spi_controller_peripheral/src/ |
D | main.c | 62 bool async; member 93 if (!td->async) { in work_handler() 201 static void run_test(bool m_same_size, bool s_same_size, bool async) in run_test() argument 207 tdata.async = async; in run_test() 211 if (!async) { in run_test() 255 static void test_basic(bool async) in test_basic() argument 271 run_test(true, true, async); in test_basic() 286 void test_basic_zero_len(bool async) in test_basic_zero_len() argument 322 run_test(true, true, async); in test_basic_zero_len() 339 static void test_short_rx(bool async) in test_short_rx() argument [all …]
|
/Zephyr-latest/tests/boards/frdm_k64f/i2c/ |
D | README.rst | 4 Tests the i2c transfer and transfer async APIs against the fxos8700 sensor 5 on the board using its FIFO with a async and sync transfer to compare
|
/Zephyr-latest/tests/drivers/uart/uart_async_api/boards/ |
D | samd21_xpro.overlay | 16 /* Configure DMA channels for async operation */ 22 /* configure DMA channels for async operation */
|
D | samc21n_xpro.overlay | 12 /* Configure DMA channels for async operation */ 22 /* configure DMA channels for async operation */
|
D | same54_xpro.overlay | 18 /* Configure DMA channels for async operation */ 24 /* configure DMA channels for async operation */
|
D | saml21_xpro.overlay | 16 /* configure DMA channels for async operation */ 22 /* configure DMA channels for async operation */
|
D | samr21_xpro.overlay | 16 /* Configure DMA channels for async operation */ 34 /* Configure DMA channels for async operation */
|
D | samr34_xpro.overlay | 12 /* configure DMA channels for async operation */ 33 /* configure DMA channels for async operation */
|
/Zephyr-latest/drivers/adc/ |
D | adc_handlers.c | 74 struct k_poll_signal *async) in z_vrfy_adc_read_async() argument 87 K_OOPS(K_SYSCALL_OBJ(async, K_OBJ_POLL_SIGNAL)); in z_vrfy_adc_read_async() 90 (struct k_poll_signal *)async); in z_vrfy_adc_read_async()
|
/Zephyr-latest/tests/drivers/uart/uart_mix_fifo_poll/src/ |
D | main.c | 72 static bool async; variable 107 if (async && !async_rx_enabled) { in counter_top_handler() 122 } else if (!async && !int_driven) { in counter_top_handler() 143 async = true; in init_test() 145 async = false; in init_test() 259 if (async) { in int_async_thread_func() 335 if (async || int_driven) { in ZTEST() 356 if (async || int_driven) { in ZTEST() 363 for (int i = 0; i < (num_of_contexts + (async || int_driven ? 1 : 0)); i++) { in ZTEST()
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/ |
D | Kconfig.uart | 29 bool "Use async UART API when available" 31 The option enables use of UART async API when available for selected mcumgr uart port. 36 int "Number of async RX UART buffers" 46 int "Size of single async RX UART buffer"
|
/Zephyr-latest/samples/net/sockets/http_server/src/static_web_resources/ |
D | main.js | 6 async function fetchUptime() 22 async function postLed(state)
|
/Zephyr-latest/include/zephyr/drivers/ |
D | lora.h | 152 struct k_poll_signal *async); 246 struct k_poll_signal *async) in lora_send_async() argument 251 return api->send_async(dev, data, data_len, async); in lora_send_async()
|
/Zephyr-latest/tests/lib/onoff/src/ |
D | main.c | 111 bool async; member 119 tsp->async = false; in reset_transit_state() 129 if (tsp->async) { in run_transit() 432 start_state.async = true; in ZTEST() 434 stop_state.async = true; in ZTEST() 555 start_state.async = true; in ZTEST() 668 stop_state.async = true; in ZTEST() 722 start_state.async = true; in ZTEST() 758 stop_state.async = true; in ZTEST() 841 reset_state.async = true; in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/ |
D | Kconfig | 6 bool "Mock UART async driver"
|