Lines Matching refs:rx_dma_params

95 	struct mcux_lpuart_rx_dma_params rx_dma_params;  member
459 struct mcux_lpuart_rx_dma_params *dma_params = &data->async.rx_dma_params; in async_evt_rx_rdy()
494 .data.rx_buf.buf = data->async.rx_dma_params.buf, in async_evt_rx_buf_release()
498 data->async.rx_dma_params.buf = NULL; in async_evt_rx_buf_release()
499 data->async.rx_dma_params.buf_len = 0U; in async_evt_rx_buf_release()
500 data->async.rx_dma_params.offset = 0U; in async_evt_rx_buf_release()
501 data->async.rx_dma_params.counter = 0U; in async_evt_rx_buf_release()
515 const size_t rx_rcv_len = data->async.rx_dma_params.buf_len - in mcux_lpuart_async_rx_flush()
518 if (rx_rcv_len > data->async.rx_dma_params.counter && status.pending_length) { in mcux_lpuart_async_rx_flush()
519 data->async.rx_dma_params.counter = rx_rcv_len; in mcux_lpuart_async_rx_flush()
537 (void)k_work_cancel_delayable(&data->async.rx_dma_params.timeout_work); in mcux_lpuart_rx_disable()
543 if (!data->async.rx_dma_params.buf) { in mcux_lpuart_rx_disable()
549 data->async.rx_dma_params.buf = data->async.next_rx_buffer; in mcux_lpuart_rx_disable()
550 data->async.rx_dma_params.buf_len = data->async.next_rx_buffer_len; in mcux_lpuart_rx_disable()
578 struct mcux_lpuart_rx_dma_params *rx_dma_params = &data->async.rx_dma_params; in prepare_rx_dma_block_config() local
580 assert(rx_dma_params->buf != NULL); in prepare_rx_dma_block_config()
581 assert(rx_dma_params->buf_len > 0); in prepare_rx_dma_block_config()
583 struct dma_block_config *head_block_config = &rx_dma_params->active_dma_block; in prepare_rx_dma_block_config()
585 head_block_config->dest_address = (uint32_t)rx_dma_params->buf; in prepare_rx_dma_block_config()
587 head_block_config->block_size = rx_dma_params->buf_len; in prepare_rx_dma_block_config()
667 struct mcux_lpuart_rx_dma_params *rx_dma_params = &data->async.rx_dma_params; in dma_callback() local
670 rx_dma_params->counter = rx_dma_params->buf_len; in dma_callback()
673 (uint32_t)rx_dma_params->buf, in dma_callback()
679 rx_dma_params->buf = data->async.next_rx_buffer; in dma_callback()
680 rx_dma_params->buf_len = data->async.next_rx_buffer_len; in dma_callback()
685 if (rx_dma_params->buf != NULL && rx_dma_params->buf_len > 0) { in dma_callback()
820 struct mcux_lpuart_rx_dma_params *rx_dma_params = &data->async.rx_dma_params; in mcux_lpuart_rx_enable() local
834 rx_dma_params->timeout_us = timeout_us; in mcux_lpuart_rx_enable()
835 rx_dma_params->buf = buf; in mcux_lpuart_rx_enable()
836 rx_dma_params->buf_len = len; in mcux_lpuart_rx_enable()
879 rx_dma_params); in mcux_lpuart_async_rx_timeout()
925 async_timer_start(&data->async.rx_dma_params.timeout_work, in mcux_lpuart_async_isr()
926 data->async.rx_dma_params.timeout_us); in mcux_lpuart_async_isr()
1060 k_work_init_delayable(&data->async.rx_dma_params.timeout_work, in mcux_lpuart_configure_async()
1336 &mcux_lpuart_##id##_data.async.rx_dma_params.active_dma_block, \