/Zephyr-latest/drivers/dma/ |
D | dma_intel_lpss.c | 110 stat->pending_length = chan_data->ptr_data.buffer_bytes; in dma_intel_lpss_get_status() 116 stat->pending_length = 0; in dma_intel_lpss_get_status() 118 stat->pending_length = chan_data->ptr_data.buffer_bytes; in dma_intel_lpss_get_status() 120 stat->pending_length = in dma_intel_lpss_get_status()
|
D | dma_nxp_sdma.c | 62 chan_data->stat.pending_length = chan_data->capacity; in dma_nxp_sdma_init_stat() 67 chan_data->stat.pending_length = 0; in dma_nxp_sdma_init_stat() 79 if (bytes > chan_data->stat.pending_length) in dma_nxp_sdma_consume() 92 chan_data->stat.pending_length = chan_data->capacity - chan_data->stat.free; in dma_nxp_sdma_consume() 106 chan_data->stat.pending_length = chan_data->stat.write_position - in dma_nxp_sdma_produce() 109 chan_data->stat.pending_length = chan_data->capacity - in dma_nxp_sdma_produce() 112 chan_data->stat.free = chan_data->capacity - chan_data->stat.pending_length; in dma_nxp_sdma_produce() 368 stat->pending_length = chan_data->stat.pending_length; in dma_nxp_sdma_get_status()
|
D | dma_nxp_edma.h | 364 if (bytes > chan->stat.pending_length) { in edma_chan_cyclic_consume() 381 chan->stat.pending_length = chan->bsize - chan->stat.free; in edma_chan_cyclic_consume() 411 chan->stat.pending_length = chan->stat.write_position - in edma_chan_cyclic_produce() 414 chan->stat.pending_length = chan->bsize; in edma_chan_cyclic_produce() 416 chan->stat.pending_length = chan->bsize - in edma_chan_cyclic_produce() 420 chan->stat.free = chan->bsize - chan->stat.pending_length; in edma_chan_cyclic_produce()
|
D | dma_nxp_edma.c | 264 chan->stat.pending_length = chan->bsize; in edma_config() 268 chan->stat.pending_length = 0; in edma_config() 371 stat->pending_length = chan->stat.pending_length; in edma_get_status() 384 stat->pending_length = 0; in edma_get_status() 387 stat->pending_length = chan->bsize - stat->free; in edma_get_status() 391 LOG_DBG("free: %d, pending: %d", stat->free, stat->pending_length); in edma_get_status()
|
D | dma_sam0.c | 373 stat->pending_length = (act & DMAC_ACTIVE_BTCNT_Msk) >> in dma_sam0_get_status() 377 stat->pending_length = data->descriptors_wb[channel].BTCNT.reg; in dma_sam0_get_status() 384 stat->pending_length *= 2U; in dma_sam0_get_status() 387 stat->pending_length *= 4U; in dma_sam0_get_status()
|
D | dma_andes_atcdmac300.c | 302 data->chan[channel].status.pending_length = cfg->source_data_size; in dma_atcdmac300_config() 491 stat->pending_length = data->chan[channel].status.pending_length; in dma_atcdmac300_get_status()
|
D | dma_xmc4xxx.c | 396 stat->pending_length = dma_channel->block_ts - XMC_DMA_CH_GetTransferredData(dma, channel); in dma_xmc4xxx_get_status() 397 stat->pending_length *= dma_channel->source_data_size; in dma_xmc4xxx_get_status()
|
D | dma_dw_common.c | 838 stat->pending_length = dw_dma_avail_data_size(dev, dev_cfg->base, chan_data, in dw_dma_get_status() 840 stat->free = chan_data->ptr_data.buffer_bytes - stat->pending_length; in dw_dma_get_status() 844 stat->pending_length = chan_data->ptr_data.buffer_bytes - stat->free; in dw_dma_get_status()
|
D | dma_max32.c | 242 stat->pending_length = txfer.len; in max32_dma_get_status()
|
D | dma_mchp_xec.c | 600 status->pending_length = chan_data->total_req_xfr_len - in dma_xec_get_status() 603 status->pending_length = chan_data->total_req_xfr_len - in dma_xec_get_status()
|
D | dma_sam_xdmac.c | 397 status->pending_length = ublen; in sam_xdmac_get_status()
|
D | dma_mcux_lpc.c | 816 status->pending_length = DMA_GetRemainingBytes(DEV_BASE(dev), channel); in dma_mcux_lpc_get_status() 819 status->pending_length = 0; in dma_mcux_lpc_get_status()
|
D | dma_rpi_pico.c | 283 stat->pending_length = 0; in dma_rpi_pico_get_status()
|
D | dma_intel_adsp_hda.c | 235 stat->pending_length = used; in intel_adsp_hda_dma_status()
|
D | dma_mcux_edma.c | 758 status->pending_length = in dma_mcux_edma_get_status() 763 status->pending_length = 0; in dma_mcux_edma_get_status()
|
D | dma_stm32.c | 682 stat->pending_length = LL_DMA_GetDataLength(dma, dma_stm32_id_to_stream(id)); in dma_stm32_get_status()
|
D | dma_gd32.c | 578 stat->pending_length = gd32_dma_transfer_number_get(cfg->reg, ch); in dma_gd32_get_status()
|
/Zephyr-latest/drivers/serial/ |
D | uart_npcx.c | 468 static void uart_npcx_async_rx_dma_get_status(const struct device *dev, size_t *pending_length) in uart_npcx_async_rx_dma_get_status() argument 474 *pending_length = mdma_reg_base->MDMA_CTCNT0; in uart_npcx_async_rx_dma_get_status() 476 *pending_length = 0; in uart_npcx_async_rx_dma_get_status() 534 static int uart_npcx_async_tx_dma_get_status(const struct device *dev, size_t *pending_length) in uart_npcx_async_tx_dma_get_status() argument 540 *pending_length = mdma_reg_base->MDMA_CTCNT1; in uart_npcx_async_tx_dma_get_status() 542 *pending_length = 0; in uart_npcx_async_tx_dma_get_status()
|
D | uart_sam0.c | 170 evt.data.tx.len = tx_active - st.pending_length; in uart_sam0_tx_halt() 328 &st) == 0 && st.pending_length == 0U) { in uart_sam0_rx_timeout() 334 st.pending_length; in uart_sam0_rx_timeout() 1135 &st) == 0 && st.pending_length != 0U) { in uart_sam0_rx_disable() 1136 size_t rx_processed = dev_data->rx_len - st.pending_length; in uart_sam0_rx_disable()
|
D | uart_xmc4xxx.c | 444 data->dma_rx.counter = data->dma_rx.buffer_len - stat.pending_length; in async_evt_rx_stopped() 526 size_t rx_rcv_len = data->dma_rx.buffer_len - stat.pending_length; in uart_xmc4xxx_async_rx_timeout() 553 data->dma_tx.counter = tx_buffer_len - stat.pending_length; in uart_xmc4xxx_async_tx_abort() 809 size_t rx_rcv_len = data->dma_rx.buffer_len - stat.pending_length; in uart_xmc4xxx_async_rx_disable() 847 data->dma_tx.counter = tx_buffer_len - stat.pending_length; in uart_xmc4xxx_dma_tx_cb()
|
D | uart_mcux_lpuart.c | 516 status.pending_length; 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() 653 status.pending_length); in dma_callback() 797 data->async.tx_dma_params.buf_len - status.pending_length : 0; in mcux_lpuart_tx_abort()
|
D | uart_mcux_flexcomm.c | 521 size_t sent_len = data->tx_data.xfer_len - status.pending_length; in mcux_flexcomm_uart_tx_abort() 621 size_t total_rx_receive_len = data->rx_data.xfer_len - status.pending_length; in flexcomm_uart_rx_update()
|
D | uart_stm32.c | 1215 stat.pending_length; in uart_stm32_dma_rx_flush() 1467 stat.pending_length; in uart_stm32_dma_tx_cb() 1699 data->dma_tx.counter = tx_buffer_length - stat.pending_length; in uart_stm32_async_tx_abort()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | dma.h | 281 uint32_t pending_length; member
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/ |
D | ec_host_cmd_backend_spi_stm32.c | 631 rx_bytes = CONFIG_EC_HOST_CMD_HANDLER_RX_BUFFER_SIZE - stat.pending_length; in wait_for_rx_bytes()
|