H A D | ivc.c | 6 #include <soc/tegra/ivc.h> 77 static inline void tegra_ivc_invalidate(struct tegra_ivc *ivc, dma_addr_t phys) argument 79 if (!ivc->peer) 82 dma_sync_single_for_cpu(ivc->peer, phys, TEGRA_IVC_ALIGN, 86 static inline void tegra_ivc_flush(struct tegra_ivc *ivc, dma_addr_t phys) argument 88 if (!ivc->peer) 91 dma_sync_single_for_device(ivc->peer, phys, TEGRA_IVC_ALIGN, 95 static inline bool tegra_ivc_empty(struct tegra_ivc *ivc, struct iosys_map *map) argument 115 if (tx - rx > ivc->num_frames) 121 static inline bool tegra_ivc_full(struct tegra_ivc *ivc, struc argument 133 tegra_ivc_available(struct tegra_ivc *ivc, struct iosys_map *map) argument 147 tegra_ivc_advance_tx(struct tegra_ivc *ivc) argument 159 tegra_ivc_advance_rx(struct tegra_ivc *ivc) argument 171 tegra_ivc_check_read(struct tegra_ivc *ivc) argument 206 tegra_ivc_check_write(struct tegra_ivc *ivc) argument 226 tegra_ivc_frame_virt(struct tegra_ivc *ivc, const struct iosys_map *header, unsigned int frame, struct iosys_map *map) argument 239 tegra_ivc_frame_phys(struct tegra_ivc *ivc, dma_addr_t phys, unsigned int frame) argument 250 tegra_ivc_invalidate_frame(struct tegra_ivc *ivc, dma_addr_t phys, unsigned int frame, unsigned int offset, size_t size) argument 264 tegra_ivc_flush_frame(struct tegra_ivc *ivc, dma_addr_t phys, unsigned int frame, unsigned int offset, size_t size) argument 279 tegra_ivc_read_get_next_frame(struct tegra_ivc *ivc, struct iosys_map *map) argument 303 tegra_ivc_read_advance(struct tegra_ivc *ivc) argument 343 tegra_ivc_write_get_next_frame(struct tegra_ivc *ivc, struct iosys_map *map) argument 356 tegra_ivc_write_advance(struct tegra_ivc *ivc) argument 398 tegra_ivc_reset(struct tegra_ivc *ivc) argument 428 tegra_ivc_notified(struct tegra_ivc *ivc) argument 646 tegra_ivc_init(struct tegra_ivc *ivc, struct device *peer, const struct iosys_map *rx, dma_addr_t rx_phys, const struct iosys_map *tx, dma_addr_t tx_phys, unsigned int num_frames, size_t frame_size, void (*notify)(struct tegra_ivc *ivc, void *data), void *data) argument 709 tegra_ivc_cleanup(struct tegra_ivc *ivc) argument [all...] |