Searched refs:SWP_TYPE_BITS (Results 1 – 6 of 6) sorted by relevance
208 #define SWP_TYPE_BITS 5 macro213 #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))
297 #define SWP_TYPE_BITS 5 macro302 #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)) })
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))
325 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \335 #define SWP_TYPE_BITS 5 macro337 & ((1UL << SWP_TYPE_BITS) - 1))
383 #define SWP_TYPE_BITS 5 macro384 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
644 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \655 #define SWP_TYPE_BITS 5 macro657 & ((1UL << SWP_TYPE_BITS) - 1))672 #define _PAGE_SWP_SOFT_DIRTY (1UL << (SWP_TYPE_BITS + _PAGE_BIT_SWAP_TYPE))