Home
last modified time | relevance | path

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

/linux-6.1.9/arch/x86/include/asm/
Dpgtable-3level.h252 #define SWP_TYPE_BITS 5 macro
257 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT + SWP_TYPE_BITS)
259 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
260 #define __swp_type(x) (((x).val) & ((1UL << SWP_TYPE_BITS) - 1))
261 #define __swp_offset(x) ((x).val >> SWP_TYPE_BITS)
262 #define __swp_entry(type, offset) ((swp_entry_t){(type) | (offset) << SWP_TYPE_BITS})
273 (~(pteval_t)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \
274 | ((pteval_t)(type) << (64 - SWP_TYPE_BITS)) })
284 #define __pteval_swp_type(x) ((unsigned long)((x).pte >> (64 - SWP_TYPE_BITS)))
285 #define __pteval_swp_offset(x) ((unsigned long)(~((x).pte) << SWP_TYPE_BITS >> SWP_OFFSET_SHIFT))
Dpgtable_64.h214 #define SWP_TYPE_BITS 5 macro
219 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT+SWP_TYPE_BITS)
221 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
224 #define __swp_type(x) ((x).val >> (64 - SWP_TYPE_BITS))
227 #define __swp_offset(x) (~(x).val << SWP_TYPE_BITS >> SWP_OFFSET_SHIFT)
235 (~(unsigned long)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \
236 | ((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))
/linux-6.1.9/arch/powerpc/include/asm/nohash/64/
Dpgtable.h281 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \
284 #define SWP_TYPE_BITS 5 macro
286 & ((1UL << SWP_TYPE_BITS) - 1))
/linux-6.1.9/arch/xtensa/include/asm/
Dpgtable.h348 #define SWP_TYPE_BITS 5 macro
349 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
/linux-6.1.9/arch/powerpc/include/asm/book3s/64/
Dpgtable.h734 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \
744 #define SWP_TYPE_BITS 5 macro
745 #define SWP_TYPE_MASK ((1UL << SWP_TYPE_BITS) - 1)