Lines Matching defs:peer
73 if (!ivc->peer)
76 dma_sync_single_for_cpu(ivc->peer, phys, TEGRA_IVC_ALIGN,
82 if (!ivc->peer)
85 dma_sync_single_for_device(ivc->peer, phys, TEGRA_IVC_ALIGN,
107 * a potentially malicious peer, so returning empty is safer, because
172 * state from the remote peer. The remote peer cannot reset its
244 if (!ivc->peer || WARN_ON(frame >= ivc->num_frames))
249 dma_sync_single_for_cpu(ivc->peer, phys, size, DMA_FROM_DEVICE);
258 if (!ivc->peer || WARN_ON(frame >= ivc->num_frames))
263 dma_sync_single_for_device(ivc->peer, phys, size, DMA_TO_DEVICE);
507 * At this point, we have observed the peer to be in either
509 * peer state before storing to tx.channel.
612 int tegra_ivc_init(struct tegra_ivc *ivc, struct device *peer, void *rx,
638 if (peer) {
639 ivc->rx.phys = dma_map_single(peer, rx, queue_size,
641 if (dma_mapping_error(peer, ivc->rx.phys))
644 ivc->tx.phys = dma_map_single(peer, tx, queue_size,
646 if (dma_mapping_error(peer, ivc->tx.phys)) {
647 dma_unmap_single(peer, ivc->rx.phys, queue_size,
658 ivc->peer = peer;
677 if (ivc->peer) {
681 dma_unmap_single(ivc->peer, ivc->rx.phys, size,
683 dma_unmap_single(ivc->peer, ivc->tx.phys, size,