/linux-6.1.9/drivers/dma/ |
D | imx-sdma.c | 441 struct sdma_engine *sdma; member 686 static inline u32 chnenbl_ofs(struct sdma_engine *sdma, unsigned int event) in chnenbl_ofs() argument 688 u32 chnenbl0 = sdma->drvdata->chnenbl0; in chnenbl_ofs() 695 struct sdma_engine *sdma = sdmac->sdma; in sdma_config_ownership() local 702 evt = readl_relaxed(sdma->regs + SDMA_H_EVTOVR); in sdma_config_ownership() 703 mcu = readl_relaxed(sdma->regs + SDMA_H_HOSTOVR); in sdma_config_ownership() 704 dsp = readl_relaxed(sdma->regs + SDMA_H_DSPOVR); in sdma_config_ownership() 721 writel_relaxed(evt, sdma->regs + SDMA_H_EVTOVR); in sdma_config_ownership() 722 writel_relaxed(mcu, sdma->regs + SDMA_H_HOSTOVR); in sdma_config_ownership() 723 writel_relaxed(dsp, sdma->regs + SDMA_H_DSPOVR); in sdma_config_ownership() [all …]
|
/linux-6.1.9/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-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_sdma.c | 42 for (i = 0; i < adev->sdma.num_instances; i++) in amdgpu_sdma_get_instance_from_ring() 43 if (ring == &adev->sdma.instance[i].ring || in amdgpu_sdma_get_instance_from_ring() 44 ring == &adev->sdma.instance[i].page) in amdgpu_sdma_get_instance_from_ring() 45 return &adev->sdma.instance[i]; in amdgpu_sdma_get_instance_from_ring() 55 for (i = 0; i < adev->sdma.num_instances; i++) { in amdgpu_sdma_get_index_from_ring() 56 if (ring == &adev->sdma.instance[i].ring || in amdgpu_sdma_get_index_from_ring() 57 ring == &adev->sdma.instance[i].page) { in amdgpu_sdma_get_index_from_ring() 82 sdma[ring->idx].sdma_meta_data); in amdgpu_sdma_get_csa_mc_addr() 108 for (i = 0; i < adev->sdma.num_instances; i++) { in amdgpu_sdma_ras_late_init() 109 r = amdgpu_irq_get(adev, &adev->sdma.ecc_irq, in amdgpu_sdma_ras_late_init() [all …]
|
D | sdma_v4_0.c | 555 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_setup_ulv() 619 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_init_microcode() 780 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in sdma_v4_0_ring_insert_nop() local 784 if (sdma && sdma->burst_nop && (i == 0)) in sdma_v4_0_ring_insert_nop() 923 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_gfx_enable() 959 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_page_stop() 1008 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_ctx_switch_enable() 1025 adev->sdma.instance[i].fw_version >= 14) in sdma_v4_0_ctx_switch_enable() 1049 if (adev->sdma.has_page_queue) in sdma_v4_0_enable() 1053 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v4_0_enable() [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 | 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() 121 for (i = 0; i < adev->sdma.num_instances; i++) { in si_dma_stop() 122 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() 473 adev->sdma.num_instances = 2; in si_dma_early_init() 491 &adev->sdma.trap_irq); in si_dma_sw_init() 497 &adev->sdma.trap_irq); in si_dma_sw_init() 501 for (i = 0; i < adev->sdma.num_instances; i++) { in si_dma_sw_init() [all …]
|
D | sdma_v6_0.c | 248 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in sdma_v6_0_ring_insert_nop() local 252 if (sdma && sdma->burst_nop && (i == 0)) in sdma_v6_0_ring_insert_nop() 406 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v6_0_gfx_stop() 458 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v6_0_enable() 484 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v6_0_gfx_resume() 485 ring = &adev->sdma.instance[i].ring; in sdma_v6_0_gfx_resume() 557 adev->doorbell_index.sdma_doorbell_range * adev->sdma.num_instances); in sdma_v6_0_gfx_resume() 652 if (!adev->sdma.instance[0].fw) in sdma_v6_0_load_microcode() 661 hdr = (const struct sdma_firmware_header_v2_0 *)adev->sdma.instance[0].fw->data; in sdma_v6_0_load_microcode() 666 (adev->sdma.instance[0].fw->data + in sdma_v6_0_load_microcode() [all …]
|
D | sdma_v5_2.c | 261 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in sdma_v5_2_ring_insert_nop() local 265 if (sdma && sdma->burst_nop && (i == 0)) in sdma_v5_2_ring_insert_nop() 422 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_2_gfx_stop() 481 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_2_ctx_switch_enable() 520 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_2_enable() 548 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_2_gfx_resume() 549 ring = &adev->sdma.instance[i].ring; in sdma_v5_2_gfx_resume() 724 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_2_load_microcode() 725 if (!adev->sdma.instance[i].fw) in sdma_v5_2_load_microcode() 728 hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data; in sdma_v5_2_load_microcode() [all …]
|
D | sdma_v5_0.c | 267 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_init_microcode() 429 struct amdgpu_sdma_instance *sdma = amdgpu_sdma_get_instance_from_ring(ring); in sdma_v5_0_ring_insert_nop() local 433 if (sdma && sdma->burst_nop && (i == 0)) in sdma_v5_0_ring_insert_nop() 592 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_gfx_stop() 651 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_ctx_switch_enable() 693 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_enable() 720 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_gfx_resume() 721 ring = &adev->sdma.instance[i].ring; in sdma_v5_0_gfx_resume() 897 for (i = 0; i < adev->sdma.num_instances; i++) { in sdma_v5_0_load_microcode() 898 if (!adev->sdma.instance[i].fw) in sdma_v5_0_load_microcode() [all …]
|
/linux-6.1.9/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-6.1.9/arch/arm/boot/dts/ |
D | omap2.dtsi | 62 dmas = <&sdma 9 &sdma 10>; 100 sdma: dma-controller@0 { label 101 compatible = "ti,omap2420-sdma", "ti,omap-sdma"; 136 dmas = <&sdma 35 &sdma 36 &sdma 37 &sdma 38 137 &sdma 39 &sdma 40 &sdma 41 &sdma 42>; 147 dmas = <&sdma 43 &sdma 44 &sdma 45 &sdma 46>; 163 dmas = <&sdma 13>; 172 dmas = <&sdma 49 &sdma 50>; 182 dmas = <&sdma 51 &sdma 52>; 192 dmas = <&sdma 53 &sdma 54>;
|
D | omap3.dtsi | 181 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>; 448 dmas = <&sdma 35>, 449 <&sdma 36>, 450 <&sdma 37>, [all …]
|
D | omap2430.dtsi | 186 dmas = <&sdma 31>, 187 <&sdma 32>; 202 dmas = <&sdma 33>, 203 <&sdma 34>; 218 dmas = <&sdma 17>, 219 <&sdma 18>; 234 dmas = <&sdma 19>, 235 <&sdma 20>; 250 dmas = <&sdma 21>, 251 <&sdma 22>; [all …]
|
D | imx6sll.dtsi | 160 dmas = <&sdma 14 18 0>, <&sdma 15 18 0>; 184 dmas = <&sdma 3 7 1>, <&sdma 4 7 2>; 196 dmas = <&sdma 5 7 1>, <&sdma 6 7 2>; 208 dmas = <&sdma 7 7 1>, <&sdma 8 7 2>; 220 dmas = <&sdma 9 7 1>, <&sdma 10 7 2>; 233 dmas = <&sdma 31 4 0>, <&sdma 32 4 0>; 246 dmas = <&sdma 25 4 0>, <&sdma 26 4 0>; 259 dmas = <&sdma 27 4 0>, <&sdma 28 4 0>; 271 dmas = <&sdma 37 22 0>, <&sdma 38 22 0>; 284 dmas = <&sdma 41 22 0>, <&sdma 42 22 0>; [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: dma-controller@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 | 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: dma-controller@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: dma-controller@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 | 263 dmas = <&sdma 14 18 0>, 264 <&sdma 15 18 0>; 337 dmas = <&sdma 25 4 0>, <&sdma 26 4 0>; 353 dmas = <&sdma 23 21 0>, 354 <&sdma 24 21 0>; 367 dmas = <&sdma 37 1 0>, <&sdma 38 1 0>; 381 dmas = <&sdma 41 1 0>, <&sdma 42 1 0>; 395 dmas = <&sdma 45 1 0>, <&sdma 46 1 0>; 417 dmas = <&sdma 17 23 1>, <&sdma 18 23 1>, 418 <&sdma 19 23 1>, <&sdma 20 23 1>, [all …]
|
D | imx6sl.dtsi | 162 dmas = <&sdma 14 18 0>, 163 <&sdma 15 18 0>; 234 dmas = <&sdma 33 4 0>, <&sdma 34 4 0>; 247 dmas = <&sdma 25 4 0>, <&sdma 26 4 0>; 260 dmas = <&sdma 27 4 0>, <&sdma 28 4 0>; 274 dmas = <&sdma 37 1 0>, 275 <&sdma 38 1 0>; 290 dmas = <&sdma 41 1 0>, 291 <&sdma 42 1 0>; 306 dmas = <&sdma 45 1 0>, [all …]
|
/linux-6.1.9/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-6.1.9/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>;
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | vnic_sdma.c | 30 struct hfi1_vnic_sdma *sdma; member 42 struct hfi1_vnic_sdma *vnic_sdma = tx->sdma; in vnic_sdma_complete() 129 struct hfi1_vnic_sdma *vnic_sdma = &vinfo->sdma[q_idx]; in hfi1_vnic_send_dma() 146 tx->sdma = vnic_sdma; in hfi1_vnic_send_dma() 230 struct hfi1_vnic_sdma *vnic_sdma = &vinfo->sdma[q_idx]; in hfi1_vnic_sdma_write_avail() 240 struct hfi1_vnic_sdma *vnic_sdma = &vinfo->sdma[i]; in hfi1_vnic_sdma_init()
|