Lines Matching refs:pfn
27 unsigned long pfn,
307 private_find_iova(struct iova_domain *iovad, unsigned long pfn) in private_find_iova() argument
317 if ((pfn >= iova->pfn_lo) && (pfn <= iova->pfn_hi)) { in private_find_iova()
321 if (pfn < iova->pfn_lo) in private_find_iova()
323 else if (pfn > iova->pfn_lo) in private_find_iova()
345 struct iova *find_iova(struct iova_domain *iovad, unsigned long pfn) in find_iova() argument
352 iova = private_find_iova(iovad, pfn); in find_iova()
383 free_iova(struct iova_domain *iovad, unsigned long pfn) in free_iova() argument
385 struct iova *iova = find_iova(iovad, pfn); in free_iova()
443 free_iova_fast(struct iova_domain *iovad, unsigned long pfn, unsigned long size) in free_iova_fast() argument
445 if (iova_rcache_insert(iovad, pfn, size)) in free_iova_fast()
448 free_iova(iovad, pfn); in free_iova_fast()
709 static void iova_magazine_push(struct iova_magazine *mag, unsigned long pfn) in iova_magazine_push() argument
713 mag->pfns[mag->size++] = pfn; in iova_magazine_push()
794 static bool iova_rcache_insert(struct iova_domain *iovad, unsigned long pfn, in iova_rcache_insert() argument
802 return __iova_rcache_insert(iovad, &iovad->rcaches[log_size], pfn); in iova_rcache_insert()