Searched refs:SWP_TYPE_BITS (Results 1 – 6 of 6) sorted by relevance
212 #define SWP_TYPE_BITS 5 macro217 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT+SWP_TYPE_BITS)219 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)222 #define __swp_type(x) ((x).val >> (64 - SWP_TYPE_BITS))225 #define __swp_offset(x) (~(x).val << SWP_TYPE_BITS >> SWP_OFFSET_SHIFT)233 (~(unsigned long)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \234 | ((unsigned long)(type) << (64-SWP_TYPE_BITS)) })
252 #define SWP_TYPE_BITS 5 macro257 #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))
84 #define SWP_TYPE_BITS 5 macro87 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)90 & ((1U << SWP_TYPE_BITS) - 1))
303 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \306 #define SWP_TYPE_BITS 5 macro308 & ((1UL << SWP_TYPE_BITS) - 1))
365 #define SWP_TYPE_BITS 5 macro366 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
728 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \737 #define SWP_TYPE_BITS 5 macro739 & ((1UL << SWP_TYPE_BITS) - 1))756 #define _PAGE_SWP_SOFT_DIRTY (1UL << (SWP_TYPE_BITS + _PAGE_BIT_SWAP_TYPE))