Home
last modified time | relevance | path

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

/linux-5.19.10/arch/x86/include/asm/
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-3level.h252 #define SWP_TYPE_BITS 5 macro
257 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT + 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-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-5.19.10/arch/powerpc/include/asm/nohash/64/
Dpgtable.h294 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \
297 #define SWP_TYPE_BITS 5 macro
299 & ((1UL << SWP_TYPE_BITS) - 1))
/linux-5.19.10/arch/xtensa/include/asm/
Dpgtable.h367 #define SWP_TYPE_BITS 5 macro
368 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
/linux-5.19.10/arch/powerpc/include/asm/book3s/64/
Dpgtable.h751 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \
761 #define SWP_TYPE_BITS 5 macro
762 #define SWP_TYPE_MASK ((1UL << SWP_TYPE_BITS) - 1)