/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/src/ |
D | duet_dma.c | 91 uint8_t dma_chan = chan_num; in duet_dma_mem2mem() local 108 (pChan_Cfg_Align + dma_chan)->chan_ctr = ch_cfg.chan_ctr; in duet_dma_mem2mem() 109 (pChan_Cfg_Align + dma_chan)->chan_src_end_ptr = ch_cfg.chan_src_end_ptr; in duet_dma_mem2mem() 110 (pChan_Cfg_Align + dma_chan)->chan_dst_end_ptr = ch_cfg.chan_dst_end_ptr; in duet_dma_mem2mem() 112 DMA->CHAN_PRI_ALT_CLR |= (1 << dma_chan); in duet_dma_mem2mem() 115 DMA->CHAN_EN_SET |= (1 << dma_chan); // enbale channel 0 in duet_dma_mem2mem() 117 DMA_INT_MASK |= (1 << dma_chan); // dma interrupt unmask, write 1 in duet_dma_mem2mem() 119 DMA->CHAN_SW_REQ |= (1 << dma_chan); in duet_dma_mem2mem() 124 uint8_t dma_chan; in duet_dma_uart_rx() local 127 dma_chan = 0; in duet_dma_uart_rx() [all …]
|
D | duet_i2c.c | 775 uint8_t dma_chan = 0; in duet_i2c_master_dma_send() local 778 dma_chan = 12; in duet_i2c_master_dma_send() 798 (pChan_Cfg_Align + dma_chan)->chan_ctr = ch_cfg.chan_ctr; in duet_i2c_master_dma_send() 799 (pChan_Cfg_Align + dma_chan)->chan_src_end_ptr = ch_cfg.chan_src_end_ptr; in duet_i2c_master_dma_send() 800 (pChan_Cfg_Align + dma_chan)->chan_dst_end_ptr = ch_cfg.chan_dst_end_ptr; in duet_i2c_master_dma_send() 806 DMA_INT_MASK |= (1 << dma_chan); // dma interrupt unmask, write 1 in duet_i2c_master_dma_send() 808 DMA->CHAN_PRI_ALT_CLR |= (1 << dma_chan); in duet_i2c_master_dma_send() 812 DMA->CHAN_EN_CLR |= ~(1 << dma_chan); // disable other channels in duet_i2c_master_dma_send() 813 DMA->CHAN_EN_SET |= (1 << dma_chan); // enable channel 6 in duet_i2c_master_dma_send() 818 uint8_t dma_chan = 13; // i2c0 rx using dma channel 10 in duet_i2c_master_dma_recv() local [all …]
|
/device/soc/rockchip/common/sdk_linux/include/linux/ |
D | dmaengine.h | 330 struct dma_chan { struct 363 struct dma_chan *chan; argument 517 static inline const char *dma_chan_name(struct dma_chan *chan) in dma_chan_name() 535 typedef bool (*dma_filter_fn)(struct dma_chan *chan, void *filter_param); 604 struct dma_chan *chan; 875 int (*device_alloc_chan_resources)(struct dma_chan *chan); 876 void (*device_free_chan_resources)(struct dma_chan *chan); 878 …struct dma_async_tx_descriptor *(*device_prep_dma_memcpy)(struct dma_chan *chan, dma_addr_t dst, d… 880 …struct dma_async_tx_descriptor *(*device_prep_dma_xor)(struct dma_chan *chan, dma_addr_t dst, dma_… 882 … struct dma_async_tx_descriptor *(*device_prep_dma_xor_val)(struct dma_chan *chan, dma_addr_t *src, [all …]
|
/device/soc/esp/esp32/components/driver/include/esp_private/ |
D | gdma.h | 91 typedef bool (*gdma_event_callback_t)(gdma_channel_handle_t dma_chan, gdma_event_data_t *event_data… 167 esp_err_t gdma_connect(gdma_channel_handle_t dma_chan, gdma_trigger_t trig_periph); 179 esp_err_t gdma_disconnect(gdma_channel_handle_t dma_chan); 190 esp_err_t gdma_apply_strategy(gdma_channel_handle_t dma_chan, const gdma_strategy_config_t *config); 202 esp_err_t gdma_del_channel(gdma_channel_handle_t dma_chan); 217 esp_err_t gdma_get_channel_id(gdma_channel_handle_t dma_chan, int *channel_id); 231 esp_err_t gdma_register_tx_event_callbacks(gdma_channel_handle_t dma_chan, gdma_tx_event_callbacks_… 245 esp_err_t gdma_register_rx_event_callbacks(gdma_channel_handle_t dma_chan, gdma_rx_event_callbacks_… 257 esp_err_t gdma_start(gdma_channel_handle_t dma_chan, intptr_t desc_base_addr); 268 esp_err_t gdma_stop(gdma_channel_handle_t dma_chan); [all …]
|
/device/soc/esp/esp32/components/driver/ |
D | gdma.c | 217 esp_err_t gdma_del_channel(gdma_channel_handle_t dma_chan) in gdma_del_channel() argument 220 DMA_CHECK(dma_chan, "invalid argument", err, ESP_ERR_INVALID_ARG); in gdma_del_channel() 222 ret_code = dma_chan->del(dma_chan); // call `gdma_del_tx_channel` or `gdma_del_rx_channel` in gdma_del_channel() 228 esp_err_t gdma_get_channel_id(gdma_channel_handle_t dma_chan, int *channel_id) in gdma_get_channel_id() argument 232 DMA_CHECK(dma_chan, "invalid argument", err, ESP_ERR_INVALID_ARG); in gdma_get_channel_id() 233 pair = dma_chan->pair; in gdma_get_channel_id() 239 esp_err_t gdma_connect(gdma_channel_handle_t dma_chan, gdma_trigger_t trig_periph) in gdma_connect() argument 244 DMA_CHECK(dma_chan, "invalid argument", err, ESP_ERR_INVALID_ARG); in gdma_connect() 245 …DMA_CHECK(dma_chan->periph_id == GDMA_INVALID_PERIPH_TRIG, "channel is using by peripheral: %d", e… in gdma_connect() 246 pair = dma_chan->pair; in gdma_connect() [all …]
|
D | spi_common.c | 152 static inline periph_module_t get_dma_periph(int dma_chan) in get_dma_periph() argument 154 assert(dma_chan >= 1 && dma_chan <= SOC_SPI_DMA_CHAN_NUM); in get_dma_periph() 156 if (dma_chan == 1) { in get_dma_periph() 158 } else if (dma_chan == 2) { in get_dma_periph() 168 static bool spicommon_dma_chan_claim(int dma_chan, uint32_t *out_actual_dma_chan) in spicommon_dma_chan_claim() argument 173 bool is_used = (BIT(dma_chan) & spi_dma_chan_enabled); in spicommon_dma_chan_claim() 175 spi_dma_chan_enabled |= BIT(dma_chan); in spicommon_dma_chan_claim() 176 periph_module_enable(get_dma_periph(dma_chan)); in spicommon_dma_chan_claim() 177 *out_actual_dma_chan = dma_chan; in spicommon_dma_chan_claim() 185 static void spicommon_connect_spi_and_dma(spi_host_device_t host, int dma_chan) in spicommon_connect_spi_and_dma() argument [all …]
|
D | spi_slave.c | 114 …us_config_t *bus_config, const spi_slave_interface_config_t *slave_config, spi_dma_chan_t dma_chan) in spi_slave_initialize() argument 123 …SPI_CHECK(dma_chan >= SPI_DMA_DISABLED && dma_chan <= SPI_DMA_CH_AUTO, "invalid dma channel", ESP_… in spi_slave_initialize() 125 …SPI_CHECK( dma_chan == SPI_DMA_DISABLED || dma_chan == (int)host || dma_chan == SPI_DMA_CH_AUTO, "… in spi_slave_initialize() 127 …SPI_CHECK( dma_chan == SPI_DMA_DISABLED || dma_chan == SPI_DMA_CH_AUTO, "invalid dma channel, chip… in spi_slave_initialize() 147 bool use_dma = (dma_chan != SPI_DMA_DISABLED); in spi_slave_initialize() 150 … ret = spicommon_slave_dma_chan_alloc(host, dma_chan, &actual_tx_dma_chan, &actual_rx_dma_chan); in spi_slave_initialize()
|
D | spi_slave_hd.c | 78 …SPIHD_CHECK(config->dma_chan == SPI_DMA_DISABLED || config->dma_chan == (int)host_id || config->dm… in spi_slave_hd_init() 80 …SPIHD_CHECK(config->dma_chan == SPI_DMA_DISABLED || config->dma_chan == SPI_DMA_CH_AUTO, "invalid … in spi_slave_hd_init() 97 host->dma_enabled = (config->dma_chan != SPI_DMA_DISABLED); in spi_slave_hd_init() 100 …ret = spicommon_slave_dma_chan_alloc(host_id, config->dma_chan, &actual_tx_dma_chan, &actual_rx_dm… in spi_slave_hd_init()
|
/device/board/isoftstone/zhiyuan/kernel/hdf/driver/audio/soc/src/ |
D | t507_dma_ops.c | 31 struct dma_chan *dma_chan[DMA_STREAM_CNT]; member 66 struct dma_chan *snd_dmaengine_pcm_request_channel(dma_filter_fn filter_fn, void *filter_data) in snd_dmaengine_pcm_request_channel() 87 g_prtd.dma_chan[DMA_STREAM_TX] = dma_request_chan(g_prtd.dma_dev[DMA_STREAM_TX], "tx"); in audio_dma_request() 88 if (IS_ERR(g_prtd.dma_chan[DMA_STREAM_TX])) { in audio_dma_request() 89 …AUDIO_DRIVER_LOG_ERR("DMA channels request tx failed, err -> %d.\n", IS_ERR(g_prtd.dma_chan[DMA_ST… in audio_dma_request() 101 g_prtd.dma_chan[DMA_STREAM_RX] = dma_request_chan(g_prtd.dma_dev[DMA_STREAM_RX], "rx"); in audio_dma_request() 102 if (IS_ERR(g_prtd.dma_chan[DMA_STREAM_RX])) { in audio_dma_request() 103 …AUDIO_DRIVER_LOG_ERR("DMA channels request rx failed, err -> %d.\n", IS_ERR(g_prtd.dma_chan[DMA_ST… in audio_dma_request() 223 struct dma_chan *dmaChan; in T507AudioDmaConfigChannel() 236 dmaChan = g_prtd.dma_chan[DMA_STREAM_TX]; in T507AudioDmaConfigChannel() [all …]
|
/device/board/isoftstone/yangfan/kernel/hdf/drivers/audio/soc/src/ |
D | rk3399_dma_ops.c | 73 struct dma_chan *dmaChn[2]; 373 struct dma_chan *dmaChan[MAX_CHAN_COUNT]; in RK3399DmaConfigChannel() 397 dmaChan[1] = (struct dma_chan *)dmaRtd->dmaChn[1]; in RK3399DmaConfigChannel() 415 dmaChan[0] = (struct dma_chan *)dmaRtd->dmaChn[0]; in RK3399DmaConfigChannel() 431 static inline u32 PcmDmaGetAddr(struct dma_chan *dma_chn, dma_cookie_t cookie) in PcmDmaGetAddr() 446 struct dma_chan *dmaChan[MAX_CHAN_COUNT]; in RK3399PcmPointer() 472 dmaChan[1] = (struct dma_chan *)dmaRtd->dmaChn[1]; in RK3399PcmPointer() 482 dmaChan[0] = (struct dma_chan *)dmaRtd->dmaChn[0]; in RK3399PcmPointer() 511 struct dma_chan *dmaChan[MAX_CHAN_COUNT]; in RK3399DmaSubmit() 526 dmaChan[1] = (struct dma_chan *)dmaRtd->dmaChn[1]; in RK3399DmaSubmit() [all …]
|
/device/soc/esp/esp32/components/hal/ |
D | adc_hal.c | 199 hal->dma_chan = config->dma_chan; in adc_hal_context_config() 205 gdma_ll_clear_interrupt_status(hal->dev, hal->dma_chan, UINT32_MAX); in adc_hal_digi_init() 206 gdma_ll_enable_interrupt(hal->dev, hal->dma_chan, GDMA_LL_EVENT_RX_SUC_EOF, true); in adc_hal_digi_init() 215 gdma_ll_rx_reset_channel(hal->dev, hal->dma_chan); in adc_hal_fifo_reset() 241 gdma_ll_rx_set_desc_addr(hal->dev, hal->dma_chan, (uint32_t)hal->rx_desc); in adc_hal_digi_rxdma_start() 242 gdma_ll_rx_start(hal->dev, hal->dma_chan); in adc_hal_digi_rxdma_start() 271 gdma_ll_rx_stop(hal->dev, hal->dma_chan); in adc_hal_digi_rxdma_stop() 276 gdma_ll_clear_interrupt_status(hal->dev, hal->dma_chan, mask); in adc_hal_digi_clr_intr() 281 gdma_ll_enable_interrupt(hal->dev, hal->dma_chan, mask, false); in adc_hal_digi_dis_intr()
|
/device/board/kaihong/khdvk_3566b/kernel/audio/soc/src/ |
D | rk3568_dma_ops.c | 46 struct dma_chan *dmaChn[DMA_CHANNEL_MAX]; 51 static struct dma_chan *g_dmaChn[DMA_CHANNEL_MAX]; 216 struct dma_chan *dmaChan; in Rk3568DmaConfigChannel() 222 dmaChan = (struct dma_chan *)g_dmaChn[DMA_TX_CHANNEL]; // tx in Rk3568DmaConfigChannel() 228 dmaChan = (struct dma_chan *)g_dmaChn[DMA_RX_CHANNEL]; in Rk3568DmaConfigChannel() 266 struct dma_chan *dmaChn; in Rk3568PcmPointer() 349 struct dma_chan *dmaChan = NULL; in Rk3568DmaSubmit() 402 struct dma_chan *dmaChan = NULL; in Rk3568DmaPending() 425 struct dma_chan *dmaChan; in Rk3568DmaPause() 446 struct dma_chan *dmaChan; in Rk3568DmaResume()
|
/device/board/hihope/dayu210/audio_drivers/soc/src/ |
D | rk3588_dma_ops.c | 46 struct dma_chan *dmaChn[DMA_CHANNEL_MAX]; 51 static struct dma_chan *g_dmaChn[DMA_CHANNEL_MAX]; 211 struct dma_chan *dmaChan; in Rk3588DmaConfigChannel() 217 dmaChan = (struct dma_chan *)g_dmaChn[DMA_TX_CHANNEL]; // tx in Rk3588DmaConfigChannel() 223 dmaChan = (struct dma_chan *)g_dmaChn[DMA_RX_CHANNEL]; in Rk3588DmaConfigChannel() 258 struct dma_chan *dmaChn; in Rk3588PcmPointer() 324 struct dma_chan *dmaChan = NULL; in Rk3588DmaSubmit() 373 struct dma_chan *dmaChan = NULL; in Rk3588DmaPending() 395 struct dma_chan *dmaChan; in Rk3588DmaPause() 415 struct dma_chan *dmaChan; in Rk3588DmaResume()
|
/device/board/hihope/rk3568/audio_drivers/soc/src/ |
D | rk3568_dma_ops.c | 45 struct dma_chan *dmaChn[DMA_CHANNEL_MAX]; 305 struct dma_chan *dmaChan = NULL; in Rk3568DmaConfigChannel() 318 dmaChan = (struct dma_chan *)dmaRtd->dmaChn[DMA_TX_CHANNEL]; // tx in Rk3568DmaConfigChannel() 324 dmaChan = (struct dma_chan *)dmaRtd->dmaChn[DMA_RX_CHANNEL]; in Rk3568DmaConfigChannel() 359 struct dma_chan *dmaChan = NULL; in Rk3568PcmPointer() 424 struct dma_chan *dmaChan = NULL; in RenderPcmDmaComplete() 448 struct dma_chan *dmaChan = NULL; in CapturePcmDmaComplete() 479 struct dma_chan *dmaChan = NULL; in Rk3568DmaSubmit() 535 struct dma_chan *dmaChan = NULL; in Rk3568DmaPending() 569 struct dma_chan *dmaChan = NULL; in Rk3568DmaPause() [all …]
|
/device/board/osware/imx8mm/drivers/audio/soc/include/ |
D | imx8mm_platform.h | 59 struct dma_chan *dma_chan_rx; 60 struct dma_chan *dma_chan_tx;
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/dma/ |
D | sunxi-dma.c | 215 static struct device *chan2dev(struct dma_chan *chan) in chan2dev() 225 static inline struct sun6i_vchan *to_sun6i_vchan(struct dma_chan *chan) in to_sun6i_vchan() 657 struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, in sun6i_dma_prep_dma_memcpy() 713 static inline struct sun6i_vchan *to_sun6i_dma_chan(struct dma_chan *c) in to_sun6i_dma_chan() 718 static void sun6i_dma_synchronize(struct dma_chan *chan) in sun6i_dma_synchronize() 726 struct dma_chan *chan, struct scatterlist *sgl, in sun6i_dma_prep_slave_sg() 810 struct dma_chan *chan, in sun6i_dma_prep_dma_cyclic() 880 static int sun6i_dma_config(struct dma_chan *chan, in sun6i_dma_config() 890 static int sun6i_dma_pause(struct dma_chan *chan) in sun6i_dma_pause() 910 static int sun6i_dma_resume(struct dma_chan *chan) in sun6i_dma_resume() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/ledc/ |
D | ledc-sunxi.h | 165 struct dma_chan *dma_chan; member
|
D | ledc-sunxi.c | 1147 err = dmaengine_slave_config(led->dma_chan, &slave_config); in sunxi_ledc_trans_data() 1153 dma_desc = dmaengine_prep_slave_single(led->dma_chan, in sunxi_ledc_trans_data() 1166 dma_async_issue_pending(led->dma_chan); in sunxi_ledc_trans_data() 1197 if (led->dma_chan) { in sunxi_ledc_dma_terminate() 1198 dmaengine_terminate_all(led->dma_chan); in sunxi_ledc_dma_terminate() 1381 if (led->dma_chan == NULL) { in sunxi_ledc_dma_get() 1382 led->dma_chan = dma_request_chan(led->dev, "tx"); in sunxi_ledc_dma_get() 1383 if (IS_ERR(led->dma_chan)) { in sunxi_ledc_dma_get() 1393 if (led->dma_chan) { in sunxi_ledc_dma_put() 1394 dma_release_channel(led->dma_chan); in sunxi_ledc_dma_put() [all …]
|
/device/soc/esp/esp32/components/hal/include/hal/ |
D | adc_hal.h | 55 uint32_t dma_chan; ///< DMA channel to be used member 73 uint32_t dma_chan; ///< DMA channel to be used member
|
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/src/platform/ |
D | system_dma.c | 58 struct dma_chan *dma_channel[SYSTEM_DMA_MAX_CHANNEL]; 137 struct dma_chan *dma_channel = NULL; in system_dma_init() 325 struct dma_chan *chan = system_dma_device->dma_channel[i]; in system_dma_unmap_sg() 348 struct dma_chan *chan = system_dma_device->dma_channel[0]; //probe the first channel in system_dma_copy_sg() 408 struct dma_chan *chan = system_dma_device->dma_channel[i]; in system_dma_copy_sg()
|
/device/soc/esp/esp32/components/driver/include/driver/ |
D | spi_common.h | 145 …initialize(spi_host_device_t host_id, const spi_bus_config_t *bus_config, spi_dma_chan_t dma_chan);
|
D | spi_slave.h | 115 …s_config_t *bus_config, const spi_slave_interface_config_t *slave_config, spi_dma_chan_t dma_chan);
|
D | spi_slave_hd.h | 91 spi_dma_chan_t dma_chan; ///< DMA channel to used. member
|
/device/soc/rockchip/common/sdk_linux/drivers/tty/serial/8250/ |
D | 8250.h | 31 struct dma_chan *rxchan; 32 struct dma_chan *txchan;
|
/device/soc/esp/esp32/components/esp_system/port/ |
D | async_memcpy_impl_gdma.c | 27 IRAM_ATTR static bool async_memcpy_impl_rx_eof_callback(gdma_channel_handle_t dma_chan, gdma_event_… in async_memcpy_impl_rx_eof_callback() argument
|