Lines Matching full:phys
71 static inline void tegra_ivc_invalidate(struct tegra_ivc *ivc, dma_addr_t phys) in tegra_ivc_invalidate() argument
76 dma_sync_single_for_cpu(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_invalidate()
80 static inline void tegra_ivc_flush(struct tegra_ivc *ivc, dma_addr_t phys) in tegra_ivc_flush() argument
85 dma_sync_single_for_device(ivc->peer, phys, TEGRA_IVC_ALIGN, in tegra_ivc_flush()
191 tegra_ivc_invalidate(ivc, ivc->rx.phys + offset); in tegra_ivc_check_read()
209 tegra_ivc_invalidate(ivc, ivc->tx.phys + offset); in tegra_ivc_check_write()
228 dma_addr_t phys, in tegra_ivc_frame_phys() argument
235 return phys + offset; in tegra_ivc_frame_phys()
239 dma_addr_t phys, in tegra_ivc_invalidate_frame() argument
247 phys = tegra_ivc_frame_phys(ivc, phys, frame) + offset; in tegra_ivc_invalidate_frame()
249 dma_sync_single_for_cpu(ivc->peer, phys, size, DMA_FROM_DEVICE); in tegra_ivc_invalidate_frame()
253 dma_addr_t phys, in tegra_ivc_flush_frame() argument
261 phys = tegra_ivc_frame_phys(ivc, phys, frame) + offset; in tegra_ivc_flush_frame()
263 dma_sync_single_for_device(ivc->peer, phys, size, DMA_TO_DEVICE); in tegra_ivc_flush_frame()
284 tegra_ivc_invalidate_frame(ivc, ivc->rx.phys, ivc->rx.position, 0, in tegra_ivc_read_get_next_frame()
308 tegra_ivc_flush(ivc, ivc->rx.phys + rx); in tegra_ivc_read_advance()
321 tegra_ivc_invalidate(ivc, ivc->rx.phys + tx); in tegra_ivc_read_advance()
354 tegra_ivc_flush_frame(ivc, ivc->tx.phys, ivc->tx.position, 0, in tegra_ivc_write_advance()
364 tegra_ivc_flush(ivc, ivc->tx.phys + tx); in tegra_ivc_write_advance()
377 tegra_ivc_invalidate(ivc, ivc->tx.phys + rx); in tegra_ivc_write_advance()
391 tegra_ivc_flush(ivc, ivc->tx.phys + offset); in tegra_ivc_reset()
422 tegra_ivc_invalidate(ivc, ivc->rx.phys + offset); in tegra_ivc_notified()
456 tegra_ivc_flush(ivc, ivc->tx.phys + offset); in tegra_ivc_notified()
496 tegra_ivc_flush(ivc, ivc->tx.phys + offset); in tegra_ivc_notified()
520 tegra_ivc_flush(ivc, ivc->tx.phys + offset); in tegra_ivc_notified()
639 ivc->rx.phys = dma_map_single(peer, rx, queue_size, in tegra_ivc_init()
641 if (dma_mapping_error(peer, ivc->rx.phys)) in tegra_ivc_init()
644 ivc->tx.phys = dma_map_single(peer, tx, queue_size, in tegra_ivc_init()
646 if (dma_mapping_error(peer, ivc->tx.phys)) { in tegra_ivc_init()
647 dma_unmap_single(peer, ivc->rx.phys, queue_size, in tegra_ivc_init()
652 ivc->rx.phys = rx_phys; in tegra_ivc_init()
653 ivc->tx.phys = tx_phys; in tegra_ivc_init()
681 dma_unmap_single(ivc->peer, ivc->rx.phys, size, in tegra_ivc_cleanup()
683 dma_unmap_single(ivc->peer, ivc->tx.phys, size, in tegra_ivc_cleanup()