Lines Matching refs:range_id
72 static unsigned long pfn_first(struct dev_pagemap *pgmap, int range_id) in pfn_first() argument
74 struct range *range = &pgmap->ranges[range_id]; in pfn_first()
77 if (range_id) in pfn_first()
97 static unsigned long pfn_end(struct dev_pagemap *pgmap, int range_id) in pfn_end() argument
99 const struct range *range = &pgmap->ranges[range_id]; in pfn_end()
104 static unsigned long pfn_len(struct dev_pagemap *pgmap, unsigned long range_id) in pfn_len() argument
106 return (pfn_end(pgmap, range_id) - in pfn_len()
107 pfn_first(pgmap, range_id)) >> pgmap->vmemmap_shift; in pfn_len()
110 static void pageunmap_range(struct dev_pagemap *pgmap, int range_id) in pageunmap_range() argument
112 struct range *range = &pgmap->ranges[range_id]; in pageunmap_range()
116 first_page = pfn_to_page(pfn_first(pgmap, range_id)); in pageunmap_range()
170 int range_id, int nid) in pagemap_range() argument
173 struct range *range = &pgmap->ranges[range_id]; in pagemap_range()
177 if (WARN_ONCE(pgmap_altmap(pgmap) && range_id > 0, in pagemap_range()
272 percpu_ref_get_many(&pgmap->ref, pfn_len(pgmap, range_id)); in pagemap_range()