/openbmc/linux/sound/pci/ |
H A D | cs4281.c | 669 snd_cs4281_pokeBA0(chip, dma->regDMR, dma->valDMR & ~BA0_DMR_DMA); in snd_cs4281_trigger() 687 snd_cs4281_pokeBA0(chip, dma->regDMR, dma->valDMR); in snd_cs4281_trigger() 688 snd_cs4281_pokeBA0(chip, dma->regFCR, dma->valFCR); in snd_cs4281_trigger() 689 snd_cs4281_pokeBA0(chip, dma->regDCR, dma->valDCR); in snd_cs4281_trigger() 770 dma->valFCR = BA0_FCR_LS(dma->left_slot) | in snd_cs4281_mode() 777 snd_cs4281_pokeBA0(chip, dma->regFCR, dma->valFCR | BA0_FCR_FEN); in snd_cs4281_mode() 878 dma = &chip->dma[0]; in snd_cs4281_playback_open() 897 dma = &chip->dma[1]; in snd_cs4281_capture_open() 1518 struct cs4281_dma *dma = &chip->dma[tmp]; in snd_cs4281_chip_init() local 1748 for (dma = 0; dma < 4; dma++) in snd_cs4281_interrupt() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_bufs.c | 717 struct drm_device_dma *dma = dev->dma; in drm_legacy_addbufs_agp() local 733 if (!dma) in drm_legacy_addbufs_agp() 881 struct drm_device_dma *dma = dev->dma; in drm_legacy_addbufs_pci() local 901 if (!dma) in drm_legacy_addbufs_pci() 973 dma->pagelist, dma->page_count * sizeof(*dma->pagelist)); in drm_legacy_addbufs_pci() 1103 struct drm_device_dma *dma = dev->dma; in drm_legacy_addbufs_sg() local 1121 if (!dma) in drm_legacy_addbufs_sg() 1317 struct drm_device_dma *dma = dev->dma; in __drm_legacy_infobufs() local 1406 struct drm_device_dma *dma = dev->dma; in drm_legacy_markbufs() local 1453 struct drm_device_dma *dma = dev->dma; in drm_legacy_freebufs() local [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-fsl-dspi.c | 362 struct fsl_dspi_dma *dma = dspi->dma; in dspi_tx_dma_callback() local 370 struct fsl_dspi_dma *dma = dspi->dma; in dspi_rx_dma_callback() local 384 struct fsl_dspi_dma *dma = dspi->dma; in dspi_next_xfer_dma_submit() local 500 dma = devm_kzalloc(dev, sizeof(*dma), GFP_KERNEL); in dspi_request_dma() 501 if (!dma) in dspi_request_dma() 557 dspi->dma = dma; in dspi_request_dma() 565 dma_bufsize, dma->rx_dma_buf, dma->rx_dma_phys); in dspi_request_dma() 583 struct fsl_dspi_dma *dma = dspi->dma; in dspi_release_dma() local 585 if (!dma) in dspi_release_dma() 590 dma->tx_dma_buf, dma->tx_dma_phys); in dspi_release_dma() [all …]
|
/openbmc/linux/arch/powerpc/boot/dts/fsl/ |
H A D | elo3-dma-0.dtsi | 35 dma0: dma@100300 { 38 compatible = "fsl,elo3-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 47 dma-channel@80 { 52 dma-channel@100 { 57 dma-channel@180 { 62 dma-channel@300 { 67 dma-channel@380 { 72 dma-channel@400 { [all …]
|
H A D | elo3-dma-1.dtsi | 35 dma1: dma@101300 { 38 compatible = "fsl,elo3-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 47 dma-channel@80 { 52 dma-channel@100 { 57 dma-channel@180 { 62 dma-channel@300 { 67 dma-channel@380 { 72 dma-channel@400 { [all …]
|
H A D | elo3-dma-2.dtsi | 35 dma2: dma@102300 { 38 compatible = "fsl,elo3-dma"; 42 dma-channel@0 { 43 compatible = "fsl,eloplus-dma-channel"; 47 dma-channel@80 { 52 dma-channel@100 { 57 dma-channel@180 { 62 dma-channel@300 { 67 dma-channel@380 { 72 dma-channel@400 { [all …]
|
H A D | mpc8641si-post.dtsi | 40 /include/ "pq3-dma-0.dtsi" 41 dma@21300 { 42 compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma"; 44 dma-channel@0 { 45 compatible = "fsl,mpc8641-dma-channel", "fsl,eloplus-dma-channel"; 47 dma-channel@80 { 48 compatible = "fsl,mpc8641-dma-channel", "fsl,eloplus-dma-channel"; 50 dma-channel@100 { 51 compatible = "fsl,mpc8641-dma-channel", "fsl,eloplus-dma-channel"; 53 dma-channel@180 { [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/dma/xilinx/ |
H A D | xlnx,zynqmp-dma-1.0.yaml | 4 $id: http://devicetree.org/schemas/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml# 20 - $ref: ../dma-controller.yaml# 23 "#dma-cells": 27 const: xlnx,zynqmp-dma-1.0 60 dma-coherent: 61 description: present if dma operations are coherent 64 - "#dma-cells" 78 fpd_dma_chan1: dma-controller@fd500000 { 79 compatible = "xlnx,zynqmp-dma-1.0"; 83 #dma-cells = <1>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/dma/ |
H A D | fsl,edma.yaml | 44 "#dma-cells": 49 dma-channels: 68 - "#dma-cells" 73 - dma-channels 88 "#dma-cells": 96 - const: dma 123 "#dma-cells": 125 dma-channels: 147 "#dma-cells": 149 dma-channels: [all …]
|
H A D | allwinner,sun4i-a10-dma.yaml | 4 $id: http://devicetree.org/schemas/dma/allwinner,sun4i-a10-dma.yaml# 14 - $ref: dma-controller.yaml# 17 "#dma-cells": 25 const: allwinner,sun4i-a10-dma 37 - "#dma-cells" 47 dma: dma-controller@1c02000 { 48 compatible = "allwinner,sun4i-a10-dma"; 52 #dma-cells = <2>;
|
H A D | sprd-dma.txt | 3 This binding follows the generic DMA bindings defined in dma.txt. 6 - compatible: Should be "sprd,sc9860-dma". 9 - #dma-cells: must be <1>. Used to represent the number of integer 11 - dma-channels : Number of DMA channels supported. Should be 32. 16 - #dma-channels : Number of DMA channels supported. Should be 32. 21 apdma: dma-controller@20100000 { 22 compatible = "sprd,sc9860-dma"; 25 #dma-cells = <1>; 26 dma-channels = <32>; 34 described in the dma.txt file, using a two-cell specifier for each channel. [all …]
|
H A D | renesas,rzn1-dmamux.yaml | 4 $id: http://devicetree.org/schemas/dma/renesas,rzn1-dmamux.yaml# 13 - $ref: dma-router.yaml# 23 '#dma-cells': 30 dma-masters: 34 dma-requests: 39 - dma-requests 45 dma-router@a0 { 48 #dma-cells = <6>; 49 dma-masters = <&dma0 &dma1>; 50 dma-requests = <32>;
|
H A D | snps,dw-axi-dmac.yaml | 16 - $ref: dma-controller.yaml# 21 - snps,axi-dma-1.01a 22 - intel,kmb-axi-dma 54 '#dma-cells': 57 dma-channels: 65 snps,dma-masters: 107 - '#dma-cells' 108 - dma-channels 109 - snps,dma-masters 140 dma-controller@80000 { [all …]
|
/openbmc/linux/drivers/net/ethernet/ |
H A D | lantiq_etop.c | 114 ch->dma.desc_base[ch->dma.desc].addr = in ltq_etop_alloc_skb() 117 ch->dma.desc_base[ch->dma.desc].addr = in ltq_etop_alloc_skb() 119 ch->dma.desc_base[ch->dma.desc].ctl = in ltq_etop_alloc_skb() 130 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in ltq_etop_hw_receive() 141 ch->dma.desc++; in ltq_etop_hw_receive() 158 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in ltq_etop_poll_rx() 217 if (ch->dma.irq) in ltq_etop_free_channel() 289 for (ch->dma.desc = 0; ch->dma.desc < LTQ_DESC_NUM; in ltq_etop_hw_init() 480 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in ltq_etop_tx() 506 ch->dma.desc++; in ltq_etop_tx() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | dma.c | 734 dma = &dev->dma; in b43legacy_dma_free() 737 dma->rx_ring3 = NULL; in b43legacy_dma_free() 739 dma->rx_ring0 = NULL; in b43legacy_dma_free() 742 dma->tx_ring5 = NULL; in b43legacy_dma_free() 744 dma->tx_ring4 = NULL; in b43legacy_dma_free() 746 dma->tx_ring3 = NULL; in b43legacy_dma_free() 748 dma->tx_ring2 = NULL; in b43legacy_dma_free() 750 dma->tx_ring1 = NULL; in b43legacy_dma_free() 752 dma->tx_ring0 = NULL; in b43legacy_dma_free() 757 struct b43legacy_dma *dma = &dev->dma; in b43legacy_dma_init() local [all …]
|
/openbmc/linux/drivers/media/pci/b2c2/ |
H A D | flexcop-dma.c | 10 struct flexcop_dma *dma, u32 size) in flexcop_dma_allocate() argument 22 dma->pdev = pdev; in flexcop_dma_allocate() 23 dma->cpu_addr0 = tcpu; in flexcop_dma_allocate() 24 dma->dma_addr0 = tdma; in flexcop_dma_allocate() 25 dma->cpu_addr1 = tcpu + size/2; in flexcop_dma_allocate() 26 dma->dma_addr1 = tdma + size/2; in flexcop_dma_allocate() 27 dma->size = size/2; in flexcop_dma_allocate() 36 dma_free_coherent(&dma->pdev->dev, dma->size * 2, dma->cpu_addr0, in flexcop_dma_free() 37 dma->dma_addr0); in flexcop_dma_free() 38 memset(dma, 0, sizeof(struct flexcop_dma)); in flexcop_dma_free() [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | edu.c | 74 } dma; member 143 if (!(edu->dma.cmd & EDU_DMA_RUN)) { in edu_dma_timer() 148 uint64_t dst = edu->dma.dst; in edu_dma_timer() 152 edu->dma_buf + dst, edu->dma.cnt); in edu_dma_timer() 154 uint64_t src = edu->dma.src; in edu_dma_timer() 158 edu->dma_buf + src, edu->dma.cnt); in edu_dma_timer() 161 edu->dma.cmd &= ~EDU_DMA_RUN; in edu_dma_timer() 162 if (edu->dma.cmd & EDU_DMA_IRQ) { in edu_dma_timer() 174 if (write && (edu->dma.cmd & EDU_DMA_RUN)) { in dma_rw() 179 *dma = *val; in dma_rw() [all …]
|
/openbmc/linux/drivers/dma/idxd/ |
H A D | dma.c | 200 struct dma_device *dma; in idxd_register_dma_device() local 208 dma = &idxd_dma->dma; in idxd_register_dma_device() 209 INIT_LIST_HEAD(&dma->channels); in idxd_register_dma_device() 210 dma->dev = dev; in idxd_register_dma_device() 212 dma_cap_set(DMA_INTERRUPT, dma->cap_mask); in idxd_register_dma_device() 213 dma_cap_set(DMA_PRIVATE, dma->cap_mask); in idxd_register_dma_device() 215 dma->device_release = idxd_dma_release; in idxd_register_dma_device() 219 dma_cap_set(DMA_MEMCPY, dma->cap_mask); in idxd_register_dma_device() 228 rc = dma_async_device_register(dma); in idxd_register_dma_device() 251 struct dma_device *dma = &idxd->idxd_dma->dma; in idxd_register_dma_channel() local [all …]
|
/openbmc/linux/sound/soc/fsl/ |
H A D | fsl_dma.c | 365 struct dma_object *dma = in fsl_dma_open() local 387 if (dma->assigned) { in fsl_dma_open() 420 dma->assigned = true; in fsl_dma_open() 776 struct dma_object *dma = in fsl_dma_close() local 789 dma->assigned = false; in fsl_dma_close() 829 struct dma_object *dma; in fsl_soc_dma_probe() local 851 dma = kzalloc(sizeof(*dma), GFP_KERNEL); in fsl_soc_dma_probe() 852 if (!dma) { in fsl_soc_dma_probe() 881 kfree(dma); in fsl_soc_dma_probe() 897 iounmap(dma->channel); in fsl_soc_dma_remove() [all …]
|
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_opr.c | 55 b->dma = dev->mem_base + offset; in s5p_mfc_alloc_priv_buf() 64 if (b->dma < base) { in s5p_mfc_alloc_priv_buf() 66 &b->dma, &base); in s5p_mfc_alloc_priv_buf() 67 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf() 72 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); in s5p_mfc_alloc_priv_buf() 91 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); in s5p_mfc_alloc_generic_buf() 102 unsigned int start = (b->dma - dev->mem_base) >> PAGE_SHIFT; in s5p_mfc_release_priv_buf() 109 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_priv_buf() 112 b->dma = 0; in s5p_mfc_release_priv_buf() 120 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_generic_buf() [all …]
|
/openbmc/linux/drivers/crypto/caam/ |
H A D | sg_sw_qm.h | 13 static inline void __dma_to_qm_sg(struct qm_sg_entry *qm_sg_ptr, dma_addr_t dma, in __dma_to_qm_sg() argument 16 qm_sg_entry_set64(qm_sg_ptr, dma); in __dma_to_qm_sg() 23 dma_addr_t dma, u32 len, u16 offset) in dma_to_qm_sg_one() argument 25 __dma_to_qm_sg(qm_sg_ptr, dma, offset); in dma_to_qm_sg_one() 30 dma_addr_t dma, u32 len, u16 offset) in dma_to_qm_sg_one_last() argument 32 __dma_to_qm_sg(qm_sg_ptr, dma, offset); in dma_to_qm_sg_one_last() 37 dma_addr_t dma, u32 len, u16 offset) in dma_to_qm_sg_one_ext() argument 39 __dma_to_qm_sg(qm_sg_ptr, dma, offset); in dma_to_qm_sg_one_ext() 44 dma_addr_t dma, u32 len, in dma_to_qm_sg_one_last_ext() argument 47 __dma_to_qm_sg(qm_sg_ptr, dma, offset); in dma_to_qm_sg_one_last_ext()
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc440_uc.c | 538 PPC4xxDmaState *dma = opaque; in dcr_read_dma() local 540 int addr = dcrn - dma->base; in dcr_read_dma() 573 val = dma->sr; in dcr_read_dma() 586 int addr = dcrn - dma->base; in dcr_write_dma() 670 dma->sr &= ~val; in dcr_write_dma() 681 int dma_base = dma->base; in ppc4xx_dma_reset() 683 memset(dma, 0, sizeof(*dma)); in ppc4xx_dma_reset() 684 dma->base = dma_base; in ppc4xx_dma_reset() 689 PPC4xxDmaState *dma; in ppc4xx_dma_init() local 692 dma = g_malloc0(sizeof(*dma)); in ppc4xx_dma_init() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-imx.c | 399 i2c_imx->dma = dma; in i2c_imx_dma_request() 417 struct imx_i2c_dma *dma = i2c_imx->dma; in i2c_imx_dma_callback() local 420 dma->dma_len, dma->dma_data_dir); in i2c_imx_dma_callback() 427 struct imx_i2c_dma *dma = i2c_imx->dma; in i2c_imx_dma_xfer() local 433 dma->dma_len, dma->dma_data_dir); in i2c_imx_dma_xfer() 440 dma->dma_len, dma->dma_transfer_dir, in i2c_imx_dma_xfer() 462 dma->dma_len, dma->dma_data_dir); in i2c_imx_dma_xfer() 469 struct imx_i2c_dma *dma = i2c_imx->dma; in i2c_imx_dma_free() local 958 struct imx_i2c_dma *dma = i2c_imx->dma; in i2c_imx_dma_write() local 961 dma->chan_using = dma->chan_tx; in i2c_imx_dma_write() [all …]
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm2835-common.dtsi | 11 dma: dma-controller@7e007000 { label 47 "dma-shared-all"; 48 #dma-cells = <1>; 133 dmas = <&dma 17>; 134 dma-names = "audio-rx"; 196 dmas = <&dma 2>, <&dma 3>; 197 dma-names = "tx", "rx"; 201 dmas = <&dma 13>; 202 dma-names = "rx-tx"; 206 dmas = <&dma 6>, <&dma 7>; [all …]
|
/openbmc/linux/drivers/crypto/ |
H A D | hifn_795x.c | 903 dma->cmdu = dma->srcu = dma->dstu = dma->resu = 0; in hifn_init_dma() 904 dma->cmdi = dma->srci = dma->dsti = dma->resi = 0; in hifn_init_dma() 905 dma->cmdk = dma->srck = dma->dstk = dma->resk = 0; in hifn_init_dma() 1718 dma->cmdi, dma->srci, dma->dsti, dma->resi, in hifn_clear_rings() 1719 dma->cmdu, dma->srcu, dma->dstu, dma->resu, in hifn_clear_rings() 1720 dma->cmdk, dma->srck, dma->dstk, dma->resk); in hifn_clear_rings() 1772 dma->cmdi, dma->srci, dma->dsti, dma->resi, in hifn_clear_rings() 1773 dma->cmdu, dma->srcu, dma->dstu, dma->resu, in hifn_clear_rings() 1774 dma->cmdk, dma->srck, dma->dstk, dma->resk); in hifn_clear_rings() 1860 dma->cmdi, dma->srci, dma->dsti, dma->resi, in hifn_interrupt() [all …]
|