Home
last modified time | relevance | path

Searched full:sdma (Results 1 – 25 of 252) sorted by relevance

1234567891011

/Linux-v5.10/drivers/dma/
Dimx-sdma.c3 // drivers/dma/imx-sdma.c
38 #include <linux/platform_data/dma-imx-sdma.h>
47 /* SDMA registers */
104 * Error bit set in the CCB status field by the SDMA,
145 * 28 Lower WML Event(LWE) SDMA events reg to check for
149 * 29 Higher WML Event(HWE) SDMA events reg to check for
208 * @unused: padding. The SDMA engine expects an array of 128 byte
218 * struct sdma_state_registers - SDMA context for a channel
247 * struct sdma_context_data - sdma context specific to a channel
331 * struct sdma_channel - housekeeping for a SDMA channel
[all …]
Dsirf-dma.c238 struct sirfsoc_dma *sdma = dma_chan_to_sirfsoc_dma(&schan->chan); in sirfsoc_dma_execute() local
247 base = sdma->base; in sirfsoc_dma_execute()
253 if (sdma->type == SIRFSOC_DMA_VER_A7V2) in sirfsoc_dma_execute()
257 sdma->exec_desc(sdesc, cid, schan->mode, base); in sirfsoc_dma_execute()
266 struct sirfsoc_dma *sdma = data; in sirfsoc_dma_irq() local
274 switch (sdma->type) { in sirfsoc_dma_irq()
277 is = readl(sdma->base + SIRFSOC_DMA_CH_INT); in sirfsoc_dma_irq()
278 reg = sdma->base + SIRFSOC_DMA_CH_INT; in sirfsoc_dma_irq()
282 schan = &sdma->channels[ch]; in sirfsoc_dma_irq()
300 is = readl(sdma->base + SIRFSOC_DMA_INT_ATLAS7); in sirfsoc_dma_irq()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/dma/
Dfsl-imx-sdma.txt1 * Freescale Smart Direct Memory Access (SDMA) Controller for i.MX
5 "fsl,imx25-sdma"
6 "fsl,imx31-sdma", "fsl,imx31-to1-sdma", "fsl,imx31-to2-sdma"
7 "fsl,imx35-sdma", "fsl,imx35-to1-sdma", "fsl,imx35-to2-sdma"
8 "fsl,imx51-sdma"
9 "fsl,imx53-sdma"
10 "fsl,imx6q-sdma"
11 "fsl,imx7d-sdma"
12 "fsl,imx8mq-sdma"
13 "fsl,imx8mm-sdma"
[all …]
/Linux-v5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_rxtx.c104 /* protect SDMA with concurrrent access from multiple CPUs */
109 struct prestera_sdma sdma; member
112 static int prestera_sdma_buf_init(struct prestera_sdma *sdma, in prestera_sdma_buf_init() argument
118 desc = dma_pool_alloc(sdma->desc_pool, GFP_DMA | GFP_KERNEL, &dma); in prestera_sdma_buf_init()
130 static u32 prestera_sdma_map(struct prestera_sdma *sdma, dma_addr_t pa) in prestera_sdma_map() argument
132 return sdma->map_addr + pa; in prestera_sdma_map()
135 static void prestera_sdma_rx_desc_init(struct prestera_sdma *sdma, in prestera_sdma_rx_desc_init() argument
144 desc->buff = cpu_to_le32(prestera_sdma_map(sdma, buf)); in prestera_sdma_rx_desc_init()
152 static void prestera_sdma_rx_desc_set_next(struct prestera_sdma *sdma, in prestera_sdma_rx_desc_set_next() argument
156 desc->next = cpu_to_le32(prestera_sdma_map(sdma, next)); in prestera_sdma_rx_desc_set_next()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sdma.c29 /* SDMA CSA reside in the 3rd page of CSA */
33 * GPU SDMA IP block helpers function.
41 for (i = 0; i < adev->sdma.num_instances; i++) in amdgpu_sdma_get_instance_from_ring()
42 if (ring == &adev->sdma.instance[i].ring || in amdgpu_sdma_get_instance_from_ring()
43 ring == &adev->sdma.instance[i].page) in amdgpu_sdma_get_instance_from_ring()
44 return &adev->sdma.instance[i]; in amdgpu_sdma_get_instance_from_ring()
54 for (i = 0; i < adev->sdma.num_instances; i++) { in amdgpu_sdma_get_index_from_ring()
55 if (ring == &adev->sdma.instance[i].ring || in amdgpu_sdma_get_index_from_ring()
56 ring == &adev->sdma.instance[i].page) { in amdgpu_sdma_get_index_from_ring()
73 /* don't enable OS preemption on SDMA under SRIOV */ in amdgpu_sdma_get_csa_mc_addr()
[all …]
Dcik_sdma.c76 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_free_microcode()
77 release_firmware(adev->sdma.instance[i].fw); in cik_sdma_free_microcode()
78 adev->sdma.instance[i].fw = NULL; in cik_sdma_free_microcode()
83 * sDMA - System DMA
91 * (ring buffer, IBs, etc.), but sDMA has it's own
93 * used by the CP. sDMA supports copying data, writing
135 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_init_microcode()
140 err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev); in cik_sdma_init_microcode()
143 err = amdgpu_ucode_validate(adev->sdma.instance[i].fw); in cik_sdma_init_microcode()
148 for (i = 0; i < adev->sdma.num_instances; i++) { in cik_sdma_init_microcode()
[all …]
Dsdma_v4_0.c530 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_setup_ulv()
562 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_destroy_inst_ctx()
563 release_firmware(adev->sdma.instance[i].fw); in sdma_v4_0_destroy_inst_ctx()
564 adev->sdma.instance[i].fw = NULL; in sdma_v4_0_destroy_inst_ctx()
567 all SDMA isntances */ in sdma_v4_0_destroy_inst_ctx()
572 memset((void*)adev->sdma.instance, 0, in sdma_v4_0_destroy_inst_ctx()
634 err = request_firmware(&adev->sdma.instance[0].fw, fw_name, adev->dev); in sdma_v4_0_init_microcode()
638 err = sdma_v4_0_init_inst_ctx(&adev->sdma.instance[0]); in sdma_v4_0_init_microcode()
642 for (i = 1; i < adev->sdma.num_instances; i++) { in sdma_v4_0_init_microcode()
645 for every SDMA instance */ in sdma_v4_0_init_microcode()
[all …]
Dsdma_v2_4.c81 * sDMA - System DMA
89 * (ring buffer, IBs, etc.), but sDMA has it's own
91 * used by the CP. sDMA supports copying data, writing
116 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v2_4_free_microcode()
117 release_firmware(adev->sdma.instance[i].fw); in sdma_v2_4_free_microcode()
118 adev->sdma.instance[i].fw = NULL; in sdma_v2_4_free_microcode()
149 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v2_4_init_microcode()
154 err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev); in sdma_v2_4_init_microcode()
157 err = amdgpu_ucode_validate(adev->sdma.instance[i].fw); in sdma_v2_4_init_microcode()
160 hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data; in sdma_v2_4_init_microcode()
[all …]
Dsdma_v3_0.c182 * sDMA - System DMA
190 * (ring buffer, IBs, etc.), but sDMA has it's own
192 * used by the CP. sDMA supports copying data, writing
253 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_free_microcode()
254 release_firmware(adev->sdma.instance[i].fw); in sdma_v3_0_free_microcode()
255 adev->sdma.instance[i].fw = NULL; in sdma_v3_0_free_microcode()
307 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v3_0_init_microcode()
312 err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev); in sdma_v3_0_init_microcode()
315 err = amdgpu_ucode_validate(adev->sdma.instance[i].fw); in sdma_v3_0_init_microcode()
318 hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data; in sdma_v3_0_init_microcode()
[all …]
Dsdma_v5_2.c119 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_2_destroy_inst_ctx()
120 release_firmware(adev->sdma.instance[i].fw); in sdma_v5_2_destroy_inst_ctx()
121 adev->sdma.instance[i].fw = NULL; in sdma_v5_2_destroy_inst_ctx()
127 memset((void*)adev->sdma.instance, 0, in sdma_v5_2_destroy_inst_ctx()
169 err = request_firmware(&adev->sdma.instance[0].fw, fw_name, adev->dev); in sdma_v5_2_init_microcode()
173 err = sdma_v5_2_init_inst_ctx(&adev->sdma.instance[0]); in sdma_v5_2_init_microcode()
177 for (i = 1; i < adev->sdma.num_instances; i++) { in sdma_v5_2_init_microcode()
180 memcpy((void*)&adev->sdma.instance[i], in sdma_v5_2_init_microcode()
181 (void*)&adev->sdma.instance[0], in sdma_v5_2_init_microcode()
185 err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev); in sdma_v5_2_init_microcode()
[all …]
Dsdma_v5_0.c225 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_init_microcode()
230 err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev); in sdma_v5_0_init_microcode()
233 err = amdgpu_ucode_validate(adev->sdma.instance[i].fw); in sdma_v5_0_init_microcode()
236 hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data; in sdma_v5_0_init_microcode()
237 adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version); in sdma_v5_0_init_microcode()
238 adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version); in sdma_v5_0_init_microcode()
239 if (adev->sdma.instance[i].feature_version >= 20) in sdma_v5_0_init_microcode()
240 adev->sdma.instance[i].burst_nop = true; in sdma_v5_0_init_microcode()
247 info->fw = adev->sdma.instance[i].fw; in sdma_v5_0_init_microcode()
256 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_init_microcode()
[all …]
Dsi_dma.c49 u32 me = (ring == &adev->sdma.instance[0].ring) ? 0 : 1; in si_dma_ring_get_wptr()
57 u32 me = (ring == &adev->sdma.instance[0].ring) ? 0 : 1; in si_dma_ring_set_wptr()
118 for (i = 0; i < adev->sdma.num_instances; i++) { in si_dma_stop()
119 ring = &adev->sdma.instance[i].ring; in si_dma_stop()
137 for (i = 0; i < adev->sdma.num_instances; i++) { in si_dma_start()
138 ring = &adev->sdma.instance[i].ring; in si_dma_start()
356 * si_dma_vm_set_pte_pde - update the page tables using sDMA
365 * Update the page tables using sDMA (CIK).
436 * si_dma_ring_emit_vm_flush - cik vm flush using sDMA
442 * using sDMA (VI).
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Domap2.dtsi65 dmas = <&sdma 9 &sdma 10>;
103 sdma: dma-controller@0 { label
104 compatible = "ti,omap2420-sdma", "ti,omap-sdma";
123 dmas = <&sdma 27 &sdma 28>;
134 dmas = <&sdma 29 &sdma 30>;
143 dmas = <&sdma 35 &sdma 36 &sdma 37 &sdma 38
144 &sdma 39 &sdma 40 &sdma 41 &sdma 42>;
154 dmas = <&sdma 43 &sdma 44 &sdma 45 &sdma 46>;
170 dmas = <&sdma 13>;
179 dmas = <&sdma 49 &sdma 50>;
[all …]
Domap3.dtsi181 dmas = <&sdma 9 &sdma 10>;
207 dmas = <&sdma 65 &sdma 66>;
289 sdma: dma-controller@0 { label
290 compatible = "ti,omap3430-sdma", "ti,omap-sdma";
373 dmas = <&sdma 49 &sdma 50>;
383 dmas = <&sdma 51 &sdma 52>;
393 dmas = <&sdma 53 &sdma 54>;
403 dmas = <&sdma 27 &sdma 28>;
414 dmas = <&sdma 29 &sdma 30>;
425 dmas = <&sdma 25 &sdma 26>;
[all …]
Domap2430.dtsi189 dmas = <&sdma 31>,
190 <&sdma 32>;
205 dmas = <&sdma 33>,
206 <&sdma 34>;
221 dmas = <&sdma 17>,
222 <&sdma 18>;
237 dmas = <&sdma 19>,
238 <&sdma 20>;
253 dmas = <&sdma 21>,
254 <&sdma 22>;
[all …]
Dimx6sll.dtsi157 dmas = <&sdma 14 18 0>, <&sdma 15 18 0>;
181 dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
193 dmas = <&sdma 5 7 1>, <&sdma 6 7 2>;
205 dmas = <&sdma 7 7 1>, <&sdma 8 7 2>;
217 dmas = <&sdma 9 7 1>, <&sdma 10 7 2>;
230 dmas = <&sdma 31 4 0>, <&sdma 32 4 0>;
243 dmas = <&sdma 25 4 0>, <&sdma 26 4 0>;
256 dmas = <&sdma 27 4 0>, <&sdma 28 4 0>;
268 dmas = <&sdma 37 22 0>, <&sdma 38 22 0>;
281 dmas = <&sdma 41 22 0>, <&sdma 42 22 0>;
[all …]
Dimx31.dtsi135 dmas = <&sdma 8 8 0>, <&sdma 9 8 0>;
182 dmas = <&sdma 20 3 0>;
193 dmas = <&sdma 21 3 0>;
213 dmas = <&sdma 6 8 0>, <&sdma 7 8 0>;
248 dmas = <&sdma 10 8 0>, <&sdma 11 8 0>;
300 sdma: sdma@53fd4000 { label
301 compatible = "fsl,imx31-sdma";
307 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx31.bin";
347 dmas = <&sdma 30 17 0>;
Dimx6qdl.dtsi305 dmas = <&sdma 14 18 0>,
306 <&sdma 15 18 0>;
330 dmas = <&sdma 3 8 1>, <&sdma 4 8 2>;
344 dmas = <&sdma 5 8 1>, <&sdma 6 8 2>;
358 dmas = <&sdma 7 8 1>, <&sdma 8 8 2>;
372 dmas = <&sdma 9 8 1>, <&sdma 10 8 2>;
384 dmas = <&sdma 25 4 0>, <&sdma 26 4 0>;
400 dmas = <&sdma 23 21 0>, <&sdma 24 21 0>;
414 dmas = <&sdma 37 1 0>,
415 <&sdma 38 1 0>;
[all …]
Dimx6sx.dtsi254 dmas = <&sdma 14 18 0>,
255 <&sdma 15 18 0>;
328 dmas = <&sdma 25 4 0>, <&sdma 26 4 0>;
344 dmas = <&sdma 23 21 0>,
345 <&sdma 24 21 0>;
358 dmas = <&sdma 37 1 0>, <&sdma 38 1 0>;
372 dmas = <&sdma 41 1 0>, <&sdma 42 1 0>;
386 dmas = <&sdma 45 1 0>, <&sdma 46 1 0>;
408 dmas = <&sdma 17 23 1>, <&sdma 18 23 1>,
409 <&sdma 19 23 1>, <&sdma 20 23 1>,
[all …]
/Linux-v5.10/drivers/infiniband/hw/hfi1/
Dvnic_sdma.c49 * This file contains HFI1 support for VNIC SDMA functionality
52 #include "sdma.h"
63 * @txreq: sdma transmit request
64 * @sdma: vnic sdma pointer
72 struct hfi1_vnic_sdma *sdma; member
84 struct hfi1_vnic_sdma *vnic_sdma = tx->sdma; in vnic_sdma_complete()
171 struct hfi1_vnic_sdma *vnic_sdma = &vinfo->sdma[q_idx]; in hfi1_vnic_send_dma()
188 tx->sdma = vnic_sdma; in hfi1_vnic_send_dma()
198 /* When -ECOMM, sdma callback will be called with ABORT status */ in hfi1_vnic_send_dma()
220 * hfi1_vnic_sdma_sleep - vnic sdma sleep function
[all …]
Dvnic.h52 #include "sdma.h"
75 * struct hfi1_vnic_sdma - VNIC per Tx ring SDMA information
77 * @sde - sdma engine
80 * @stx - sdma tx request
81 * @state - vnic Tx ring SDMA state
121 * @sdma: VNIC SDMA structure per TXQ
137 struct hfi1_vnic_sdma sdma[HFI1_VNIC_MAX_TXQ]; member
DKconfig11 bool "HFI1 SDMA Order debug"
16 sdma completions for unit testing
18 bool "Config SDMA Verbosity"
23 SDMA debug
/Linux-v5.10/arch/powerpc/include/asm/
Dmpc52xx.h77 /* SDMA */
79 u32 taskBar; /* SDMA + 0x00 */
80 u32 currentPointer; /* SDMA + 0x04 */
81 u32 endPointer; /* SDMA + 0x08 */
82 u32 variablePointer; /* SDMA + 0x0c */
84 u8 IntVect1; /* SDMA + 0x10 */
85 u8 IntVect2; /* SDMA + 0x11 */
86 u16 PtdCntrl; /* SDMA + 0x12 */
88 u32 IntPend; /* SDMA + 0x14 */
89 u32 IntMask; /* SDMA + 0x18 */
[all …]
/Linux-v5.10/include/linux/platform_data/
Ddma-imx-sdma.h6 * struct sdma_script_start_addrs - SDMA script start pointers
9 * address space of the SDMA engine.
61 * struct sdma_platform_data - platform specific data for SDMA engine
64 * @script_addrs SDMA scripts addresses in SDMA ROM
/Linux-v5.10/Documentation/devicetree/bindings/sound/
Dfsl,asrc.txt74 dmas = <&sdma 17 23 1>, <&sdma 18 23 1>, <&sdma 19 23 1>,
75 <&sdma 20 23 1>, <&sdma 21 23 1>, <&sdma 22 23 1>;

1234567891011