Lines Matching defs:swp
836 /* Create a swp entry with all possible bits set */
861 swp_entry_t swp;
866 swp = __pte_to_swp_entry(pte);
867 pte = __swp_entry_to_pte(swp);
874 swp_entry_t swp;
882 swp = __pmd_to_swp_entry(pmd);
883 pmd = __swp_entry_to_pmd(swp);
893 swp_entry_t swp;
916 swp = make_writable_migration_entry(page_to_pfn(page));
917 WARN_ON(!is_migration_entry(swp));
918 WARN_ON(!is_writable_migration_entry(swp));
920 swp = make_readable_migration_entry(swp_offset(swp));
921 WARN_ON(!is_migration_entry(swp));
922 WARN_ON(is_writable_migration_entry(swp));
924 swp = make_readable_migration_entry(page_to_pfn(page));
925 WARN_ON(!is_migration_entry(swp));
926 WARN_ON(is_writable_migration_entry(swp));