• Home
  • Raw
  • Download

Lines Matching refs:limit_pfn

23 				     unsigned long limit_pfn);
117 __get_cached_rbnode(struct iova_domain *iovad, unsigned long limit_pfn) in __get_cached_rbnode() argument
119 if (limit_pfn <= iovad->dma_32bit_pfn) in __get_cached_rbnode()
181 unsigned long size, unsigned long limit_pfn, in __alloc_and_insert_iova_range() argument
195 if (limit_pfn <= iovad->dma_32bit_pfn && in __alloc_and_insert_iova_range()
199 curr = __get_cached_rbnode(iovad, limit_pfn); in __alloc_and_insert_iova_range()
202 limit_pfn = min(limit_pfn, curr_iova->pfn_lo); in __alloc_and_insert_iova_range()
203 new_pfn = (limit_pfn - size) & align_mask; in __alloc_and_insert_iova_range()
209 if (limit_pfn < size || new_pfn < iovad->start_pfn) { in __alloc_and_insert_iova_range()
295 unsigned long limit_pfn, in alloc_iova() argument
305 ret = __alloc_and_insert_iova_range(iovad, size, limit_pfn + 1, in alloc_iova()
413 unsigned long limit_pfn, bool flush_rcache) in alloc_iova_fast() argument
418 iova_pfn = iova_rcache_get(iovad, size, limit_pfn + 1); in alloc_iova_fast()
423 new_iova = alloc_iova(iovad, size, limit_pfn, true); in alloc_iova_fast()
834 unsigned long limit_pfn) in iova_magazine_pop() argument
842 for (i = mag->size - 1; mag->pfns[i] > limit_pfn; i--) in iova_magazine_pop()
954 unsigned long limit_pfn) in __iova_rcache_get() argument
980 iova_pfn = iova_magazine_pop(cpu_rcache->loaded, limit_pfn); in __iova_rcache_get()
994 unsigned long limit_pfn) in iova_rcache_get() argument
1001 return __iova_rcache_get(&iovad->rcaches[log_size], limit_pfn - size); in iova_rcache_get()