/Linux-v5.15/drivers/tty/serial/8250/ |
D | 8250_dma.c | 17 struct uart_8250_dma *dma = p->dma; in __dma_tx_complete() local 22 dma_sync_single_for_cpu(dma->txchan->device->dev, dma->tx_addr, in __dma_tx_complete() 27 dma->tx_running = 0; in __dma_tx_complete() 29 xmit->tail += dma->tx_size; in __dma_tx_complete() 31 p->port.icount.tx += dma->tx_size; in __dma_tx_complete() 46 struct uart_8250_dma *dma = p->dma; in __dma_rx_complete() local 51 dma->rx_running = 0; in __dma_rx_complete() 52 dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state); in __dma_rx_complete() 54 count = dma->rx_size - state.residue; in __dma_rx_complete() 56 tty_insert_flip_string(tty_port, dma->rx_buf, count); in __dma_rx_complete() [all …]
|
/Linux-v5.15/arch/arm/kernel/ |
D | dma.c | 36 int __init isa_dma_add(unsigned int chan, dma_t *dma) in isa_dma_add() argument 38 if (!dma->d_ops) in isa_dma_add() 41 sg_init_table(&dma->buf, 1); in isa_dma_add() 45 dma_chan[chan] = dma; in isa_dma_add() 56 dma_t *dma = dma_channel(chan); in request_dma() local 59 if (!dma) in request_dma() 62 if (xchg(&dma->lock, 1) != 0) in request_dma() 65 dma->device_id = device_id; in request_dma() 66 dma->active = 0; in request_dma() 67 dma->invalid = 1; in request_dma() [all …]
|
/Linux-v5.15/drivers/media/platform/xilinx/ |
D | xilinx-dma.c | 57 static int xvip_dma_verify_format(struct xvip_dma *dma) in xvip_dma_verify_format() argument 63 subdev = xvip_dma_remote_subdev(&dma->pad, &fmt.pad); in xvip_dma_verify_format() 72 if (dma->fmtinfo->code != fmt.format.code || in xvip_dma_verify_format() 73 dma->format.height != fmt.format.height || in xvip_dma_verify_format() 74 dma->format.width != fmt.format.width || in xvip_dma_verify_format() 75 dma->format.colorspace != fmt.format.colorspace) in xvip_dma_verify_format() 98 struct xvip_dma *dma = pipe->output; in xvip_pipeline_start_stop() local 104 entity = &dma->video.entity; in xvip_pipeline_start_stop() 195 struct xvip_dma *dma; in xvip_pipeline_validate() local 200 dma = to_xvip_dma(media_entity_to_video_device(entity)); in xvip_pipeline_validate() [all …]
|
/Linux-v5.15/drivers/i2c/busses/ |
D | i2c-stm32.c | 17 struct stm32_i2c_dma *dma; in stm32_i2c_dma_request() local 21 dma = devm_kzalloc(dev, sizeof(*dma), GFP_KERNEL); in stm32_i2c_dma_request() 22 if (!dma) in stm32_i2c_dma_request() 26 dma->chan_tx = dma_request_chan(dev, "tx"); in stm32_i2c_dma_request() 27 if (IS_ERR(dma->chan_tx)) { in stm32_i2c_dma_request() 28 ret = PTR_ERR(dma->chan_tx); in stm32_i2c_dma_request() 40 ret = dmaengine_slave_config(dma->chan_tx, &dma_sconfig); in stm32_i2c_dma_request() 47 dma->chan_rx = dma_request_chan(dev, "rx"); in stm32_i2c_dma_request() 48 if (IS_ERR(dma->chan_rx)) { in stm32_i2c_dma_request() 49 ret = PTR_ERR(dma->chan_rx); in stm32_i2c_dma_request() [all …]
|
/Linux-v5.15/drivers/media/v4l2-core/ |
D | videobuf-dma-sg.c | 141 return &mem->dma; in videobuf_to_dma() 145 static void videobuf_dma_init(struct videobuf_dmabuf *dma) in videobuf_dma_init() argument 147 memset(dma, 0, sizeof(*dma)); in videobuf_dma_init() 148 dma->magic = MAGIC_DMABUF; in videobuf_dma_init() 151 static int videobuf_dma_init_user_locked(struct videobuf_dmabuf *dma, in videobuf_dma_init_user_locked() argument 158 dma->direction = direction; in videobuf_dma_init_user_locked() 159 switch (dma->direction) { in videobuf_dma_init_user_locked() 172 dma->offset = data & ~PAGE_MASK; in videobuf_dma_init_user_locked() 173 dma->size = size; in videobuf_dma_init_user_locked() 174 dma->nr_pages = last-first+1; in videobuf_dma_init_user_locked() [all …]
|
/Linux-v5.15/drivers/misc/bcm-vk/ |
D | bcm_vk_sg.c | 27 struct bcm_vk_dma *dma, 30 static int bcm_vk_dma_free(struct device *dev, struct bcm_vk_dma *dma); 36 struct bcm_vk_dma *dma, in bcm_vk_dma_alloc() argument 60 dma->nr_pages = last - first + 1; in bcm_vk_dma_alloc() 63 dma->pages = kmalloc_array(dma->nr_pages, in bcm_vk_dma_alloc() 66 if (!dma->pages) in bcm_vk_dma_alloc() 70 data, vkdata->size, dma->nr_pages); in bcm_vk_dma_alloc() 72 dma->direction = direction; in bcm_vk_dma_alloc() 76 dma->nr_pages, in bcm_vk_dma_alloc() 78 dma->pages); in bcm_vk_dma_alloc() [all …]
|
/Linux-v5.15/drivers/gpu/drm/ |
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() 96 if (dma->bufs[i].seg_count) { in drm_legacy_dma_takedown() 100 dma->bufs[i].buf_count, in drm_legacy_dma_takedown() 101 dma->bufs[i].seg_count); in drm_legacy_dma_takedown() 102 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_legacy_dma_takedown() 103 if (dma->bufs[i].seglist[j]) { in drm_legacy_dma_takedown() [all …]
|
/Linux-v5.15/drivers/soc/ti/ |
D | knav_dma.c | 117 struct knav_dma_device *dma; member 264 static void dma_hw_enable_all(struct knav_dma_device *dma) in dma_hw_enable_all() argument 268 for (i = 0; i < dma->max_tx_chan; i++) { in dma_hw_enable_all() 269 writel_relaxed(0, &dma->reg_tx_chan[i].mode); in dma_hw_enable_all() 270 writel_relaxed(DMA_ENABLE, &dma->reg_tx_chan[i].control); in dma_hw_enable_all() 275 static void knav_dma_hw_init(struct knav_dma_device *dma) in knav_dma_hw_init() argument 280 spin_lock(&dma->lock); in knav_dma_hw_init() 281 v = dma->loopback ? DMA_LOOPBACK : 0; in knav_dma_hw_init() 282 writel_relaxed(v, &dma->reg_global->emulation_control); in knav_dma_hw_init() 284 v = readl_relaxed(&dma->reg_global->perf_control); in knav_dma_hw_init() [all …]
|
/Linux-v5.15/drivers/media/pci/netup_unidvb/ |
D | netup_unidvb_core.c | 112 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() 189 static void netup_unidvb_dma_enable(struct netup_dma *dma, int enable) in netup_unidvb_dma_enable() argument 191 u32 irq_mask = (dma->num == 0 ? in netup_unidvb_dma_enable() 194 dev_dbg(&dma->ndev->pci_dev->dev, in netup_unidvb_dma_enable() 195 "%s(): DMA%d enable %d\n", __func__, dma->num, enable); in netup_unidvb_dma_enable() 197 writel(BIT_DMA_RUN, &dma->regs->ctrlstat_set); in netup_unidvb_dma_enable() [all …]
|
/Linux-v5.15/sound/core/ |
D | isadma.c | 27 void snd_dma_program(unsigned long dma, in snd_dma_program() argument 34 disable_dma(dma); in snd_dma_program() 35 clear_dma_ff(dma); in snd_dma_program() 36 set_dma_mode(dma, mode); in snd_dma_program() 37 set_dma_addr(dma, addr); in snd_dma_program() 38 set_dma_count(dma, size); in snd_dma_program() 40 enable_dma(dma); in snd_dma_program() 51 void snd_dma_disable(unsigned long dma) in snd_dma_disable() argument 56 clear_dma_ff(dma); in snd_dma_disable() 57 disable_dma(dma); in snd_dma_disable() [all …]
|
/Linux-v5.15/drivers/media/pci/ivtv/ |
D | ivtv-udma.c | 25 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 40 if (PageHighMem(dma->map[map_offset])) { in ivtv_udma_fill_sg_list() 43 if (dma->bouncemap[map_offset] == NULL) in ivtv_udma_fill_sg_list() 44 dma->bouncemap[map_offset] = alloc_page(GFP_KERNEL); in ivtv_udma_fill_sg_list() 45 if (dma->bouncemap[map_offset] == NULL) in ivtv_udma_fill_sg_list() 48 src = kmap_atomic(dma->map[map_offset]) + offset; in ivtv_udma_fill_sg_list() 49 memcpy(page_address(dma->bouncemap[map_offset]) + offset, src, len); in ivtv_udma_fill_sg_list() 52 sg_set_page(&dma->SGlist[map_offset], dma->bouncemap[map_offset], len, offset); in ivtv_udma_fill_sg_list() 55 sg_set_page(&dma->SGlist[map_offset], dma->map[map_offset], len, offset); in ivtv_udma_fill_sg_list() 63 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 …]
|
/Linux-v5.15/drivers/gpu/drm/nouveau/ |
D | nouveau_dma.c | 65 val > chan->push.addr + (chan->dma.max << 2)) in READ_GET() 76 int ip = (chan->dma.ib_put * 2) + chan->dma.ib_base; in nv50_dma_push() 78 BUG_ON(chan->dma.ib_free < 1); in nv50_dma_push() 83 chan->dma.ib_put = (chan->dma.ib_put + 1) & chan->dma.ib_max; in nv50_dma_push() 89 nvif_wr32(&chan->user, 0x8c, chan->dma.ib_put); in nv50_dma_push() 92 chan->dma.ib_free--; in nv50_dma_push() 100 while (chan->dma.ib_free < count) { in nv50_dma_push_wait() 113 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait() 114 if (chan->dma.ib_free <= 0) in nv50_dma_push_wait() 115 chan->dma.ib_free += chan->dma.ib_max; in nv50_dma_push_wait() [all …]
|
/Linux-v5.15/arch/arm/mach-rpc/ |
D | dma.c | 26 struct dma_struct dma; member 58 if (idma->dma.sg) { in iomd_get_next_sg() 76 if (idma->dma.sgcount > 1) { in iomd_get_next_sg() 77 idma->dma.sg = sg_next(idma->dma.sg); in iomd_get_next_sg() 78 idma->dma_addr = idma->dma.sg->dma_address; in iomd_get_next_sg() 79 idma->dma_len = idma->dma.sg->length; in iomd_get_next_sg() 80 idma->dma.sgcount--; in iomd_get_next_sg() 82 idma->dma.sg = NULL; in iomd_get_next_sg() 134 static int iomd_request_dma(unsigned int chan, dma_t *dma) in iomd_request_dma() argument 136 struct iomd_dma *idma = container_of(dma, struct iomd_dma, dma); in iomd_request_dma() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/powerpc/fsl/ |
D | dma.txt | 9 - compatible : must include "fsl,elo-dma" 18 - compatible : must include "fsl,elo-dma-channel" 29 dma@82a8 { 32 compatible = "fsl,mpc8349-dma", "fsl,elo-dma"; 38 dma-channel@0 { 39 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 45 dma-channel@80 { 46 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; 52 dma-channel@100 { 53 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel"; [all …]
|
/Linux-v5.15/drivers/crypto/qce/ |
D | dma.c | 11 int qce_dma_request(struct device *dev, struct qce_dma_data *dma) in qce_dma_request() argument 15 dma->txchan = dma_request_chan(dev, "tx"); in qce_dma_request() 16 if (IS_ERR(dma->txchan)) in qce_dma_request() 17 return PTR_ERR(dma->txchan); in qce_dma_request() 19 dma->rxchan = dma_request_chan(dev, "rx"); in qce_dma_request() 20 if (IS_ERR(dma->rxchan)) { in qce_dma_request() 21 ret = PTR_ERR(dma->rxchan); in qce_dma_request() 25 dma->result_buf = kmalloc(QCE_RESULT_BUF_SZ + QCE_IGNORE_BUF_SZ, 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() [all …]
|
/Linux-v5.15/drivers/thunderbolt/ |
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() 214 dma->buf = kmalloc_array(MAIL_DATA_DWORDS, sizeof(u32), GFP_KERNEL); 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() 222 dma->base = DMA_PORT_CAP; in dma_port_alloc() 224 return dma; in dma_port_alloc() [all …]
|
/Linux-v5.15/drivers/comedi/drivers/ |
D | comedi_isadma.c | 100 unsigned int comedi_isadma_poll(struct comedi_isadma *dma) in comedi_isadma_poll() argument 102 struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; in comedi_isadma_poll() 158 struct comedi_isadma *dma = NULL; in comedi_isadma_alloc() local 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() 174 dma->n_desc = n_desc; in comedi_isadma_alloc() 176 dma->dev = dev->hw_dev; in comedi_isadma_alloc() 186 dma->dev = dev->class_dev; in comedi_isadma_alloc() 197 dma->chan = dma_chans[0]; in comedi_isadma_alloc() [all …]
|
/Linux-v5.15/drivers/net/ethernet/ |
D | lantiq_xrx200.c | 59 struct ltq_dma_channel dma; member 103 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in xrx200_flush_dma() 110 ch->dma.desc++; in xrx200_flush_dma() 111 ch->dma.desc %= LTQ_DESC_NUM; in xrx200_flush_dma() 120 ltq_dma_open(&priv->chan_tx.dma); in xrx200_open() 121 ltq_dma_enable_irq(&priv->chan_tx.dma); in xrx200_open() 124 ltq_dma_open(&priv->chan_rx.dma); in xrx200_open() 133 ltq_dma_enable_irq(&priv->chan_rx.dma); in xrx200_open() 147 ltq_dma_close(&priv->chan_rx.dma); in xrx200_close() 150 ltq_dma_close(&priv->chan_tx.dma); in xrx200_close() [all …]
|
/Linux-v5.15/drivers/net/ethernet/i825xx/ |
D | lib82596.c | 315 struct i596_dma *dma; member 370 return lp->dma_addr + ((unsigned long)v - (unsigned long)lp->dma); in virt_to_dma() 400 static inline int wait_istat(struct net_device *dev, struct i596_dma *dma, int delcnt, char *str) in wait_istat() argument 402 dma_sync_cpu(dev, &(dma->iscp), sizeof(struct i596_iscp)); in wait_istat() 403 while (--delcnt && dma->iscp.stat) { in wait_istat() 405 dma_sync_cpu(dev, &(dma->iscp), sizeof(struct i596_iscp)); in wait_istat() 409 dev->name, str, SWAP16(dma->iscp.stat)); in wait_istat() 416 static inline int wait_cmd(struct net_device *dev, struct i596_dma *dma, int delcnt, char *str) in wait_cmd() argument 418 dma_sync_cpu(dev, &(dma->scb), sizeof(struct i596_scb)); in wait_cmd() 419 while (--delcnt && dma->scb.command) { in wait_cmd() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/usb/ |
D | ux500-usb.txt | 11 - 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-v5.15/drivers/vfio/ |
D | vfio_iommu_type1.c | 178 struct vfio_dma *dma = rb_entry(node, struct vfio_dma, node); in vfio_find_dma() local 180 if (start + size <= dma->iova) in vfio_find_dma() 182 else if (start >= dma->iova + dma->size) in vfio_find_dma() 185 return dma; in vfio_find_dma() 199 struct vfio_dma *dma = rb_entry(node, struct vfio_dma, node); in vfio_find_dma_first_node() local 201 if (start < dma->iova + dma->size) { in vfio_find_dma_first_node() 203 dma_res = dma; in vfio_find_dma_first_node() 204 if (start >= dma->iova) in vfio_find_dma_first_node() 219 struct vfio_dma *dma; in vfio_link_dma() local 223 dma = rb_entry(parent, struct vfio_dma, node); in vfio_link_dma() [all …]
|
/Linux-v5.15/drivers/scsi/arm/ |
D | cumana_1.c | 49 u8 __iomem *dma = hostdata->pdma_io + 0x2000; in cumanascsi_pwrite() local 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() 67 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 68 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 69 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 70 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 71 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 88 writeb(*addr++, dma); in cumanascsi_pwrite() [all …]
|
/Linux-v5.15/sound/pci/cs5535audio/ |
D | cs5535audio_pcm.c | 107 struct cs5535audio_dma *dma, in cs5535audio_build_dma_packets() argument 119 if (dma->desc_buf.area == NULL) { in cs5535audio_build_dma_packets() 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() 134 desc_addr = (u32) dma->desc_buf.addr; in cs5535audio_build_dma_packets() 137 &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; in cs5535audio_build_dma_packets() 145 lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; in cs5535audio_build_dma_packets() 146 lastdesc->addr = cpu_to_le32((u32) dma->desc_buf.addr); in cs5535audio_build_dma_packets() 149 jmpprd_addr = (u32)dma->desc_buf.addr + in cs5535audio_build_dma_packets() [all …]
|
/Linux-v5.15/drivers/block/rsxx/ |
D | dma.c | 74 struct rsxx_dma *dma; member 111 static unsigned int get_dma_size(struct rsxx_dma *dma) in get_dma_size() argument 113 if (dma->sub_page.cnt) in get_dma_size() 114 return dma->sub_page.cnt << 9; in get_dma_size() 123 struct rsxx_dma *dma) in set_tracker_dma() argument 125 trackers->list[tag].dma = dma; in set_tracker_dma() 131 return trackers->list[tag].dma; in get_tracker_dma() 154 trackers->list[tag].dma = NULL; in push_tracker() 207 static void rsxx_free_dma(struct rsxx_dma_ctrl *ctrl, struct rsxx_dma *dma) in rsxx_free_dma() argument 209 if (dma->cmd != HW_CMD_BLK_DISCARD) { in rsxx_free_dma() [all …]
|
/Linux-v5.15/drivers/mfd/ |
D | stm32-timers.c | 28 struct stm32_timers_dma *dma = p; in stm32_timers_dma_done() local 32 status = dmaengine_tx_status(dma->chan, dma->chan->cookie, &state); in stm32_timers_dma_done() 34 complete(&dma->completion); in stm32_timers_dma_done() 57 struct stm32_timers_dma *dma = &ddata->dma; in stm32_timers_dma_burst_read() local 75 if (!dma->chans[id]) in stm32_timers_dma_burst_read() 77 mutex_lock(&dma->lock); in stm32_timers_dma_burst_read() 80 dma->chan = dma->chans[id]; in stm32_timers_dma_burst_read() 89 config.src_addr = (dma_addr_t)dma->phys_base + TIM_DMAR; in stm32_timers_dma_burst_read() 91 ret = dmaengine_slave_config(dma->chan, &config); in stm32_timers_dma_burst_read() 95 desc = dmaengine_prep_slave_single(dma->chan, dma_buf, len, in stm32_timers_dma_burst_read() [all …]
|