Lines Matching refs:iova
19 struct iova { struct
85 struct iova anchor; /* rbtree lookup anchor */
102 static inline unsigned long iova_size(struct iova *iova) in iova_size() argument
104 return iova->pfn_hi - iova->pfn_lo + 1; in iova_size()
117 static inline size_t iova_offset(struct iova_domain *iovad, dma_addr_t iova) in iova_offset() argument
119 return iova & iova_mask(iovad); in iova_offset()
127 static inline dma_addr_t iova_dma_addr(struct iova_domain *iovad, struct iova *iova) in iova_dma_addr() argument
129 return (dma_addr_t)iova->pfn_lo << iova_shift(iovad); in iova_dma_addr()
132 static inline unsigned long iova_pfn(struct iova_domain *iovad, dma_addr_t iova) in iova_pfn() argument
134 return iova >> iova_shift(iovad); in iova_pfn()
142 void __free_iova(struct iova_domain *iovad, struct iova *iova);
143 struct iova *alloc_iova(struct iova_domain *iovad, unsigned long size,
153 struct iova *reserve_iova(struct iova_domain *iovad, unsigned long pfn_lo,
159 struct iova *find_iova(struct iova_domain *iovad, unsigned long pfn);
175 static inline void __free_iova(struct iova_domain *iovad, struct iova *iova) in __free_iova() argument
179 static inline struct iova *alloc_iova(struct iova_domain *iovad, in alloc_iova()
207 static inline struct iova *reserve_iova(struct iova_domain *iovad, in reserve_iova()
227 static inline struct iova *find_iova(struct iova_domain *iovad, in find_iova()