Lines Matching refs:bkey
23 struct bkey { struct
30 BITMASK(name, struct bkey, field, offset, size) argument
33 static inline __u64 name(const struct bkey *k, unsigned int i) \
36 static inline void SET_##name(struct bkey *k, unsigned int i, __u64 v) \
56 static inline __u64 KEY_OFFSET(const struct bkey *k) in KEY_OFFSET()
61 static inline void SET_KEY_OFFSET(struct bkey *k, __u64 v) in SET_KEY_OFFSET()
72 ((struct bkey) { \
99 static inline unsigned long bkey_u64s(const struct bkey *k) in bkey_u64s()
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()
111 static inline void bkey_copy_key(struct bkey *dest, const struct bkey *src) in bkey_copy_key()
117 static inline struct bkey *bkey_next(const struct bkey *k) in bkey_next()
121 return (struct bkey *) (d + bkey_u64s(k)); in bkey_next()
124 static inline struct bkey *bkey_idx(const struct bkey *k, unsigned int nr_keys) in bkey_idx()
128 return (struct bkey *) (d + nr_keys); in bkey_idx()
134 union { struct bkey key; __u64 key ## _pad[BKEY_PAD]; }
294 struct bkey start[0];
359 struct bkey start[0];