/linux-5.19.10/drivers/dma/ |
D | imx-sdma.c | 431 struct sdma_engine *sdma; member 673 static inline u32 chnenbl_ofs(struct sdma_engine *sdma, unsigned int event) in chnenbl_ofs() argument 675 u32 chnenbl0 = sdma->drvdata->chnenbl0; in chnenbl_ofs() 682 struct sdma_engine *sdma = sdmac->sdma; in sdma_config_ownership() local 689 evt = readl_relaxed(sdma->regs + SDMA_H_EVTOVR); in sdma_config_ownership() 690 mcu = readl_relaxed(sdma->regs + SDMA_H_HOSTOVR); in sdma_config_ownership() 691 dsp = readl_relaxed(sdma->regs + SDMA_H_DSPOVR); in sdma_config_ownership() 708 writel_relaxed(evt, sdma->regs + SDMA_H_EVTOVR); in sdma_config_ownership() 709 writel_relaxed(mcu, sdma->regs + SDMA_H_HOSTOVR); in sdma_config_ownership() 710 writel_relaxed(dsp, sdma->regs + SDMA_H_DSPOVR); in sdma_config_ownership() [all …]
|
/linux-5.19.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_rxtx.c | 110 struct prestera_sdma sdma; member 113 static int prestera_sdma_buf_init(struct prestera_sdma *sdma, in prestera_sdma_buf_init() argument 119 desc = dma_pool_alloc(sdma->desc_pool, GFP_DMA | GFP_KERNEL, &dma); in prestera_sdma_buf_init() 131 static u32 prestera_sdma_map(struct prestera_sdma *sdma, dma_addr_t pa) in prestera_sdma_map() argument 133 return sdma->map_addr + pa; in prestera_sdma_map() 136 static void prestera_sdma_rx_desc_init(struct prestera_sdma *sdma, in prestera_sdma_rx_desc_init() argument 145 desc->buff = cpu_to_le32(prestera_sdma_map(sdma, buf)); in prestera_sdma_rx_desc_init() 153 static void prestera_sdma_rx_desc_set_next(struct prestera_sdma *sdma, in prestera_sdma_rx_desc_set_next() argument 157 desc->next = cpu_to_le32(prestera_sdma_map(sdma, next)); in prestera_sdma_rx_desc_set_next() 160 static int prestera_sdma_rx_skb_alloc(struct prestera_sdma *sdma, in prestera_sdma_rx_skb_alloc() argument [all …]
|
/linux-5.19.10/Documentation/devicetree/bindings/dma/ |
D | fsl-imx-sdma.txt | 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,imx6ul-sdma" 13 "fsl,imx8mq-sdma" 14 "fsl,imx8mm-sdma" [all …]
|
/linux-5.19.10/drivers/gpu/drm/amd/amdgpu/ |
D | sdma_v4_0.c | 555 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_setup_ulv() 587 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_destroy_inst_ctx() 588 release_firmware(adev->sdma.instance[i].fw); in sdma_v4_0_destroy_inst_ctx() 589 adev->sdma.instance[i].fw = NULL; in sdma_v4_0_destroy_inst_ctx() 598 memset((void *)adev->sdma.instance, 0, in sdma_v4_0_destroy_inst_ctx() 661 err = request_firmware(&adev->sdma.instance[0].fw, fw_name, adev->dev); in sdma_v4_0_init_microcode() 665 err = sdma_v4_0_init_inst_ctx(&adev->sdma.instance[0]); in sdma_v4_0_init_microcode() 669 for (i = 1; i < adev->sdma.num_instances; i++) { in sdma_v4_0_init_microcode() 674 memcpy((void *)&adev->sdma.instance[i], in sdma_v4_0_init_microcode() 675 (void *)&adev->sdma.instance[0], in sdma_v4_0_init_microcode() [all …]
|
D | amdgpu_sdma.c | 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() 81 sdma[ring->idx].sdma_meta_data); in amdgpu_sdma_get_csa_mc_addr() 107 for (i = 0; i < adev->sdma.num_instances; i++) { in amdgpu_sdma_ras_late_init() 108 r = amdgpu_irq_get(adev, &adev->sdma.ecc_irq, in amdgpu_sdma_ras_late_init() [all …]
|
D | sdma_v3_0.c | 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() 319 adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version); in sdma_v3_0_init_microcode() 320 adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version); in sdma_v3_0_init_microcode() 321 if (adev->sdma.instance[i].feature_version >= 20) in sdma_v3_0_init_microcode() [all …]
|
D | cik_sdma.c | 76 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() 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() 149 release_firmware(adev->sdma.instance[i].fw); in cik_sdma_init_microcode() 150 adev->sdma.instance[i].fw = NULL; in cik_sdma_init_microcode() 203 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in cik_sdma_ring_insert_nop() local [all …]
|
D | sdma_v2_4.c | 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() 161 adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version); in sdma_v2_4_init_microcode() 162 adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version); in sdma_v2_4_init_microcode() 163 if (adev->sdma.instance[i].feature_version >= 20) in sdma_v2_4_init_microcode() [all …]
|
D | sdma_v6_0.c | 100 release_firmware(adev->sdma.instance[0].fw); in sdma_v6_0_destroy_inst_ctx() 102 memset((void*)adev->sdma.instance, 0, in sdma_v6_0_destroy_inst_ctx() 132 err = request_firmware(&adev->sdma.instance[0].fw, fw_name, adev->dev); in sdma_v6_0_init_microcode() 136 err = sdma_v6_0_init_inst_ctx(&adev->sdma.instance[0]); in sdma_v6_0_init_microcode() 140 for (i = 1; i < adev->sdma.num_instances; i++) { in sdma_v6_0_init_microcode() 141 memcpy((void*)&adev->sdma.instance[i], in sdma_v6_0_init_microcode() 142 (void*)&adev->sdma.instance[0], in sdma_v6_0_init_microcode() 150 sdma_hdr = (const struct sdma_firmware_header_v2_0 *)adev->sdma.instance[0].fw->data; in sdma_v6_0_init_microcode() 153 info->fw = adev->sdma.instance[0].fw; in sdma_v6_0_init_microcode() 158 info->fw = adev->sdma.instance[0].fw; in sdma_v6_0_init_microcode() [all …]
|
D | sdma_v5_2.c | 113 release_firmware(adev->sdma.instance[0].fw); in sdma_v5_2_destroy_inst_ctx() 115 memset((void *)adev->sdma.instance, 0, in sdma_v5_2_destroy_inst_ctx() 172 err = request_firmware(&adev->sdma.instance[0].fw, fw_name, adev->dev); in sdma_v5_2_init_microcode() 176 err = sdma_v5_2_init_inst_ctx(&adev->sdma.instance[0]); in sdma_v5_2_init_microcode() 180 for (i = 1; i < adev->sdma.num_instances; i++) in sdma_v5_2_init_microcode() 181 memcpy((void *)&adev->sdma.instance[i], in sdma_v5_2_init_microcode() 182 (void *)&adev->sdma.instance[0], in sdma_v5_2_init_microcode() 192 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_2_init_microcode() 195 info->fw = adev->sdma.instance[i].fw; in sdma_v5_2_init_microcode() 326 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in sdma_v5_2_ring_insert_nop() local [all …]
|
D | si_dma.c | 49 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() 119 for (i = 0; i < adev->sdma.num_instances; i++) { in si_dma_stop() 120 ring = &adev->sdma.instance[i].ring; in si_dma_stop() 138 for (i = 0; i < adev->sdma.num_instances; i++) { in si_dma_start() 139 ring = &adev->sdma.instance[i].ring; in si_dma_start() 474 adev->sdma.num_instances = 2; in si_dma_early_init() 492 &adev->sdma.trap_irq); in si_dma_sw_init() 498 &adev->sdma.trap_irq); in si_dma_sw_init() 502 for (i = 0; i < adev->sdma.num_instances; i++) { in si_dma_sw_init() [all …]
|
D | sdma_v5_0.c | 270 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_init_microcode() 275 err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev); in sdma_v5_0_init_microcode() 278 err = amdgpu_ucode_validate(adev->sdma.instance[i].fw); in sdma_v5_0_init_microcode() 281 hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data; in sdma_v5_0_init_microcode() 282 adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version); in sdma_v5_0_init_microcode() 283 adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version); in sdma_v5_0_init_microcode() 284 if (adev->sdma.instance[i].feature_version >= 20) in sdma_v5_0_init_microcode() 285 adev->sdma.instance[i].burst_nop = true; in sdma_v5_0_init_microcode() 292 info->fw = adev->sdma.instance[i].fw; in sdma_v5_0_init_microcode() 301 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_init_microcode() [all …]
|
/linux-5.19.10/arch/arm/boot/dts/ |
D | omap2.dtsi | 65 dmas = <&sdma 9 &sdma 10>; 103 sdma: dma-controller@0 { label 104 compatible = "ti,omap2420-sdma", "ti,omap-sdma"; 139 dmas = <&sdma 35 &sdma 36 &sdma 37 &sdma 38 140 &sdma 39 &sdma 40 &sdma 41 &sdma 42>; 150 dmas = <&sdma 43 &sdma 44 &sdma 45 &sdma 46>; 166 dmas = <&sdma 13>; 175 dmas = <&sdma 49 &sdma 50>; 185 dmas = <&sdma 51 &sdma 52>; 195 dmas = <&sdma 53 &sdma 54>;
|
D | omap3.dtsi | 184 dmas = <&sdma 9 &sdma 10>; 210 dmas = <&sdma 65 &sdma 66>; 292 sdma: dma-controller@0 { label 293 compatible = "ti,omap3430-sdma", "ti,omap-sdma"; 376 dmas = <&sdma 49 &sdma 50>; 386 dmas = <&sdma 51 &sdma 52>; 396 dmas = <&sdma 53 &sdma 54>; 451 dmas = <&sdma 35>, 452 <&sdma 36>, 453 <&sdma 37>, [all …]
|
D | omap2430.dtsi | 189 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 …]
|
D | imx31.dtsi | 135 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"; 348 dmas = <&sdma 30 17 0>;
|
D | imx6sll.dtsi | 157 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 …]
|
D | imx6qdl.dtsi | 311 dmas = <&sdma 14 18 0>, 312 <&sdma 15 18 0>; 336 dmas = <&sdma 3 7 1>, <&sdma 4 7 2>; 350 dmas = <&sdma 5 7 1>, <&sdma 6 7 2>; 364 dmas = <&sdma 7 7 1>, <&sdma 8 7 2>; 378 dmas = <&sdma 9 7 1>, <&sdma 10 7 2>; 390 dmas = <&sdma 25 4 0>, <&sdma 26 4 0>; 406 dmas = <&sdma 23 21 0>, <&sdma 24 21 0>; 420 dmas = <&sdma 37 1 0>, 421 <&sdma 38 1 0>; [all …]
|
D | imx51.dtsi | 218 dmas = <&sdma 43 5 1>, <&sdma 44 5 2>; 243 dmas = <&sdma 24 1 0>, 244 <&sdma 25 1 0>; 431 dmas = <&sdma 18 4 1>, <&sdma 19 4 2>; 443 dmas = <&sdma 16 4 1>, <&sdma 17 4 2>; 507 sdma: sdma@83fb0000 { label 508 compatible = "fsl,imx51-sdma", "fsl,imx35-sdma"; 515 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx51.bin"; 558 dmas = <&sdma 28 0 0>, 559 <&sdma 29 0 0>; [all …]
|
D | imx53.dtsi | 270 dmas = <&sdma 42 4 0>, <&sdma 43 4 0>; 297 dmas = <&sdma 24 1 0>, 298 <&sdma 25 1 0>; 554 dmas = <&sdma 18 4 0>, <&sdma 19 4 0>; 566 dmas = <&sdma 12 4 0>, <&sdma 13 4 0>; 652 dmas = <&sdma 2 4 0>, <&sdma 3 4 0>; 684 dmas = <&sdma 16 4 0>, <&sdma 17 4 0>; 713 sdma: sdma@63fb0000 { label 714 compatible = "fsl,imx53-sdma", "fsl,imx35-sdma"; 721 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx53.bin"; [all …]
|
D | imx6sx.dtsi | 257 dmas = <&sdma 14 18 0>, 258 <&sdma 15 18 0>; 331 dmas = <&sdma 25 4 0>, <&sdma 26 4 0>; 347 dmas = <&sdma 23 21 0>, 348 <&sdma 24 21 0>; 361 dmas = <&sdma 37 1 0>, <&sdma 38 1 0>; 375 dmas = <&sdma 41 1 0>, <&sdma 42 1 0>; 389 dmas = <&sdma 45 1 0>, <&sdma 46 1 0>; 411 dmas = <&sdma 17 23 1>, <&sdma 18 23 1>, 412 <&sdma 19 23 1>, <&sdma 20 23 1>, [all …]
|
D | imx6sl.dtsi | 159 dmas = <&sdma 14 18 0>, 160 <&sdma 15 18 0>; 231 dmas = <&sdma 33 4 0>, <&sdma 34 4 0>; 244 dmas = <&sdma 25 4 0>, <&sdma 26 4 0>; 257 dmas = <&sdma 27 4 0>, <&sdma 28 4 0>; 271 dmas = <&sdma 37 1 0>, 272 <&sdma 38 1 0>; 287 dmas = <&sdma 41 1 0>, 288 <&sdma 42 1 0>; 303 dmas = <&sdma 45 1 0>, [all …]
|
D | imx6ul.dtsi | 223 dmas = <&sdma 3 7 1>, <&sdma 4 7 2>; 237 dmas = <&sdma 5 7 1>, <&sdma 6 7 2>; 251 dmas = <&sdma 7 7 1>, <&sdma 8 7 2>; 265 dmas = <&sdma 9 7 1>, <&sdma 10 7 2>; 312 dmas = <&sdma 35 24 0>, 313 <&sdma 36 24 0>; 327 dmas = <&sdma 37 24 0>, 328 <&sdma 38 24 0>; 342 dmas = <&sdma 39 24 0>, 343 <&sdma 40 24 0>; [all …]
|
/linux-5.19.10/arch/powerpc/platforms/52xx/ |
D | mpc52xx_pic.c | 135 static struct mpc52xx_sdma __iomem *sdma; variable 270 io_be_setbit(&sdma->IntMask, l2irq); in mpc52xx_sdma_mask() 276 io_be_clrbit(&sdma->IntMask, l2irq); in mpc52xx_sdma_unmask() 282 out_be32(&sdma->IntPend, 1 << l2irq); in mpc52xx_sdma_ack() 417 sdma = of_iomap(np, 0); in mpc52xx_init_irq() 419 if (!sdma) in mpc52xx_init_irq() 426 out_be32(&sdma->IntPend, 0xffffffff); /* 1 means clear pending */ in mpc52xx_init_irq() 427 out_be32(&sdma->IntMask, 0xffffffff); /* 1 means disabled */ in mpc52xx_init_irq() 508 status = in_be32(&sdma->IntPend); in mpc52xx_get_irq()
|
/linux-5.19.10/Documentation/devicetree/bindings/sound/ |
D | fsl,asrc.txt | 74 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>;
|