Home
last modified time | relevance | path

Searched refs:SWP_TYPE_BITS (Results 1 – 6 of 6) sorted by relevance

/arch/x86/include/asm/
Dpgtable-3level.h208 #define SWP_TYPE_BITS 5 macro
213 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT + SWP_TYPE_BITS)
229 (~(pteval_t)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \
230 | ((pteval_t)(type) << (64 - SWP_TYPE_BITS)) })
240 #define __pteval_swp_type(x) ((unsigned long)((x).pte >> (64 - SWP_TYPE_BITS)))
241 #define __pteval_swp_offset(x) ((unsigned long)(~((x).pte) << SWP_TYPE_BITS >> SWP_OFFSET_SHIFT))
Dpgtable_64.h297 #define SWP_TYPE_BITS 5 macro
302 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT+SWP_TYPE_BITS)
304 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
307 #define __swp_type(x) ((x).val >> (64 - SWP_TYPE_BITS))
310 #define __swp_offset(x) (~(x).val << SWP_TYPE_BITS >> SWP_OFFSET_SHIFT)
318 (~(unsigned long)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \
319 | ((unsigned long)(type) << (64-SWP_TYPE_BITS)) })
Dpgtable-2level.h84 #define SWP_TYPE_BITS 5 macro
87 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
90 & ((1U << SWP_TYPE_BITS) - 1))
/arch/powerpc/include/asm/nohash/64/
Dpgtable.h325 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \
335 #define SWP_TYPE_BITS 5 macro
337 & ((1UL << SWP_TYPE_BITS) - 1))
/arch/xtensa/include/asm/
Dpgtable.h383 #define SWP_TYPE_BITS 5 macro
384 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
/arch/powerpc/include/asm/book3s/64/
Dpgtable.h644 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \
655 #define SWP_TYPE_BITS 5 macro
657 & ((1UL << SWP_TYPE_BITS) - 1))
672 #define _PAGE_SWP_SOFT_DIRTY (1UL << (SWP_TYPE_BITS + _PAGE_BIT_SWAP_TYPE))