Lines Matching refs:dax_region
20 struct dax_region *dax_region = dev_dax->region; in check_vma() local
35 mask = dax_region->align - 1; in check_vma()
44 if ((dax_region->pfn_flags & (PFN_DEV|PFN_MAP)) == PFN_DEV in check_vma()
82 struct dax_region *dax_region; in __dev_dax_pte_fault() local
89 dax_region = dev_dax->region; in __dev_dax_pte_fault()
90 if (dax_region->align > PAGE_SIZE) { in __dev_dax_pte_fault()
92 dax_region->align, fault_size); in __dev_dax_pte_fault()
96 if (fault_size != dax_region->align) in __dev_dax_pte_fault()
105 *pfn = phys_to_pfn_t(phys, dax_region->pfn_flags); in __dev_dax_pte_fault()
115 struct dax_region *dax_region; in __dev_dax_pmd_fault() local
123 dax_region = dev_dax->region; in __dev_dax_pmd_fault()
124 if (dax_region->align > PMD_SIZE) { in __dev_dax_pmd_fault()
126 dax_region->align, fault_size); in __dev_dax_pmd_fault()
131 if ((dax_region->pfn_flags & (PFN_DEV|PFN_MAP)) != (PFN_DEV|PFN_MAP)) { in __dev_dax_pmd_fault()
136 if (fault_size < dax_region->align) in __dev_dax_pmd_fault()
138 else if (fault_size > dax_region->align) in __dev_dax_pmd_fault()
153 *pfn = phys_to_pfn_t(phys, dax_region->pfn_flags); in __dev_dax_pmd_fault()
164 struct dax_region *dax_region; in __dev_dax_pud_fault() local
173 dax_region = dev_dax->region; in __dev_dax_pud_fault()
174 if (dax_region->align > PUD_SIZE) { in __dev_dax_pud_fault()
176 dax_region->align, fault_size); in __dev_dax_pud_fault()
181 if ((dax_region->pfn_flags & (PFN_DEV|PFN_MAP)) != (PFN_DEV|PFN_MAP)) { in __dev_dax_pud_fault()
186 if (fault_size < dax_region->align) in __dev_dax_pud_fault()
188 else if (fault_size > dax_region->align) in __dev_dax_pud_fault()
203 *pfn = phys_to_pfn_t(phys, dax_region->pfn_flags); in __dev_dax_pud_fault()
283 struct dax_region *dax_region = dev_dax->region; in dev_dax_split() local
285 if (!IS_ALIGNED(addr, dax_region->align)) in dev_dax_split()
294 struct dax_region *dax_region = dev_dax->region; in dev_dax_pagesize() local
296 return dax_region->align; in dev_dax_pagesize()
335 struct dax_region *dax_region; in dax_get_unmapped_area() local
340 dax_region = dev_dax->region; in dax_get_unmapped_area()
341 align = dax_region->align; in dax_get_unmapped_area()