/linux/drivers/tty/serial/8250/ |
A D | 8250_dma.c | 17 struct uart_8250_dma *dma = p->dma; in __dma_tx_complete() local 46 struct uart_8250_dma *dma = p->dma; in __dma_rx_complete() local 64 struct uart_8250_dma *dma = p->dma; in serial8250_tx_dma() local 111 struct uart_8250_dma *dma = p->dma; in serial8250_rx_dma() local 136 struct uart_8250_dma *dma = p->dma; in serial8250_rx_dma_flush() local 148 struct uart_8250_dma *dma = p->dma; in serial8250_request_dma() local 171 dma->fn, dma->rx_param, in serial8250_request_dma() 190 dma->fn, dma->tx_param, in serial8250_request_dma() 226 dma->rx_buf, dma->rx_addr); in serial8250_request_dma() 244 struct uart_8250_dma *dma = p->dma; in serial8250_release_dma() local [all …]
|
/linux/drivers/media/platform/xilinx/ |
A D | xilinx-dma.c | 301 struct xvip_dma *dma = buf->dma; in xvip_dma_complete() local 337 buf->dma = dma; in xvip_dma_buffer_prepare() 366 dma->sgl[0].size = dma->format.width * dma->fmtinfo->bpp; in xvip_dma_buffer_queue() 367 dma->sgl[0].icg = dma->format.bytesperline - dma->sgl[0].size; in xvip_dma_buffer_queue() 690 dma->video.lock = &dma->lock; in xvip_dma_init() 709 dma->queue.lock = &dma->lock; in xvip_dma_init() 710 dma->queue.drv_priv = dma; in xvip_dma_init() 725 dma->dma = dma_request_chan(dma->xdev->dev, name); in xvip_dma_init() 726 if (IS_ERR(dma->dma)) { in xvip_dma_init() 727 ret = PTR_ERR(dma->dma); in xvip_dma_init() [all …]
|
/linux/arch/arm/kernel/ |
A D | dma.c | 59 if (!dma) in request_dma() 71 ret = dma->d_ops->request(chan, dma); in request_dma() 96 if (!dma) in free_dma() 101 dma->d_ops->disable(chan, dma); in free_dma() 107 dma->d_ops->free(chan, dma); in free_dma() 128 dma->sg = sg; in set_dma_sg() 193 dma->d_ops->enable(chan, dma); in enable_dma() 214 dma->d_ops->disable(chan, dma); in disable_dma() 246 ret = dma->d_ops->setspeed(chan, dma, cycle_ns); in set_dma_speed() 257 ret = dma->d_ops->residue(chan, dma); in get_dma_residue() [all …]
|
/linux/drivers/media/v4l2-core/ |
A D | videobuf-dma-sg.c | 147 memset(dma, 0, sizeof(*dma)); in videobuf_dma_init() 291 dma->sglist = videobuf_pages_to_sg(dma->pages, dma->nr_pages, in videobuf_dma_map() 292 dma->offset, dma->size); in videobuf_dma_map() 295 dma->sglist = videobuf_vmalloc_to_sg(dma->vaddr, in videobuf_dma_map() 299 dma->sglist = vmalloc(sizeof(*dma->sglist)); in videobuf_dma_map() 302 sg_dma_address(&dma->sglist[0]) = dma->bus_addr in videobuf_dma_map() 304 dma->sglist[0].offset = dma->bus_addr & ~PAGE_MASK; in videobuf_dma_map() 313 dma->sglen = dma_map_sg(dev, dma->sglist, in videobuf_dma_map() 314 dma->nr_pages, dma->direction); in videobuf_dma_map() 335 dma_unmap_sg(dev, dma->sglist, dma->nr_pages, dma->direction); in videobuf_dma_unmap() [all …]
|
/linux/drivers/i2c/busses/ |
A D | i2c-stm32.c | 21 dma = devm_kzalloc(dev, sizeof(*dma), GFP_KERNEL); in stm32_i2c_dma_request() 22 if (!dma) in stm32_i2c_dma_request() 71 dma_chan_name(dma->chan_tx), dma_chan_name(dma->chan_rx)); in stm32_i2c_dma_request() 73 return dma; in stm32_i2c_dma_request() 87 dma->dma_buf = 0; in stm32_i2c_dma_free() 88 dma->dma_len = 0; in stm32_i2c_dma_free() 109 dma->chan_using = dma->chan_rx; in stm32_i2c_prep_dma_xfer() 113 dma->chan_using = dma->chan_tx; in stm32_i2c_prep_dma_xfer() 121 dma->dma_buf = dma_map_single(chan_dev, buf, dma->dma_len, in stm32_i2c_prep_dma_xfer() 128 txdesc = dmaengine_prep_slave_single(dma->chan_using, dma->dma_buf, in stm32_i2c_prep_dma_xfer() [all …]
|
/linux/drivers/misc/bcm-vk/ |
A D | bcm_vk_sg.c | 63 dma->pages = kmalloc_array(dma->nr_pages, in bcm_vk_dma_alloc() 66 if (!dma->pages) in bcm_vk_dma_alloc() 76 dma->nr_pages, in bcm_vk_dma_alloc() 78 dma->pages); in bcm_vk_dma_alloc() 87 dma->sglen = (dma->nr_pages * sizeof(*sgdata)) + in bcm_vk_dma_alloc() 92 dma->sglen, in bcm_vk_dma_alloc() 93 &dma->handle, in bcm_vk_dma_alloc() 95 if (!dma->sglist) in bcm_vk_dma_alloc() 164 dma->handle, in bcm_vk_dma_alloc() 165 dma->sglen, in bcm_vk_dma_alloc() [all …]
|
/linux/drivers/media/pci/netup_unidvb/ |
A D | netup_unidvb_core.c | 214 (u64)readl(&dma->regs->curr_addr_lo) | dma->high_addr; in netup_dma_interrupt() 224 (u64)(dma->addr_phys + dma->ring_buffer_size)); in netup_dma_interrupt() 236 if (dma->data_size == 0 || dma->data_size > dma->ring_buffer_size) { in netup_dma_interrupt() 238 dma->data_offset = (u32)(dma->addr_last - dma->addr_phys); in netup_dma_interrupt() 241 queue_work(dma->ndev->wq, &dma->work); in netup_dma_interrupt() 551 if (dma->data_offset + dma->data_size > dma->ring_buffer_size) { in netup_unidvb_ring_copy() 561 if (dma->data_offset == dma->ring_buffer_size) in netup_unidvb_ring_copy() 572 if (dma->data_offset == dma->ring_buffer_size) in netup_unidvb_ring_copy() 656 dma = &ndev->dma[num]; in netup_unidvb_dma_init() 673 dma->addr_last = dma->addr_phys; in netup_unidvb_dma_init() [all …]
|
/linux/drivers/soc/ti/ |
A D | knav_dma.c | 365 dma->name, dma->max_tx_chan, dma->max_rx_flow); in knav_dma_debug_show() 554 struct knav_dma_device *dma = chan->dma; in pktdma_init_rx_chan() local 566 struct knav_dma_device *dma = chan->dma; in pktdma_init_tx_chan() local 590 chan->dma = dma; in pktdma_init_chan() 620 dma = devm_kzalloc(kdev->dev, sizeof(*dma), GFP_KERNEL); in dma_init() 621 if (!dma) { in dma_init() 648 dma->reg_global = pktdma_get_regs(dma, node, 0, &size); in dma_init() 656 dma->reg_tx_chan = pktdma_get_regs(dma, node, 1, &size); in dma_init() 661 dma->reg_rx_chan = pktdma_get_regs(dma, node, 2, &size); in dma_init() 720 dma->name, num_chan, dma->max_rx_flow, in dma_init() [all …]
|
/linux/drivers/dma/ |
A D | .built-in.a.cmd | 1 …dma/built-in.a := echo >/dev/null; rm -f drivers/dma/built-in.a; /usr/bin/ccache /home/test/worksp…
|
/linux/drivers/gpu/drm/ |
A D | drm_dma.c | 63 dev->dma = kzalloc(sizeof(*dev->dma), GFP_KERNEL); in drm_legacy_dma_setup() 64 if (!dev->dma) in drm_legacy_dma_setup() 68 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_legacy_dma_setup() 83 struct drm_device_dma *dma = dev->dma; in drm_legacy_dma_takedown() local 91 if (!dma) in drm_legacy_dma_takedown() 122 kfree(dma->buflist); in drm_legacy_dma_takedown() 123 kfree(dma->pagelist); in drm_legacy_dma_takedown() 124 kfree(dev->dma); in drm_legacy_dma_takedown() 125 dev->dma = NULL; in drm_legacy_dma_takedown() 158 struct drm_device_dma *dma = dev->dma; in drm_legacy_reclaim_buffers() local [all …]
|
/linux/drivers/media/pci/ivtv/ |
A D | ivtv-udma.c | 55 sg_set_page(&dma->SGlist[map_offset], dma->map[map_offset], len, offset); in ivtv_udma_fill_sg_list() 67 for_each_sg(dma->SGlist, sg, dma->SG_length, i) { in ivtv_udma_fill_sg_array() 102 if (dma->SG_length || dma->page_count) { in ivtv_udma_setup() 104 dma->SG_length, dma->page_count); in ivtv_udma_setup() 134 unpin_user_pages(dma->map, dma->page_count); in ivtv_udma_setup() 140 dma->SG_length = dma_map_sg(&itv->pdev->dev, dma->SGlist, in ivtv_udma_setup() 147 dma->SGarray[dma->SG_length - 1].size |= cpu_to_le32(0x80000000); in ivtv_udma_setup() 165 dma_unmap_sg(&itv->pdev->dev, dma->SGlist, dma->page_count, in ivtv_udma_unmap() 167 dma->SG_length = 0; in ivtv_udma_unmap() 172 unpin_user_pages(dma->map, dma->page_count); in ivtv_udma_unmap() [all …]
|
/linux/arch/arm/mach-rpc/ |
A D | dma.c | 26 struct dma_struct dma; member 58 if (idma->dma.sg) { in iomd_get_next_sg() 77 idma->dma.sg = sg_next(idma->dma.sg); in iomd_get_next_sg() 136 struct iomd_dma *idma = container_of(dma, struct iomd_dma, dma); in iomd_request_dma() 144 struct iomd_dma *idma = container_of(dma, struct iomd_dma, dma); in iomd_free_dma() 157 struct iomd_dma *idma = container_of(dma, struct iomd_dma, dma); in iomd_enable_dma() 169 idma->dma.sg = &idma->dma.buf; in iomd_enable_dma() 171 idma->dma.buf.length = idma->dma.count; in iomd_enable_dma() 173 idma->dma.addr, idma->dma.count, in iomd_enable_dma() 194 struct iomd_dma *idma = container_of(dma, struct iomd_dma, dma); in iomd_disable_dma() [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_dma.c | 76 int ip = (chan->dma.ib_put * 2) + chan->dma.ib_base; in nv50_dma_push() 83 chan->dma.ib_put = (chan->dma.ib_put + 1) & chan->dma.ib_max; in nv50_dma_push() 92 chan->dma.ib_free--; in nv50_dma_push() 113 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait() 115 chan->dma.ib_free += chan->dma.ib_max; in nv50_dma_push_wait() 141 chan->dma.free = chan->dma.max - chan->dma.cur; in nv50_dma_wait() 154 chan->dma.cur = 0; in nv50_dma_wait() 158 chan->dma.free = get - chan->dma.cur - 1; in nv50_dma_wait() 204 chan->dma.free = chan->dma.max - chan->dma.cur; in nouveau_dma_wait() 231 chan->dma.cur = in nouveau_dma_wait() [all …]
|
/linux/sound/core/ |
A D | isadma.c | 34 disable_dma(dma); in snd_dma_program() 35 clear_dma_ff(dma); in snd_dma_program() 40 enable_dma(dma); in snd_dma_program() 56 clear_dma_ff(dma); in snd_dma_disable() 57 disable_dma(dma); in snd_dma_disable() 75 clear_dma_ff(dma); in snd_dma_pointer() 86 enable_dma(dma); in snd_dma_pointer() 102 int dma; member 110 free_dma(p->dma); in __snd_release_dma() 130 free_dma(dma); in snd_devm_request_dma() [all …]
|
/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
A D | dma.txt | 29 dma@82a8 { 32 compatible = "fsl,mpc8349-dma", "fsl,elo-dma"; 38 dma-channel@0 { 39 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 45 dma-channel@80 { 46 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 53 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 60 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 91 dma@21300 { 94 compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma"; [all …]
|
/linux/drivers/thunderbolt/ |
A D | dma_port.c | 203 struct tb_dma_port *dma; in dma_port_alloc() local 210 dma = kzalloc(sizeof(*dma), GFP_KERNEL); in dma_port_alloc() 211 if (!dma) in dma_port_alloc() 215 if (!dma->buf) { in dma_port_alloc() 216 kfree(dma); in dma_port_alloc() 220 dma->sw = sw; in dma_port_alloc() 221 dma->port = port; in dma_port_alloc() 224 return dma; in dma_port_alloc() 233 if (dma) { in dma_port_free() 234 kfree(dma->buf); in dma_port_free() [all …]
|
/linux/drivers/net/ethernet/ |
A D | lantiq_xrx200.c | 118 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in xrx200_flush_dma() 125 ch->dma.desc++; in xrx200_flush_dma() 193 ch->dma.desc_base[ch->dma.desc].addr = mapping; in xrx200_alloc_skb() 197 ch->dma.desc_base[ch->dma.desc].ctl = in xrx200_alloc_skb() 206 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in xrx200_hw_receive() 214 ch->dma.desc++; in xrx200_hw_receive() 240 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in xrx200_poll_rx() 309 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in xrx200_start_xmit() 342 ch->dma.desc++; in xrx200_start_xmit() 384 for (ch_rx->dma.desc = 0; ch_rx->dma.desc < LTQ_DESC_NUM; in xrx200_change_mtu() [all …]
|
/linux/drivers/net/ethernet/i825xx/ |
A D | lib82596.c | 437 struct i596_dma *dma = lp->dma; in i596_display_data() local 443 &dma->scp, dma->scp.sysbus, SWAP32(dma->scp.iscp)); in i596_display_data() 445 &dma->iscp, SWAP32(dma->iscp.stat), SWAP32(dma->iscp.scb)); in i596_display_data() 448 &dma->scb, SWAP16(dma->scb.status), SWAP16(dma->scb.command), in i596_display_data() 449 SWAP16(dma->scb.cmd), SWAP32(dma->scb.rfd)); in i596_display_data() 491 struct i596_dma *dma = lp->dma; in init_rx_bufs() local 563 struct i596_dma *dma = lp->dma; in rebuild_rx_bufs() local 585 struct i596_dma *dma = lp->dma; in init_i596_mem() local 899 struct i596_dma *dma = lp->dma; in i596_add_cmd() local 1136 dma = lp->dma; in i596_interrupt() [all …]
|
/linux/drivers/vfio/ |
A D | vfio_iommu_type1.c | 178 else if (start >= dma->iova + dma->size) in vfio_find_dma() 197 if (start < dma->iova + dma->size) { in vfio_find_dma_first_node() 1079 dma_addr_t iova = dma->iova, end = dma->iova + dma->size; in vfio_unmap_unpin() 1250 if (dma && dma->iova != iova) in vfio_iova_dirty_bitmap() 1254 if (dma && dma->iova + dma->size != iova + size) in vfio_iova_dirty_bitmap() 1362 if (dma && dma->iova != iova) in vfio_dma_do_unmap() 1366 if (dma && dma->iova + dma->size != iova + size) in vfio_dma_do_unmap() 1723 while (iova < dma->iova + dma->size) { in vfio_iommu_replay() 1746 while (i < dma->iova + dma->size && in vfio_iommu_replay() 1811 while (iova < dma->iova + dma->size) { in vfio_iommu_replay() [all …]
|
/linux/drivers/comedi/drivers/ |
A D | comedi_isadma.c | 102 struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; in comedi_isadma_poll() 166 dma = kzalloc(sizeof(*dma), GFP_KERNEL); in comedi_isadma_alloc() 167 if (!dma) in comedi_isadma_alloc() 173 dma->desc = desc; in comedi_isadma_alloc() 216 return dma; in comedi_isadma_alloc() 233 if (!dma) in comedi_isadma_free() 236 if (dma->desc) { in comedi_isadma_free() 244 kfree(dma->desc); in comedi_isadma_free() 246 if (dma->chan2 && dma->chan2 != dma->chan) in comedi_isadma_free() 248 if (dma->chan) in comedi_isadma_free() [all …]
|
/linux/drivers/crypto/qce/ |
A D | dma.c | 16 if (IS_ERR(dma->txchan)) in qce_dma_request() 17 return PTR_ERR(dma->txchan); in qce_dma_request() 20 if (IS_ERR(dma->rxchan)) { in qce_dma_request() 21 ret = PTR_ERR(dma->rxchan); in qce_dma_request() 27 if (!dma->result_buf) { in qce_dma_request() 32 dma->ignore_buf = dma->result_buf + QCE_RESULT_BUF_SZ; in qce_dma_request() 36 dma_release_channel(dma->rxchan); in qce_dma_request() 38 dma_release_channel(dma->txchan); in qce_dma_request() 44 dma_release_channel(dma->txchan); in qce_dma_release() 45 dma_release_channel(dma->rxchan); in qce_dma_release() [all …]
|
/linux/drivers/block/rsxx/ |
A D | dma.c | 125 trackers->list[tag].dma = dma; in set_tracker_dma() 233 if (dma->cb) in rsxx_complete_dma() 234 dma->cb(ctrl->card, dma->cb_data, status ? 1 : 0); in rsxx_complete_dma() 280 dma->cmd, dma->laddr, hw_st); in rsxx_handle_dma_error() 328 dma->cmd, dma->laddr, hw_st); in rsxx_handle_dma_error() 439 dma->pg_off, dma->sub_page.cnt << 9, dir); in rsxx_issue_dmas() 606 if (!dma) in rsxx_queue_discard() 640 if (!dma) in rsxx_queue_dma() 654 dir ? 'W' : 'R', dma->laddr, dma->sub_page.off, in rsxx_queue_dma() 655 dma->sub_page.cnt, dma->page, dma->pg_off); in rsxx_queue_dma() [all …]
|
/linux/drivers/scsi/arm/ |
A D | cumana_1.c | 64 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 65 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 66 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 130 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread() 131 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread() 132 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread() 133 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread() 134 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread() 135 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread() 136 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread() [all …]
|
/linux/sound/pci/cs5535audio/ |
A D | cs5535audio_pcm.c | 123 &dma->desc_buf) < 0) in cs5535audio_build_dma_packets() 125 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets() 128 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets() 152 dma->substream = substream; in cs5535audio_build_dma_packets() 154 dma->periods = periods; in cs5535audio_build_dma_packets() 229 dma->desc_buf.area = NULL; in cs5535audio_clear_dma_packets() 230 dma->substream = NULL; in cs5535audio_clear_dma_packets() 247 dma->pcm_open_flag = 1; in snd_cs5535audio_hw_params() 257 if (dma->pcm_open_flag) { in snd_cs5535audio_hw_free() 264 dma->pcm_open_flag = 0; in snd_cs5535audio_hw_free() [all …]
|
/linux/sound/pci/au88x0/ |
A D | au88x0_core.c | 1084 dma->period_real = dma->period_virt = sb; in vortex_adbdma_setstartbuffer() 1205 if (dma->period_virt >= dma->nr_periods) in vortex_adbdma_bufshift() 1206 dma->period_virt -= dma->nr_periods; in vortex_adbdma_bufshift() 1210 adbdma, dma->period_virt, dma->period_real, delta); in vortex_adbdma_bufshift() 1259 return (dma->period_virt + delta) * dma->period_bytes in vortex_adbdma_getlinearpos() 1363 dma->period_real = dma->period_virt = sb; in vortex_wtdma_setstartbuffer() 1475 if (dma->period_virt >= dma->nr_periods) in vortex_wtdma_bufshift() 1476 dma->period_virt -= dma->nr_periods; in vortex_wtdma_bufshift() 1508 temp = (dma->period_virt * dma->period_bytes) + (temp & (dma->period_bytes - 1)); in vortex_wtdma_getlinearpos() 2130 stream->dma = dma; in vortex_adb_allocroute() [all …]
|