/linux-6.12.1/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 uart_xmit_advance(&p->port, dma->tx_size); in __dma_tx_complete() 35 if (ret || !dma->tx_running) in __dma_tx_complete() 43 struct uart_8250_dma *dma = p->dma; in __dma_rx_complete() local 54 dma_status = dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state); in __dma_rx_complete() 58 count = dma->rx_size - state.residue; in __dma_rx_complete() 60 tty_insert_flip_string(tty_port, dma->rx_buf, count); in __dma_rx_complete() 62 dma->rx_running = 0; in __dma_rx_complete() [all …]
|
/linux-6.12.1/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-6.12.1/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 65 subdev = xvip_dma_remote_subdev(&dma->pad, &fmt.pad); in xvip_dma_verify_format() 73 if (dma->fmtinfo->code != fmt.format.code || in xvip_dma_verify_format() 74 dma->format.height != fmt.format.height || in xvip_dma_verify_format() 75 dma->format.width != fmt.format.width || in xvip_dma_verify_format() 76 dma->format.colorspace != fmt.format.colorspace) in xvip_dma_verify_format() 99 struct xvip_dma *dma = pipe->output; in xvip_pipeline_start_stop() local 105 entity = &dma->video.entity; in xvip_pipeline_start_stop() 184 struct xvip_dma *dma; in xvip_pipeline_validate() local 189 dma = to_xvip_dma(media_entity_to_video_device(pad->entity)); in xvip_pipeline_validate() [all …]
|
/linux-6.12.1/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-6.12.1/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-6.12.1/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-6.12.1/drivers/soc/ti/ |
D | knav_dma.c | 109 struct knav_dma_device *dma; member 256 static void dma_hw_enable_all(struct knav_dma_device *dma) in dma_hw_enable_all() argument 260 for (i = 0; i < dma->max_tx_chan; i++) { in dma_hw_enable_all() 261 writel_relaxed(0, &dma->reg_tx_chan[i].mode); in dma_hw_enable_all() 262 writel_relaxed(DMA_ENABLE, &dma->reg_tx_chan[i].control); in dma_hw_enable_all() 267 static void knav_dma_hw_init(struct knav_dma_device *dma) in knav_dma_hw_init() argument 272 spin_lock(&dma->lock); in knav_dma_hw_init() 273 v = dma->loopback ? DMA_LOOPBACK : 0; in knav_dma_hw_init() 274 writel_relaxed(v, &dma->reg_global->emulation_control); in knav_dma_hw_init() 276 v = readl_relaxed(&dma->reg_global->perf_control); in knav_dma_hw_init() [all …]
|
/linux-6.12.1/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-6.12.1/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-6.12.1/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-6.12.1/drivers/gpu/drm/nouveau/ |
D | nouveau_dma.c | 65 val > chan->push.addr + (chan->dma.max << 2)) in READ_GET() 77 int ip = (chan->dma.ib_put * 2) + chan->dma.ib_base; in nv50_dma_push() 79 BUG_ON(chan->dma.ib_free < 1); in nv50_dma_push() 86 chan->dma.ib_put = (chan->dma.ib_put + 1) & chan->dma.ib_max; in nv50_dma_push() 92 nvif_wr32(chan->userd, 0x8c, chan->dma.ib_put); in nv50_dma_push() 95 chan->dma.ib_free--; in nv50_dma_push() 103 while (chan->dma.ib_free < count) { in nv50_dma_push_wait() 116 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait() 117 if (chan->dma.ib_free <= 0) in nv50_dma_push_wait() 118 chan->dma.ib_free += chan->dma.ib_max; in nv50_dma_push_wait() [all …]
|
/linux-6.12.1/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-6.12.1/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-6.12.1/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-6.12.1/drivers/vfio/ |
D | vfio_iommu_type1.c | 171 struct vfio_dma *dma = rb_entry(node, struct vfio_dma, node); in vfio_find_dma() local 173 if (start + size <= dma->iova) in vfio_find_dma() 175 else if (start >= dma->iova + dma->size) in vfio_find_dma() 178 return dma; in vfio_find_dma() 192 struct vfio_dma *dma = rb_entry(node, struct vfio_dma, node); in vfio_find_dma_first_node() local 194 if (start < dma->iova + dma->size) { in vfio_find_dma_first_node() 196 dma_res = dma; in vfio_find_dma_first_node() 197 if (start >= dma->iova) in vfio_find_dma_first_node() 212 struct vfio_dma *dma; in vfio_link_dma() local 216 dma = rb_entry(parent, struct vfio_dma, node); in vfio_link_dma() [all …]
|
/linux-6.12.1/drivers/comedi/drivers/ |
D | comedi_isadma.c | 98 unsigned int comedi_isadma_poll(struct comedi_isadma *dma) in comedi_isadma_poll() argument 100 struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; in comedi_isadma_poll() 156 struct comedi_isadma *dma = NULL; in comedi_isadma_alloc() local 164 dma = kzalloc(sizeof(*dma), GFP_KERNEL); in comedi_isadma_alloc() 165 if (!dma) in comedi_isadma_alloc() 171 dma->desc = desc; in comedi_isadma_alloc() 172 dma->n_desc = n_desc; in comedi_isadma_alloc() 174 dma->dev = dev->hw_dev; in comedi_isadma_alloc() 184 dma->dev = dev->class_dev; in comedi_isadma_alloc() 195 dma->chan = dma_chans[0]; in comedi_isadma_alloc() [all …]
|
/linux-6.12.1/drivers/net/ethernet/i825xx/ |
D | lib82596.c | 314 struct i596_dma *dma; member 369 return lp->dma_addr + ((unsigned long)v - (unsigned long)lp->dma); in virt_to_dma() 399 static inline int wait_istat(struct net_device *dev, struct i596_dma *dma, int delcnt, char *str) in wait_istat() argument 401 dma_sync_cpu(dev, &(dma->iscp), sizeof(struct i596_iscp)); in wait_istat() 402 while (--delcnt && dma->iscp.stat) { in wait_istat() 404 dma_sync_cpu(dev, &(dma->iscp), sizeof(struct i596_iscp)); in wait_istat() 408 dev->name, str, SWAP16(dma->iscp.stat)); in wait_istat() 415 static inline int wait_cmd(struct net_device *dev, struct i596_dma *dma, int delcnt, char *str) in wait_cmd() argument 417 dma_sync_cpu(dev, &(dma->scb), sizeof(struct i596_scb)); in wait_cmd() 418 while (--delcnt && dma->scb.command) { in wait_cmd() [all …]
|
/linux-6.12.1/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-6.12.1/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-6.12.1/drivers/net/ethernet/ |
D | lantiq_xrx200.c | 65 struct ltq_dma_channel dma; member 135 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in xrx200_flush_dma() 142 ch->dma.desc++; in xrx200_flush_dma() 143 ch->dma.desc %= LTQ_DESC_NUM; in xrx200_flush_dma() 152 ltq_dma_open(&priv->chan_tx.dma); in xrx200_open() 153 ltq_dma_enable_irq(&priv->chan_tx.dma); in xrx200_open() 156 ltq_dma_open(&priv->chan_rx.dma); in xrx200_open() 165 ltq_dma_enable_irq(&priv->chan_rx.dma); in xrx200_open() 179 ltq_dma_close(&priv->chan_rx.dma); in xrx200_close() 182 ltq_dma_close(&priv->chan_tx.dma); in xrx200_close() [all …]
|
/linux-6.12.1/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() 136 &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; in cs5535audio_build_dma_packets() 143 lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; in cs5535audio_build_dma_packets() 144 lastdesc->addr = cpu_to_le32((u32) dma->desc_buf.addr); in cs5535audio_build_dma_packets() 147 jmpprd_addr = (u32)dma->desc_buf.addr + in cs5535audio_build_dma_packets() 150 dma->substream = substream; in cs5535audio_build_dma_packets() [all …]
|
/linux-6.12.1/arch/arm/boot/dts/broadcom/ |
D | bcm-nsp-ax.dtsi | 12 &dma { 13 /delete-property/ dma-coherent; 17 /delete-property/ dma-coherent; 21 /delete-property/ dma-coherent; 25 /delete-property/ dma-coherent; 29 /delete-property/ dma-coherent; 33 /delete-property/ dma-coherent; 37 /delete-property/ dma-coherent; 41 /delete-property/ dma-coherent; 45 /delete-property/ dma-coherent; [all …]
|
/linux-6.12.1/sound/pci/au88x0/ |
D | au88x0_core.c | 1072 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setfirstbuffer() local 1075 dma->dma_ctrl); in vortex_adbdma_setfirstbuffer() 1080 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setstartbuffer() local 1084 dma->period_real = dma->period_virt = sb; in vortex_adbdma_setstartbuffer() 1091 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setbuffers() local 1093 dma->period_bytes = psize; in vortex_adbdma_setbuffers() 1094 dma->nr_periods = count; in vortex_adbdma_setbuffers() 1096 dma->cfg0 = 0; in vortex_adbdma_setbuffers() 1097 dma->cfg1 = 0; in vortex_adbdma_setbuffers() 1102 dma->cfg1 |= 0x88000000 | 0x44000000 | 0x30000000 | (psize - 1); in vortex_adbdma_setbuffers() [all …]
|
/linux-6.12.1/drivers/mfd/ |
D | stm32-timers.c | 29 struct stm32_timers_dma *dma = p; in stm32_timers_dma_done() local 33 status = dmaengine_tx_status(dma->chan, dma->chan->cookie, &state); in stm32_timers_dma_done() 35 complete(&dma->completion); in stm32_timers_dma_done() 58 struct stm32_timers_dma *dma = &ddata->dma; in stm32_timers_dma_burst_read() local 76 if (!dma->chans[id]) in stm32_timers_dma_burst_read() 78 mutex_lock(&dma->lock); in stm32_timers_dma_burst_read() 81 dma->chan = dma->chans[id]; in stm32_timers_dma_burst_read() 90 config.src_addr = (dma_addr_t)dma->phys_base + TIM_DMAR; in stm32_timers_dma_burst_read() 92 ret = dmaengine_slave_config(dma->chan, &config); in stm32_timers_dma_burst_read() 96 desc = dmaengine_prep_slave_single(dma->chan, dma_buf, len, in stm32_timers_dma_burst_read() [all …]
|
/linux-6.12.1/sound/soc/au1x/ |
D | dma.c | 35 int dma; member 108 disable_dma(stream->dma); in au1000_dma_stop() 116 init_dma(stream->dma); in au1000_dma_start() 117 if (get_dma_active_buffer(stream->dma) == 0) { in au1000_dma_start() 118 clear_dma_done0(stream->dma); in au1000_dma_start() 119 set_dma_addr0(stream->dma, stream->buffer->start); in au1000_dma_start() 120 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start() 121 set_dma_addr1(stream->dma, stream->buffer->next->start); in au1000_dma_start() 122 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start() 124 clear_dma_done1(stream->dma); in au1000_dma_start() [all …]
|