Lines Matching refs:curr_iova
204 struct iova *curr_iova; in __alloc_and_insert_iova_range() local
220 curr_iova = rb_entry(curr, struct iova, node); in __alloc_and_insert_iova_range()
221 low_pfn_new = curr_iova->pfn_hi; in __alloc_and_insert_iova_range()
225 high_pfn = min(high_pfn, curr_iova->pfn_lo); in __alloc_and_insert_iova_range()
229 curr_iova = rb_entry(curr, struct iova, node); in __alloc_and_insert_iova_range()
230 } while (curr && new_pfn <= curr_iova->pfn_hi && new_pfn >= low_pfn); in __alloc_and_insert_iova_range()
237 curr_iova = rb_entry(curr, struct iova, node); in __alloc_and_insert_iova_range()
266 struct iova *curr_iova, *prev_iova; in __alloc_and_insert_iova_best_fit() local
281 curr_iova = rb_entry(curr, struct iova, node); in __alloc_and_insert_iova_best_fit()
284 limit_pfn = min(limit_pfn, curr_iova->pfn_lo); in __alloc_and_insert_iova_best_fit()
286 gap = curr_iova->pfn_lo - prev_iova->pfn_hi - 1; in __alloc_and_insert_iova_best_fit()
297 curr_iova = rb_entry(curr, struct iova, node); in __alloc_and_insert_iova_best_fit()
298 limit_pfn = min(limit_pfn, curr_iova->pfn_lo); in __alloc_and_insert_iova_best_fit()
300 gap = curr_iova->pfn_lo - iovad->start_pfn; in __alloc_and_insert_iova_best_fit()