Lines Matching refs:pfn_lo
70 iovad->anchor.pfn_lo = iovad->anchor.pfn_hi = IOVA_ANCHOR; in init_iova_domain()
102 free->pfn_lo >= cached_iova->pfn_lo)) in __cached_rbnode_delete_update()
105 if (free->pfn_lo < iovad->dma_32bit_pfn) in __cached_rbnode_delete_update()
109 if (free->pfn_lo >= cached_iova->pfn_lo) in __cached_rbnode_delete_update()
132 while (node->rb_left && to_iova(node->rb_left)->pfn_lo >= limit_pfn) in iova_find_limit()
141 if (to_iova(next)->pfn_lo >= limit_pfn) { in iova_find_limit()
164 if (iova->pfn_lo < this->pfn_lo) in iova_insert_rbtree()
166 else if (iova->pfn_lo > this->pfn_lo) in iova_insert_rbtree()
204 high_pfn = min(high_pfn, curr_iova->pfn_lo); in __alloc_and_insert_iova_range()
224 new->pfn_lo = new_pfn; in __alloc_and_insert_iova_range()
225 new->pfn_hi = new->pfn_lo + size - 1; in __alloc_and_insert_iova_range()
250 if (iova->pfn_lo != IOVA_ANCHOR) in free_iova_mem()
347 if (pfn < iova->pfn_lo) in private_find_iova()
474 return new_iova->pfn_lo; in alloc_iova_fast()
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
538 iova->pfn_lo = pfn_lo; 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
562 if (*pfn_lo < iova->pfn_lo) in __adjust_overlap_range()
563 iova->pfn_lo = *pfn_lo; 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()
594 if ((pfn_lo >= iova->pfn_lo) && in reserve_iova()
606 iova = __insert_new_range(iovad, pfn_lo, pfn_hi); in reserve_iova()