Home
last modified time | relevance | path

Searched refs:dma_dev (Results 1 – 25 of 30) sorted by relevance

12

/drivers/mmc/host/
Dmmc_spi.c142 struct device *dma_dev; member
181 if (host->dma_dev) in mmc_spi_readbytes()
182 dma_sync_single_for_device(host->dma_dev, in mmc_spi_readbytes()
188 if (host->dma_dev) in mmc_spi_readbytes()
189 dma_sync_single_for_cpu(host->dma_dev, in mmc_spi_readbytes()
539 if (host->dma_dev) { in mmc_spi_command_send()
541 dma_sync_single_for_device(host->dma_dev, in mmc_spi_command_send()
547 if (host->dma_dev) in mmc_spi_command_send()
548 dma_sync_single_for_cpu(host->dma_dev, in mmc_spi_command_send()
684 if (host->dma_dev) in mmc_spi_writeblock()
[all …]
/drivers/dma/
Diop-adma.c1438 struct dma_device *dma_dev; in iop_adma_probe() local
1452 dma_dev = &adev->common; in iop_adma_probe()
1473 dma_dev->cap_mask = plat_data->cap_mask; in iop_adma_probe()
1478 INIT_LIST_HEAD(&dma_dev->channels); in iop_adma_probe()
1481 dma_dev->device_alloc_chan_resources = iop_adma_alloc_chan_resources; in iop_adma_probe()
1482 dma_dev->device_free_chan_resources = iop_adma_free_chan_resources; in iop_adma_probe()
1483 dma_dev->device_tx_status = iop_adma_status; in iop_adma_probe()
1484 dma_dev->device_issue_pending = iop_adma_issue_pending; in iop_adma_probe()
1485 dma_dev->dev = &pdev->dev; in iop_adma_probe()
1488 if (dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask)) in iop_adma_probe()
[all …]
Dep93xx_dma.c185 struct dma_device dma_dev; member
1273 struct dma_device *dma_dev; in ep93xx_dma_probe() local
1282 dma_dev = &edma->dma_dev; in ep93xx_dma_probe()
1286 INIT_LIST_HEAD(&dma_dev->channels); in ep93xx_dma_probe()
1291 edmac->chan.device = dma_dev; in ep93xx_dma_probe()
1311 &dma_dev->channels); in ep93xx_dma_probe()
1314 dma_cap_zero(dma_dev->cap_mask); in ep93xx_dma_probe()
1315 dma_cap_set(DMA_SLAVE, dma_dev->cap_mask); in ep93xx_dma_probe()
1316 dma_cap_set(DMA_CYCLIC, dma_dev->cap_mask); in ep93xx_dma_probe()
1318 dma_dev->dev = &pdev->dev; in ep93xx_dma_probe()
[all …]
Dmv_xor.c1108 struct dma_device *dma_dev; in mv_xor_probe() local
1116 dma_dev = &adev->common; in mv_xor_probe()
1132 dma_dev->cap_mask = plat_data->cap_mask; in mv_xor_probe()
1138 INIT_LIST_HEAD(&dma_dev->channels); in mv_xor_probe()
1141 dma_dev->device_alloc_chan_resources = mv_xor_alloc_chan_resources; in mv_xor_probe()
1142 dma_dev->device_free_chan_resources = mv_xor_free_chan_resources; in mv_xor_probe()
1143 dma_dev->device_tx_status = mv_xor_status; in mv_xor_probe()
1144 dma_dev->device_issue_pending = mv_xor_issue_pending; in mv_xor_probe()
1145 dma_dev->dev = &pdev->dev; in mv_xor_probe()
1148 if (dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask)) in mv_xor_probe()
[all …]
Ddmatest.c579 struct dma_device *dma_dev = chan->device; in dmatest_add_channel() local
592 if (dma_has_cap(DMA_MEMCPY, dma_dev->cap_mask)) { in dmatest_add_channel()
596 if (dma_has_cap(DMA_XOR, dma_dev->cap_mask)) { in dmatest_add_channel()
600 if (dma_has_cap(DMA_PQ, dma_dev->cap_mask)) { in dmatest_add_channel()
Dat_hdmac.c1122 BUG_ON(!atslave->dma_dev || atslave->dma_dev != atdma->dma_common.dev); in atc_alloc_chan_resources()
/drivers/scsi/ibmvscsi/
Dibmvstgt.c65 struct vio_dev *dma_dev; member
127 rc1 = h_send_crq(vport->dma_dev->unit_address, crq.raw[0], crq.raw[1]); in send_iu()
375 sprintf(ids.port_id, "%x", vport->dma_dev->unit_address); in process_login()
548 vio_disable_interrupts(vport->dma_dev); in ibmvstgt_interrupt()
571 err = h_reg_crq(vport->dma_dev->unit_address, queue->msg_token, in crq_queue_create()
579 err = h_free_crq(vport->dma_dev->unit_address); in crq_queue_create()
582 err = h_reg_crq(vport->dma_dev->unit_address, queue->msg_token, in crq_queue_create()
591 err = request_irq(vport->dma_dev->irq, &ibmvstgt_interrupt, in crq_queue_create()
596 vio_enable_interrupts(vport->dma_dev); in crq_queue_create()
598 h_send_crq(vport->dma_dev->unit_address, 0xC001000000000000, 0); in crq_queue_create()
[all …]
/drivers/net/ethernet/broadcom/
Db44.c151 dma_sync_single_for_device(sdev->dma_dev, dma_base + offset, in b44_sync_dma_desc_for_device()
160 dma_sync_single_for_cpu(sdev->dma_dev, dma_base + offset, in b44_sync_dma_desc_for_cpu()
606 dma_unmap_single(bp->sdev->dma_dev, in b44_tx()
646 mapping = dma_map_single(bp->sdev->dma_dev, skb->data, in b44_alloc_rx_skb()
652 if (dma_mapping_error(bp->sdev->dma_dev, mapping) || in b44_alloc_rx_skb()
655 if (!dma_mapping_error(bp->sdev->dma_dev, mapping)) in b44_alloc_rx_skb()
656 dma_unmap_single(bp->sdev->dma_dev, mapping, in b44_alloc_rx_skb()
662 mapping = dma_map_single(bp->sdev->dma_dev, skb->data, in b44_alloc_rx_skb()
665 if (dma_mapping_error(bp->sdev->dma_dev, mapping) || in b44_alloc_rx_skb()
667 if (!dma_mapping_error(bp->sdev->dma_dev, mapping)) in b44_alloc_rx_skb()
[all …]
/drivers/net/wireless/b43legacy/
Ddma.c268 dmaaddr = dma_map_single(ring->dev->dev->dma_dev, in map_descbuffer()
272 dmaaddr = dma_map_single(ring->dev->dev->dma_dev, in map_descbuffer()
286 dma_unmap_single(ring->dev->dev->dma_dev, in unmap_descbuffer()
290 dma_unmap_single(ring->dev->dev->dma_dev, in unmap_descbuffer()
302 dma_sync_single_for_cpu(ring->dev->dev->dma_dev, in sync_descbuffer_for_cpu()
313 dma_sync_single_for_device(ring->dev->dev->dma_dev, in sync_descbuffer_for_device()
334 ring->descbase = dma_alloc_coherent(ring->dev->dev->dma_dev, in alloc_ringmemory()
350 dma_free_coherent(ring->dev->dev->dma_dev, B43legacy_DMA_RINGMEMSIZE, in free_ringmemory()
434 if (unlikely(dma_mapping_error(ring->dev->dev->dma_dev, addr))) in b43legacy_dma_mapping_error()
685 dma_test = dma_map_single(dev->dev->dma_dev, ring->txhdr_cache, in b43legacy_setup_dmaring()
[all …]
/drivers/scsi/
Dscsi_lib_dma.c27 struct device *dev = cmd->device->host->dma_dev; in scsi_dma_map()
45 struct device *dev = cmd->device->host->dma_dev; in scsi_dma_unmap()
Dhosts.c201 struct device *dma_dev) in scsi_add_host_with_dma() argument
221 if (!dma_dev) in scsi_add_host_with_dma()
222 dma_dev = shost->shost_gendev.parent; in scsi_add_host_with_dma()
224 shost->dma_dev = dma_dev; in scsi_add_host_with_dma()
/drivers/net/ethernet/sun/
Dsunhme.c255 ((__hp)->dma_map((__hp)->dma_dev, (__ptr), (__size), (__dir)))
257 ((__hp)->dma_unmap((__hp)->dma_dev, (__addr), (__size), (__dir)))
259 ((__hp)->dma_sync_for_cpu((__hp)->dma_dev, (__addr), (__size), (__dir)))
261 ((__hp)->dma_sync_for_device((__hp)->dma_dev, (__addr), (__size), (__dir)))
281 dma_map_single((__hp)->dma_dev, (__ptr), (__size), (__dir))
283 dma_unmap_single((__hp)->dma_dev, (__addr), (__size), (__dir))
285 dma_dma_sync_single_for_cpu((__hp)->dma_dev, (__addr), (__size), (__dir))
287 dma_dma_sync_single_for_device((__hp)->dma_dev, (__addr), (__size), (__dir))
309 pci_map_single((__hp)->dma_dev, (__ptr), (__size), (__dir))
311 pci_unmap_single((__hp)->dma_dev, (__addr), (__size), (__dir))
[all …]
Dsunhme.h412 struct device *dma_dev; member
/drivers/net/wireless/b43/
Dbus.c107 dev->dma_dev = core->dma_dev; in b43_bus_dev_bcma_init()
208 dev->dma_dev = sdev->dma_dev; in b43_bus_dev_ssb_init()
Ddma.c366 dmaaddr = dma_map_single(ring->dev->dev->dma_dev, in map_descbuffer()
369 dmaaddr = dma_map_single(ring->dev->dev->dma_dev, in map_descbuffer()
381 dma_unmap_single(ring->dev->dev->dma_dev, in unmap_descbuffer()
384 dma_unmap_single(ring->dev->dev->dma_dev, in unmap_descbuffer()
394 dma_sync_single_for_cpu(ring->dev->dev->dma_dev, in sync_descbuffer_for_cpu()
403 dma_sync_single_for_device(ring->dev->dev->dma_dev, in sync_descbuffer_for_device()
436 ring->descbase = dma_alloc_coherent(ring->dev->dev->dma_dev, in alloc_ringmemory()
452 dma_free_coherent(ring->dev->dev->dma_dev, ring_mem_size, in free_ringmemory()
560 if (unlikely(dma_mapping_error(ring->dev->dev->dma_dev, addr))) in b43_dma_mapping_error()
929 dma_test = dma_map_single(dev->dev->dma_dev, in b43_setup_dmaring()
[all …]
Dbus.h36 struct device *dma_dev; member
/drivers/mtd/nand/
Datmel_nand.c195 struct dma_device *dma_dev; in atmel_nand_dma_op() local
209 dma_dev = host->dma_chan->device; in atmel_nand_dma_op()
214 phys_addr = dma_map_single(dma_dev->dev, p, len, dir); in atmel_nand_dma_op()
215 if (dma_mapping_error(dma_dev->dev, phys_addr)) { in atmel_nand_dma_op()
228 tx = dma_dev->device_prep_dma_memcpy(host->dma_chan, dma_dst_addr, in atmel_nand_dma_op()
251 dma_unmap_single(dma_dev->dev, phys_addr, len, dir); in atmel_nand_dma_op()
Dfsmc_nand.c555 struct dma_device *dma_dev; in dma_xfer() local
569 dma_dev = chan->device; in dma_xfer()
570 dma_addr = dma_map_single(dma_dev->dev, buffer, len, direction); in dma_xfer()
582 tx = dma_dev->device_prep_dma_memcpy(chan, dma_dst, dma_src, in dma_xfer()
587 dma_unmap_single(dma_dev->dev, dma_addr, len, direction); in dma_xfer()
/drivers/usb/host/
Dohci-ssb.c112 if (dma_set_mask(dev->dma_dev, DMA_BIT_MASK(32)) || in ssb_ohci_attach()
113 dma_set_coherent_mask(dev->dma_dev, DMA_BIT_MASK(32))) in ssb_ohci_attach()
/drivers/spi/
Dspi-topcliff-pch.c906 (param->dma_dev == chan->device->dev)) { in pch_spi_filter()
918 struct pci_dev *dma_dev; in pch_spi_request_dma() local
933 dma_dev = pci_get_bus_and_slot(data->board_dat->pdev->bus->number, in pch_spi_request_dma()
938 param->dma_dev = &dma_dev->dev; in pch_spi_request_dma()
953 param->dma_dev = &dma_dev->dev; in pch_spi_request_dma()
Dspi-dw.h149 struct device *dma_dev; member
/drivers/bcma/
Dmain.c108 core->dma_dev = &bus->host_pci->dev; in bcma_register_cores()
113 core->dma_dev = &core->dev; in bcma_register_cores()
/drivers/tty/serial/
Dpch_uart.c684 if ((chan->chan_id == param->chan_id) && (param->dma_dev == in filter()
697 struct pci_dev *dma_dev; in pch_request_dma() local
704 dma_dev = pci_get_bus_and_slot(priv->pdev->bus->number, in pch_request_dma()
709 param->dma_dev = &dma_dev->dev; in pch_request_dma()
723 param->dma_dev = &dma_dev->dev; in pch_request_dma()
Damba-pl011.c441 struct dma_device *dma_dev = chan->device; in pl011_dma_tx_refill() local
481 if (dma_map_sg(dma_dev->dev, &dmatx->sg, 1, DMA_TO_DEVICE) != 1) { in pl011_dma_tx_refill()
490 dma_unmap_sg(dma_dev->dev, &dmatx->sg, 1, DMA_TO_DEVICE); in pl011_dma_tx_refill()
508 dma_dev->device_issue_pending(chan); in pl011_dma_tx_refill()
/drivers/ssb/
Dmain.c502 sdev->dma_dev = dev->parent; in ssb_devices_register()
518 sdev->dma_dev = dev; in ssb_devices_register()

12