Home
last modified time | relevance | path

Searched refs:dma_channels (Results 1 – 25 of 42) sorted by relevance

12

/Zephyr-latest/drivers/dma/
Ddma_intel_adsp_hda.c39 __ASSERT(channel < cfg->dma_channels, "Channel does not exist"); in intel_adsp_hda_dma_host_in_config()
73 __ASSERT(channel < cfg->dma_channels, "Channel does not exist"); in intel_adsp_hda_dma_host_out_config()
107 __ASSERT(channel < cfg->dma_channels, "Channel does not exist"); in intel_adsp_hda_dma_link_in_config()
137 __ASSERT(channel < cfg->dma_channels, "Channel does not exist"); in intel_adsp_hda_dma_link_out_config()
164 __ASSERT(channel < cfg->dma_channels, "Channel does not exist"); in intel_adsp_hda_dma_link_reload()
176 __ASSERT(channel < cfg->dma_channels, "Channel does not exist"); in intel_adsp_hda_dma_host_reload()
226 __ASSERT(channel < cfg->dma_channels, "Channel does not exist"); in intel_adsp_hda_dma_status()
301 __ASSERT(channel < cfg->dma_channels, "Channel does not exist"); in intel_adsp_hda_dma_start()
346 __ASSERT(channel < cfg->dma_channels, "Channel does not exist"); in intel_adsp_hda_dma_stop()
366 for (uint32_t i = 0; i < cfg->dma_channels; i++) { in intel_adsp_hda_channels_init()
[all …]
Ddma_intel_adsp_hda_link_in.c31 .dma_channels = DT_INST_PROP(inst, dma_channels), \
Ddma_intel_adsp_hda_link_out.c31 .dma_channels = DT_INST_PROP(inst, dma_channels), \
Ddma_mchp_xec.c113 uint8_t dma_channels; member
344 if (!config || (channel >= (uint32_t)devcfg->dma_channels)) { in dma_xec_configure()
459 if (channel >= (uint32_t)devcfg->dma_channels) { in dma_xec_reload()
502 if (channel >= (uint32_t)devcfg->dma_channels) { in dma_xec_start()
535 if (channel >= (uint32_t)devcfg->dma_channels) { in dma_xec_stop()
587 if ((channel >= (uint32_t)devcfg->dma_channels) || (!status)) { in dma_xec_get_status()
637 if (!filter_param && devcfg->dma_channels) { in dma_xec_chan_filter()
638 filter = GENMASK(devcfg->dma_channels-1u, 0); in dma_xec_chan_filter()
806 BUILD_ASSERT(DT_INST_PROP(i, dma_channels) <= 16, "XEC DMA dma-channels > 16"); \
810 dma_xec_ctrl##i##_chans[DT_INST_PROP(i, dma_channels)]; \
[all …]
Ddma_intel_adsp_hda_host_in.c29 .dma_channels = DT_INST_PROP(inst, dma_channels), \
Ddma_intel_adsp_hda_host_out.c33 .dma_channels = DT_INST_PROP(inst, dma_channels), \
Ddma_silabs_ldma.c275 for (chnum = 0; chnum < data->dma_ctx.dma_channels; chnum++) { in dma_silabs_irq_handler()
310 if (channel > data->dma_ctx.dma_channels) { in dma_silabs_configure()
414 if (channel > data->dma_ctx.dma_channels) { in dma_silabs_start()
430 if (channel > data->dma_ctx.dma_channels) { in dma_silabs_stop()
448 if (channel > data->dma_ctx.dma_channels) { in dma_silabs_get_status()
507 static ATOMIC_DEFINE(dma_channels_atomic_##inst, DT_INST_PROP(inst, dma_channels)); \
510 dma_silabs_channel_##inst[DT_INST_PROP(inst, dma_channels)]; \
517 .dma_ctx.dma_channels = DT_INST_PROP(inst, dma_channels), \
Ddma_xmc4xxx.c74 int num_dma_channels = dev_data->ctx.dma_channels; in dma_xmc4xxx_isr()
131 if (channel >= dev_data->ctx.dma_channels) { in dma_xmc4xxx_config()
354 if (channel >= dev_data->ctx.dma_channels) { in dma_xmc4xxx_reload()
388 if (channel >= dev_data->ctx.dma_channels) { in dma_xmc4xxx_get_status()
427 if (channel >= dev_data->ctx.dma_channels) { in dma_xmc4xxx_suspend()
442 if (channel >= dev_data->ctx.dma_channels) { in dma_xmc4xxx_resume()
486 dma_xmc4xxx##inst##_channels[DT_INST_PROP(inst, dma_channels)]; \
488 DT_INST_PROP(inst, dma_channels)); \
493 .dma_channels = DT_INST_PROP(inst, dma_channels), \
Ddma_dw_axi.c303 if (channel > (dw_dev_data->dma_ctx.dma_channels - 1)) { in dma_dw_axi_isr()
457 if (channel > (dw_dev_data->dma_ctx.dma_channels - 1)) { in dma_dw_axi_config()
517 if (cfg->channel_priority < dw_dev_data->dma_ctx.dma_channels) { in dma_dw_axi_config()
646 if (channel > (dw_dev_data->dma_ctx.dma_channels - 1)) { in dma_dw_axi_start()
708 if (channel > (dw_dev_data->dma_ctx.dma_channels - 1)) { in dma_dw_axi_stop()
759 if (channel > (dw_dev_data->dma_ctx.dma_channels - 1)) { in dma_dw_axi_resume()
790 if (channel > (dw_dev_data->dma_ctx.dma_channels - 1)) { in dma_dw_axi_suspend()
842 for (i = 0; i < dw_dev_data->dma_ctx.dma_channels; i++) { in dma_dw_axi_init()
876 static struct dma_dw_axi_ch_data chan_##inst[DT_INST_PROP(inst, dma_channels)]; \
878 dma_desc_pool_##inst[DT_INST_PROP(inst, dma_channels) * \
[all …]
Ddma_intel_adsp_hda.h10 #define INTEL_ADSP_HDA_MAX_CHANNELS DT_PROP(DT_NODELABEL(hda_host_out), dma_channels)
28 uint32_t dma_channels; member
Ddma_nxp_sof_host_dma.c18 LISTIFY(DT_INST_PROP_OR(inst, dma_channels, 0), IDENTITY_VARGS, (,))
92 if (chan_id >= data->ctx.dma_channels) { in sof_host_dma_reload()
171 if (chan_id >= data->ctx.dma_channels) { in sof_host_dma_config()
301 .ctx.dma_channels = ARRAY_SIZE(channels),
Ddma_sam_xdmac.c48 struct sam_xdmac_channel_cfg dma_channels[DMA_CHANNELS_NO]; member
69 channel_cfg = &dev_data->dma_channels[channel]; in sam_xdmac_isr()
210 dev_data->dma_channels[channel].data_size = data_size; in sam_xdmac_config()
274 dev_data->dma_channels[channel].callback = cfg->dma_callback; in sam_xdmac_config()
275 dev_data->dma_channels[channel].user_data = cfg->user_data; in sam_xdmac_config()
294 .ublen = size >> dev_data->dma_channels[channel].data_size, in sam_xdmac_transfer_reload()
Ddma_mcux_edma.c41 int dma_channels; /* number of channels */ member
263 for (i = 0; i < DEV_CFG(dev)->dma_channels; i++) { in dma_mcux_edma_error_irq_handler()
304 if (channel >= DEV_CFG(dev)->dma_channels) { in dma_mcux_edma_configure()
830 for (i = 0; i < config->dma_channels / config->channels_per_mux; i++) { in dma_mcux_edma_init()
843 data->dma_ctx.dma_channels = config->dma_channels; in dma_mcux_edma_init()
898 {[0 ... 1] = DT_INST_PROP(n, dma_channels)}),
914 #define CHANNELS_PER_MUX(n) .channels_per_mux = DT_INST_PROP(n, dma_channels) / \
930 dma_tcdpool##n[DT_INST_PROP(n, dma_channels)][CONFIG_DMA_TCD_QUEUE_SIZE];\
935 .dma_channels = DT_INST_PROP(n, dma_channels), \
944 dma_data_callback_##n[DT_INST_PROP(n, dma_channels)]; \
[all …]
Ddma_emul.c545 data->dma_ctx.dma_channels = config->num_channels; in dma_emul_init()
560 DMA_EMUL_INST_HAS_PROP(_inst, dma_channels) \
561 ? ((DT_INST_PROP(_inst, dma_channels) > 0) \
562 ? BIT_MASK(DT_INST_PROP_OR(_inst, dma_channels, 0)) \
567 DT_INST_PROP_OR(_inst, dma_channels, \
576 DMA_EMUL_INST_HAS_PROP(_inst, dma_channels), \
605 DT_INST_PROP_OR(_inst, dma_channels, 0)); \
Ddma_rpi_pico.c364 .channels = DT_INST_PROP(inst, dma_channels), \
371 dma_rpi_pico##inst##_channels[DT_INST_PROP(inst, dma_channels)]; \
372 ATOMIC_DEFINE(dma_rpi_pico_atomic##inst, DT_INST_PROP(inst, dma_channels)); \
378 .dma_channels = DT_INST_PROP(inst, dma_channels), \
Ddma_nxp_edma.c88 if (chan_id >= data->ctx.dma_channels) { in lookup_channel()
99 for (i = 0; i < data->ctx.dma_channels; i++) { in lookup_channel()
721 data->ctx.dma_channels = data->hal_cfg->channels; in edma_init()
738 BUILD_ASSERT(!DT_NODE_HAS_PROP(DT_INST(inst, DT_DRV_COMPAT), dma_channels) || \
742 BUILD_ASSERT(DT_INST_PROP_OR(inst, dma_channels, 0) == \
Ddmamux_stm32.c376 dmamux_stm32_channels_##index[DT_INST_PROP(index, dma_channels)] = { \
377 DMAMUX_CHANNELS_INIT(index, DT_INST_PROP(index, dma_channels))\
383 .channel_nb = DT_INST_PROP(index, dma_channels), \
Ddma_stm32u5.c683 ((struct dma_stm32_data *)dev->data)->dma_ctx.dma_channels = 0; in dma_stm32_init()
745 LISTIFY(DT_INST_PROP(index, dma_channels), \
762 BUILD_ASSERT(DT_INST_PROP(index, dma_channels) \
766 LISTIFY(DT_INST_PROP(index, dma_channels), \
772 dma_stm32_streams_##index[DT_INST_PROP_OR(index, dma_channels, \
780 .max_streams = DT_INST_PROP_OR(index, dma_channels, \
Ddma_pl330.h51 #define MAX_DMA_CHANNELS DT_INST_PROP(0, dma_channels)
Ddma_nxp_edma.h47 LISTIFY(DT_INST_PROP_OR(inst, dma_channels, 0), IDENTITY_VARGS, (,))
96 COND_CODE_1(DT_NODE_HAS_PROP(DT_INST(inst, DT_DRV_COMPAT), dma_channels), \
106 DT_NODE_HAS_PROP(DT_INST(inst, DT_DRV_COMPAT), dma_channels)
Ddma_gd32.c678 .channels = DT_INST_PROP(inst, dma_channels), \
687 dma_gd32##inst##_channels[DT_INST_PROP(inst, dma_channels)]; \
689 DT_INST_PROP(inst, dma_channels)); \
694 .dma_channels = DT_INST_PROP(inst, dma_channels), \
Ddma_max32.c337 static struct max32_dma_data dma##inst##_data[DT_INST_PROP(inst, dma_channels)]; \
347 .channels = DT_INST_PROP(inst, dma_channels), \
Ddma_si32.c34 #define CHANNEL_COUNT DT_INST_PROP(0, dma_channels) /* number of used/enabled DMA channels */
52 .dma_channels = CHANNEL_COUNT,
Ddma_mcux_lpc.c882 (DT_INST_PROP(n, dma_channels)), \
884 DT_INST_PROP(n, dma_channels))))
889 .num_of_channels = DT_INST_PROP(n, dma_channels), \
908 [DT_INST_PROP(n, dma_channels)] = {0}; \
/Zephyr-latest/include/zephyr/drivers/
Ddma.h301 int dma_channels; member
583 for (i = 0; i < dma_ctx->dma_channels; i++) { in z_impl_dma_request_channel()
625 if ((int)channel < dma_ctx->dma_channels) { in z_impl_dma_release_channel()

12