Lines Matching +full:3 +full:k
12 static inline __u64 name(const type *k) \
13 { return (k->field >> offset) & ~(~0ULL << size); } \
15 static inline void SET_##name(type *k, __u64 v) \
17 k->field &= ~(~(~0ULL << size) << offset); \
18 k->field |= (v & ~(~0ULL << size)) << offset; \
33 static inline __u64 name(const struct bkey *k, unsigned int i) \
34 { return (k->ptr[i] >> offset) & ~(~0ULL << size); } \
36 static inline void SET_##name(struct bkey *k, unsigned int i, __u64 v) \
38 k->ptr[i] &= ~(~(~0ULL << size) << offset); \
39 k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \
45 KEY_FIELD(KEY_PTRS, high, 60, 3)
56 static inline __u64 KEY_OFFSET(const struct bkey *k) in KEY_OFFSET() argument
58 return k->low; in KEY_OFFSET()
61 static inline void SET_KEY_OFFSET(struct bkey *k, __u64 v) in SET_KEY_OFFSET() argument
63 k->low = v; in SET_KEY_OFFSET()
83 #define KEY_START(k) (KEY_OFFSET(k) - KEY_SIZE(k)) argument
84 #define START_KEY(k) KEY(KEY_INODE(k), KEY_START(k), 0) argument
99 static inline unsigned long bkey_u64s(const struct bkey *k) in bkey_u64s() argument
101 return (sizeof(struct bkey) / sizeof(__u64)) + KEY_PTRS(k); in bkey_u64s()
104 static inline unsigned long bkey_bytes(const struct bkey *k) in bkey_bytes() argument
106 return bkey_u64s(k) * sizeof(__u64); in bkey_bytes()
118 static inline struct bkey *bkey_next(const struct bkey *k) in bkey_next() argument
120 __u64 *d = (void *) k; in bkey_next()
122 return (struct bkey *) (d + bkey_u64s(k)); in bkey_next()
125 static inline struct bkey *bkey_idx(const struct bkey *k, unsigned int nr_keys) in bkey_idx() argument
127 __u64 *d = (void *) k; in bkey_idx()
142 * Version 3: Cache device with new UUID format
147 #define BCACHE_SB_VERSION_CDEV_WITH_UUID 3
287 BITMASK(CACHE_REPLACEMENT, struct cache_sb, flags, 2, 3);
296 #define CACHE_MODE_NONE 3U
301 #define BDEV_STATE_STALE 3U
358 __u16 pad[3];