Home
last modified time | relevance | path

Searched refs:dma (Results 1 – 25 of 1343) sorted by relevance

12345678910>>...54

/freebsd/sys/dev/sound/macio/
H A Daoa.c71 aoa_dma_set_program(struct aoa_dma *dma) in aoa_dma_set_program() argument
76 addr = (u_int32_t)dma->buf->buf_addr; in aoa_dma_set_program()
77 KASSERT(dma->bufsz == dma->buf->bufsize, ("bad size")); in aoa_dma_set_program()
79 dma->slots = dma->bufsz / dma->blksz; in aoa_dma_set_program()
81 for (i = 0; i < dma->slots; ++i) { in aoa_dma_set_program()
82 dbdma_insert_command(dma->channel, in aoa_dma_set_program()
87 dma->blksz, /* count */ in aoa_dma_set_program()
91 dma->slots + 1 /* branch_slot */ in aoa_dma_set_program()
94 addr += dma->blksz; in aoa_dma_set_program()
98 dbdma_insert_branch(dma->channel, dma->slots, 0); in aoa_dma_set_program()
[all …]
/freebsd/sys/dev/ata/
H A Data-dma.c70 if (ch->dma.alloc == NULL) in ata_dmainit()
71 ch->dma.alloc = ata_dmaalloc; in ata_dmainit()
72 if (ch->dma.free == NULL) in ata_dmainit()
73 ch->dma.free = ata_dmafree; in ata_dmainit()
74 if (ch->dma.setprd == NULL) in ata_dmainit()
75 ch->dma.setprd = ata_dmasetprd; in ata_dmainit()
76 if (ch->dma.load == NULL) in ata_dmainit()
77 ch->dma.load = ata_dmaload; in ata_dmainit()
78 if (ch->dma.unload == NULL) in ata_dmainit()
79 ch->dma.unload = ata_dmaunload; in ata_dmainit()
[all …]
/freebsd/sys/dev/oce/
H A Doce_util.c58 oce_dma_alloc(POCE_SOFTC sc, bus_size_t size, POCE_DMA_MEM dma, int flags) in oce_dma_alloc() argument
62 memset(dma, 0, sizeof(OCE_DMA_MEM)); in oce_dma_alloc()
69 size, 1, size, 0, NULL, NULL, &dma->tag); in oce_dma_alloc()
72 rc = bus_dmamem_alloc(dma->tag, in oce_dma_alloc()
73 &dma->ptr, in oce_dma_alloc()
76 &dma->map); in oce_dma_alloc()
79 dma->paddr = 0; in oce_dma_alloc()
81 rc = bus_dmamap_load(dma->tag, in oce_dma_alloc()
82 dma->map, in oce_dma_alloc()
83 dma->ptr, in oce_dma_alloc()
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_dma.c51 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()
85 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_dma_takedown()
86 if (dma->bufs[i].seglist[j]) { in drm_dma_takedown()
[all …]
H A Ddrm_bufs.c684 struct drm_device_dma *dma = dev->dma; in drm_addbufs_agp() local
700 if (!dma) in drm_addbufs_agp()
748 entry = &dma->bufs[order]; in drm_addbufs_agp()
776 buf->idx = dma->buf_count + entry->buf_count; in drm_addbufs_agp()
781 buf->offset = (dma->byte_count + offset); in drm_addbufs_agp()
810 temp_buflist = realloc(dma->buflist, in drm_addbufs_agp()
811 (dma->buf_count + entry->buf_count) * sizeof(*dma->buflist), in drm_addbufs_agp()
820 dma->buflist = temp_buflist; in drm_addbufs_agp()
823 dma->buflist[i + dma->buf_count] = &entry->buflist[i]; in drm_addbufs_agp()
826 dma->buf_count += entry->buf_count; in drm_addbufs_agp()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/powerpc/fsl/
H A Ddma.txt9 - compatible : must include "fsl,elo-dma"
18 - compatible : must include "fsl,elo-dma-channel"
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";
52 dma-channel@100 {
53 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
[all …]
/freebsd/sys/contrib/device-tree/Bindings/usb/
H A Dux500-usb.txt11 - dmas : A list of dma channels;
12 dma-controller, event-line, fixed-channel, flags
13 - dma-names : An ordered list of channel names affiliated to the above
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 */
[all …]
/freebsd/sys/contrib/device-tree/src/arm/broadcom/
H A Dbcm-nsp-ax.dtsi12 &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/gve/
H A Dgve_utils.c87 struct gve_dma_handle *dma) in gve_dma_alloc_coherent() argument
104 &dma->tag); in gve_dma_alloc_coherent()
111 err = bus_dmamem_alloc(dma->tag, (void **) &dma->cpu_addr, in gve_dma_alloc_coherent()
113 &dma->map); in gve_dma_alloc_coherent()
121 dma->bus_addr = (bus_addr_t)-1; in gve_dma_alloc_coherent()
122 err = bus_dmamap_load(dma->tag, dma->map, dma->cpu_addr, size, in gve_dma_alloc_coherent()
123 gve_dmamap_load_callback, &dma->bus_addr, BUS_DMA_NOWAIT); in gve_dma_alloc_coherent()
124 if (err != 0 || dma->bus_addr == (bus_addr_t)-1) { in gve_dma_alloc_coherent()
132 bus_dmamem_free(dma->tag, dma->cpu_addr, dma->map); in gve_dma_alloc_coherent()
134 bus_dma_tag_destroy(dma->tag); in gve_dma_alloc_coherent()
[all …]
/freebsd/sys/dev/ocs_fc/
H A Docs_os.c297 ocs_dma_t *dma = arg; in ocs_dma_load() local
301 dma->phys = 0; in ocs_dma_load()
303 dma->phys = seg->ds_addr; in ocs_dma_load()
317 ocs_dma_free(ocs_os_handle_t os, ocs_dma_t *dma) in ocs_dma_free() argument
321 if (!dma) { in ocs_dma_free()
322 device_printf(ocs->dev, "%s: bad parameter(s) dma=%p\n", __func__, dma); in ocs_dma_free()
326 if (dma->size == 0) { in ocs_dma_free()
330 if (dma->map) { 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()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/dma/
H A Darm-pl330.txt13 - dma-coherent : Present if dma operations are coherent
14 - #dma-cells: must be <1>. used to represent the number of integer
16 - dma-channels: contains the total number of DMA channels supported by the DMAC
17 - dma-requests: contains the total number of DMA requests supported by the DMAC
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>;
35 Client drivers (device nodes requiring dma transfers from dev-to-mem or
36 mem-to-dev) should specify the DMA channel numbers and dma channel names
[all …]
H A Dfsl-imx-dma.txt4 DMA request bindings as described in dma/dma.txt .
9 - compatible : Should be "fsl,<chip>-dma". chip can be imx1, imx21 or imx27
13 - #dma-cells : Has to be 1. imx-dma does not support anything else.
16 - dma-channels : Number of DMA channels supported. Should be 16.
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>;
[all …]
H A Dowl-dma.txt3 This binding follows the generic DMA bindings defined in dma.txt.
6 - compatible: Should be "actions,s900-dma".
9 - #dma-cells: Must be <1>. Used to represent the number of integer
11 - dma-channels: Physical channels supported.
12 - dma-requests: Number of DMA request signals supported by the controller.
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>;
[all …]
H A Dti-dma-crossbar.txt4 - compatible: "ti,dra7-dma-crossbar" for DRA7xx DMA crossbar
7 - #dma-cells: Should be set to match with the DMA controller's dma-cells
8 for ti,dra7-dma-crossbar and <3> for ti,am335x-edma-crossbar.
9 - dma-requests: Number of DMA requests the crossbar can receive
10 - dma-masters: phandle pointing to the DMA controller
13 - dma-requests: Number of DMA requests the controller can handle
16 - ti,dma-safe-map: Safe routing value for unused request lines
17 - ti,reserved-dma-request-ranges: DMA request ranges which should not be used
23 When requesting channel via ti,dra7-dma-crossbar, the DMA client must request
34 sdma: dma-controller@4a056000 {
[all …]
H A Dk3dma.txt3 See dma.txt first
7 - "hisilicon,k3-dma-1.0"
8 - "hisilicon,hisi-pcm-asp-dma-1.0"
11 - #dma-cells: see dma.txt, should be 1, para number
12 - dma-channels: physical channels supported
13 - dma-requests: virtual channels supported, each virtual channel
20 dma0: dma@fcd02000 {
21 compatible = "hisilicon,k3-dma-1.0";
23 #dma-cells = <1>;
24 dma-channels = <16>;
[all …]
H A Dzxdma.txt4 - 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 …]
H A Dbrcm,bcm2835-dma.txt11 - compatible: Should be "brcm,bcm2835-dma".
17 Use "dma-shared-all" for the common interrupt line
18 that is shared by all dma channels.
19 - #dma-cells: Must be <1>, the cell in the dmas property of the
21 - brcm,dma-channel-mask: Bit mask representing the channels
27 dma: dma@7e007000 {
28 compatible = "brcm,bcm2835-dma";
41 /* dma channel 11-14 share one irq */
63 "dma-shared-all";
65 #dma-cells = <1>;
[all …]
H A Dlpc1850-dmamux.txt6 - #dma-cells: Should be set to <3>.
7 * 1st cell contain the master dma request signal
11 - dma-requests: Number of DMA requests for the mux
12 - dma-masters: phandle pointing to the DMA controller
15 - dma-requests: Number of DMA requests the controller can handle
19 dmac: dma@40002000 {
26 #dma-cells = <2>;
27 dma-channels = <8>;
28 dma-requests = <16>;
37 dmamux: dma-mux {
[all …]
H A Dfsl-mxs-dma.txt4 - compatible : Should be "fsl,<chip>-dma-apbh" or "fsl,<chip>-dma-apbx"
8 - #dma-cells : Must be <1>. The number cell specifies the channel ID.
9 - dma-channels : Number of channels supported by the DMA controller
19 dma_apbh: dma-apbh@80004000 {
20 compatible = "fsl,imx28-dma-apbh";
30 #dma-cells = <1>;
31 dma-channels = <16>;
34 dma_apbx: dma-apbx@80024000 {
35 compatible = "fsl,imx28-dma-apbx";
45 #dma-cells = <1>;
[all …]
H A Drenesas,nbpfaxi.txt17 - #dma-cells: must be 2: the first integer is a terminal number, to which this
35 You can use dma-channels and dma-requests as described in dma.txt, although they
40 dma: dma-controller@48000000 {
51 #dma-cells = <2>;
52 dma-channels = <8>;
53 dma-requests = <8>;
60 dmas and dma-names are required, as described in dma.txt.
64 #include <dt-bindings/dma/nbpfaxi.h>
67 dmas = <&dma 0 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)
68 &dma 1 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>;
[all …]
/freebsd/sys/dev/firewire/
H A Dfwdma.c70 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()
109 fwdma_free(struct firewire_comm *fc, struct fwdma_alloc *dma) in fwdma_free() argument
111 bus_dmamap_unload(dma->dma_tag, dma->dma_map); in fwdma_free()
[all …]
/freebsd/sys/dev/iwm/
H A Dif_iwm_util.c435 iwm_dma_contig_alloc(bus_dma_tag_t tag, struct iwm_dma_info *dma, in iwm_dma_contig_alloc() argument
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()
443 dma->vaddr = NULL; in iwm_dma_contig_alloc()
447 1, size, 0, NULL, NULL, &dma->tag); in iwm_dma_contig_alloc()
451 error = bus_dmamem_alloc(dma->tag, (void **)&dma->vaddr, in iwm_dma_contig_alloc()
452 BUS_DMA_NOWAIT | BUS_DMA_ZERO | BUS_DMA_COHERENT, &dma->map); in iwm_dma_contig_alloc()
456 error = bus_dmamap_load(dma->tag, dma->map, dma->vaddr, size, in iwm_dma_contig_alloc()
457 iwm_dma_map_addr, &dma->paddr, BUS_DMA_NOWAIT); in iwm_dma_contig_alloc()
[all …]
/freebsd/sys/powerpc/powermac/
H A Data_dbdma.c129 if (sc->sc_ch.dma.flags & ATA_DMA_ACTIVE) { in ata_dbdma_status()
147 sc->sc_ch.dma.flags |= ATA_DMA_ACTIVE; in ata_dbdma_start()
164 sc->sc_ch.dma.flags &= ~ATA_DMA_ACTIVE; in ata_dbdma_reset()
179 sc->sc_ch.dma.flags &= ~ATA_DMA_ACTIVE; in ata_dbdma_stop()
218 if (((uintptr_t)(request->data) & (ch->dma.alignment - 1)) || in ata_dbdma_load()
219 (request->bytecount & (ch->dma.alignment - 1))) { in ata_dbdma_load()
224 if (request->bytecount > ch->dma.max_iosize) { in ata_dbdma_load()
227 request->bytecount, ch->dma.max_iosize); in ata_dbdma_load()
231 request->dma = &ch->dma.slot[0]; in ata_dbdma_load()
233 if ((error = bus_dmamap_load(request->dma->data_tag, in ata_dbdma_load()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/serial/
H A Dmrvl,pxa-ssp.txt15 - dmas: Two dma phandles, one for rx, one for tx
16 - dma-names: Must be "rx", "tx"
27 dmas = <&dma 13
28 &dma 14>;
29 dma-names = "rx", "tx";
38 dmas = <&dma 15
39 &dma 16>;
40 dma-names = "rx", "tx";
49 dmas = <&dma 66
50 &dma 67>;
[all …]
/freebsd/contrib/dma/
H A DMakefile29 CONFDIR?= /etc/dma
32 DMASPOOL?= ${VAR}/spool/dma
41 OBJS+= dma.o dns.o local.o mail.o net.o spool.o util.o
44 all: dma dma-mbox-create
47 -rm -f .depend dma dma-mbox-create *.[do]
53 ${INSTALL} -m 2755 -o root -g mail dma ${DESTDIR}${SBIN}
54 ${INSTALL} -m 4754 -o root -g mail dma-mbox-create ${DESTDIR}${LIBEXEC}
55 ${INSTALL} -m 0644 dma.8 ${DESTDIR}${MAN}/man8/
58 cd ${DESTDIR}${SBIN} && ${LN} ${SYMLINK} dma sendmail
61 cd ${DESTDIR}${SBIN} && ${LN} ${SYMLINK} dma mailq
[all …]

12345678910>>...54