Lines Matching +full:dma +full:- +full:channel +full:- +full:mask
4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/drivers/dma.h>
17 #define MASK(b_hi, b_lo) \ macro
18 (((1ULL << ((b_hi) - (b_lo) + 1ULL)) - 1ULL) << (b_lo))
21 (((x) & ((1ULL << ((b_hi) - (b_lo) + 1ULL)) - 1ULL)) << (b_lo))
83 /* channel bits */
84 #define DW_CHAN_WRITE_EN_ALL MASK(2 * DW_MAX_CHAN - 1, DW_MAX_CHAN)
86 #define DW_CHAN_ALL MASK(DW_MAX_CHAN - 1, 0)
137 #define DW_CTLL_SRC_WIDTH_MASK MASK(6, 4)
139 #define DW_CTLL_DST_WIDTH_MASK MASK(3, 1)
146 #define DW_CTLH_BLOCK_TS_MASK MASK(16, 0)
161 /* channel drain timeout in microseconds */
173 (((dir) == MEMORY_TO_PERIPHERAL) ? ((lli)->sar) : ((lli)->dar))
185 /* DMA descriptor used by HW */
206 /* pointer data for DW DMA buffer */
215 /* State tracking for each channel */
223 /* data for each DMA channel */
273 int dw_dma_config(const struct device *dev, uint32_t channel,
276 int dw_dma_reload(const struct device *dev, uint32_t channel,
279 int dw_dma_start(const struct device *dev, uint32_t channel);
281 int dw_dma_stop(const struct device *dev, uint32_t channel);
283 int dw_dma_suspend(const struct device *dev, uint32_t channel);
285 int dw_dma_resume(const struct device *dev, uint32_t channel);
289 int dw_dma_get_status(const struct device *dev, uint32_t channel,