/freebsd/sys/dev/sound/macio/ |
H A D | aoa.c | 79 dma->slots = dma->bufsz / dma->blksz; in aoa_dma_set_program() 98 dbdma_insert_branch(dma->channel, dma->slots, 0); in aoa_dma_set_program() 101 dbdma_insert_stop(dma->channel, dma->slots + 1); in aoa_dma_set_program() 217 return (dma->slot * dma->blksz); in aoa_chan_getptr() 231 if (!dma) in aoa_chan_init() 238 max_slots = 2 + dma->bufsz / dma->blksz; in aoa_chan_init() 246 if (sndbuf_alloc(dma->buf, dma->tag, 0, dma->bufsz) != 0) { in aoa_chan_init() 270 dbdma_set_current_cmd(dma->channel, dma->slot); in aoa_chan_trigger() 322 if (!(dma = sc->sc_intrp) || !dma->running) in aoa_interrupt() 328 dbdma_clear_cmd_status(dma->channel, dma->slot); in aoa_interrupt() [all …]
|
/freebsd/sys/dev/ata/ |
H A D | ata-dma.c | 106 if (bus_dmamem_alloc(ch->dma.work_tag, (void **)&ch->dma.work, in ata_dmainit() 111 if (bus_dmamap_load(ch->dma.work_tag, ch->dma.work_map, ch->dma.work, in ata_dmainit() 114 bus_dmamem_free(ch->dma.work_tag, ch->dma.work, ch->dma.work_map); in ata_dmainit() 131 bus_dmamap_unload(ch->dma.work_tag, ch->dma.work_map); in ata_dmafini() 132 bus_dmamem_free(ch->dma.work_tag, ch->dma.work, ch->dma.work_map); in ata_dmafini() 189 ch->dma.alignment, ch->dma.boundary, in ata_dmaalloc() 296 request->dma = &ch->dma.slot[0]; in ata_dmaload() 319 bus_dmamap_sync(request->dma->sg_tag, request->dma->sg_map, in ata_dmaload() 321 bus_dmamap_sync(request->dma->data_tag, request->dma->data_map, in ata_dmaload() 337 bus_dmamap_sync(request->dma->sg_tag, request->dma->sg_map, in ata_dmaunload() [all …]
|
/freebsd/sys/dev/oce/ |
H A D | oce_util.c | 79 dma->paddr = 0; in oce_dma_alloc() 82 dma->map, in oce_dma_alloc() 83 dma->ptr, in oce_dma_alloc() 109 bus_dmamap_sync(dma->tag, dma->map, in oce_dma_free() 111 bus_dmamap_unload(dma->tag, dma->map); in oce_dma_free() 112 dma->paddr = 0; in oce_dma_free() 116 bus_dmamem_free(dma->tag, dma->ptr, dma->map); in oce_dma_free() 117 dma->ptr = NULL; in oce_dma_free() 121 dma->tag = NULL; in oce_dma_free() 189 bus_dmamap_sync(ring->dma.tag, ring->dma.map, in oce_create_ring_buffer() [all …]
|
/freebsd/sys/dev/drm2/ |
H A D | drm_dma.c | 51 dev->dma = malloc(sizeof(*dev->dma), DRM_MEM_DRIVER, M_NOWAIT | M_ZERO); in drm_dma_setup() 52 if (!dev->dma) in drm_dma_setup() 56 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_dma_setup() 71 struct drm_device_dma *dma = dev->dma; in drm_dma_takedown() local 74 if (!dma) in drm_dma_takedown() 79 if (dma->bufs[i].seg_count) { in drm_dma_takedown() 83 dma->bufs[i].buf_count, in drm_dma_takedown() 84 dma->bufs[i].seg_count); in drm_dma_takedown() 104 dev->dma = NULL; in drm_dma_takedown() 136 struct drm_device_dma *dma = dev->dma; in drm_core_reclaim_buffers() local [all …]
|
H A D | drm_bufs.c | 684 struct drm_device_dma *dma = dev->dma; in drm_addbufs_agp() local 700 if (!dma) in drm_addbufs_agp() 849 struct drm_device_dma *dma = dev->dma; in drm_addbufs_pci() local 869 if (!dma) in drm_addbufs_pci() 942 dma->pagelist, dma->page_count * sizeof(*dma->pagelist)); in drm_addbufs_pci() 1055 struct drm_device_dma *dma = dev->dma; in drm_addbufs_sg() local 1211 struct drm_device_dma *dma = dev->dma; in drm_addbufs_fb() local 1423 struct drm_device_dma *dma = dev->dma; in drm_infobufs() local 1502 struct drm_device_dma *dma = dev->dma; in drm_markbufs() local 1546 struct drm_device_dma *dma = dev->dma; in drm_freebufs() local [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/dma/ |
H A D | qcom,gpi.yaml | 17 - $ref: dma-controller.yaml# 23 - qcom,sdm845-gpi-dma 24 - qcom,sm6350-gpi-dma 55 "#dma-cells": 68 dma-channels: 71 dma-channel-mask: 74 dma-coherent: true 80 - "#dma-cells" 82 - dma-channels 83 - dma-channel-mask [all …]
|
H A D | fsl,mxs-dma.yaml | 4 $id: http://devicetree.org/schemas/dma/fsl,mxs-dma.yaml# 13 - $ref: dma-controller.yaml# 25 - fsl,imx23-dma-apbh 39 "#dma-cells": 42 dma-channels: 48 - "#dma-cells" 49 - dma-channels 65 #dma-cells = <1>; 66 dma-channels = <16>; 76 #dma-cells = <1>; [all …]
|
H A D | allwinner,sun50i-a64-dma.yaml | 4 $id: http://devicetree.org/schemas/dma/allwinner,sun50i-a64-dma.yaml# 14 - $ref: dma-controller.yaml# 17 "#dma-cells": 24 - allwinner,sun20i-d1-dma 51 - "#dma-cells" 57 - dma-channels 63 - allwinner,sun20i-d1-dma 84 dma: dma-controller@1c02000 { 89 dma-channels = <8>; 90 dma-requests = <27>; [all …]
|
H A D | owl-dma.yaml | 4 $id: http://devicetree.org/schemas/dma/owl-dma.yaml# 23 - actions,s500-dma 24 - actions,s700-dma 25 - actions,s900-dma 36 "#dma-cells": 39 dma-channels: 42 dma-requests: 57 - "#dma-cells" 58 - dma-channels 59 - dma-requests [all …]
|
H A D | arm-pl330.txt | 13 - dma-coherent : Present if dma operations are coherent 14 - #dma-cells: must be <1>. used to represent the number of integer 22 - reset-names: must contain at least "dma", and optional is "dma-ocp". 30 #dma-cells = <1>; 31 #dma-channels = <8>; 32 #dma-requests = <32>; 39 [property name] = <[phandle of the dma controller] [dma request id]>; 40 [property name] = <[dma channel name]> 42 where 'dma request id' is the dma request number which is connected 44 as required by the generic dma device tree binding helpers. The dma [all …]
|
H A D | owl-dma.txt | 3 This binding follows the generic DMA bindings defined in dma.txt. 6 - compatible: Should be "actions,s900-dma". 11 - dma-channels: Physical channels supported. 13 Refer to Documentation/devicetree/bindings/dma/dma.txt 19 dma: dma-controller@e0260000 { 20 compatible = "actions,s900-dma"; 26 #dma-cells = <1>; 27 dma-channels = <12>; 28 dma-requests = <46>; 44 dma-names = "tx", "rx"; [all …]
|
H A D | fsl-imx-dma.txt | 4 DMA request bindings as described in dma/dma.txt . 13 - #dma-cells : Has to be 1. imx-dma does not support anything else. 17 - #dma-channels : deprecated 18 - dma-requests : Number of DMA requests supported. 19 - #dma-requests : deprecated 23 dma: dma@10001000 { 24 compatible = "fsl,imx27-dma"; 27 #dma-cells = <1>; 28 dma-channels = <16>; 47 dmas = <&dma 7>; [all …]
|
H A D | allwinner,sun6i-a31-dma.yaml | 4 $id: http://devicetree.org/schemas/dma/allwinner,sun6i-a31-dma.yaml# 14 - $ref: dma-controller.yaml# 17 "#dma-cells": 23 - allwinner,sun6i-a31-dma 24 - allwinner,sun8i-a23-dma 25 - allwinner,sun8i-a83t-dma 26 - allwinner,sun8i-h3-dma 27 - allwinner,sun8i-v3s-dma 42 - "#dma-cells" 53 dma: dma-controller@1c02000 { [all …]
|
H A D | ti-dma-crossbar.txt | 7 - #dma-cells: Should be set to match with the DMA controller's dma-cells 34 sdma: dma-controller@4a056000 { 41 #dma-cells = <1>; 42 dma-channels = <32>; 43 dma-requests = <127>; 47 sdma_xbar: dma-router@4a002b78 { 50 #dma-cells = <1>; 51 dma-requests = <205>; 52 ti,dma-safe-map = <0>; 55 dma-masters = <&sdma>; [all …]
|
H A D | intel,ldma.yaml | 31 "#dma-cells": 38 dma-channels: 42 dma-channel-mask: 58 intel,dma-poll-cnt: 64 intel,dma-byte-en: 71 intel,dma-drb: 76 intel,dma-dburst-wr: 94 #dma-cells = <3>; 103 intel,dma-byte-en; 104 intel,dma-drb; [all …]
|
H A D | mediatek,uart-dma.yaml | 4 $id: http://devicetree.org/schemas/dma/mediatek,uart-dma.yaml# 17 - $ref: dma-controller.yaml# 24 - mediatek,mt2712-uart-dma 30 - mediatek,mt6577-uart-dma 49 "#dma-cells": 54 dma-requests: 59 mediatek,dma-33bits: 73 - dma-requests 116 dma-requests = <12>; 119 mediatek,dma-33bits; [all …]
|
H A D | k3dma.txt | 3 See dma.txt first 7 - "hisilicon,k3-dma-1.0" 11 - #dma-cells: see dma.txt, should be 1, para number 12 - dma-channels: physical channels supported 20 dma0: dma@fcd02000 { 21 compatible = "hisilicon,k3-dma-1.0"; 23 #dma-cells = <1>; 24 dma-channels = <16>; 25 dma-requests = <27>; 38 dma-names = "rx", "tx"; [all …]
|
H A D | zxdma.txt | 4 - compatible: Should be "zte,zx296702-dma" 7 - #dma-cells: see dma.txt, should be 1, para number 8 - dma-channels: physical channels supported 9 - dma-requests: virtual channels supported, each virtual channel 16 dma: dma-controller@09c00000{ 17 compatible = "zte,zx296702-dma"; 21 #dma-cells = <1>; 22 dma-channels = <24>; 23 dma-requests = <24>; 36 dmas = <&dma 4>; [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/powerpc/fsl/ |
H A D | dma.txt | 29 dma@82a8 { 32 compatible = "fsl,mpc8349-dma", "fsl,elo-dma"; 38 dma-channel@0 { 39 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 45 dma-channel@80 { 46 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 53 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 60 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 91 dma@21300 { 94 compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma"; [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/usb/ |
H A D | ux500-usb.txt | 11 - dmas : A list of dma channels; 25 dmas = <&dma 38 0 0x2>, /* Logical - DevToMem */ 26 <&dma 38 0 0x0>, /* Logical - MemToDev */ 27 <&dma 37 0 0x2>, /* Logical - DevToMem */ 28 <&dma 37 0 0x0>, /* Logical - MemToDev */ 29 <&dma 36 0 0x2>, /* Logical - DevToMem */ 30 <&dma 36 0 0x0>, /* Logical - MemToDev */ 31 <&dma 19 0 0x2>, /* Logical - DevToMem */ 32 <&dma 19 0 0x0>, /* Logical - MemToDev */ 33 <&dma 18 0 0x2>, /* Logical - DevToMem */ [all …]
|
/freebsd/sys/dev/gve/ |
H A D | gve_utils.c | 97 &dma->tag); in gve_dma_alloc_coherent() 104 err = bus_dmamem_alloc(dma->tag, (void **) &dma->cpu_addr, in gve_dma_alloc_coherent() 106 &dma->map); in gve_dma_alloc_coherent() 115 err = bus_dmamap_load(dma->tag, dma->map, dma->cpu_addr, size, in gve_dma_alloc_coherent() 125 bus_dmamem_free(dma->tag, dma->cpu_addr, dma->map); in gve_dma_alloc_coherent() 138 bus_dmamap_unload(dma->tag, dma->map); in gve_dma_free_coherent() 139 bus_dmamem_free(dma->tag, dma->cpu_addr, dma->map); in gve_dma_free_coherent() 178 err = bus_dmamap_load(dma->tag, dma->map, dma->cpu_addr, size, in gve_dmamap_create() 189 bus_dmamap_destroy(dma->tag, dma->map); in gve_dmamap_create() 202 bus_dmamap_unload(dma->tag, dma->map); in gve_dmamap_destroy() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/broadcom/ |
H A D | bcm-nsp-ax.dtsi | 12 &dma { 13 /delete-property/ dma-coherent; 17 /delete-property/ dma-coherent; 21 /delete-property/ dma-coherent; 25 /delete-property/ dma-coherent; 29 /delete-property/ dma-coherent; 33 /delete-property/ dma-coherent; 37 /delete-property/ dma-coherent; 41 /delete-property/ dma-coherent; 45 /delete-property/ dma-coherent; [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_os.c | 321 if (!dma) { in ocs_dma_free() 331 bus_dmamap_sync(dma->tag, dma->map, BUS_DMASYNC_POSTREAD | in ocs_dma_free() 333 bus_dmamap_unload(dma->tag, dma->map); in ocs_dma_free() 337 bus_dmamem_free(dma->tag, dma->virt, dma->map); in ocs_dma_free() 338 bus_dmamap_destroy(dma->tag, dma->map); in ocs_dma_free() 389 dma->alloc = dma->virt; in ocs_dma_alloc() 392 if (bus_dmamap_load(dma->tag, dma->map, dma->virt, dma->size, ocs_dma_load, in ocs_dma_alloc() 393 dma, 0)) { in ocs_dma_alloc() 424 bus_dmamap_sync(dma->tag, dma->map, flags); in ocs_dma_sync() 430 if (!dma) in ocs_dma_copy_in() [all …]
|
/freebsd/sys/dev/firewire/ |
H A D | fwdma.c | 70 struct fwdma_alloc *dma, int flag) in fwdma_malloc() argument 74 dma->v_addr = NULL; in fwdma_malloc() 88 &dma->dma_tag); in fwdma_malloc() 94 err = bus_dmamem_alloc(dma->dma_tag, &dma->v_addr, in fwdma_malloc() 95 flag, &dma->dma_map); in fwdma_malloc() 102 bus_dmamap_load(dma->dma_tag, dma->dma_map, dma->v_addr, in fwdma_malloc() 103 size, fwdma_map_cb, &dma->bus_addr, /*flags*/0); in fwdma_malloc() 105 return (dma->v_addr); in fwdma_malloc() 111 bus_dmamap_unload(dma->dma_tag, dma->dma_map); in fwdma_free() 112 bus_dmamem_free(dma->dma_tag, dma->v_addr, dma->dma_map); in fwdma_free() [all …]
|
/freebsd/sys/dev/iwm/ |
H A D | if_iwm_util.c | 440 dma->tag = NULL; in iwm_dma_contig_alloc() 441 dma->map = NULL; in iwm_dma_contig_alloc() 442 dma->size = size; in iwm_dma_contig_alloc() 451 error = bus_dmamem_alloc(dma->tag, (void **)&dma->vaddr, in iwm_dma_contig_alloc() 456 error = bus_dmamap_load(dma->tag, dma->map, dma->vaddr, size, in iwm_dma_contig_alloc() 459 bus_dmamem_free(dma->tag, dma->vaddr, dma->map); in iwm_dma_contig_alloc() 464 bus_dmamap_sync(dma->tag, dma->map, BUS_DMASYNC_PREWRITE); in iwm_dma_contig_alloc() 478 bus_dmamap_sync(dma->tag, dma->map, in iwm_dma_contig_free() 480 bus_dmamap_unload(dma->tag, dma->map); in iwm_dma_contig_free() 481 bus_dmamem_free(dma->tag, dma->vaddr, dma->map); in iwm_dma_contig_free() [all …]
|