Lines Matching refs:pfn_hi
70 iovad->anchor.pfn_lo = iovad->anchor.pfn_hi = IOVA_ANCHOR; in init_iova_domain()
88 if (new->pfn_hi < iovad->dma_32bit_pfn) in __cached_rbnode_insert_update()
101 (free->pfn_hi < iovad->dma_32bit_pfn && in __cached_rbnode_delete_update()
128 while (to_iova(node)->pfn_hi < limit_pfn) in iova_find_limit()
200 retry_pfn = curr_iova->pfn_hi; in __alloc_and_insert_iova_range()
209 } while (curr && new_pfn <= curr_iova->pfn_hi && new_pfn >= low_pfn); in __alloc_and_insert_iova_range()
225 new->pfn_hi = new->pfn_lo + size - 1; in __alloc_and_insert_iova_range()
349 else if (pfn > iova->pfn_hi) in private_find_iova()
522 unsigned long pfn_lo, unsigned long pfn_hi) in __is_range_overlap() argument
526 if ((pfn_lo <= iova->pfn_hi) && (pfn_hi >= iova->pfn_lo)) in __is_range_overlap()
532 alloc_and_init_iova(unsigned long pfn_lo, unsigned long pfn_hi) in alloc_and_init_iova() argument
539 iova->pfn_hi = pfn_hi; in alloc_and_init_iova()
547 unsigned long pfn_lo, unsigned long pfn_hi) in __insert_new_range() argument
551 iova = alloc_and_init_iova(pfn_lo, pfn_hi); in __insert_new_range()
560 unsigned long *pfn_lo, unsigned long *pfn_hi) in __adjust_overlap_range() argument
564 if (*pfn_hi > iova->pfn_hi) in __adjust_overlap_range()
565 *pfn_lo = iova->pfn_hi + 1; in __adjust_overlap_range()
578 unsigned long pfn_lo, unsigned long pfn_hi) in reserve_iova() argument
586 if (WARN_ON((pfn_hi | pfn_lo) > (ULLONG_MAX >> iova_shift(iovad)))) in reserve_iova()
591 if (__is_range_overlap(node, pfn_lo, pfn_hi)) { in reserve_iova()
593 __adjust_overlap_range(iova, &pfn_lo, &pfn_hi); in reserve_iova()
595 (pfn_hi <= iova->pfn_hi)) in reserve_iova()
606 iova = __insert_new_range(iovad, pfn_lo, pfn_hi); in reserve_iova()