Home
last modified time | relevance | path

Searched refs:dma (Results 1 – 200 of 1453) sorted by relevance

12345678

/linux-4.4.14/drivers/tty/serial/8250/
D8250_dma.c21 struct uart_8250_dma *dma = p->dma; in __dma_tx_complete() local
26 dma_sync_single_for_cpu(dma->txchan->device->dev, dma->tx_addr, in __dma_tx_complete()
31 dma->tx_running = 0; in __dma_tx_complete()
33 xmit->tail += dma->tx_size; in __dma_tx_complete()
35 p->port.icount.tx += dma->tx_size; in __dma_tx_complete()
52 struct uart_8250_dma *dma = p->dma; in __dma_rx_complete() local
57 dma->rx_running = 0; in __dma_rx_complete()
58 dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state); in __dma_rx_complete()
60 count = dma->rx_size - state.residue; in __dma_rx_complete()
62 tty_insert_flip_string(tty_port, dma->rx_buf, count); in __dma_rx_complete()
[all …]
D8250_omap.c260 struct uart_8250_dma *dma = up->dma; in omap8250_restore_regs() local
262 if (dma && dma->tx_running) { in omap8250_restore_regs()
434 if (up->dma) in omap_8250_set_termios()
575 if (up->dma) { in omap8250_irq()
611 if (up->dma) { in omap_8250_startup()
616 up->dma = NULL; in omap_8250_startup()
638 if (up->dma) in omap_8250_startup()
639 up->dma->rx_dma(up, 0); in omap_8250_startup()
657 if (up->dma) in omap_8250_shutdown()
658 up->dma->rx_dma(up, UART_IIR_RX_TIMEOUT); in omap_8250_shutdown()
[all …]
/linux-4.4.14/drivers/media/platform/xilinx/
Dxilinx-dma.c62 static int xvip_dma_verify_format(struct xvip_dma *dma) in xvip_dma_verify_format() argument
68 subdev = xvip_dma_remote_subdev(&dma->pad, &fmt.pad); in xvip_dma_verify_format()
77 if (dma->fmtinfo->code != fmt.format.code || in xvip_dma_verify_format()
78 dma->format.height != fmt.format.height || in xvip_dma_verify_format()
79 dma->format.width != fmt.format.width || in xvip_dma_verify_format()
80 dma->format.colorspace != fmt.format.colorspace) in xvip_dma_verify_format()
103 struct xvip_dma *dma = pipe->output; in xvip_pipeline_start_stop() local
109 entity = &dma->video.entity; in xvip_pipeline_start_stop()
194 struct xvip_dma *dma; in xvip_pipeline_validate() local
199 dma = to_xvip_dma(media_entity_to_video_device(entity)); in xvip_pipeline_validate()
[all …]
Dxilinx-vipp.c178 struct xvip_dma *dma; in xvip_graph_find_dma() local
180 list_for_each_entry(dma, &xdev->dmas, list) { in xvip_graph_find_dma()
181 if (dma->port == port) in xvip_graph_find_dma()
182 return dma; in xvip_graph_find_dma()
200 struct xvip_dma *dma; in xvip_graph_build_dma() local
224 dma = xvip_graph_find_dma(xdev, link.local_port); in xvip_graph_build_dma()
225 if (dma == NULL) { in xvip_graph_build_dma()
234 dma->video.name); in xvip_graph_build_dma()
254 if (dma->pad.flags & MEDIA_PAD_FL_SOURCE) { in xvip_graph_build_dma()
255 source = &dma->video.entity; in xvip_graph_build_dma()
[all …]
/linux-4.4.14/arch/arm/kernel/
Ddma.c39 int __init isa_dma_add(unsigned int chan, dma_t *dma) in isa_dma_add() argument
41 if (!dma->d_ops) in isa_dma_add()
44 sg_init_table(&dma->buf, 1); in isa_dma_add()
48 dma_chan[chan] = dma; in isa_dma_add()
59 dma_t *dma = dma_channel(chan); in request_dma() local
62 if (!dma) in request_dma()
65 if (xchg(&dma->lock, 1) != 0) in request_dma()
68 dma->device_id = device_id; in request_dma()
69 dma->active = 0; in request_dma()
70 dma->invalid = 1; in request_dma()
[all …]
Ddma-isa.c47 static int isa_get_dma_residue(unsigned int chan, dma_t *dma) in isa_get_dma_residue() argument
58 static void isa_enable_dma(unsigned int chan, dma_t *dma) in isa_enable_dma() argument
60 if (dma->invalid) { in isa_enable_dma()
65 mode = (chan & 3) | dma->dma_mode; in isa_enable_dma()
66 switch (dma->dma_mode & DMA_MODE_MASK) { in isa_enable_dma()
84 if (!dma->sg) { in isa_enable_dma()
89 dma->sg = &dma->buf; in isa_enable_dma()
90 dma->sgcount = 1; in isa_enable_dma()
91 dma->buf.length = dma->count; in isa_enable_dma()
92 dma->buf.dma_address = dma_map_single(NULL, in isa_enable_dma()
[all …]
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf-dma-sg.c144 return &mem->dma; in videobuf_to_dma()
148 static void videobuf_dma_init(struct videobuf_dmabuf *dma) in videobuf_dma_init() argument
150 memset(dma, 0, sizeof(*dma)); in videobuf_dma_init()
151 dma->magic = MAGIC_DMABUF; in videobuf_dma_init()
154 static int videobuf_dma_init_user_locked(struct videobuf_dmabuf *dma, in videobuf_dma_init_user_locked() argument
160 dma->direction = direction; in videobuf_dma_init_user_locked()
161 switch (dma->direction) { in videobuf_dma_init_user_locked()
174 dma->offset = data & ~PAGE_MASK; in videobuf_dma_init_user_locked()
175 dma->size = size; in videobuf_dma_init_user_locked()
176 dma->nr_pages = last-first+1; in videobuf_dma_init_user_locked()
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_dma.c60 dev->dma = kzalloc(sizeof(*dev->dma), GFP_KERNEL); in drm_legacy_dma_setup()
61 if (!dev->dma) in drm_legacy_dma_setup()
65 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_legacy_dma_setup()
80 struct drm_device_dma *dma = dev->dma; in drm_legacy_dma_takedown() local
88 if (!dma) in drm_legacy_dma_takedown()
93 if (dma->bufs[i].seg_count) { in drm_legacy_dma_takedown()
97 dma->bufs[i].buf_count, in drm_legacy_dma_takedown()
98 dma->bufs[i].seg_count); in drm_legacy_dma_takedown()
99 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_legacy_dma_takedown()
100 if (dma->bufs[i].seglist[j]) { in drm_legacy_dma_takedown()
[all …]
Ddrm_bufs.c600 struct drm_device_dma *dma = dev->dma; in drm_legacy_addbufs_agp() local
616 if (!dma) in drm_legacy_addbufs_agp()
664 entry = &dma->bufs[order]; in drm_legacy_addbufs_agp()
691 buf->idx = dma->buf_count + entry->buf_count; in drm_legacy_addbufs_agp()
696 buf->offset = (dma->byte_count + offset); in drm_legacy_addbufs_agp()
724 temp_buflist = krealloc(dma->buflist, in drm_legacy_addbufs_agp()
725 (dma->buf_count + entry->buf_count) * in drm_legacy_addbufs_agp()
726 sizeof(*dma->buflist), GFP_KERNEL); in drm_legacy_addbufs_agp()
734 dma->buflist = temp_buflist; in drm_legacy_addbufs_agp()
737 dma->buflist[i + dma->buf_count] = &entry->buflist[i]; in drm_legacy_addbufs_agp()
[all …]
Ddrm_info.c121 struct drm_device_dma *dma; in drm_bufs_info() local
125 dma = dev->dma; in drm_bufs_info()
126 if (!dma) { in drm_bufs_info()
133 if (dma->bufs[i].buf_count) { in drm_bufs_info()
134 seg_pages = dma->bufs[i].seg_count * (1 << dma->bufs[i].page_order); in drm_bufs_info()
137 dma->bufs[i].buf_size, in drm_bufs_info()
138 dma->bufs[i].buf_count, in drm_bufs_info()
140 dma->bufs[i].seg_count, in drm_bufs_info()
146 for (i = 0; i < dma->buf_count; i++) { in drm_bufs_info()
149 seq_printf(m, " %d", dma->buflist[i]->list); in drm_bufs_info()
/linux-4.4.14/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_core.c120 static void netup_unidvb_queue_cleanup(struct netup_dma *dma);
145 struct netup_dma *dma = priv; in netup_unidvb_tuner_ctrl() local
150 ndev = dma->ndev; in netup_unidvb_tuner_ctrl()
152 __func__, dma->num, is_dvb_tc); in netup_unidvb_tuner_ctrl()
154 mask = (dma->num == 0) ? GPIO_RFA_CTL : GPIO_RFB_CTL; in netup_unidvb_tuner_ctrl()
184 static void netup_unidvb_dma_enable(struct netup_dma *dma, int enable) in netup_unidvb_dma_enable() argument
186 u32 irq_mask = (dma->num == 0 ? in netup_unidvb_dma_enable()
189 dev_dbg(&dma->ndev->pci_dev->dev, in netup_unidvb_dma_enable()
190 "%s(): DMA%d enable %d\n", __func__, dma->num, enable); in netup_unidvb_dma_enable()
192 writel(BIT_DMA_RUN, &dma->regs->ctrlstat_set); in netup_unidvb_dma_enable()
[all …]
/linux-4.4.14/drivers/soc/ti/
Dknav_dma.c117 struct knav_dma_device *dma; member
257 static void dma_hw_enable_all(struct knav_dma_device *dma) in dma_hw_enable_all() argument
261 for (i = 0; i < dma->max_tx_chan; i++) { in dma_hw_enable_all()
262 writel_relaxed(0, &dma->reg_tx_chan[i].mode); in dma_hw_enable_all()
263 writel_relaxed(DMA_ENABLE, &dma->reg_tx_chan[i].control); in dma_hw_enable_all()
268 static void knav_dma_hw_init(struct knav_dma_device *dma) in knav_dma_hw_init() argument
273 spin_lock(&dma->lock); in knav_dma_hw_init()
274 v = dma->loopback ? DMA_LOOPBACK : 0; in knav_dma_hw_init()
275 writel_relaxed(v, &dma->reg_global->emulation_control); in knav_dma_hw_init()
277 v = readl_relaxed(&dma->reg_global->perf_control); in knav_dma_hw_init()
[all …]
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-udma.c37 int ivtv_udma_fill_sg_list (struct ivtv_user_dma *dma, struct ivtv_dma_page_info *dma_page, int map… in ivtv_udma_fill_sg_list() argument
52 if (PageHighMem(dma->map[map_offset])) { in ivtv_udma_fill_sg_list()
55 if (dma->bouncemap[map_offset] == NULL) in ivtv_udma_fill_sg_list()
56 dma->bouncemap[map_offset] = alloc_page(GFP_KERNEL); in ivtv_udma_fill_sg_list()
57 if (dma->bouncemap[map_offset] == NULL) in ivtv_udma_fill_sg_list()
60 src = kmap_atomic(dma->map[map_offset]) + offset; in ivtv_udma_fill_sg_list()
61 memcpy(page_address(dma->bouncemap[map_offset]) + offset, src, len); in ivtv_udma_fill_sg_list()
64 sg_set_page(&dma->SGlist[map_offset], dma->bouncemap[map_offset], len, offset); in ivtv_udma_fill_sg_list()
67 sg_set_page(&dma->SGlist[map_offset], dma->map[map_offset], len, offset); in ivtv_udma_fill_sg_list()
75 void ivtv_udma_fill_sg_array (struct ivtv_user_dma *dma, u32 buffer_offset, u32 buffer_offset_2, u3… in ivtv_udma_fill_sg_array() argument
[all …]
Divtv-queue.h32 return s->dma == PCI_DMA_NONE || (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI); in ivtv_might_use_pio()
39 return s->dma == PCI_DMA_NONE || in ivtv_use_pio()
45 return s->dma != PCI_DMA_NONE; in ivtv_might_use_dma()
57 s->buf_size + 256, s->dma); in ivtv_buf_sync_for_cpu()
64 s->buf_size + 256, s->dma); in ivtv_buf_sync_for_device()
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_dma.c35 mem = &mem[chan->dma.cur]; in OUT_RINGp()
40 chan->dma.cur += nr_dwords; in OUT_RINGp()
75 val > chan->push.vma.offset + (chan->dma.max << 2)) in READ_GET()
88 int ip = (chan->dma.ib_put * 2) + chan->dma.ib_base; in nv50_dma_push()
95 BUG_ON(chan->dma.ib_free < 1); in nv50_dma_push()
100 chan->dma.ib_put = (chan->dma.ib_put + 1) & chan->dma.ib_max; in nv50_dma_push()
106 nvif_wr32(&chan->user, 0x8c, chan->dma.ib_put); in nv50_dma_push()
107 chan->dma.ib_free--; in nv50_dma_push()
115 while (chan->dma.ib_free < count) { in nv50_dma_push_wait()
128 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait()
[all …]
Dnouveau_dma.h97 chan->dma.free -= size; in RING_SPACE()
104 nouveau_bo_wr32(chan->push.buffer, chan->dma.cur++, data); in OUT_RING()
149 if (chan->dma.cur == chan->dma.put) in FIRE_RING()
153 if (chan->dma.ib_max) { in FIRE_RING()
154 nv50_dma_push(chan, chan->push.buffer, chan->dma.put << 2, in FIRE_RING()
155 (chan->dma.cur - chan->dma.put) << 2); in FIRE_RING()
157 WRITE_PUT(chan->dma.cur); in FIRE_RING()
160 chan->dma.put = chan->dma.cur; in FIRE_RING()
166 chan->dma.cur = chan->dma.put; in WIND_RING()
Dnouveau_chan.c353 chan->dma.max = (0x10000 / 4) - 2; in nouveau_channel_init()
359 chan->dma.ib_base = 0x10000 / 4; in nouveau_channel_init()
360 chan->dma.ib_max = (0x02000 / 8) - 1; in nouveau_channel_init()
361 chan->dma.ib_put = 0; in nouveau_channel_init()
362 chan->dma.ib_free = chan->dma.ib_max - chan->dma.ib_put; in nouveau_channel_init()
363 chan->dma.max = chan->dma.ib_base; in nouveau_channel_init()
367 chan->dma.put = 0; in nouveau_channel_init()
368 chan->dma.cur = chan->dma.put; in nouveau_channel_init()
369 chan->dma.free = chan->dma.max - chan->dma.cur; in nouveau_channel_init()
/linux-4.4.14/arch/arm/mach-rpc/
Ddma.c29 struct dma_struct dma; member
60 if (idma->dma.sg) { in iomd_get_next_sg()
78 if (idma->dma.sgcount > 1) { in iomd_get_next_sg()
79 idma->dma.sg = sg_next(idma->dma.sg); in iomd_get_next_sg()
80 idma->dma_addr = idma->dma.sg->dma_address; in iomd_get_next_sg()
81 idma->dma_len = idma->dma.sg->length; in iomd_get_next_sg()
82 idma->dma.sgcount--; in iomd_get_next_sg()
84 idma->dma.sg = NULL; in iomd_get_next_sg()
139 static int iomd_request_dma(unsigned int chan, dma_t *dma) in iomd_request_dma() argument
141 struct iomd_dma *idma = container_of(dma, struct iomd_dma, dma); in iomd_request_dma()
[all …]
/linux-4.4.14/drivers/crypto/qce/
Ddma.c19 int qce_dma_request(struct device *dev, struct qce_dma_data *dma) in qce_dma_request() argument
23 dma->txchan = dma_request_slave_channel_reason(dev, "tx"); in qce_dma_request()
24 if (IS_ERR(dma->txchan)) in qce_dma_request()
25 return PTR_ERR(dma->txchan); in qce_dma_request()
27 dma->rxchan = dma_request_slave_channel_reason(dev, "rx"); in qce_dma_request()
28 if (IS_ERR(dma->rxchan)) { in qce_dma_request()
29 ret = PTR_ERR(dma->rxchan); in qce_dma_request()
33 dma->result_buf = kmalloc(QCE_RESULT_BUF_SZ + QCE_IGNORE_BUF_SZ, in qce_dma_request()
35 if (!dma->result_buf) { in qce_dma_request()
40 dma->ignore_buf = dma->result_buf + QCE_RESULT_BUF_SZ; in qce_dma_request()
[all …]
Ddma.h45 int qce_dma_request(struct device *dev, struct qce_dma_data *dma);
46 void qce_dma_release(struct qce_dma_data *dma);
47 int qce_dma_prep_sgs(struct qce_dma_data *dma, struct scatterlist *sg_in,
50 void qce_dma_issue_pending(struct qce_dma_data *dma);
51 int qce_dma_terminate_all(struct qce_dma_data *dma);
/linux-4.4.14/drivers/net/ethernet/i825xx/
Dlib82596.c315 struct i596_dma *dma; member
369 static inline int wait_istat(struct net_device *dev, struct i596_dma *dma, int delcnt, char *str) in wait_istat() argument
371 DMA_INV(dev, &(dma->iscp), sizeof(struct i596_iscp)); in wait_istat()
372 while (--delcnt && dma->iscp.stat) { in wait_istat()
374 DMA_INV(dev, &(dma->iscp), sizeof(struct i596_iscp)); in wait_istat()
378 dev->name, str, SWAP16(dma->iscp.stat)); in wait_istat()
385 static inline int wait_cmd(struct net_device *dev, struct i596_dma *dma, int delcnt, char *str) in wait_cmd() argument
387 DMA_INV(dev, &(dma->scb), sizeof(struct i596_scb)); in wait_cmd()
388 while (--delcnt && dma->scb.command) { in wait_cmd()
390 DMA_INV(dev, &(dma->scb), sizeof(struct i596_scb)); in wait_cmd()
[all …]
/linux-4.4.14/drivers/scsi/arm/
Dcumana_1.c34 void __iomem *dma
51 void __iomem *dma = priv(host)->dma + 0x2000; in NCR5380_pwrite() local
66 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite()
67 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite()
68 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite()
69 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite()
70 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite()
71 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite()
72 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite()
73 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite()
[all …]
Dpowertec.c136 int dmach = info->info.scsi.dma; in powertecscsi_dma_setup()
176 if (info->info.scsi.dma != NO_DMA) in powertecscsi_dma_stop()
177 disable_dma(info->info.scsi.dma); in powertecscsi_dma_stop()
336 info->info.scsi.dma = ec->dma; in powertecscsi_probe()
345 info->info.dma.setup = powertecscsi_dma_setup; in powertecscsi_probe()
346 info->info.dma.pseudo = NULL; in powertecscsi_probe()
347 info->info.dma.stop = powertecscsi_dma_stop; in powertecscsi_probe()
368 if (info->info.scsi.dma != NO_DMA) { in powertecscsi_probe()
369 if (request_dma(info->info.scsi.dma, "powertec")) { in powertecscsi_probe()
371 host->host_no, info->info.scsi.dma); in powertecscsi_probe()
[all …]
Dcumana_2.c162 int dmach = info->info.scsi.dma; in cumanascsi_2_dma_setup()
286 if (info->info.scsi.dma != NO_DMA) { in cumanascsi_2_dma_stop()
288 disable_dma(info->info.scsi.dma); in cumanascsi_2_dma_stop()
410 info->info.scsi.dma = ec->dma; in cumanascsi2_probe()
419 info->info.dma.setup = cumanascsi_2_dma_setup; in cumanascsi2_probe()
420 info->info.dma.pseudo = cumanascsi_2_dma_pseudo; in cumanascsi2_probe()
421 info->info.dma.stop = cumanascsi_2_dma_stop; in cumanascsi2_probe()
440 if (info->info.scsi.dma != NO_DMA) { in cumanascsi2_probe()
441 if (request_dma(info->info.scsi.dma, "cumanascsi2")) { in cumanascsi2_probe()
443 host->host_no, info->info.scsi.dma); in cumanascsi2_probe()
[all …]
Deesox.c163 int dmach = info->info.scsi.dma; in eesoxscsi_dma_setup()
373 if (info->info.scsi.dma != NO_DMA) in eesoxscsi_dma_stop()
374 disable_dma(info->info.scsi.dma); in eesoxscsi_dma_stop()
529 info->info.scsi.dma = ec->dma; in eesoxscsi_probe()
538 info->info.dma.setup = eesoxscsi_dma_setup; in eesoxscsi_probe()
539 info->info.dma.pseudo = eesoxscsi_dma_pseudo; in eesoxscsi_probe()
540 info->info.dma.stop = eesoxscsi_dma_stop; in eesoxscsi_probe()
560 if (info->info.scsi.dma != NO_DMA) { in eesoxscsi_probe()
561 if (request_dma(info->info.scsi.dma, "eesox")) { in eesoxscsi_probe()
563 host->host_no, info->info.scsi.dma); in eesoxscsi_probe()
[all …]
/linux-4.4.14/sound/core/
Disadma.c42 void snd_dma_program(unsigned long dma, in snd_dma_program() argument
49 disable_dma(dma); in snd_dma_program()
50 clear_dma_ff(dma); in snd_dma_program()
51 set_dma_mode(dma, mode); in snd_dma_program()
52 set_dma_addr(dma, addr); in snd_dma_program()
53 set_dma_count(dma, size); in snd_dma_program()
55 enable_dma(dma); in snd_dma_program()
67 void snd_dma_disable(unsigned long dma) in snd_dma_disable() argument
72 clear_dma_ff(dma); in snd_dma_disable()
73 disable_dma(dma); in snd_dma_disable()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/
Ddma.txt9 - compatible : must include "fsl,elo-dma"
19 - compatible : must include "fsl,elo-dma-channel"
31 dma@82a8 {
34 compatible = "fsl,mpc8349-dma", "fsl,elo-dma";
40 dma-channel@0 {
41 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
47 dma-channel@80 {
48 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
54 dma-channel@100 {
55 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
[all …]
Dmpc512x_lpbfifo.txt9 dma/dma.txt and dma/mpc512x-dma.txt;
10 - dma-names: should be "rx-tx";
19 dma-names = "rx-tx";
/linux-4.4.14/arch/frv/kernel/
Ddma.c177 int dma, ret; in frv_dma_open() local
184 for (dma = FRV_DMA_NCHANS - 1; dma >= 0; dma--) { in frv_dma_open()
185 channel = &frv_dma_channels[dma]; in frv_dma_open()
187 if (!test_bit(dma, &dmamask)) in frv_dma_open()
193 if (!frv_dma_channels[dma].flags) in frv_dma_open()
205 channel = &frv_dma_channels[dma]; in frv_dma_open()
227 ret = dma; in frv_dma_open()
239 void frv_dma_close(int dma) in frv_dma_close() argument
241 struct frv_dma_channel *channel = &frv_dma_channels[dma]; in frv_dma_close()
247 frv_dma_stop(dma); in frv_dma_close()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/usb/
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 …]
/linux-4.4.14/drivers/staging/comedi/drivers/
Dcomedi_isadma.c109 unsigned int comedi_isadma_poll(struct comedi_isadma *dma) in comedi_isadma_poll() argument
111 struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; in comedi_isadma_poll()
168 struct comedi_isadma *dma = NULL; in comedi_isadma_alloc() local
176 dma = kzalloc(sizeof(*dma), GFP_KERNEL); in comedi_isadma_alloc()
177 if (!dma) in comedi_isadma_alloc()
183 dma->desc = desc; in comedi_isadma_alloc()
184 dma->n_desc = n_desc; in comedi_isadma_alloc()
194 dma->chan = dma_chans[0]; in comedi_isadma_alloc()
199 dma->chan2 = dma_chans[1]; in comedi_isadma_alloc()
202 desc = &dma->desc[i]; in comedi_isadma_alloc()
[all …]
Dpcl816.c105 struct comedi_isadma *dma; member
116 struct comedi_isadma *dma = devpriv->dma; in pcl816_ai_setup_dma() local
117 struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; in pcl816_ai_setup_dma()
121 comedi_isadma_disable(dma->chan); in pcl816_ai_setup_dma()
245 struct comedi_isadma *dma = devpriv->dma; in pcl816_interrupt() local
246 struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; in pcl816_interrupt()
267 dma->cur_dma = 1 - dma->cur_dma; in pcl816_interrupt()
407 struct comedi_isadma *dma = devpriv->dma; in pcl816_ai_cmd() local
426 dma->cur_dma = 0; in pcl816_ai_cmd()
443 outb((dma->chan << 4) | dev->irq, in pcl816_ai_cmd()
[all …]
Ddt282x.c302 struct comedi_isadma *dma; member
316 struct comedi_isadma *dma = devpriv->dma; in dt282x_prep_ai_dma() local
317 struct comedi_isadma_desc *desc = &dma->desc[dma_index]; in dt282x_prep_ai_dma()
339 struct comedi_isadma *dma = devpriv->dma; in dt282x_prep_ao_dma() local
340 struct comedi_isadma_desc *desc = &dma->desc[dma_index]; in dt282x_prep_ao_dma()
353 struct comedi_isadma *dma = devpriv->dma; in dt282x_disable_dma() local
358 desc = &dma->desc[i]; in dt282x_disable_dma()
422 struct comedi_isadma *dma = devpriv->dma; in dt282x_ao_setup_dma() local
423 struct comedi_isadma_desc *desc = &dma->desc[cur_dma]; in dt282x_ao_setup_dma()
440 struct comedi_isadma *dma = devpriv->dma; in dt282x_ao_dma_interrupt() local
[all …]
/linux-4.4.14/sound/soc/sh/rcar/
Ddma.c32 void (*start)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
33 void (*stop)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
34 int (*init)(struct rsnd_dai_stream *io, struct rsnd_dma *dma, int id,
36 void (*quit)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
39 #define rsnd_priv_to_dmac(p) ((struct rsnd_dma_ctrl *)(p)->dma)
80 static void rsnd_dmaen_stop(struct rsnd_dai_stream *io, struct rsnd_dma *dma) in rsnd_dmaen_stop() argument
82 struct rsnd_dmaen *dmaen = rsnd_dma_to_dmaen(dma); in rsnd_dmaen_stop()
87 static void rsnd_dmaen_start(struct rsnd_dai_stream *io, struct rsnd_dma *dma) in rsnd_dmaen_start() argument
89 struct rsnd_dmaen *dmaen = rsnd_dma_to_dmaen(dma); in rsnd_dmaen_start()
90 struct rsnd_mod *mod = rsnd_dma_to_mod(dma); in rsnd_dmaen_start()
[all …]
/linux-4.4.14/drivers/block/rsxx/
Ddma.c88 struct rsxx_dma *dma; member
128 static unsigned int get_dma_size(struct rsxx_dma *dma) in get_dma_size() argument
130 if (dma->sub_page.cnt) in get_dma_size()
131 return dma->sub_page.cnt << 9; in get_dma_size()
140 struct rsxx_dma *dma) in set_tracker_dma() argument
142 trackers->list[tag].dma = dma; in set_tracker_dma()
148 return trackers->list[tag].dma; in get_tracker_dma()
171 trackers->list[tag].dma = NULL; in push_tracker()
224 static void rsxx_free_dma(struct rsxx_dma_ctrl *ctrl, struct rsxx_dma *dma) in rsxx_free_dma() argument
226 if (dma->cmd != HW_CMD_BLK_DISCARD) { in rsxx_free_dma()
[all …]
/linux-4.4.14/sound/pci/cs5535audio/
Dcs5535audio_pcm.c119 struct cs5535audio_dma *dma, in cs5535audio_build_dma_packets() argument
131 if (dma->desc_buf.area == NULL) { in cs5535audio_build_dma_packets()
135 &dma->desc_buf) < 0) in cs5535audio_build_dma_packets()
137 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets()
140 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets()
146 desc_addr = (u32) dma->desc_buf.addr; in cs5535audio_build_dma_packets()
149 &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; in cs5535audio_build_dma_packets()
157 lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; in cs5535audio_build_dma_packets()
158 lastdesc->addr = cpu_to_le32((u32) dma->desc_buf.addr); in cs5535audio_build_dma_packets()
164 dma->substream = substream; in cs5535audio_build_dma_packets()
[all …]
Dcs5535audio_pm.c68 struct cs5535audio_dma *dma = &cs5535au->dmas[i]; in snd_cs5535audio_suspend() local
69 if (dma && dma->substream) in snd_cs5535audio_suspend()
70 dma->saved_prd = dma->ops->read_prd(cs5535au); in snd_cs5535audio_suspend()
101 struct cs5535audio_dma *dma = &cs5535au->dmas[i]; in snd_cs5535audio_resume() local
102 if (dma && dma->substream) { in snd_cs5535audio_resume()
103 dma->substream->ops->prepare(dma->substream); in snd_cs5535audio_resume()
104 dma->ops->setup_prd(cs5535au, dma->saved_prd); in snd_cs5535audio_resume()
/linux-4.4.14/Documentation/devicetree/bindings/dma/
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
25 #dma-cells = <1>;
26 #dma-channels = <8>;
27 #dma-requests = <32>;
30 Client drivers (device nodes requiring dma transfers from dev-to-mem or
31 mem-to-dev) should specify the DMA channel numbers and dma channel names
34 [property name] = <[phandle of the dma controller] [dma request id]>;
[all …]
Dti-dma-crossbar.txt4 - compatible: "ti,dra7-dma-crossbar" for DRA7xx DMA crossbar
7 - #dma-cells: Should be set to 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
19 When requesting channel via ti,dra7-dma-crossbar, the DMA clinet must request
30 sdma: dma-controller@4a056000 {
37 #dma-cells = <1>;
[all …]
Dnbpfaxi.txt17 - #dma-cells: must be 2: the first integer is a terminal number, to which this
27 You can use dma-channels and dma-requests as described in dma.txt, although they
32 dma: dma-controller@48000000 {
43 #dma-cells = <2>;
44 dma-channels = <8>;
45 dma-requests = <8>;
52 dmas and dma-names are required, as described in dma.txt.
56 #include <dt-bindings/dma/nbpfaxi.h>
59 dmas = <&dma 0 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)
60 &dma 1 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>;
[all …]
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@0x09c00000{
17 compatible = "zte,zx296702-dma";
21 #dma-cells = <1>;
22 dma-channels = <24>;
23 dma-requests = <24>;
36 dmas = <&dma 4>;
[all …]
Ddma.txt11 - #dma-cells: Must be at least 1. Used to provide DMA controller
16 - dma-channels: Number of DMA channels supported by the controller.
17 - dma-requests: Number of DMA request signals supported by the
22 dma: dma@48000000 {
29 #dma-cells = <1>;
30 dma-channels = <32>;
31 dma-requests = <127>;
41 - dma-masters: phandle of the DMA controller or list of phandles for
43 - #dma-cells: Must be at least 1. Used to provide DMA router specific
48 - dma-requests: Number of incoming request lines the router can handle.
[all …]
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-requests : Number of DMA requests supported.
21 dma: dma@10001000 {
22 compatible = "fsl,imx27-dma";
25 #dma-cells = <1>;
26 #dma-channels = <16>;
38 - dma-names: List of string identifiers for the DMA requests. For the correct
[all …]
Dk3dma.txt3 See dma.txt first
6 - compatible: Should be "hisilicon,k3-dma-1.0"
9 - #dma-cells: see dma.txt, should be 1, para number
10 - dma-channels: physical channels supported
11 - dma-requests: virtual channels supported, each virtual channel
18 dma0: dma@fcd02000 {
19 compatible = "hisilicon,k3-dma-1.0";
21 #dma-cells = <1>;
22 dma-channels = <16>;
23 dma-requests = <27>;
[all …]
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 …]
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 …]
Dmoxa,moxart-dma.txt3 See dma.txt first
7 - compatible : Must be "moxa,moxart-dma"
11 - #dma-cells : Should be 1, a single cell holding a line request number
15 dma: dma@90500000 {
16 compatible = "moxa,moxart-dma";
19 #dma-cells = <1>;
26 described in the dma.txt file, using a two-cell specifier for each channel:
34 Use specific request line passing from dma
42 dmas = <&dma 5>,
43 <&dma 5>;
[all …]
Dsun6i-dma.txt3 This driver follows the generic DMA bindings defined in dma.txt.
8 "allwinner,sun6i-a31-dma"
9 "allwinner,sun8i-a23-dma"
10 "allwinner,sun8i-h3-dma"
16 - #dma-cells : Should be 1, a single cell holding a line request number
19 dma: dma-controller@01c02000 {
20 compatible = "allwinner,sun6i-a31-dma";
25 #dma-cells = <1>;
31 described in the dma.txt file, using a two-cell specifier for each
45 dmas = <&dma 25>, <&dma 25>;
[all …]
Dbrcm,bcm2835-dma.txt11 - compatible: Should be "brcm,bcm2835-dma".
15 - #dma-cells: Must be <1>, the cell in the dmas property of the
17 - brcm,dma-channel-mask: Bit mask representing the channels
23 dma: dma@7e007000 {
24 compatible = "brcm,bcm2835-dma";
40 #dma-cells = <1>;
41 brcm,dma-channel-mask = <0x7f35>;
45 described in the dma.txt file, using a two-cell specifier for each channel.
54 dmas = <&dma 2>,
55 <&dma 3>;
[all …]
Dsirfsoc-dma.txt3 See dma.txt first
10 - #dma-cells: must be <1>. used to represent the number of integer
17 dmac0: dma-controller@b00b0000 {
22 #dma-cells = <1>;
27 Fill the specific dma request line in dmas. In the below example, spi0 read
28 channel request line is 9 of the 2nd dma controller, while write channel uses
29 4 of the 2nd dma controller; spi1 read channel request line is 12 of the 1st
30 dma controller, while write channel uses 13 of the 1st dma controller:
36 dma-names = "rx", "tx";
43 dma-names = "rx", "tx";
Dsun4i-dma.txt3 This driver follows the generic DMA bindings defined in dma.txt.
7 - compatible: Must be "allwinner,sun4i-a10-dma"
11 - #dma-cells : Should be 2, first cell denoting normal or dedicated dma,
15 dma: dma-controller@01c02000 {
16 compatible = "allwinner,sun4i-a10-dma";
20 #dma-cells = <2>;
26 format described in the dma.txt file, using a three-cell specifier for
41 dmas = <&dma 1 29>, <&dma 1 28>;
42 dma-names = "rx", "tx";
Dsnps-dma.txt4 - compatible: "snps,dma-spear1340"
7 - dma-channels: Number of channels supported by hardware
8 - dma-requests: Number of DMA request lines supported, up to 16
9 - dma-masters: Number of AHB masters supported by the controller
10 - #dma-cells: must be <3>
28 dmahost: dma@fc000000 {
29 compatible = "snps,dma-spear1340";
34 dma-channels = <8>;
35 dma-requests = <16>;
36 dma-masters = <2>;
[all …]
Dmpc512x-dma.txt8 the dma/dma.txt file for a more detailed description of binding.
11 - compatible: should be "fsl,mpc5121-dma" or "fsl,mpc8308-dma";
15 - #dma-cells: the length of the DMA specifier, must be <1>.
22 dma0: dma@14000 {
23 compatible = "fsl,mpc5121-dma";
26 #dma-cells = <1>;
29 DMA clients must use the format described in dma/dma.txt file.
Djz4780-dma.txt5 - compatible: Should be "ingenic,jz4780-dma"
10 - #dma-cells: Must be <2>. Number of integer cells in the dmas property of
23 dma: dma@13420000 {
24 compatible = "ingenic,jz4780-dma";
32 #dma-cells = <2>;
37 DMA clients must use the format described in dma.txt, giving a phandle to the
52 dmas = <&dma 0x14 0xffffffff
53 &dma 0x15 0xffffffff>;
54 dma-names = "tx", "rx";
Drenesas,usb-dmac.txt11 - #dma-cells: must be <1>, the cell specifies the channel number of the DMAC
13 - dma-channels: number of DMA channels
17 usb_dmac0: dma-controller@e65a0000 {
24 #dma-cells = <1>;
25 dma-channels = <2>;
28 usb_dmac1: dma-controller@e65b0000 {
35 #dma-cells = <1>;
36 dma-channels = <2>;
Dapm-xgene-dma.txt7 - compatible: Should be "apm,xgene-dma".
8 - device_type: set to "dma".
21 - dma-coherent : Present if dma operations are coherent
33 dma: dma@1f270000 {
34 compatible = "apm,xgene-storm-dma";
35 device_type = "dma";
45 dma-coherent;
Dshdma.txt16 - #dma-cells: should be <1>, see "dmas" property below
19 - dma-channels: number of DMA channels
20 - dma-requests: number of DMA request signals
30 dmac: dma-multiplexer@0 {
32 #dma-cells = <1>;
33 dma-channels = <20>;
34 dma-requests = <256>;
39 dma0: dma-controller@e6700020 {
79 - dma-names: a list of DMA channel names, one per "dmas" entry
84 dma-names = "tx", "rx";
Dste-coh901318.txt10 - #dma-cells: must be set to <1>, as the channels on the
12 - dma-channels: the number of DMA channels handled
16 dmac: dma-controller@c00020000 {
21 #dma-cells = <1>;
22 dma-channels = <40>;
31 dma-names = "tx", "rx";
Datmel-dma.txt4 - compatible: Should be "atmel,<chip>-dma".
7 - #dma-cells: Must be <2>, used to represent the number of integer cells in
12 dma0: dma@ffffec00 {
13 compatible = "atmel,at91sam9g45-dma";
16 #dma-cells = <2>;
20 described in the dma.txt file, using a three-cell specifier for each channel:
41 dma-names = "tx", "rx";
Dmmp-dma.txt13 - #dma-channels: Number of DMA channels supported by the controller (defaults
29 pdma: dma-controller@d4000000 {
34 #dma-channels = <16>;
42 pdma: dma-controller@d4000000 {
46 #dma-channels = <16>;
57 or one irq for dma device
65 adma0: dma-controller@d42a0800 {
73 squ: dma-controller@d42a0800 {
Datmel-xdma.txt5 - compatible: Should be "atmel,<chip>-dma".
10 - #dma-cells: Must be <1>, used to represent the number of integer cells in
21 dma1: dma-controller@f0004000 {
22 compatible = "atmel,sama5d4-dma";
25 #dma-cells = <1>;
31 described in the dma.txt file, using a one-cell specifier for each channel.
53 dma-names = "tx", "rx";
Dimg-mdc-dma.txt4 - compatible: Must be "img,pistachio-mdc-dma".
16 - #dma-cells: Must be 3:
23 - dma-channels: Number of supported DMA channels, up to 32. If not specified
28 mdc: dma-controller@18143000 {
29 compatible = "img,pistachio-mdc-dma";
49 #dma-cells = <3>;
55 dma-names = "tx", "rx";
Darm-pl08x.txt14 - #dma-cells: must be <2>. First cell should contain the DMA request,
19 - dma-channels: contains the total number of DMA channels supported by the DMAC
20 - dma-requests: contains the total number of DMA requests supported by the DMAC
29 - dma-names: Names of the aforementioned requested channels
33 dmac0: dma-controller@10130000 {
45 #dma-cells = <2>;
52 dma-names = "tx", "rx";
Dste-dma40.txt8 - #dma-cells: must be <3>
12 - dma-channels: Number of channels supported by hardware - if not present
18 dma: dma-controller@801C0000 {
25 #dma-cells = <2>;
28 dma-channels = <8>;
33 - dmas: Comma separated list of dma channel requests
34 - dma-names: Names of the aforementioned requested channels
134 dmas = <&dma 13 0 0x2>, /* Logical - DevToMem */
135 <&dma 13 0 0x0>; /* Logical - MemToDev */
136 dma-names = "rx", "rx";
Drenesas,rcar-dmac.txt31 - #dma-cells: must be <1>, the cell specifies the MID/RID of the DMAC port
33 - dma-channels: number of DMA channels
37 dmac0: dma-controller@e6700000 {
63 #dma-cells = <1>;
64 dma-channels = <15>;
67 dmac1: dma-controller@e6720000 {
93 #dma-cells = <1>;
94 dma-channels = <15>;
Dtegra20-apbdma.txt13 - dma
14 - #dma-cells : Must be <1>. This dictates the length of DMA specifiers in
21 apbdma: dma@6000a000 {
42 reset-names = "dma";
43 #dma-cells = <1>;
Dqcom_bam_dma.txt10 - #dma-cells: must be <1>, the cell in the dmas property of the client device
19 uart-bam: dma@f9984000 = {
25 #dma-cells = <1>;
29 DMA clients must use the format described in the dma.txt file, using a two cell
43 dma-names = "rx", "tx";
/linux-4.4.14/sound/pci/au88x0/
Dau88x0_core.c1084 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setfirstbuffer() local
1087 dma->dma_ctrl); in vortex_adbdma_setfirstbuffer()
1092 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setstartbuffer() local
1096 dma->period_real = dma->period_virt = sb; in vortex_adbdma_setstartbuffer()
1103 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setbuffers() local
1105 dma->period_bytes = psize; in vortex_adbdma_setbuffers()
1106 dma->nr_periods = count; in vortex_adbdma_setbuffers()
1108 dma->cfg0 = 0; in vortex_adbdma_setbuffers()
1109 dma->cfg1 = 0; in vortex_adbdma_setbuffers()
1114 dma->cfg1 |= 0x88000000 | 0x44000000 | 0x30000000 | (psize - 1); in vortex_adbdma_setbuffers()
[all …]
Dau88x0_pcm.c240 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params() local
243 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_params()
248 dma = in snd_vortex_pcm_hw_params()
253 if (dma < 0) { in snd_vortex_pcm_hw_params()
255 return dma; in snd_vortex_pcm_hw_params()
257 stream = substream->runtime->private_data = &chip->dma_adb[dma]; in snd_vortex_pcm_hw_params()
260 vortex_adbdma_setbuffers(chip, dma, in snd_vortex_pcm_hw_params()
277 stream->dma = substream->number; in snd_vortex_pcm_hw_params()
304 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_free()
313 vortex_wt_allocroute(chip, stream->dma, 0); in snd_vortex_pcm_hw_free()
[all …]
/linux-4.4.14/sound/soc/au1x/
Ddma.c32 int dma; member
105 disable_dma(stream->dma); in au1000_dma_stop()
113 init_dma(stream->dma); in au1000_dma_start()
114 if (get_dma_active_buffer(stream->dma) == 0) { in au1000_dma_start()
115 clear_dma_done0(stream->dma); in au1000_dma_start()
116 set_dma_addr0(stream->dma, stream->buffer->start); in au1000_dma_start()
117 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
118 set_dma_addr1(stream->dma, stream->buffer->next->start); in au1000_dma_start()
119 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
121 clear_dma_done1(stream->dma); in au1000_dma_start()
[all …]
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_layer.c87 struct atmel_hlcdc_layer_dma_channel *dma = &layer->dma; in atmel_hlcdc_layer_update_apply() local
116 if (dma->status == ATMEL_HLCDC_LAYER_DISABLED) { in atmel_hlcdc_layer_update_apply()
139 dma->status = ATMEL_HLCDC_LAYER_ENABLED; in atmel_hlcdc_layer_update_apply()
163 dma->queue = fb_flip; in atmel_hlcdc_layer_update_apply()
179 struct atmel_hlcdc_layer_dma_channel *dma = &layer->dma; in atmel_hlcdc_layer_irq() local
199 flip = dma->queue ? dma->queue : dma->cur; in atmel_hlcdc_layer_irq()
265 atmel_hlcdc_layer_fb_flip_release_queue(layer, dma->cur); in atmel_hlcdc_layer_irq()
266 dma->cur = dma->queue; in atmel_hlcdc_layer_irq()
267 dma->queue = NULL; in atmel_hlcdc_layer_irq()
271 atmel_hlcdc_layer_fb_flip_release_queue(layer, dma->cur); in atmel_hlcdc_layer_irq()
[all …]
/linux-4.4.14/drivers/dma/
DMakefile7 obj-$(CONFIG_DMA_VIRTUAL_CHANNELS) += virt-dma.o
8 obj-$(CONFIG_DMA_ACPI) += acpi-dma.o
9 obj-$(CONFIG_DMA_OF) += of-dma.o
19 obj-$(CONFIG_AXI_DMAC) += dma-axi-dmac.o
21 obj-$(CONFIG_DMA_BCM2835) += bcm2835-dma.o
22 obj-$(CONFIG_DMA_JZ4740) += dma-jz4740.o
23 obj-$(CONFIG_DMA_JZ4780) += dma-jz4780.o
24 obj-$(CONFIG_DMA_OMAP) += omap-dma.o
25 obj-$(CONFIG_DMA_SA11X0) += sa11x0-dma.o
26 obj-$(CONFIG_DMA_SUN4I) += sun4i-dma.o
[all …]
DTODO1 TODO for slave dma
7 - imx-dma
9 - mxs-dma.c
11 4. Check other subsystems for dma drivers and merge/move to dmaengine
12 5. Remove dma_slave_config's dma direction.
Dmpc512x_dma.c224 struct dma_device dma; member
369 if (mdma->dma.chancnt > 32) { in mpc_dma_irq()
393 for (i = 0; i < mdma->dma.chancnt; i++) { in mpc_dma_process_completed()
438 dev_err(mdma->dma.dev, in mpc_dma_tasklet()
443 dev_err(mdma->dma.dev, "- Group Priority Error\n"); in mpc_dma_tasklet()
445 dev_err(mdma->dma.dev, "- Channel Priority Error\n"); in mpc_dma_tasklet()
447 dev_err(mdma->dma.dev, "- Source Address Error\n"); in mpc_dma_tasklet()
449 dev_err(mdma->dma.dev, "- Source Offset" in mpc_dma_tasklet()
452 dev_err(mdma->dma.dev, "- Destination Address" in mpc_dma_tasklet()
455 dev_err(mdma->dma.dev, "- Destination Offset" in mpc_dma_tasklet()
[all …]
Didma64.c175 dev_vdbg(idma64->dma.dev, "%s: status=%#x\n", __func__, status); in idma64_irq()
188 for (i = 0; i < idma64->dma.chancnt; i++) in idma64_irq()
565 INIT_LIST_HEAD(&idma64->dma.channels); in idma64_probe()
570 vchan_init(&idma64c->vchan, &idma64->dma); in idma64_probe()
576 dma_cap_set(DMA_SLAVE, idma64->dma.cap_mask); in idma64_probe()
577 dma_cap_set(DMA_PRIVATE, idma64->dma.cap_mask); in idma64_probe()
579 idma64->dma.device_alloc_chan_resources = idma64_alloc_chan_resources; in idma64_probe()
580 idma64->dma.device_free_chan_resources = idma64_free_chan_resources; in idma64_probe()
582 idma64->dma.device_prep_slave_sg = idma64_prep_slave_sg; in idma64_probe()
584 idma64->dma.device_issue_pending = idma64_issue_pending; in idma64_probe()
[all …]
Dsirf-dma.c120 struct dma_device dma; member
350 for (i = 0; i < sdma->dma.chancnt; i++) { in sirfsoc_dma_process_completed()
569 pm_runtime_get_sync(sdma->dma.dev); in sirfsoc_dma_alloc_chan_resources()
575 dev_notice(sdma->dma.dev, "Memory allocation error. " in sirfsoc_dma_alloc_chan_resources()
625 pm_runtime_put(sdma->dma.dev); in sirfsoc_dma_free_chan_resources()
847 struct dma_device *dma; in sirfsoc_dma_probe() local
907 dma = &sdma->dma; in sirfsoc_dma_probe()
908 dma->dev = dev; in sirfsoc_dma_probe()
910 dma->device_alloc_chan_resources = sirfsoc_dma_alloc_chan_resources; in sirfsoc_dma_probe()
911 dma->device_free_chan_resources = sirfsoc_dma_free_chan_resources; in sirfsoc_dma_probe()
[all …]
/linux-4.4.14/drivers/tty/serial/
Dmsm_serial.c84 void msm_stop_dma(struct uart_port *port, struct msm_dma *dma) in msm_stop_dma() argument
90 mapped = dma->count; in msm_stop_dma()
91 dma->count = 0; in msm_stop_dma()
93 dmaengine_terminate_all(dma->chan); in msm_stop_dma()
103 val &= ~dma->enable_bit; in msm_stop_dma()
107 dma_unmap_single(dev, dma->phys, mapped, dma->dir); in msm_stop_dma()
112 struct msm_dma *dma; in msm_release_dma() local
114 dma = &msm_port->tx_dma; in msm_release_dma()
115 if (dma->chan) { in msm_release_dma()
116 msm_stop_dma(&msm_port->uart, dma); in msm_release_dma()
[all …]
Dsamsung.c163 struct s3c24xx_uart_dma *dma = ourport->dma; in s3c24xx_serial_stop_tx() local
177 if (dma && dma->tx_chan && ourport->tx_in_progress == S3C24XX_TX_DMA) { in s3c24xx_serial_stop_tx()
178 dmaengine_pause(dma->tx_chan); in s3c24xx_serial_stop_tx()
179 dmaengine_tx_status(dma->tx_chan, dma->tx_cookie, &state); in s3c24xx_serial_stop_tx()
180 dmaengine_terminate_all(dma->tx_chan); in s3c24xx_serial_stop_tx()
182 dma->tx_transfer_addr, dma->tx_size, DMA_TO_DEVICE); in s3c24xx_serial_stop_tx()
183 async_tx_ack(dma->tx_desc); in s3c24xx_serial_stop_tx()
184 count = dma->tx_bytes_requested - state.residue; in s3c24xx_serial_stop_tx()
205 struct s3c24xx_uart_dma *dma = ourport->dma; in s3c24xx_serial_tx_dma_complete() local
211 dmaengine_tx_status(dma->tx_chan, dma->tx_cookie, &state); in s3c24xx_serial_tx_dma_complete()
[all …]
/linux-4.4.14/drivers/net/appletalk/
Dltpc.c207 static int dma; variable
371 int dma = dev->dma; in handlefc() local
377 disable_dma(dma); in handlefc()
378 clear_dma_ff(dma); in handlefc()
379 set_dma_mode(dma,DMA_MODE_READ); in handlefc()
380 set_dma_addr(dma,virt_to_bus(ltdmacbuf)); in handlefc()
381 set_dma_count(dma,50); in handlefc()
382 enable_dma(dma); in handlefc()
394 int dma = dev->dma; in handlefd() local
399 disable_dma(dma); in handlefd()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/serial/
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 …]
Datmel-usart.txt15 - atmel,use-dma-rx: use of PDC or DMA for receiving data
16 - atmel,use-dma-tx: use of PDC or DMA for transmitting data
20 - add dma bindings for dma transfer:
23 Refer to dma.txt and atmel-dma.txt for details.
24 - dma-names: "rx" for RX channel, "tx" for TX channel.
40 atmel,use-dma-rx;
41 atmel,use-dma-tx;
57 atmel,use-dma-rx;
58 atmel,use-dma-tx;
61 dma-names = "tx", "rx";
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/dma/
DKbuild1 nvkm-y += nvkm/engine/dma/base.o
2 nvkm-y += nvkm/engine/dma/nv04.o
3 nvkm-y += nvkm/engine/dma/nv50.o
4 nvkm-y += nvkm/engine/dma/gf100.o
5 nvkm-y += nvkm/engine/dma/gf119.o
7 nvkm-y += nvkm/engine/dma/user.o
8 nvkm-y += nvkm/engine/dma/usernv04.o
9 nvkm-y += nvkm/engine/dma/usernv50.o
10 nvkm-y += nvkm/engine/dma/usergf100.o
11 nvkm-y += nvkm/engine/dma/usergf119.o
Dbase.c32 nvkm_dma_search(struct nvkm_dma *dma, struct nvkm_client *client, u64 object) in nvkm_dma_search() argument
54 struct nvkm_dma *dma = nvkm_dma(oclass->engine); in nvkm_dma_oclass_new() local
61 ret = dma->func->class_new(dma, oclass, data, size, &dmaobj); in nvkm_dma_oclass_new()
149 struct nvkm_dma *dma; in nvkm_dma_new_() local
151 if (!(dma = *pdma = kzalloc(sizeof(*dma), GFP_KERNEL))) in nvkm_dma_new_()
153 dma->func = func; in nvkm_dma_new_()
156 0, true, &dma->engine); in nvkm_dma_new_()
/linux-4.4.14/drivers/i2c/busses/
Di2c-imx.c218 struct imx_i2c_dma *dma; member
293 struct imx_i2c_dma *dma; in i2c_imx_dma_request() local
298 dma = devm_kzalloc(dev, sizeof(*dma), GFP_KERNEL); in i2c_imx_dma_request()
299 if (!dma) in i2c_imx_dma_request()
302 dma->chan_tx = dma_request_slave_channel(dev, "tx"); in i2c_imx_dma_request()
303 if (!dma->chan_tx) { in i2c_imx_dma_request()
313 ret = dmaengine_slave_config(dma->chan_tx, &dma_sconfig); in i2c_imx_dma_request()
319 dma->chan_rx = dma_request_slave_channel(dev, "rx"); in i2c_imx_dma_request()
320 if (!dma->chan_rx) { in i2c_imx_dma_request()
330 ret = dmaengine_slave_config(dma->chan_rx, &dma_sconfig); in i2c_imx_dma_request()
[all …]
Di2c-at91.c143 struct at91_twi_dma dma; member
213 struct at91_twi_dma *dma = &dev->dma; in at91_twi_dma_cleanup() local
217 if (dma->xfer_in_progress) { in at91_twi_dma_cleanup()
218 if (dma->direction == DMA_FROM_DEVICE) in at91_twi_dma_cleanup()
219 dmaengine_terminate_all(dma->chan_rx); in at91_twi_dma_cleanup()
221 dmaengine_terminate_all(dma->chan_tx); in at91_twi_dma_cleanup()
222 dma->xfer_in_progress = false; in at91_twi_dma_cleanup()
224 if (dma->buf_mapped) { in at91_twi_dma_cleanup()
225 dma_unmap_single(dev->dev, sg_dma_address(&dma->sg[0]), in at91_twi_dma_cleanup()
226 dev->buf_len, dma->direction); in at91_twi_dma_cleanup()
[all …]
/linux-4.4.14/sound/pci/
Datiixp.c356 static int atiixp_build_dma_packets(struct atiixp *chip, struct atiixp_dma *dma, in atiixp_build_dma_packets() argument
368 if (dma->desc_buf.area == NULL) { in atiixp_build_dma_packets()
372 &dma->desc_buf) < 0) in atiixp_build_dma_packets()
374 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
377 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
382 writel(0, chip->remap_addr + dma->ops->llp_offset); in atiixp_build_dma_packets()
383 dma->ops->enable_dma(chip, 0); in atiixp_build_dma_packets()
384 dma->ops->enable_dma(chip, 1); in atiixp_build_dma_packets()
389 desc_addr = (u32)dma->desc_buf.addr; in atiixp_build_dma_packets()
392 desc = &((struct atiixp_dma_desc *)dma->desc_buf.area)[i]; in atiixp_build_dma_packets()
[all …]
Datiixp_modem.c325 struct atiixp_dma *dma, in atiixp_build_dma_packets() argument
337 if (dma->desc_buf.area == NULL) { in atiixp_build_dma_packets()
339 ATI_DESC_LIST_SIZE, &dma->desc_buf) < 0) in atiixp_build_dma_packets()
341 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
344 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
349 writel(0, chip->remap_addr + dma->ops->llp_offset); in atiixp_build_dma_packets()
350 dma->ops->enable_dma(chip, 0); in atiixp_build_dma_packets()
351 dma->ops->enable_dma(chip, 1); in atiixp_build_dma_packets()
356 desc_addr = (u32)dma->desc_buf.addr; in atiixp_build_dma_packets()
359 desc = &((struct atiixp_dma_desc *)dma->desc_buf.area)[i]; in atiixp_build_dma_packets()
[all …]
Dcs4281.c473 struct cs4281_dma dma[4]; member
670 struct cs4281_dma *dma = substream->runtime->private_data; in snd_cs4281_trigger() local
676 dma->valDCR |= BA0_DCR_MSK; in snd_cs4281_trigger()
677 dma->valFCR |= BA0_FCR_FEN; in snd_cs4281_trigger()
680 dma->valDCR &= ~BA0_DCR_MSK; in snd_cs4281_trigger()
681 dma->valFCR &= ~BA0_FCR_FEN; in snd_cs4281_trigger()
685 snd_cs4281_pokeBA0(chip, dma->regDMR, dma->valDMR & ~BA0_DMR_DMA); in snd_cs4281_trigger()
686 dma->valDMR |= BA0_DMR_DMA; in snd_cs4281_trigger()
687 dma->valDCR &= ~BA0_DCR_MSK; in snd_cs4281_trigger()
688 dma->valFCR |= BA0_FCR_FEN; in snd_cs4281_trigger()
[all …]
/linux-4.4.14/sound/oss/
Dpas2_card.c186 if (hw_config->dma < 0 || hw_config->dma > 7) in config_pas_hw()
188 printk(KERN_ERR "PAS16: Invalid DMA selection %d", hw_config->dma); in config_pas_hw()
189 hw_config->dma=-1; in config_pas_hw()
194 pas_write(dma_bits[hw_config->dma], 0xF389); in config_pas_hw()
195 if (!dma_bits[hw_config->dma]) in config_pas_hw()
197 printk(KERN_ERR "PAS16: Invalid DMA selection %d", hw_config->dma); in config_pas_hw()
198 hw_config->dma=-1; in config_pas_hw()
203 if (sound_alloc_dma(hw_config->dma, "PAS16")) in config_pas_hw()
206 hw_config->dma=-1; in config_pas_hw()
261 if (!sb_dma_bits[sb_config->dma]) in config_pas_hw()
[all …]
Dsb_card.c45 static int __initdata dma = -1; variable
68 module_param(dma, int, 000);
69 MODULE_PARM_DESC(dma, "8-bit DMA channel (0,1,3)");
148 legacy->conf.dma = dma; in sb_init_legacy()
154 legacy->mpucnf.dma = -1; in sb_init_legacy()
171 scc->conf.dma = -1; in sb_dev2cfg()
175 scc->mpucnf.dma = -1; in sb_dev2cfg()
183 scc->conf.dma = pnp_dma(dev,0); in sb_dev2cfg()
191 scc->conf.dma = pnp_dma(dev,0); in sb_dev2cfg()
198 scc->conf.dma = pnp_dma(dev,0); in sb_dev2cfg()
[all …]
Dtrix.c130 int dma1 = hw_config->dma, dma2 = hw_config->dma2; in init_trix_wss()
294 tmp = hw_config->dma; in probe_trix_sb()
306 if (hw_config->dma == 3) in probe_trix_sb()
376 dma2 = hw_config->dma; in unload_trix_wss()
383 hw_config->dma, in unload_trix_wss()
408 static int __initdata dma = -1; variable
418 module_param(dma, int, 0);
433 cfg.dma = dma; in init_trix()
438 cfg2.dma = sb_dma; in init_trix()
443 if (cfg.io_base == -1 || cfg.dma == -1 || cfg.irq == -1) { in init_trix()
[all …]
/linux-4.4.14/arch/cris/include/arch-v32/arch/hwregs/
Ddma.h76 do { reg_dma_rw_cfg e = REG_RD( dma, inst, rw_cfg );\
78 REG_WR( dma, inst, rw_cfg, e); } while( 0 )
82 do { reg_dma_rw_cfg r = REG_RD( dma, inst, rw_cfg );\
84 REG_WR( dma, inst, rw_cfg, r); } while( 0 )
88 do { reg_dma_rw_cfg s = REG_RD( dma, inst, rw_cfg );\
90 REG_WR( dma, inst, rw_cfg, s); } while( 0 )
94 do { reg_dma_rw_cfg c = REG_RD( dma, inst, rw_cfg );\
96 REG_WR( dma, inst, rw_cfg, c); } while( 0 )
101 do { __x = REG_RD(dma, inst, rw_stream_cmd); } while (__x.busy); \
103 REG_WR(dma, inst, rw_stream_cmd, __x); \
[all …]
/linux-4.4.14/drivers/media/pci/b2c2/
Dflexcop-dma.c9 struct flexcop_dma *dma, u32 size) in flexcop_dma_allocate() argument
20 dma->pdev = pdev; in flexcop_dma_allocate()
21 dma->cpu_addr0 = tcpu; in flexcop_dma_allocate()
22 dma->dma_addr0 = tdma; in flexcop_dma_allocate()
23 dma->cpu_addr1 = tcpu + size/2; in flexcop_dma_allocate()
24 dma->dma_addr1 = tdma + size/2; in flexcop_dma_allocate()
25 dma->size = size/2; in flexcop_dma_allocate()
32 void flexcop_dma_free(struct flexcop_dma *dma) in flexcop_dma_free() argument
34 pci_free_consistent(dma->pdev, dma->size*2, in flexcop_dma_free()
35 dma->cpu_addr0, dma->dma_addr0); in flexcop_dma_free()
[all …]
Dflexcop-pci.c57 struct flexcop_dma dma[2]; member
172 fc_pci->dma[0].cpu_addr0, in flexcop_pci_isr()
173 fc_pci->dma[0].size / 188); in flexcop_pci_isr()
176 fc_pci->dma[0].cpu_addr1, in flexcop_pci_isr()
177 fc_pci->dma[0].size / 188); in flexcop_pci_isr()
186 u32 cur_pos = cur_addr - fc_pci->dma[0].dma_addr0; in flexcop_pci_isr()
200 (fc_pci->dma[0].size*2 - 1) - in flexcop_pci_isr()
203 fc_pci->dma[0].cpu_addr0 + in flexcop_pci_isr()
205 (fc_pci->dma[0].size*2) - in flexcop_pci_isr()
214 fc_pci->dma[0].cpu_addr0 + in flexcop_pci_isr()
[all …]
/linux-4.4.14/arch/powerpc/boot/dts/fsl/
Delo3-dma-1.dtsi35 dma1: dma@101300 {
38 compatible = "fsl,elo3-dma";
42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
47 dma-channel@80 {
48 compatible = "fsl,eloplus-dma-channel";
52 dma-channel@100 {
53 compatible = "fsl,eloplus-dma-channel";
57 dma-channel@180 {
58 compatible = "fsl,eloplus-dma-channel";
[all …]
Delo3-dma-2.dtsi35 dma2: dma@102300 {
38 compatible = "fsl,elo3-dma";
42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
47 dma-channel@80 {
48 compatible = "fsl,eloplus-dma-channel";
52 dma-channel@100 {
53 compatible = "fsl,eloplus-dma-channel";
57 dma-channel@180 {
58 compatible = "fsl,eloplus-dma-channel";
[all …]
Delo3-dma-0.dtsi35 dma0: dma@100300 {
38 compatible = "fsl,elo3-dma";
42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
47 dma-channel@80 {
48 compatible = "fsl,eloplus-dma-channel";
52 dma-channel@100 {
53 compatible = "fsl,eloplus-dma-channel";
57 dma-channel@180 {
58 compatible = "fsl,eloplus-dma-channel";
[all …]
Dpq3-dma-1.dtsi35 dma@c300 {
38 compatible = "fsl,eloplus-dma";
42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
48 dma-channel@80 {
49 compatible = "fsl,eloplus-dma-channel";
54 dma-channel@100 {
55 compatible = "fsl,eloplus-dma-channel";
60 dma-channel@180 {
61 compatible = "fsl,eloplus-dma-channel";
Dqoriq-dma-1.dtsi35 dma1: dma@101300 {
38 compatible = "fsl,eloplus-dma";
42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
48 dma-channel@80 {
49 compatible = "fsl,eloplus-dma-channel";
54 dma-channel@100 {
55 compatible = "fsl,eloplus-dma-channel";
60 dma-channel@180 {
61 compatible = "fsl,eloplus-dma-channel";
Dpq3-dma-0.dtsi35 dma@21300 {
38 compatible = "fsl,eloplus-dma";
42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
48 dma-channel@80 {
49 compatible = "fsl,eloplus-dma-channel";
54 dma-channel@100 {
55 compatible = "fsl,eloplus-dma-channel";
60 dma-channel@180 {
61 compatible = "fsl,eloplus-dma-channel";
Dqoriq-dma-0.dtsi35 dma0: dma@100300 {
38 compatible = "fsl,eloplus-dma";
42 dma-channel@0 {
43 compatible = "fsl,eloplus-dma-channel";
48 dma-channel@80 {
49 compatible = "fsl,eloplus-dma-channel";
54 dma-channel@100 {
55 compatible = "fsl,eloplus-dma-channel";
60 dma-channel@180 {
61 compatible = "fsl,eloplus-dma-channel";
/linux-4.4.14/drivers/net/wireless/b43legacy/
Ddma.c75 addr |= ring->dev->dma.translation; in op32_fill_descriptor()
199 return dev->dma.tx_ring1; in priority_to_txring()
207 ring = dev->dma.tx_ring3; in priority_to_txring()
210 ring = dev->dma.tx_ring2; in priority_to_txring()
213 ring = dev->dma.tx_ring1; in priority_to_txring()
216 ring = dev->dma.tx_ring0; in priority_to_txring()
219 ring = dev->dma.tx_ring4; in priority_to_txring()
222 ring = dev->dma.tx_ring5; in priority_to_txring()
545 u32 trans = ring->dev->dma.translation; in dmacontroller_setup()
775 struct b43legacy_dma *dma; in b43legacy_dma_free() local
[all …]
/linux-4.4.14/drivers/vfio/
Dvfio_iommu_type1.c96 struct vfio_dma *dma = rb_entry(node, struct vfio_dma, node); in vfio_find_dma() local
98 if (start + size <= dma->iova) in vfio_find_dma()
100 else if (start >= dma->iova + dma->size) in vfio_find_dma()
103 return dma; in vfio_find_dma()
112 struct vfio_dma *dma; in vfio_link_dma() local
116 dma = rb_entry(parent, struct vfio_dma, node); in vfio_link_dma()
118 if (new->iova + new->size <= dma->iova) in vfio_link_dma()
336 static void vfio_unmap_unpin(struct vfio_iommu *iommu, struct vfio_dma *dma) in vfio_unmap_unpin() argument
338 dma_addr_t iova = dma->iova, end = dma->iova + dma->size; in vfio_unmap_unpin()
342 if (!dma->size) in vfio_unmap_unpin()
[all …]
/linux-4.4.14/drivers/usb/host/
Dxhci-dbg.c332 u64 addr = seg->dma; in xhci_debug_segment()
440 static void dbg_rsvd64(struct xhci_hcd *xhci, u64 *ctx, dma_addr_t dma) in dbg_rsvd64() argument
446 &ctx[4 + i], (unsigned long long)dma, in dbg_rsvd64()
448 dma += 8; in dbg_rsvd64()
478 dma_addr_t dma = ctx->dma + in xhci_dbg_slot_ctx() local
485 (unsigned long long)dma, slot_ctx->dev_info); in xhci_dbg_slot_ctx()
486 dma += field_size; in xhci_dbg_slot_ctx()
489 (unsigned long long)dma, slot_ctx->dev_info2); in xhci_dbg_slot_ctx()
490 dma += field_size; in xhci_dbg_slot_ctx()
493 (unsigned long long)dma, slot_ctx->tt_info); in xhci_dbg_slot_ctx()
[all …]
Dohci-mem.c88 dma_addr_t dma; in td_alloc() local
91 td = dma_pool_alloc (hc->td_cache, mem_flags, &dma); in td_alloc()
95 td->hwNextTD = cpu_to_hc32 (hc, dma); in td_alloc()
96 td->td_dma = dma; in td_alloc()
122 dma_addr_t dma; in ed_alloc() local
125 ed = dma_pool_alloc (hc->ed_cache, mem_flags, &dma); in ed_alloc()
129 ed->dma = dma; in ed_alloc()
137 dma_pool_free (hc->ed_cache, ed, ed->dma); in ed_free()
/linux-4.4.14/drivers/net/ethernet/
Dlantiq_etop.c94 struct ltq_dma_channel dma; member
116 ch->skb[ch->dma.desc] = netdev_alloc_skb(ch->netdev, MAX_DMA_DATA_LEN); in ltq_etop_alloc_skb()
117 if (!ch->skb[ch->dma.desc]) in ltq_etop_alloc_skb()
119 ch->dma.desc_base[ch->dma.desc].addr = dma_map_single(NULL, in ltq_etop_alloc_skb()
120 ch->skb[ch->dma.desc]->data, MAX_DMA_DATA_LEN, in ltq_etop_alloc_skb()
122 ch->dma.desc_base[ch->dma.desc].addr = in ltq_etop_alloc_skb()
123 CPHYSADDR(ch->skb[ch->dma.desc]->data); in ltq_etop_alloc_skb()
124 ch->dma.desc_base[ch->dma.desc].ctl = in ltq_etop_alloc_skb()
127 skb_reserve(ch->skb[ch->dma.desc], NET_IP_ALIGN); in ltq_etop_alloc_skb()
135 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in ltq_etop_hw_receive()
[all …]
/linux-4.4.14/sound/mips/
Dau1x00.c85 int dma; member
198 disable_dma(stream->dma); in au1000_dma_stop()
207 init_dma(stream->dma); in au1000_dma_start()
208 if (get_dma_active_buffer(stream->dma) == 0) { in au1000_dma_start()
209 clear_dma_done0(stream->dma); in au1000_dma_start()
210 set_dma_addr0(stream->dma, stream->buffer->start); in au1000_dma_start()
211 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
212 set_dma_addr1(stream->dma, stream->buffer->next->start); in au1000_dma_start()
213 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
215 clear_dma_done1(stream->dma); in au1000_dma_start()
[all …]
/linux-4.4.14/drivers/dma/ioat/
Dsysfs.c31 struct dma_device *dma = c->device; in cap_show() local
34 dma_has_cap(DMA_PQ, dma->cap_mask) ? " pq" : "", in cap_show()
35 dma_has_cap(DMA_PQ_VAL, dma->cap_mask) ? " pq_val" : "", in cap_show()
36 dma_has_cap(DMA_XOR, dma->cap_mask) ? " xor" : "", in cap_show()
37 dma_has_cap(DMA_XOR_VAL, dma->cap_mask) ? " xor_val" : "", in cap_show()
38 dma_has_cap(DMA_INTERRUPT, dma->cap_mask) ? " intr" : ""); in cap_show()
45 struct dma_device *dma = c->device; in version_show() local
46 struct ioatdma_device *ioat_dma = to_ioatdma_device(dma); in version_show()
73 struct dma_device *dma = &ioat_dma->dma_dev; in ioat_kobject_add() local
76 list_for_each_entry(c, &dma->channels, device_node) { in ioat_kobject_add()
[all …]
Dinit.c314 struct dma_device *dma = &ioat_dma->dma_dev; in ioat_dma_self_test() local
339 dma_chan = container_of(dma->channels.next, struct dma_chan, in ioat_dma_self_test()
341 if (dma->device_alloc_chan_resources(dma_chan) < 1) { in ioat_dma_self_test()
377 dma->device_issue_pending(dma_chan); in ioat_dma_self_test()
382 dma->device_tx_status(dma_chan, cookie, NULL) in ioat_dma_self_test()
399 dma->device_free_chan_resources(dma_chan); in ioat_dma_self_test()
503 struct dma_device *dma = &ioat_dma->dma_dev; in ioat_probe() local
528 dma_cap_set(DMA_MEMCPY, dma->cap_mask); in ioat_probe()
529 dma->dev = &pdev->dev; in ioat_probe()
531 if (!dma->chancnt) { in ioat_probe()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/dma/xilinx/
Dxilinx_dma.txt7 - compatible: Should be "xlnx,axi-dma-1.00.a"
8 - #dma-cells: Should be <1>, see "dmas" property below
10 - dma-channel child node: Should have atleast one channel and can have upto
19 - compatible: It should be either "xlnx,axi-dma-mm2s-channel" or
20 "xlnx,axi-dma-s2mm-channel".
33 compatible = "xlnx,axi-dma-1.00.a";
36 dma-channel@40400000 {
37 compatible = "xlnx,axi-dma-mm2s-channel";
41 dma-channel@40400030 {
42 compatible = "xlnx,axi-dma-s2mm-channel";
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Drenesas,rsnd.txt46 - dma : Should contain Audio DMAC entry
47 - dma-names : SSI case "rx" (=playback), "tx" (=capture)
51 - dma : Should contain Audio DMAC entry
52 - dma-names : "rx" (=playback), "tx" (=capture)
55 - dma : Should contain Audio DMAC entry
56 - dma-names : "tx" (=playback/capture)
98 dma-names = "tx";
102 dma-names = "tx";
126 dma-names = "rx", "tx";
131 dma-names = "rx", "tx";
[all …]
Dzte,zx-spdif.txt9 the core. The core expects one dma channel for transmit.
10 - dma-names : Must be "tx"
12 For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties
16 * dma/dma.txt
25 dmas = <&dma 4>;
26 dma-names = "tx";
Dzte,zx-i2s.txt9 the core. The core expects two dma channels for transmit.
10 - dma-names : Must be "tx" and "rx"
12 For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties
16 * dma/dma.txt
26 dmas = <&dma 5>, <&dma 6>;
27 dma-names = "tx", "rx";
Dsun4i-codec.txt8 - dmas: DMA channels for tx and rx dma. See the DMA client binding,
9 Documentation/devicetree/bindings/dma/dma.txt
10 - dma-names: should include "tx" and "rx".
25 dmas = <&dma 0 19>, <&dma 0 19>;
26 dma-names = "rx", "tx";
Ddesignware-i2s.txt11 the core. The core expects one or two dma channels: one for transmit and
13 - dma-names : "tx" for the transmit channel, "rx" for the receive channel.
15 For more details on the 'dma', 'dma-names', 'clock' and 'clock-names'
19 * dma/dma.txt
30 dma-names = "tx";
Dadi,axi-i2s.txt12 the core. The core expects two dma channels, one for transmit and one for
14 - dma-names : "tx" for the transmit channel, "rx" for the receive channel.
16 For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties
20 * dma/dma.txt
30 dma-names = "tx", "rx";
Dadi,axi-spdif-tx.txt12 the core. The core expects one dma channel for transmit.
13 - dma-names : Must be "tx"
15 For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties
19 * dma/dma.txt
29 dma-names = "tx";
Dfsl,ssi.txt23 - fsl,playback-dma: Phandle to a node for the DMA channel to use for
26 - fsl,capture-dma: Phandle to a node for the DMA channel to use for
57 - dmas: Generic dma devicetree binding as described in
58 Documentation/devicetree/bindings/dma/dma.txt.
59 - dma-names: Two dmas have to be defined, "tx" and "rx", if fsl,imx-fiq
72 Notes on fsl,playback-dma and fsl,capture-dma:
82 "fsl,playback-dma" and "fsl,capture-dma" must be marked as compatible with
83 "fsl,ssi-dma-channel". The SOC-specific compatible string (e.g.
84 "fsl,mpc8610-dma-channel") can remain. If these nodes are left as
85 "fsl,elo-dma-channel" or "fsl,eloplus-dma-channel", then the generic Elo DMA
Dmxs-saif.txt9 Refer to dma.txt and fsl-mxs-dma.txt for details.
10 - dma-names: Must be "rx-tx".
31 dma-names = "rx-tx";
39 dma-names = "rx-tx";
Dingenic,jz4740-i2s.txt9 - dma-names: Must be "tx" and "rx"
20 dmas = <&dma 2>, <&dma 3>;
21 dma-names = "tx", "rx";
/linux-4.4.14/drivers/crypto/
Dhifn_795x.c930 struct hifn_dma *dma = (struct hifn_dma *)dev->desc_virt; in hifn_init_dma() local
935 dma->cmdr[i].p = __cpu_to_le32(dptr + in hifn_init_dma()
938 dma->resr[i].p = __cpu_to_le32(dptr + in hifn_init_dma()
944 dma->cmdr[HIFN_D_CMD_RSIZE].p = __cpu_to_le32(dptr + in hifn_init_dma()
946 dma->srcr[HIFN_D_SRC_RSIZE].p = __cpu_to_le32(dptr + in hifn_init_dma()
948 dma->dstr[HIFN_D_DST_RSIZE].p = __cpu_to_le32(dptr + in hifn_init_dma()
950 dma->resr[HIFN_D_RES_RSIZE].p = __cpu_to_le32(dptr + in hifn_init_dma()
953 dma->cmdu = dma->srcu = dma->dstu = dma->resu = 0; in hifn_init_dma()
954 dma->cmdi = dma->srci = dma->dsti = dma->resi = 0; in hifn_init_dma()
955 dma->cmdk = dma->srck = dma->dstk = dma->resk = 0; in hifn_init_dma()
[all …]
/linux-4.4.14/arch/frv/include/asm/
Ddma.h46 extern void frv_dma_close(int dma);
48 extern void frv_dma_config(int dma, unsigned long ccfr, unsigned long cctr, unsigned long apr);
50 extern void frv_dma_start(int dma,
54 extern void frv_dma_restart_circular(int dma, unsigned long six);
56 extern void frv_dma_stop(int dma);
58 extern int is_frv_dma_interrupting(int dma);
60 extern void frv_dma_dump(int dma);
62 extern void frv_dma_status_clear(int dma);
/linux-4.4.14/arch/arm/boot/dts/
Dste-dbx5x0.dtsi437 dmas = <&dma 38 0 0x2>, /* Logical - DevToMem */
438 <&dma 38 0 0x0>, /* Logical - MemToDev */
439 <&dma 37 0 0x2>, /* Logical - DevToMem */
440 <&dma 37 0 0x0>, /* Logical - MemToDev */
441 <&dma 36 0 0x2>, /* Logical - DevToMem */
442 <&dma 36 0 0x0>, /* Logical - MemToDev */
443 <&dma 19 0 0x2>, /* Logical - DevToMem */
444 <&dma 19 0 0x0>, /* Logical - MemToDev */
445 <&dma 18 0 0x2>, /* Logical - DevToMem */
446 <&dma 18 0 0x0>, /* Logical - MemToDev */
[all …]
Domap2.dtsi64 dma-names = "tx", "rx";
81 sdma: dma-controller@48056000 {
83 ti,hwmods = "dma";
89 #dma-cells = <1>;
90 dma-channels = <32>;
91 dma-requests = <64>;
102 dma-names = "tx", "rx";
113 dma-names = "tx", "rx";
123 dma-names = "tx0", "rx0", "tx1", "rx1",
133 dma-names = "tx0", "rx0", "tx1", "rx1";
[all …]
Dr8a7791.dtsi257 dmac0: dma-controller@e6700000 {
284 #dma-cells = <1>;
285 dma-channels = <15>;
288 dmac1: dma-controller@e6720000 {
315 #dma-cells = <1>;
316 dma-channels = <15>;
319 audma0: dma-controller@ec700000 {
344 #dma-cells = <1>;
345 dma-channels = <13>;
348 audma1: dma-controller@ec720000 {
[all …]
Dspear13xx.dtsi104 dma-names = "data";
107 dwdma0: dma@ea800000 {
108 compatible = "snps,dma-spear1340";
113 dma-channels = <8>;
114 #dma-cells = <3>;
115 dma-requests = <32>;
119 dma-masters = <2>;
123 dma@eb000000 {
124 compatible = "snps,dma-spear1340";
129 dma-requests = <32>;
[all …]
Dimx23.dtsi60 dma_apbh: dma-apbh@80004000 {
61 compatible = "fsl,imx23-dma-apbh";
67 #dma-cells = <1>;
68 dma-channels = <8>;
88 dma-names = "rx-tx";
97 dma-names = "rx-tx";
357 dma_apbx: dma-apbx@80024000 {
358 compatible = "fsl,imx23-dma-apbx";
368 #dma-cells = <1>;
369 dma-channels = <16>;
[all …]
Dpxa3xx.dtsi9 pdma: dma-controller@40000000 {
13 #dma-channels = <32>;
14 #dma-cells = <2>;
34 dma-names = "data";
64 dma-names = "rx", "tx";
75 dma-names = "rx", "tx";
86 dma-names = "rx", "tx";
Dr8a7790.dtsi268 dmac0: dma-controller@e6700000 {
295 #dma-cells = <1>;
296 dma-channels = <15>;
299 dmac1: dma-controller@e6720000 {
326 #dma-cells = <1>;
327 dma-channels = <15>;
330 audma0: dma-controller@ec700000 {
355 #dma-cells = <1>;
356 dma-channels = <13>;
359 audma1: dma-controller@ec720000 {
[all …]
Dmoxart.dtsi80 dma: dma@90500000 { label
81 compatible = "moxa,moxart-dma";
84 #dma-cells = <1>;
98 dmas = <&dma 5>,
99 <&dma 5>;
100 dma-names = "tx", "rx";
/linux-4.4.14/Documentation/devicetree/bindings/crypto/
Datmel-crypto.txt12 atmel-dma.txt and dma.txt files.
13 - dma-names: Contains one identifier string for each DMA specifier
23 dma-names = "tx", "rx";
34 atmel-dma.txt and dma.txt files.
35 - dma-names: Contains one identifier string for each DMA specifier
45 dma-names = "tx", "rx";
57 atmel-dma.txt and dma.txt files.
58 - dma-names: Contains one identifier string for each DMA specifier
67 dma-names = "tx";
Domap-sham.txt15 - dmas: DMA specifiers for the rx dma. See the DMA client binding,
16 Documentation/devicetree/bindings/dma/dma.txt
17 - dma-names: DMA request name. Should be "rx" if a dma is present.
27 dma-names = "rx";
Domap-des.txt14 - dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
15 Documentation/devicetree/bindings/dma/dma.txt
16 Each entry corresponds to an entry in dma-names
17 - dma-names: DMA request names should include "tx" and "rx" if present
27 dma-names = "tx", "rx";
Dqcom-qce.txt11 - dmas : DMA specifiers for tx and rx dma channels. For more see
12 Documentation/devicetree/bindings/dma/dma.txt
13 - dma-names : DMA request names should be "rx" and "tx"
24 dma-names = "rx", "tx";
Dimg-hash.txt11 - dmas : DMA specifier as per Documentation/devicetree/bindings/dma/dma.txt
12 - dma-names : Should be "tx"
23 dmas = <&dma 8 0xffffffff 0>;
24 dma-names = "tx";
Domap-aes.txt17 - dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
18 Documentation/devicetree/bindings/dma/dma.txt
19 - dma-names: DMA request names should include "tx" and "rx" if present.
30 dma-names = "tx", "rx";
/linux-4.4.14/drivers/net/wireless/b43/
Ddma.c50 static u32 b43_dma_address(struct b43_dma *dma, dma_addr_t dmaaddr, in b43_dma_address() argument
58 if (dma->translation_in_low) { in b43_dma_address()
60 addr |= dma->translation; in b43_dma_address()
65 if (!dma->translation_in_low) { in b43_dma_address()
67 addr |= dma->translation; in b43_dma_address()
71 if (dma->translation_in_low) in b43_dma_address()
112 addr = b43_dma_address(&ring->dev->dma, dmaaddr, B43_DMA_ADDR_LOW); in op32_fill_descriptor()
113 addrext = b43_dma_address(&ring->dev->dma, dmaaddr, B43_DMA_ADDR_EXT); in op32_fill_descriptor()
204 addrlo = b43_dma_address(&ring->dev->dma, dmaaddr, B43_DMA_ADDR_LOW); in op64_fill_descriptor()
205 addrhi = b43_dma_address(&ring->dev->dma, dmaaddr, B43_DMA_ADDR_HIGH); in op64_fill_descriptor()
[all …]
/linux-4.4.14/arch/powerpc/boot/dts/
Dmpc8610_hpcd.dts281 fsl,playback-dma = <&dma00>;
282 fsl,capture-dma = <&dma01>;
298 dma@21300 {
301 compatible = "fsl,mpc8610-dma", "fsl,eloplus-dma";
307 dma00: dma-channel@0 {
308 compatible = "fsl,mpc8610-dma-channel",
309 "fsl,ssi-dma-channel";
315 dma01: dma-channel@1 {
316 compatible = "fsl,mpc8610-dma-channel",
317 "fsl,ssi-dma-channel";
[all …]
Dmpc8349emitxgp.dts102 dma@82a8 {
105 compatible = "fsl,mpc8349-dma", "fsl,elo-dma";
111 dma-channel@0 {
112 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
118 dma-channel@80 {
119 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
125 dma-channel@100 {
126 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
132 dma-channel@180 {
133 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
Dstx_gp3_8560.dts98 dma@21300 {
101 compatible = "fsl,mpc8560-dma", "fsl,eloplus-dma";
105 dma-channel@0 {
106 compatible = "fsl,mpc8560-dma-channel",
107 "fsl,eloplus-dma-channel";
113 dma-channel@80 {
114 compatible = "fsl,mpc8560-dma-channel",
115 "fsl,eloplus-dma-channel";
121 dma-channel@100 {
122 compatible = "fsl,mpc8560-dma-channel",
[all …]
Dxpedite5301.dts288 dma@c300 {
291 compatible = "fsl,mpc8572-dma", "fsl,eloplus-dma";
295 dma-channel@0 {
296 compatible = "fsl,mpc8572-dma-channel",
297 "fsl,eloplus-dma-channel";
303 dma-channel@80 {
304 compatible = "fsl,mpc8572-dma-channel",
305 "fsl,eloplus-dma-channel";
311 dma-channel@100 {
312 compatible = "fsl,mpc8572-dma-channel",
[all …]
Dxpedite5370.dts286 dma@c300 {
289 compatible = "fsl,mpc8572-dma", "fsl,eloplus-dma";
293 dma-channel@0 {
294 compatible = "fsl,mpc8572-dma-channel",
295 "fsl,eloplus-dma-channel";
301 dma-channel@80 {
302 compatible = "fsl,mpc8572-dma-channel",
303 "fsl,eloplus-dma-channel";
309 dma-channel@100 {
310 compatible = "fsl,mpc8572-dma-channel",
[all …]
Dtqm8541.dts109 dma@21300 {
112 compatible = "fsl,mpc8541-dma", "fsl,eloplus-dma";
116 dma-channel@0 {
117 compatible = "fsl,mpc8541-dma-channel",
118 "fsl,eloplus-dma-channel";
124 dma-channel@80 {
125 compatible = "fsl,mpc8541-dma-channel",
126 "fsl,eloplus-dma-channel";
132 dma-channel@100 {
133 compatible = "fsl,mpc8541-dma-channel",
[all …]
Dasp834x-redboot.dts121 dma@82a8 {
124 compatible = "fsl,mpc8347-dma", "fsl,elo-dma";
130 dma-channel@0 {
131 compatible = "fsl,mpc8347-dma-channel", "fsl,elo-dma-channel";
137 dma-channel@80 {
138 compatible = "fsl,mpc8347-dma-channel", "fsl,elo-dma-channel";
144 dma-channel@100 {
145 compatible = "fsl,mpc8347-dma-channel", "fsl,elo-dma-channel";
151 dma-channel@180 {
152 compatible = "fsl,mpc8347-dma-channel", "fsl,elo-dma-channel";
Dtqm8555.dts109 dma@21300 {
112 compatible = "fsl,mpc8555-dma", "fsl,eloplus-dma";
116 dma-channel@0 {
117 compatible = "fsl,mpc8555-dma-channel",
118 "fsl,eloplus-dma-channel";
124 dma-channel@80 {
125 compatible = "fsl,mpc8555-dma-channel",
126 "fsl,eloplus-dma-channel";
132 dma-channel@100 {
133 compatible = "fsl,mpc8555-dma-channel",
[all …]
Dtqm8540.dts110 dma@21300 {
113 compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
117 dma-channel@0 {
118 compatible = "fsl,mpc8540-dma-channel",
119 "fsl,eloplus-dma-channel";
125 dma-channel@80 {
126 compatible = "fsl,mpc8540-dma-channel",
127 "fsl,eloplus-dma-channel";
133 dma-channel@100 {
134 compatible = "fsl,mpc8540-dma-channel",
[all …]
Dxpedite5330.dts324 dma@c300 {
327 compatible = "fsl,mpc8572-dma", "fsl,eloplus-dma";
331 dma-channel@0 {
332 compatible = "fsl,mpc8572-dma-channel",
333 "fsl,eloplus-dma-channel";
339 dma-channel@80 {
340 compatible = "fsl,mpc8572-dma-channel",
341 "fsl,eloplus-dma-channel";
347 dma-channel@100 {
348 compatible = "fsl,mpc8572-dma-channel",
[all …]
Dxcalibur1501.dts308 dma@c300 {
311 compatible = "fsl,mpc8572-dma", "fsl,eloplus-dma";
315 dma-channel@0 {
316 compatible = "fsl,mpc8572-dma-channel",
317 "fsl,eloplus-dma-channel";
323 dma-channel@80 {
324 compatible = "fsl,mpc8572-dma-channel",
325 "fsl,eloplus-dma-channel";
331 dma-channel@100 {
332 compatible = "fsl,mpc8572-dma-channel",
[all …]
Dsbc8548-post.dtsi74 dma@21300 {
77 compatible = "fsl,mpc8548-dma", "fsl,eloplus-dma";
81 dma-channel@0 {
82 compatible = "fsl,mpc8548-dma-channel",
83 "fsl,eloplus-dma-channel";
89 dma-channel@80 {
90 compatible = "fsl,mpc8548-dma-channel",
91 "fsl,eloplus-dma-channel";
97 dma-channel@100 {
98 compatible = "fsl,mpc8548-dma-channel",
[all …]
Dsbc8349.dts98 dma@82a8 {
101 compatible = "fsl,mpc8349-dma", "fsl,elo-dma";
107 dma-channel@0 {
108 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
114 dma-channel@80 {
115 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
121 dma-channel@100 {
122 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
128 dma-channel@180 {
129 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
Dmpc832x_rdb.dts103 dma@82a8 {
106 compatible = "fsl,mpc8323-dma", "fsl,elo-dma";
112 dma-channel@0 {
113 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
119 dma-channel@80 {
120 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
126 dma-channel@100 {
127 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
133 dma-channel@180 {
134 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
Dksi8560.dts99 dma@21300 {
102 compatible = "fsl,mpc8560-dma", "fsl,eloplus-dma";
106 dma-channel@0 {
107 compatible = "fsl,mpc8560-dma-channel",
108 "fsl,eloplus-dma-channel";
114 dma-channel@80 {
115 compatible = "fsl,mpc8560-dma-channel",
116 "fsl,eloplus-dma-channel";
122 dma-channel@100 {
123 compatible = "fsl,mpc8560-dma-channel",
[all …]
/linux-4.4.14/arch/m68k/include/asm/
Ddvma.h131 #define DMA_ISBROKEN(dma) ((dma)->revision == dvmarev1) argument
132 #define DMA_ISESC1(dma) ((dma)->revision == dvmaesc1) argument
214 #define DMA_IRQ_ENTRY(dma, dregs) do { \ argument
215 if(DMA_ISBROKEN(dma)) DMA_INTSOFF(dregs); \
218 #define DMA_IRQ_EXIT(dma, dregs) do { \ argument
219 if(DMA_ISBROKEN(dma)) DMA_INTSON(dregs); \
223 #define DMA_RESET(dma) do { \ argument
224 struct sparc_dma_registers *regs = dma->regs; \
233 if(dma->revision>dvmarev1) regs->cond_reg |= DMA_3CLKS; \
234 dma->running = 0; \
/linux-4.4.14/drivers/spi/
Dspi-topcliff-pch.c192 struct pch_spi_dma_ctrl dma; member
764 rx_dma_buf = data->dma.rx_buf_virt; in pch_spi_copy_rx_data_for_dma()
770 rx_dma_sbuf = data->dma.rx_buf_virt; in pch_spi_copy_rx_data_for_dma()
779 struct pch_spi_dma_ctrl *dma; in pch_spi_start_transfer() local
783 dma = &data->dma; in pch_spi_start_transfer()
803 dma_sync_sg_for_cpu(&data->master->dev, dma->sg_rx_p, dma->nent, in pch_spi_start_transfer()
806 dma_sync_sg_for_cpu(&data->master->dev, dma->sg_tx_p, dma->nent, in pch_spi_start_transfer()
808 memset(data->dma.tx_buf_virt, 0, PAGE_SIZE); in pch_spi_start_transfer()
810 async_tx_ack(dma->desc_rx); in pch_spi_start_transfer()
811 async_tx_ack(dma->desc_tx); in pch_spi_start_transfer()
[all …]
/linux-4.4.14/sound/soc/fsl/
Dfsl_dma.c390 struct dma_object *dma = in fsl_dma_open() local
415 if (dma->assigned) { in fsl_dma_open()
427 dma_private->ssi_sxx_phys = dma->ssi_stx_phys; in fsl_dma_open()
429 dma_private->ssi_sxx_phys = dma->ssi_srx_phys; in fsl_dma_open()
431 dma_private->ssi_fifo_depth = dma->ssi_fifo_depth; in fsl_dma_open()
432 dma_private->dma_channel = dma->channel; in fsl_dma_open()
433 dma_private->irq = dma->irq; in fsl_dma_open()
448 dma->assigned = true; in fsl_dma_open()
804 struct dma_object *dma = in fsl_dma_close() local
817 dma->assigned = false; in fsl_dma_close()
[all …]
/linux-4.4.14/drivers/crypto/ccp/
Dccp-ops.c50 struct ccp_dma_info dma; member
75 struct ccp_dma_info dma; member
272 cr[1] = op->src.u.dma.length - 1; in ccp_perform_aes()
273 cr[2] = ccp_addr_lo(&op->src.u.dma); in ccp_perform_aes()
276 | ccp_addr_hi(&op->src.u.dma); in ccp_perform_aes()
277 cr[4] = ccp_addr_lo(&op->dst.u.dma); in ccp_perform_aes()
279 | ccp_addr_hi(&op->dst.u.dma); in ccp_perform_aes()
302 cr[1] = op->src.u.dma.length - 1; in ccp_perform_xts_aes()
303 cr[2] = ccp_addr_lo(&op->src.u.dma); in ccp_perform_xts_aes()
306 | ccp_addr_hi(&op->src.u.dma); in ccp_perform_xts_aes()
[all …]
/linux-4.4.14/drivers/media/platform/s5p-mfc/
Ds5p_mfc_opr.c45 b->virt = dma_alloc_coherent(dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_priv_buf()
52 if (b->dma < base) { in s5p_mfc_alloc_priv_buf()
55 &b->dma, &base); in s5p_mfc_alloc_priv_buf()
56 dma_free_coherent(dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf()
60 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); in s5p_mfc_alloc_priv_buf()
68 dma_free_coherent(dev, b->size, b->virt, b->dma); in s5p_mfc_release_priv_buf()
70 b->dma = 0; in s5p_mfc_release_priv_buf()
/linux-4.4.14/mm/
Ddmapool.c59 dma_addr_t dma; member
230 &page->dma, mem_flags); in pool_alloc_page()
252 dma_addr_t dma = page->dma; in pool_free_page() local
257 dma_free_coherent(pool->dev, pool->allocation, page->vaddr, dma); in pool_free_page()
352 *handle = offset + page->dma; in dma_pool_alloc()
390 static struct dma_page *pool_find_page(struct dma_pool *pool, dma_addr_t dma) in pool_find_page() argument
395 if (dma < page->dma) in pool_find_page()
397 if ((dma - page->dma) < pool->allocation) in pool_find_page()
412 void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma) in dma_pool_free() argument
419 page = pool_find_page(pool, dma); in dma_pool_free()
[all …]
/linux-4.4.14/arch/sh/drivers/dma/
DMakefile5 obj-$(CONFIG_SH_DMA_API) += dma-sh.o dma-api.o dma-sysfs.o
6 obj-$(CONFIG_PVR2_DMA) += dma-pvr2.o
7 obj-$(CONFIG_G2_DMA) += dma-g2.o
/linux-4.4.14/arch/tile/kernel/
Dprocess.c285 static void save_tile_dma_state(struct tile_dma_state *dma) in save_tile_dma_state() argument
306 dma->src = __insn_mfspr(SPR_DMA_SRC_ADDR); in save_tile_dma_state()
307 dma->src_chunk = __insn_mfspr(SPR_DMA_SRC_CHUNK_ADDR); in save_tile_dma_state()
308 dma->dest = __insn_mfspr(SPR_DMA_DST_ADDR); in save_tile_dma_state()
309 dma->dest_chunk = __insn_mfspr(SPR_DMA_DST_CHUNK_ADDR); in save_tile_dma_state()
310 dma->strides = __insn_mfspr(SPR_DMA_STRIDE); in save_tile_dma_state()
311 dma->chunk_size = __insn_mfspr(SPR_DMA_CHUNK_SIZE); in save_tile_dma_state()
312 dma->byte = __insn_mfspr(SPR_DMA_BYTE); in save_tile_dma_state()
313 dma->status = (state & SPR_DMA_STATUS__RUNNING_MASK) | in save_tile_dma_state()
320 const struct tile_dma_state *dma = &t->tile_dma_state; in restore_tile_dma_state() local
[all …]
/linux-4.4.14/drivers/usb/musb/
Dmusb_gadget.c60 struct dma_controller *dma = musb->dma_controller; in map_dma_buffer() local
64 if (!is_dma_capable() || !musb_ep->dma) in map_dma_buffer()
71 if (dma->is_compatible) in map_dma_buffer()
72 compatible = dma->is_compatible(musb_ep->dma, in map_dma_buffer()
78 if (request->request.dma == DMA_ADDR_INVALID) { in map_dma_buffer()
93 request->request.dma = dma_addr; in map_dma_buffer()
97 request->request.dma, in map_dma_buffer()
112 if (!is_buffer_mapped(request) || !musb_ep->dma) in unmap_dma_buffer()
115 if (request->request.dma == DMA_ADDR_INVALID) { in unmap_dma_buffer()
122 request->request.dma, in unmap_dma_buffer()
[all …]
Dmusb_host.c390 struct dma_controller *dma = musb->dma_controller; in musb_advance_schedule() local
395 dma->channel_release(ep->rx_channel); in musb_advance_schedule()
401 dma->channel_release(ep->tx_channel); in musb_advance_schedule()
630 static int musb_tx_dma_set_mode_mentor(struct dma_controller *dma, in musb_tx_dma_set_mode_mentor() argument
671 static int musb_tx_dma_set_mode_cppi_tusb(struct dma_controller *dma, in musb_tx_dma_set_mode_cppi_tusb() argument
695 static bool musb_tx_dma_program(struct dma_controller *dma, in musb_tx_dma_program() argument
705 res = musb_tx_dma_set_mode_mentor(dma, hw_ep, qh, urb, in musb_tx_dma_program()
708 res = musb_tx_dma_set_mode_cppi_tusb(dma, hw_ep, qh, urb, in musb_tx_dma_program()
721 if (!dma->channel_program(channel, pkt_size, mode, in musb_tx_dma_program()
726 dma->channel_release(channel); in musb_tx_dma_program()
[all …]
/linux-4.4.14/arch/arm/mach-footbridge/
Ddma.c24 static int fb_dma_request(unsigned int chan, dma_t *dma)
29 static void fb_dma_enable(unsigned int chan, dma_t *dma)
33 static void fb_dma_disable(unsigned int chan, dma_t *dma)
48 dma[_DC21285_DMA(0)].d_ops = &fb_dma_ops; in fb_dma_init()
49 dma[_DC21285_DMA(1)].d_ops = &fb_dma_ops; in fb_dma_init()
/linux-4.4.14/drivers/net/wan/
Dhostess_sv11.c44 static int dma; variable
86 switch (dma) { in hostess_open()
103 switch (dma) { in hostess_open()
137 switch (dma) { in hostess_close()
234 if (dma) { in sv11_init()
245 if (dma == 1) in sv11_init()
296 if (dma == 1) in sv11_init()
299 if (dma) in sv11_init()
315 if (dma) { in sv11_shutdown()
316 if (dma == 1) in sv11_shutdown()
[all …]
/linux-4.4.14/drivers/mmc/host/
Dwbsd.c211 if (host->dma >= 0) { in wbsd_request_end()
216 disable_dma(host->dma); in wbsd_request_end()
217 clear_dma_ff(host->dma); in wbsd_request_end()
605 if (host->dma >= 0) { in wbsd_prepare_data()
626 disable_dma(host->dma); in wbsd_prepare_data()
627 clear_dma_ff(host->dma); in wbsd_prepare_data()
629 set_dma_mode(host->dma, DMA_MODE_READ & ~0x40); in wbsd_prepare_data()
631 set_dma_mode(host->dma, DMA_MODE_WRITE & ~0x40); in wbsd_prepare_data()
632 set_dma_addr(host->dma, host->dma_addr); in wbsd_prepare_data()
633 set_dma_count(host->dma, size); in wbsd_prepare_data()
[all …]
/linux-4.4.14/drivers/net/can/
Dgrcan.c259 struct grcan_dma dma; member
505 struct grcan_dma *dma = &priv->dma; in catch_up_echo_skb() local
531 dma->tx.size); in catch_up_echo_skb()
541 struct grcan_dma *dma = &priv->dma; in grcan_lost_one_shot_frame() local
562 txrd = grcan_ring_add(txrd, GRCAN_MSG_SIZE, dma->tx.size); in grcan_lost_one_shot_frame()
580 struct grcan_dma *dma = &priv->dma; in grcan_err() local
699 if (grcan_txspace(dma->tx.size, txwr, in grcan_err()
867 if (grcan_txspace(priv->dma.tx.size, txwr, priv->eskbp) && in grcan_running_reset()
929 struct grcan_dma *dma = &priv->dma; in grcan_free_dma_buffers() local
931 dma_free_coherent(&dev->dev, dma->base_size, dma->base_buf, in grcan_free_dma_buffers()
[all …]
/linux-4.4.14/drivers/usb/core/
Dbuffer.c115 dma_addr_t *dma in hcd_buffer_alloc() argument
124 *dma = ~(dma_addr_t) 0; in hcd_buffer_alloc()
130 return dma_pool_alloc(hcd->pool[i], mem_flags, dma); in hcd_buffer_alloc()
132 return dma_alloc_coherent(hcd->self.controller, size, dma, mem_flags); in hcd_buffer_alloc()
139 dma_addr_t dma in hcd_buffer_free() argument
156 dma_pool_free(hcd->pool[i], addr, dma); in hcd_buffer_free()
160 dma_free_coherent(hcd->self.controller, size, addr, dma); in hcd_buffer_free()
/linux-4.4.14/drivers/net/ethernet/amd/
Dlance.c250 int dma; member
318 static int dma[MAX_CARDS]; variable
322 module_param_array(dma, int, NULL, 0);
326 MODULE_PARM_DESC(dma, "LANCE/PCnet ISA DMA channel (ignored for some devices)");
347 dev->dma = dma[this_dev]; in init_module()
363 if (dev->dma != 4) in cleanup_card()
364 free_dma(dev->dma); in cleanup_card()
588 dev->dma = 4; /* Native bus-master, no DMA channel needed. */ in lance_probe1()
594 dev->dma = dma_tbl[(port_val >> 4) & 3]; in lance_probe1()
596 printk(" HP Vectra IRQ %d DMA %d.\n", dev->irq, dev->dma); in lance_probe1()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/soc/ti/
Dkeystone-navigator-dma.txt3 This document explains the device tree bindings for the packet dma
4 on keystone devices. The Keystone Navigator DMA driver sets up the dma
8 CRYPTO Engines etc has its own instance of dma hardware. QMSS has also
27 - compatible: Should be "ti,keystone-navigator-dma"
28 - clocks: phandle to dma instances clocks. The clock handles can be as
29 many as the dma instances. The order should be maintained as per
30 the dma instances.
42 - reg: Should contain register location and length of the following dma
59 - ti,rx-retry-timeout: Number of dma cycles to wait before retry on buffer
65 compatible = "ti,keystone-navigator-dma";
[all …]
/linux-4.4.14/drivers/dma/hsu/
Dhsu.c396 INIT_LIST_HEAD(&hsu->dma.channels); in hsu_dma_probe()
401 vchan_init(&hsuc->vchan, &hsu->dma); in hsu_dma_probe()
407 dma_cap_set(DMA_SLAVE, hsu->dma.cap_mask); in hsu_dma_probe()
408 dma_cap_set(DMA_PRIVATE, hsu->dma.cap_mask); in hsu_dma_probe()
410 hsu->dma.device_free_chan_resources = hsu_dma_free_chan_resources; in hsu_dma_probe()
412 hsu->dma.device_prep_slave_sg = hsu_dma_prep_slave_sg; in hsu_dma_probe()
414 hsu->dma.device_issue_pending = hsu_dma_issue_pending; in hsu_dma_probe()
415 hsu->dma.device_tx_status = hsu_dma_tx_status; in hsu_dma_probe()
417 hsu->dma.device_config = hsu_dma_slave_config; in hsu_dma_probe()
418 hsu->dma.device_pause = hsu_dma_pause; in hsu_dma_probe()
[all …]
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-alsa.c270 struct saa7134_dmasound *dma = &dev->dmasound; in saa7134_alsa_dma_init() local
274 dma->vaddr = vmalloc_32(nr_pages << PAGE_SHIFT); in saa7134_alsa_dma_init()
275 if (NULL == dma->vaddr) { in saa7134_alsa_dma_init()
281 (unsigned long)dma->vaddr, in saa7134_alsa_dma_init()
284 memset(dma->vaddr, 0, nr_pages << PAGE_SHIFT); in saa7134_alsa_dma_init()
285 dma->nr_pages = nr_pages; in saa7134_alsa_dma_init()
287 dma->sglist = vzalloc(dma->nr_pages * sizeof(*dma->sglist)); in saa7134_alsa_dma_init()
288 if (NULL == dma->sglist) in saa7134_alsa_dma_init()
291 sg_init_table(dma->sglist, dma->nr_pages); in saa7134_alsa_dma_init()
292 for (i = 0; i < dma->nr_pages; i++) { in saa7134_alsa_dma_init()
[all …]
/linux-4.4.14/arch/arm/mach-davinci/
Dsram.c26 void *sram_alloc(size_t len, dma_addr_t *dma) in sram_alloc() argument
30 if (dma) in sram_alloc()
31 *dma = 0; in sram_alloc()
32 if (!sram_pool || (dma && !dma_base)) in sram_alloc()
35 return gen_pool_dma_alloc(sram_pool, len, dma); in sram_alloc()
/linux-4.4.14/drivers/pnp/pnpacpi/
Drsparser.c181 struct acpi_resource_dma *dma; in pnpacpi_allocated_resource() local
231 dma = &res->data.dma; in pnpacpi_allocated_resource()
232 if (dma->channel_count > 0 && dma->channels[0] != (u8) -1) in pnpacpi_allocated_resource()
233 flags = dma_flags(dev, dma->type, dma->bus_master, in pnpacpi_allocated_resource()
234 dma->transfer); in pnpacpi_allocated_resource()
237 pnp_add_dma_resource(dev, dma->channels[0], flags); in pnpacpi_allocated_resource()
461 pnpacpi_parse_dma_option(dev, option_flags, &res->data.dma); in pnpacpi_option_resource()
713 struct acpi_resource_dma *dma = &resource->data.dma; in pnpacpi_encode_dma() local
716 dma->channel_count = 0; in pnpacpi_encode_dma()
725 dma->type = ACPI_TYPE_A; in pnpacpi_encode_dma()
[all …]
/linux-4.4.14/arch/powerpc/platforms/chrp/
Dpci.c213 const unsigned int *dma; in chrp_find_bridges() local
290 dma = of_get_property(dev, "system-dma-base", in chrp_find_bridges()
292 if (dma && len >= sizeof(*dma)) { in chrp_find_bridges()
293 dma = (unsigned int *) in chrp_find_bridges()
294 (((unsigned long)dma) + in chrp_find_bridges()
295 len - sizeof(*dma)); in chrp_find_bridges()
296 pci_dram_offset = *dma; in chrp_find_bridges()
309 dma = of_get_property(dev, "ibm,dma-ranges", &len); in chrp_find_bridges()
310 if (index == 0 && dma != NULL && len >= 6 * sizeof(*dma)) { in chrp_find_bridges()
311 pci_dram_offset = dma[2] - dma[3]; in chrp_find_bridges()
/linux-4.4.14/drivers/pnp/
Dresource.c82 struct pnp_dma *dma; in pnp_register_dma_resource() local
88 dma = &option->u.dma; in pnp_register_dma_resource()
89 dma->map = map; in pnp_register_dma_resource()
90 dma->flags = flags; in pnp_register_dma_resource()
420 resource_size_t *dma; in pnp_check_dma() local
422 dma = &res->start; in pnp_check_dma()
429 if (*dma == 4 || *dma > 7) in pnp_check_dma()
434 if (pnp_reserve_dma[i] == *dma) in pnp_check_dma()
441 if (tres->start == *dma) in pnp_check_dma()
449 if (request_dma(*dma, "pnp")) in pnp_check_dma()
[all …]
Dsupport.c111 struct pnp_dma *dma; in dbg_pnp_show_option() local
161 dma = &option->u.dma; in dbg_pnp_show_option()
163 if (!dma->map) in dbg_pnp_show_option()
168 if (dma->map & (1 << i)) in dbg_pnp_show_option()
174 "flags %#x", dma->map, dma->flags); in dbg_pnp_show_option()
/linux-4.4.14/drivers/acpi/acpica/
Drsirq.c261 {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET(data.dma.transfer),
262 AML_OFFSET(dma.flags),
265 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.dma.bus_master),
266 AML_OFFSET(dma.flags),
269 {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET(data.dma.type),
270 AML_OFFSET(dma.flags),
275 {ACPI_RSC_BITMASK, ACPI_RS_OFFSET(data.dma.channels[0]),
276 AML_OFFSET(dma.dma_channel_mask),
277 ACPI_RS_OFFSET(data.dma.channel_count)}
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dnv04.c80 struct nvkm_memory *dma; in nv04_mmu_oneinit() local
90 16, true, &dma); in nv04_mmu_oneinit()
91 mmu->vm->pgt[0].mem[0] = dma; in nv04_mmu_oneinit()
96 nvkm_kmap(dma); in nv04_mmu_oneinit()
97 nvkm_wo32(dma, 0x00000, 0x0002103d); /* PCI, RW, PT, !LN */ in nv04_mmu_oneinit()
98 nvkm_wo32(dma, 0x00004, NV04_PDMA_SIZE - 1); in nv04_mmu_oneinit()
99 nvkm_done(dma); in nv04_mmu_oneinit()
/linux-4.4.14/sound/atmel/
Dabdac.c94 struct atmel_abdac_dma dma; member
121 struct dma_chan *chan = dac->dma.chan; in atmel_abdac_prepare_dma()
148 dac->dma.cdesc = cdesc; in atmel_abdac_prepare_dma()
208 dw_dma_cyclic_free(dac->dma.chan); in atmel_abdac_hw_params()
217 dw_dma_cyclic_free(dac->dma.chan); in atmel_abdac_hw_free()
246 retval = dw_dma_cyclic_start(dac->dma.chan); in atmel_abdac_trigger()
254 dw_dma_cyclic_stop(dac->dma.chan); in atmel_abdac_trigger()
275 bytes = dw_dma_get_src_addr(dac->dma.chan); in atmel_abdac_pointer()
479 dac->dma.chan = dma_request_channel(mask, filter, &pdata->dws); in atmel_abdac_probe()
480 if (dac->dma.chan) { in atmel_abdac_probe()
[all …]
Dac97c.c66 struct atmel_ac97c_dma dma; member
126 chan = chip->dma.tx_chan; in atmel_ac97c_prepare_dma()
128 chan = chip->dma.rx_chan; in atmel_ac97c_prepare_dma()
262 dw_dma_cyclic_free(chip->dma.tx_chan); in atmel_ac97c_playback_hw_params()
286 dw_dma_cyclic_free(chip->dma.rx_chan); in atmel_ac97c_capture_hw_params()
302 dw_dma_cyclic_free(chip->dma.tx_chan); in atmel_ac97c_playback_hw_free()
312 dw_dma_cyclic_free(chip->dma.rx_chan); in atmel_ac97c_capture_hw_free()
513 retval = dw_dma_cyclic_start(chip->dma.tx_chan); in atmel_ac97c_playback_trigger()
525 dw_dma_cyclic_stop(chip->dma.tx_chan); in atmel_ac97c_playback_trigger()
558 retval = dw_dma_cyclic_start(chip->dma.rx_chan); in atmel_ac97c_capture_trigger()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/spi/
Dspi_pl022.txt20 in bindings/dma/dma.txt
21 - dma-names: Names for the dma channels, if present. There must be at
33 - pl022,com-mode : polling, interrupt or dma
49 dmas = <&dma-controller 23 1>,
50 <&dma-controller 24 0>;
51 dma-names = "rx", "tx";
/linux-4.4.14/arch/mips/netlogic/xlr/
Dfmn-config.c93 total_credits += cfg->dma.credit_config[bkt]; in check_credit_distribution()
185 struct xlr_fmn_info *dma = &xlr_board_fmn_config.dma; in xlr_board_info_setup() local
199 setup_fmn_cc(dma, FMN_STNID_DMA_0, in xlr_board_info_setup()
209 setup_fmn_cc(dma, FMN_STNID_DMA_0, in xlr_board_info_setup()
226 setup_fmn_cc(dma, FMN_STNID_DMA_0, in xlr_board_info_setup()
239 setup_fmn_cc(dma, FMN_STNID_DMA_0, in xlr_board_info_setup()
251 setup_fmn_cc(dma, FMN_STNID_DMA_0, in xlr_board_info_setup()
263 setup_fmn_cc(dma, FMN_STNID_DMA_0, in xlr_board_info_setup()
277 setup_fmn_cc(dma, FMN_STNID_DMA_0, in xlr_board_info_setup()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dtxrx.c130 _d->dma.status = TX_DMA_STATUS_DU; in wil_vring_alloc()
142 dma_addr_t pa = wil_desc_addr(&d->dma.addr); in wil_txdesc_unmap()
143 u16 dmalen = le16_to_cpu(d->dma.length); in wil_txdesc_unmap()
198 pa = wil_desc_addr(&d->dma.addr); in wil_vring_free()
199 dmalen = le16_to_cpu(d->dma.length); in wil_vring_free()
239 d->dma.d0 = RX_DMA_D0_CMD_DMA_RT | RX_DMA_D0_CMD_DMA_IT; in wil_vring_alloc_skb()
240 wil_desc_addr_set(&d->dma.addr, pa); in wil_vring_alloc_skb()
244 d->dma.status = 0; /* BIT(0) should be 0 for HW_OWNED */ in wil_vring_alloc_skb()
245 d->dma.length = cpu_to_le16(sz); in wil_vring_alloc_skb()
296 if (d->dma.status & RX_DMA_STATUS_PHY_INFO) { in wil_rx_add_radiotap_header()
[all …]
/linux-4.4.14/drivers/scsi/
Dmac53c94.c46 struct dbdma_regs __iomem *dma; member
108 struct dbdma_regs __iomem *dma = state->dma; in DEF_SCSI_QCMD() local
113 writel((RUN|PAUSE|FLUSH|WAKE) << 16, &dma->control); in DEF_SCSI_QCMD()
128 struct dbdma_regs __iomem *dma = state->dma; in mac53c94_init() local
139 writel((RUN|PAUSE|FLUSH|WAKE) << 16, &dma->control); in mac53c94_init()
197 struct dbdma_regs __iomem *dma = state->dma; in mac53c94_interrupt() local
219 writel(RUN << 16, &dma->control); /* stop dma */ in mac53c94_interrupt()
275 writel(virt_to_phys(state->dma_cmds), &dma->cmdptr); in mac53c94_interrupt()
276 writel((RUN << 16) | RUN, &dma->control); in mac53c94_interrupt()
314 writel(RUN << 16, &dma->control); /* stop dma */ in mac53c94_interrupt()
[all …]
Dsgiwd93.c36 dma_addr_t dma; member
127 hregs->ndptr = hdata->dma; in dma_setup()
179 dma_addr_t dma = hdata->dma; in init_hpc_chain() local
185 hcp->desc.pnext = (u32) (dma + sizeof(struct hpc_chunk)); in init_hpc_chain()
188 dma += sizeof(struct hpc_chunk); in init_hpc_chain()
192 hcp->desc.pnext = hdata->dma; in init_hpc_chain()
253 &hdata->dma, GFP_KERNEL); in sgiwd93_probe()
292 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma); in sgiwd93_probe()
308 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma); in sgiwd93_remove()
/linux-4.4.14/Documentation/sound/oss/
Doss-parameters.txt16 Format: <io>,<irq>,<dma>,<dma2>,<type>
19 Format: <io>,<irq>,<dma>,<mss_io>,<mpu_io>,<mpu_irq>
31 <io>,<irq>,<dma>,<dma16>,<sb_io>,<sb_irq>,<sb_dma>,<sb_dma16>
38 Format: <io>,<irq>,<dma>,<mpu_io>,<mpu_irq>
42 <io>,<irq>,<dma>,<dma2>,<sb_io>,<sb_irq>,<sb_dma>,<mpu_io>,<mpu_irq>
51 Format: <io>,<irq>,<dma>,<dma2>
/linux-4.4.14/drivers/usb/gadget/udc/
Dnet2280.c324 if (!ep->dma) { /* pio, per-packet */ in net2280_enable()
353 ep->dma ? "dma" : "pio", max); in net2280_enable()
395 if (ep->dma) { in ep_reset_228x()
396 writel(0, &ep->dma->dmactl); in ep_reset_228x()
400 &ep->dma->dmastat); in ep_reset_228x()
471 if (ep->dma) { in ep_reset_338x()
472 writel(0, &ep->dma->dmactl); in ep_reset_338x()
478 &ep->dma->dmastat); in ep_reset_338x()
480 dmastat = readl(&ep->dma->dmastat); in ep_reset_338x()
484 writel(0x5a, &ep->dma->dmastat); in ep_reset_338x()
[all …]
/linux-4.4.14/drivers/media/pci/bt8xx/
Dbttv-risc.c480 btv->cvbi ? (unsigned long long)btv->cvbi->top.dma : 0, in bttv_set_dma()
481 btv->curr.top ? (unsigned long long)btv->curr.top->top.dma : 0, in bttv_set_dma()
482 btv->cvbi ? (unsigned long long)btv->cvbi->bottom.dma : 0, in bttv_set_dma()
483 btv->curr.bottom ? (unsigned long long)btv->curr.bottom->bottom.dma : 0); in bttv_set_dma()
502 btwrite(btv->main.dma, BT848_RISC_STRT_ADD); in bttv_set_dma()
522 btv->c.nr, (unsigned long long)btv->main.dma); in bttv_risc_init_main()
528 btv->main.cpu[3] = cpu_to_le32(btv->main.dma + (4<<2)); in bttv_risc_init_main()
532 btv->main.cpu[5] = cpu_to_le32(btv->main.dma + (6<<2)); in bttv_risc_init_main()
534 btv->main.cpu[7] = cpu_to_le32(btv->main.dma + (8<<2)); in bttv_risc_init_main()
542 btv->main.cpu[11] = cpu_to_le32(btv->main.dma + (12<<2)); in bttv_risc_init_main()
[all …]
/linux-4.4.14/sound/soc/intel/common/
Dsst-firmware.c69 struct sst_dma *dma = sst->dma; in sst_dsp_dma_copy() local
71 if (dma->ch == NULL) { in sst_dsp_dma_copy()
79 desc = dma->ch->device->device_prep_dma_memcpy(dma->ch, dest_addr, in sst_dsp_dma_copy()
213 struct sst_dma *dma = dsp->dma; in sst_dsp_dma_get_channel() local
222 dma->ch = dma_request_channel(mask, dma_chan_filter, dsp); in sst_dsp_dma_get_channel()
223 if (dma->ch == NULL) { in sst_dsp_dma_get_channel()
234 ret = dmaengine_slave_config(dma->ch, &slave); in sst_dsp_dma_get_channel()
238 dma_release_channel(dma->ch); in sst_dsp_dma_get_channel()
239 dma->ch = NULL; in sst_dsp_dma_get_channel()
248 struct sst_dma *dma = dsp->dma; in sst_dsp_dma_put_channel() local
[all …]
/linux-4.4.14/Documentation/DocBook/
Dz8530book.xml.db4 API-z8530-sync-dma-open
5 API-z8530-sync-dma-close
26 API-z8530-dma-rx
27 API-z8530-dma-tx
28 API-z8530-dma-status
/linux-4.4.14/Documentation/devicetree/bindings/ata/
Dpata-arasan.txt26 - dmas: one DMA channel, as described in bindings/dma/dma.txt
28 - dma-names: the corresponding channel name, must be "data"
37 dmas = <&dma-controller 23>;
38 dma-names = "data";
/linux-4.4.14/drivers/parport/
Dparport_pc.c100 int dma; member
619 disable_dma(port->dma); in parport_pc_fifo_write_block_dma()
620 clear_dma_ff(port->dma); in parport_pc_fifo_write_block_dma()
621 set_dma_mode(port->dma, DMA_MODE_WRITE); in parport_pc_fifo_write_block_dma()
622 set_dma_addr(port->dma, dma_addr); in parport_pc_fifo_write_block_dma()
623 set_dma_count(port->dma, count); in parport_pc_fifo_write_block_dma()
631 enable_dma(port->dma); in parport_pc_fifo_write_block_dma()
659 disable_dma(port->dma); in parport_pc_fifo_write_block_dma()
660 clear_dma_ff(port->dma); in parport_pc_fifo_write_block_dma()
661 count = get_dma_residue(port->dma); in parport_pc_fifo_write_block_dma()
[all …]
Dparport_gsc.c237 int dma, struct parisc_device *padev) in parport_gsc_probe_port() argument
264 p->dma = dma; in parport_gsc_probe_port()
298 if (p->dma == PARPORT_DMA_AUTO) { in parport_gsc_probe_port()
299 p->dma = PARPORT_DMA_NONE; in parport_gsc_probe_port()
302 if (p->dma == PARPORT_DMA_AUTO) /* To use DMA, giving the irq in parport_gsc_probe_port()
304 p->dma = PARPORT_DMA_NONE; in parport_gsc_probe_port()
327 p->dma = PARPORT_DMA_NONE; in parport_gsc_probe_port()
391 if (p->dma != PARPORT_DMA_NONE) in parport_remove_chip()
392 free_dma(p->dma); in parport_remove_chip()
/linux-4.4.14/arch/arm/mach-imx/
Dmach-imx27_visstrim_m10.c248 int dma; in visstrim_analog_camera_init() local
261 dma = dma_declare_coherent_memory(&pdev->dev, in visstrim_analog_camera_init()
265 if (!(dma & DMA_MEMORY_MAP)) in visstrim_analog_camera_init()
447 int dma; in visstrim_coda_init() local
450 dma = dma_declare_coherent_memory(&pdev->dev, in visstrim_coda_init()
455 if (!(dma & DMA_MEMORY_MAP)) in visstrim_coda_init()
469 int dma; in visstrim_deinterlace_init() local
473 dma = dma_declare_coherent_memory(&pdev->dev, in visstrim_deinterlace_init()
478 if (!(dma & DMA_MEMORY_MAP)) in visstrim_deinterlace_init()
486 int dma; in visstrim_emmaprp_init() local
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dbase.c91 .dma = nv04_dma_new,
112 .dma = nv04_dma_new,
134 .dma = nv04_dma_new,
154 .dma = nv04_dma_new,
176 .dma = nv04_dma_new,
198 .dma = nv04_dma_new,
220 .dma = nv04_dma_new,
242 .dma = nv04_dma_new,
264 .dma = nv04_dma_new,
286 .dma = nv04_dma_new,
[all …]
/linux-4.4.14/include/linux/soc/ti/
Dknav_qmss.h75 int knav_queue_push(void *qhandle, dma_addr_t dma,
85 dma_addr_t *dma, unsigned *dma_sz);
86 void *knav_pool_desc_unmap(void *ph, dma_addr_t dma, unsigned dma_sz);
88 void *knav_pool_desc_dma_to_virt(void *ph, dma_addr_t dma);
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Ddma.c209 struct dma_pub dma; /* exported structure */ member
355 dmactrlflags = di->dma.dmactrlflags; in _dma_ctrlflags()
378 di->dma.dmactrlflags = dmactrlflags; in _dma_ctrlflags()
583 di->dma.dmactrlflags, ntxd, nrxd, rxbufsize, in dma_attach()
739 if (di->dma.dmactrlflags & DMA_CTRL_PEN) { in dma64_dd_upd()
749 struct dma_info *di = container_of(pub, struct dma_info, dma); in dma_detach()
824 uint dmactrlflags = di->dma.dmactrlflags; in _dma_rxenable()
845 struct dma_info *di = container_of(pub, struct dma_info, dma); in dma_rxinit()
927 struct dma_info *di = container_of(pub, struct dma_info, dma); in dma_rx()
975 if ((di->dma.dmactrlflags & DMA_CTRL_RXMULTI) == 0) { in dma_rx()
[all …]
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dfimc-isp-video.c91 struct param_dma_output *dma = __get_isp_dma2(is); in isp_video_capture_start_streaming() local
100 dma->cmd = DMA_OUTPUT_COMMAND_ENABLE; in isp_video_capture_start_streaming()
101 dma->notify_dma_done = DMA_OUTPUT_NOTIFY_DMA_DONE_ENABLE; in isp_video_capture_start_streaming()
102 dma->buffer_address = is->is_dma_p_region + in isp_video_capture_start_streaming()
104 dma->buffer_number = video->reqbufs_count; in isp_video_capture_start_streaming()
105 dma->dma_out_mask = video->buf_mask; in isp_video_capture_start_streaming()
110 dma->buffer_address); in isp_video_capture_start_streaming()
133 struct param_dma_output *dma = __get_isp_dma2(is); in isp_video_capture_stop_streaming() local
140 dma->cmd = DMA_OUTPUT_COMMAND_DISABLE; in isp_video_capture_stop_streaming()
141 dma->notify_dma_done = DMA_OUTPUT_NOTIFY_DMA_DONE_DISABLE; in isp_video_capture_stop_streaming()
[all …]
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_crtc.c30 enum mdp4_dma dma; member
250 enum mdp4_dma dma = mdp4_crtc->dma; in mdp4_crtc_mode_set_nofb() local
268 mdp4_write(mdp4_kms, REG_MDP4_DMA_SRC_SIZE(dma), in mdp4_crtc_mode_set_nofb()
273 mdp4_write(mdp4_kms, REG_MDP4_DMA_SRC_BASE(dma), 0); in mdp4_crtc_mode_set_nofb()
274 mdp4_write(mdp4_kms, REG_MDP4_DMA_SRC_STRIDE(dma), 0); in mdp4_crtc_mode_set_nofb()
275 mdp4_write(mdp4_kms, REG_MDP4_DMA_DST_SIZE(dma), in mdp4_crtc_mode_set_nofb()
287 if (dma == DMA_E) { in mdp4_crtc_mode_set_nofb()
383 enum mdp4_dma dma = mdp4_crtc->dma; in update_cursor() local
398 mdp4_write(mdp4_kms, REG_MDP4_DMA_CURSOR_SIZE(dma), in update_cursor()
401 mdp4_write(mdp4_kms, REG_MDP4_DMA_CURSOR_BASE(dma), iova); in update_cursor()
[all …]
/linux-4.4.14/sound/isa/sb/
Dsb8_main.c112 int dma; in snd_sb8_playback_prepare() local
151 dma = chip->dma16; in snd_sb8_playback_prepare()
155 dma = chip->dma8; in snd_sb8_playback_prepare()
173 snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE); in snd_sb8_playback_prepare()
201 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_playback_prepare()
262 int dma; in snd_sb8_capture_prepare() local
302 dma = chip->dma16; in snd_sb8_capture_prepare()
306 dma = chip->dma8; in snd_sb8_capture_prepare()
338 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_capture_prepare()
418 int dma; in snd_sb8_playback_pointer() local
[all …]

12345678