Home
last modified time | relevance | path

Searched full:dma (Results 1 – 25 of 1263) sorted by relevance

12345678910>>...51

/Zephyr-latest/drivers/dma/
DKconfig1 # DMA configuration options
7 # DMA options
9 menuconfig DMA config
10 bool "Direct Memory Access (DMA) drivers"
12 if DMA
14 bool "DMA 64 bit address support"
17 DMA addresses are supported.
20 int "DMA init priority"
23 DMA driver device initialization priority.
25 module = DMA
[all …]
DKconfig.iproc_pax6 prompt "Broadcom PAX(PCIE<->AXI) DMA driver"
13 prompt "Broadcom PAX(PCIE<->AXI) DMA driver version 2"
28 bool "PAX DMA paranoid debug checks"
31 alignments for each dma packet.
34 prompt "PAX DMA API modes"
38 bool "PAX DMA API in polling mode"
40 PAX DMA API polls for dma completions
43 bool "PAX DMA synchronous API with interrupt support"
45 PAX DMA API blocks until dma completion alert is
51 prompt "PAX DMA Ring operation mode"
[all …]
DKconfig.stm321 # DMA configuration options
9 bool "STM32 DMA driver"
17 Driver for STM32 DMA V1, V2, V2bis and BDMA types.
20 bool "STM32U5 serie DMA driver"
25 Enable DMA support mainly for stm32U5 family.
26 It differs from the DMA driver due to the GPDMA peripheral.
35 Enable DMA V1 support.
42 Enable DMA V2 or DMA V2bis support. With the versions V2 of DMA, the
43 peripheral request must be specified in the dma slot of the dma cell
44 With the versions V2 bis of DMA, the peripheral request (slot) is not
[all …]
Ddma_stm32u5.c10 * @brief Common part of DMA drivers for stm32U5.
19 #include <zephyr/drivers/dma/dma_stm32.h>
49 DMA_TypeDef *dma = (DMA_TypeDef *)(config->base); in dma_stm32_dump_stream_irq() local
51 stm32_dma_dump_stream_irq(dma, id); in dma_stm32_dump_stream_irq()
57 DMA_TypeDef *dma = (DMA_TypeDef *)(config->base); in dma_stm32_clear_stream_irq() local
59 dma_stm32_clear_tc(dma, id); in dma_stm32_clear_stream_irq()
60 dma_stm32_clear_ht(dma, id); in dma_stm32_clear_stream_irq()
61 stm32_dma_clear_stream_irq(dma, id); in dma_stm32_clear_stream_irq()
102 static inline bool dma_stm32_is_dte_active(DMA_TypeDef *dma, uint32_t id) in dma_stm32_is_dte_active() argument
104 return LL_DMA_IsActiveFlag_DTE(dma, dma_stm32_id_to_stream(id)); in dma_stm32_is_dte_active()
[all …]
Ddma_stm32_v1.c8 * @brief DMA low level driver implementation for F2/F4/F7 series SoCs.
17 /* DMA burst length */
238 void stm32_dma_dump_stream_irq(DMA_TypeDef *dma, uint32_t id) in stm32_dma_dump_stream_irq() argument
241 dma_stm32_is_tc_active(dma, id), in stm32_dma_dump_stream_irq()
242 dma_stm32_is_ht_active(dma, id), in stm32_dma_dump_stream_irq()
243 dma_stm32_is_te_active(dma, id), in stm32_dma_dump_stream_irq()
244 dma_stm32_is_dme_active(dma, id), in stm32_dma_dump_stream_irq()
245 dma_stm32_is_fe_active(dma, id)); in stm32_dma_dump_stream_irq()
248 inline bool stm32_dma_is_tc_irq_active(DMA_TypeDef *dma, uint32_t id) in stm32_dma_is_tc_irq_active() argument
250 return LL_DMA_IsEnabledIT_TC(dma, dma_stm32_id_to_stream(id)) && in stm32_dma_is_tc_irq_active()
[all …]
DKconfig.intel_adsp_hda7 bool "Intel ADSP HDA Host In DMA drivers"
10 depends on DMA
13 Intel ADSP Host HDA DMA driver.
16 bool "Intel ADSP HDA Host Out DMA drivers"
21 Intel ADSP Host HDA DMA driver.
24 bool "Intel ADSP HDA Link In DMA drivers"
29 Intel ADSP Link In HDA DMA driver.
32 bool "Intel ADSP HDA Link Out DMA drivers"
37 Intel ADSP Link Out HDA DMA driver.
43 Intel ADSP HDA DMA driver.
DKconfig.xilinx_axi_dma1 # Xilinx AXI DMA configuration options
7 bool "Xilinx AXI DMA LogiCORE IP driver"
11 DMA driver for Xilinx AXI DMAs, usually found on FPGAs.
20 This allows the DMA to be used on architectures that do not provide
21 coherency for DMA accesses. If you are unsure whether you need this feature,
29 The Xilinx AXI DMA uses a ring of in-memory DMA descriptors which reference
39 The AXI DMA driver currently allocates a single DMA descriptor for each RX transfer,
58 Lock all interrupts of this DMA device when modifying channel data during dma_start.
60 once directly after initialization of the DMA).
63 bool "Lock IRQs of the DMA channel"
[all …]
Ddma_xmc4xxx.c13 #include <zephyr/drivers/dma.h>
14 #include <zephyr/dt-bindings/dma/infineon-xmc4xxx-dma.h>
41 XMC_DMA_t *dma; member
53 uint32_t channels_event = get_channels_event(dma); \
61 XMC_DMA_CH_ClearEventStatus(dma, channel, XMC_DMA_CH_##event_test); \
75 XMC_DMA_t *dma = dev_cfg->dma; in dma_xmc4xxx_isr() local
79 /* There are two types of possible DMA error events: */ in dma_xmc4xxx_isr()
80 /* 1. Error response from AHB slave on the HRESP bus during DMA transfer. */ in dma_xmc4xxx_isr()
85 event = XMC_DMA_GetEventStatus(dma); in dma_xmc4xxx_isr()
128 XMC_DMA_t *dma = dev_cfg->dma; in dma_xmc4xxx_config() local
[all …]
/Zephyr-latest/dts/xtensa/intel/
Dintel_adsp_cavs.dtsi11 lpgpdma0: dma@7c000 {
13 #dma-cells = <1>;
18 dma-buf-size-alignment = <4>;
19 dma-copy-alignment = <4>;
24 lpgpdma1: dma@7d000 {
26 #dma-cells = <1>;
31 dma-buf-size-alignment = <4>;
32 dma-copy-alignment = <4>;
37 hda_link_out: dma@72400 {
39 #dma-cells = <1>;
[all …]
/Zephyr-latest/dts/bindings/dma/
Dnxp,lpc-dma.yaml4 description: NXP LPC DMA controller
6 compatible: "nxp,lpc-dma"
8 include: dma-controller.yaml
17 dma-channels:
20 nxp,dma-num-of-otrigs:
22 description: Number of Inputmux connections a DMA channel can receive from
24 nxp,dma-otrig-base-address:
26 description: Address used when listening to Inputmux DMA signals
28 nxp,dma-itrig-base-address:
30 description: DMA Channel Selection Address used for receiving signals
[all …]
Dst,stm32-dma-v2.yaml5 STM32 DMA controller (V2)
8 This DMA controller includes several channels with different requests.
9 DMA clients connected to the STM32 DMA controller must use the format
10 described in the dma.txt file, using a four-cell specifier for each
11 capable of supporting 5 or 6 or 7 or 8 independent DMA channels.
12 DMA clients connected to the STM32 DMA controller must use the format
13 described in the dma.txt file, using a 3-cell specifier for each
14 channel: a phandle to the DMA controller plus the following four integer cells:
15 1. channel: the dma stream from 1 to <dma-requests>
16 2. slot: DMA periph request ID, which is written in the DMAREQ_ID of the DMAMUX_CxCR
[all …]
Dst,stm32-dma.yaml5 STM32 DMA controller
7 The STM32 DMA is a general-purpose direct memory access controller
8 capable of supporting 5 or 6 or 7 or 8 independent DMA channels.
9 Each stm32 soc with a DMA is of a special version type, which could be
14 compatible: "st,stm32-dma"
16 include: dma-controller.yaml
27 description: If the DMA controller V1 supports memory to memory transfer
29 dma-offset:
33 for 1st dma instance, offset is 0,
34 for 2nd dma instance, offset is the nb of dma channels of the 1st dma,
[all …]
Ddma-controller.yaml4 # Common fields for DMA controllers
8 bus: dma
11 "#dma-cells":
14 description: Number of items to expect in a DMA specifier
16 dma-channel-mask:
19 Bitmask of available DMA channels in ascending order that are
23 dma-channels:
25 description: Number of DMA channels supported by the controller
27 dma-requests:
29 description: Number of DMA request signals supported by the controller.
[all …]
Dst,stm32-dma-v2bis.yaml5 STM32 DMA controller (V2bis) for the stm32F0, stm32F1 and stm32L1 soc families
7 This DMA controller includes several channels with different requests.
8 All the requests ar ORed before entering the DMA, so that only one request
10 DMA clients connected to the STM32 DMA controller must use the format
11 described in the dma.txt file, using a 2-cell specifier for each
12 channel: a phandle to the DMA controller plus the following four integer cells:
13 1. channel: the dma stream from 1 to <dma-requests>
14 2. channel-config: A 32bit mask specifying the DMA channel configuration
15 A name custom DMA flags for channel configuration is used
17 -bit 5 : DMA cyclic mode config
[all …]
Dst,stm32-dma-v1.yaml5 STM32 DMA controller (V1)
8 This DMA controller includes FIFO control registers.
9 DMA clients connected to the STM32 DMA controller must use the format
10 described in the dma.txt file, using a four-cell specifier for each
11 channel: a phandle to the DMA controller plus the following four integer cells:
12 1. channel: the dma stream from 0 to <dma-requests>
13 2. slot: DMA periph request ID, which is written in the DMAREQ_ID of the DMAMUX_CxCR
15 or a value between <1> .. <dma-generators> (not supported yet)
16 or a value between <dma-generators>+1 .. <dma-generators>+<dma-requests>
17 3. channel-config: A 32bit mask specifying the DMA channel configuration
[all …]
Darm,dma-pl330.yaml5 PL330 DMA Controller
7 A phandle to the DMA controller plus "channel" integer cell specifying
10 Example for pl330 DMA Controller
12 compatible = "arm,dma-pl330";
14 dma-channels = <8>;
15 #dma-cells = <1>;
18 If PCIe EP client uses channel 0 for Tx DMA and channel 1 for Rx DMA
23 dma-names = "txdma", "rxdma";
25 compatible: "arm,dma-pl330"
27 include: dma-controller.yaml
[all …]
Dst,stm32-bdma.yaml11 described in the dma.txt file, using a four-cell specifier for each
17 -bit 6-7 : Direction (see dma.h)
48 bdma1: dma-controller@58025400 {
52 dma-requests = <7>;
61 dma-names = "dmamux";
66 include: dma-controller.yaml
79 dma-offset:
83 for 1st dma instance, offset is 0,
84 for 2nd dma instance, offset is the nb of dma channels of the 1st dma,
85 for 3rd dma instance, offset is the nb of dma channels of the 2nd dma
[all …]
Draspberrypi,pico-dma.yaml5 Raspberry Pi Pico DMA
10 Use the definitions defined in `zephyr/dt-bindings/dma/rpi-pico-dma-rp2040.h`,
11 or `zephyr/dt-bindings/dma/rpi-pico-dma-rp2350.h`
13 channel-config: A 32bit mask specifying the DMA channel configuration
18 compatible: "raspberrypi,pico-dma"
20 include: [dma-controller.yaml, reset-device.yaml]
29 dma-channels:
37 "#dma-cells":
40 dma-cells:
Dsnps,designware-dma-axi.yaml4 description: Synopsys Designware axi DMA Controller node
6 compatible: "snps,designware-dma-axi"
8 include: [dma-controller.yaml, reset-device.yaml]
14 dma-channels:
20 "#dma-cells":
23 # #dma-cells : Must be <1>.
25 # Example of device-tree dma channel configuration:
28 # /* Configure DMA */
30 # dma-names = "tx", "rx";
35 dma-cells:
Drenesas,smartbond-dma.yaml4 include: dma-controller.yaml
6 description: Renesas Smartbond(tm) DMA
8 compatible: "renesas,smartbond-dma"
23 "#dma-cells":
26 # - #dma-cells : Must be <2>.
27 # channel: dma channel to be reserved
28 # config: peripheral's dma request line. Valid values are defined in dt-bindings/dma/dma_smartbond.h
30 dma-cells:
Dintel,adsp-hda.yaml4 # Common fields for Intel ADSP HDA DMA controllers
6 include: dma-controller.yaml
12 dma-channels:
15 "#dma-cells":
18 "dma-buf-addr-alignment":
21 "dma-buf-size-alignment":
24 "dma-copy-alignment":
27 dma-cells:
/Zephyr-latest/tests/boards/intel_adsp/hda/src/
Ddma.c9 #include <zephyr/drivers/dma.h>
39 * Tests host input streams with the DMA API
46 const struct device *dma; in ZTEST() local
70 dma = DEVICE_DT_GET(DT_NODELABEL(hda_host_in)); in ZTEST()
71 zassert_true(device_is_ready(dma), "DMA device is not ready"); in ZTEST()
73 channel = dma_request_channel(dma, NULL); in ZTEST()
74 zassert_true(channel >= 0, "Expected a valid DMA channel"); in ZTEST()
75 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, "dma channel"); in ZTEST()
96 res = dma_config(dma, channel, &dma_cfg); in ZTEST()
97 hda_dump_regs(HOST_IN, HDA_REGBLOCK_SIZE, channel, "dsp dma config"); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/dma/chan_blen_transfer/src/
Dtest_dma.c9 * @brief Verify zephyr dma memory to memory transfer
12 * -# Set dma channel configuration including source/dest addr, burstlen
20 #include <zephyr/drivers/dma.h>
29 TC_PRINT("DMA transfer done\n"); in test_done()
31 TC_PRINT("DMA transfer met an error\n"); in test_done()
35 static int test_task(const struct device *dma, uint32_t chan_id, uint32_t blen) in test_task() argument
40 if (!device_is_ready(dma)) { in test_task()
41 TC_PRINT("dma controller device is not ready\n"); in test_task()
59 TC_PRINT("Preparing DMA Controller: Name=%s, Chan_ID=%u, BURST_LEN=%u\n", in test_task()
60 dma->name, chan_id, blen >> 3); in test_task()
[all …]
/Zephyr-latest/tests/boards/altera_max10/msgdma/src/
Ddma.c11 #include <zephyr/drivers/dma.h>
33 TC_PRINT("DMA completed successfully\n"); in dma_user_callback()
36 TC_PRINT("DMA error occurred!! (%d)\n", status); in dma_user_callback()
43 const struct device *dma; in ZTEST() local
47 dma = DEVICE_DT_GET(DT_NODELABEL(dma)); in ZTEST()
48 __ASSERT_NO_MSG(device_is_ready(dma)); in ZTEST()
55 /* Init DMA config info */ in ZTEST()
71 /* Init DMA descriptor info */ in ZTEST()
76 /* Configure DMA */ in ZTEST()
77 zassert_true(dma_config(dma, chan_id, &dma_cfg) == 0, in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/dma/loop_transfer/src/
Dtest_dma_loop.c1 /* dma.c - DMA test source file */
12 * @brief Verify zephyr dma memory to memory transfer loops
15 * -# Set dma channel configuration including source/dest addr, burstlen
27 #include <zephyr/drivers/dma.h>
73 zassert_false(status < 0, "DMA could not proceed, an error occurred\n"); in dma_user_callback()
86 static int test_loop(const struct device *dma) in test_loop() argument
91 TC_PRINT("DMA memory to memory transfer started\n"); in test_loop()
101 if (!device_is_ready(dma)) { in test_loop()
102 TC_PRINT("dma controller device is not ready\n"); in test_loop()
106 TC_PRINT("Preparing DMA Controller: %s\n", dma->name); in test_loop()
[all …]

12345678910>>...51