Lines Matching refs:dma_dev

123 	struct device		*dma_dev;  member
162 if (host->dma_dev) in mmc_spi_readbytes()
163 dma_sync_single_for_device(host->dma_dev, in mmc_spi_readbytes()
169 if (host->dma_dev) in mmc_spi_readbytes()
170 dma_sync_single_for_cpu(host->dma_dev, in mmc_spi_readbytes()
514 if (host->dma_dev) { in mmc_spi_command_send()
516 dma_sync_single_for_device(host->dma_dev, in mmc_spi_command_send()
522 if (host->dma_dev) in mmc_spi_command_send()
523 dma_sync_single_for_cpu(host->dma_dev, in mmc_spi_command_send()
656 if (host->dma_dev) in mmc_spi_writeblock()
657 dma_sync_single_for_device(host->dma_dev, in mmc_spi_writeblock()
668 if (host->dma_dev) in mmc_spi_writeblock()
669 dma_sync_single_for_cpu(host->dma_dev, in mmc_spi_writeblock()
721 if (host->dma_dev) in mmc_spi_writeblock()
786 if (host->dma_dev) { in mmc_spi_readblock()
787 dma_sync_single_for_device(host->dma_dev, in mmc_spi_readblock()
790 dma_sync_single_for_device(host->dma_dev, in mmc_spi_readblock()
801 if (host->dma_dev) { in mmc_spi_readblock()
802 dma_sync_single_for_cpu(host->dma_dev, in mmc_spi_readblock()
805 dma_sync_single_for_cpu(host->dma_dev, in mmc_spi_readblock()
844 if (host->dma_dev) in mmc_spi_readblock()
860 struct device *dma_dev = host->dma_dev; in mmc_spi_data_do() local
895 if (dma_dev) { in mmc_spi_data_do()
901 dma_addr = dma_map_page(dma_dev, sg_page(sg), 0, in mmc_spi_data_do()
903 if (dma_mapping_error(dma_dev, dma_addr)) { in mmc_spi_data_do()
944 if (dma_dev) in mmc_spi_data_do()
945 dma_unmap_page(dma_dev, dma_addr, PAGE_SIZE, dir); in mmc_spi_data_do()
983 if (host->dma_dev) in mmc_spi_data_do()
984 dma_sync_single_for_device(host->dma_dev, in mmc_spi_data_do()
990 if (host->dma_dev) in mmc_spi_data_do()
991 dma_sync_single_for_cpu(host->dma_dev, in mmc_spi_data_do()
1295 host->dma_dev = dev; in mmc_spi_dma_alloc()
1301 if (!host->dma_dev) in mmc_spi_dma_free()
1304 dma_unmap_single(host->dma_dev, host->ones_dma, MMC_SPI_BLOCKSIZE, in mmc_spi_dma_free()
1306 dma_unmap_single(host->dma_dev, host->data_dma, sizeof(*host->data), in mmc_spi_dma_free()
1416 host->readback.is_dma_mapped = (host->dma_dev != NULL); in mmc_spi_probe()
1469 host->dma_dev ? "" : ", no DMA", in mmc_spi_probe()