Lines Matching refs:swp_entry
39 static inline swp_entry_t swp_entry(unsigned long type, pgoff_t offset) in swp_entry() function
81 return swp_entry(__swp_type(arch_entry), __swp_offset(arch_entry)); in pte_to_swp_entry()
112 return swp_entry(SWP_DEVICE_READ, offset); in make_readable_device_private_entry()
117 return swp_entry(SWP_DEVICE_WRITE, offset); in make_writable_device_private_entry()
133 return swp_entry(SWP_DEVICE_EXCLUSIVE_READ, offset); in make_readable_device_exclusive_entry()
138 return swp_entry(SWP_DEVICE_EXCLUSIVE_WRITE, offset); in make_writable_device_exclusive_entry()
154 return swp_entry(0, 0); in make_readable_device_private_entry()
159 return swp_entry(0, 0); in make_writable_device_private_entry()
174 return swp_entry(0, 0); in make_readable_device_exclusive_entry()
179 return swp_entry(0, 0); in make_writable_device_exclusive_entry()
207 return swp_entry(SWP_MIGRATION_READ, offset); in make_readable_migration_entry()
212 return swp_entry(SWP_MIGRATION_WRITE, offset); in make_writable_migration_entry()
224 return swp_entry(0, 0); in make_readable_migration_entry()
229 return swp_entry(0, 0); in make_writable_migration_entry()
294 return swp_entry(__swp_type(arch_entry), __swp_offset(arch_entry)); in pmd_to_swp_entry()
326 return swp_entry(0, 0); in pmd_to_swp_entry()
350 return swp_entry(SWP_HWPOISON, page_to_pfn(page)); in make_hwpoison_entry()
377 return swp_entry(0, 0); in make_hwpoison_entry()