Lines Matching refs:bkey_packed

33 				     const struct bkey_packed *);
45 static inline void bkey_p_copy(struct bkey_packed *dst, const struct bkey_packed *src) in bkey_p_copy()
59 const struct bkey_packed *,
60 const struct bkey_packed *);
62 unsigned bch2_bkey_ffs(const struct btree *, const struct bkey_packed *);
65 int __bch2_bkey_cmp_packed_format_checked(const struct bkey_packed *,
66 const struct bkey_packed *,
71 const struct bkey_packed *,
76 const struct bkey_packed *,
77 const struct bkey_packed *);
81 const struct bkey_packed *,
86 const struct bkey_packed *l, const struct bpos *r) in bkey_cmp_left_packed()
98 const struct bkey_packed *l, in bkey_cmp_left_packed_byval()
206 void bch2_bkey_swab_key(const struct bkey_format *, struct bkey_packed *);
224 #define bkey_packed(_k) \ macro
228 #define bkey_packed(_k) ((_k)->format != KEY_FORMAT_CURRENT) macro
234 static inline struct bkey_packed *bkey_to_packed(struct bkey_i *k) in bkey_to_packed()
236 return (struct bkey_packed *) k; in bkey_to_packed()
239 static inline const struct bkey_packed *bkey_to_packed_c(const struct bkey_i *k) in bkey_to_packed_c()
241 return (const struct bkey_packed *) k; in bkey_to_packed_c()
244 static inline struct bkey_i *packed_to_bkey(struct bkey_packed *k) in packed_to_bkey()
246 return bkey_packed(k) ? NULL : (struct bkey_i *) k; in packed_to_bkey()
249 static inline const struct bkey *packed_to_bkey_c(const struct bkey_packed *k) in packed_to_bkey_c()
251 return bkey_packed(k) ? NULL : (const struct bkey *) k; in packed_to_bkey_c()
320 const struct bkey_packed *k) in bkeyp_key_u64s()
322 return bkey_packed(k) ? format->key_u64s : BKEY_U64s; in bkeyp_key_u64s()
326 const struct bkey_packed *k) in bkeyp_u64s_valid()
332 const struct bkey_packed *k) in bkeyp_key_bytes()
338 const struct bkey_packed *k) in bkeyp_val_u64s()
344 const struct bkey_packed *k) in bkeyp_val_bytes()
350 struct bkey_packed *k, unsigned val_u64s) in set_bkeyp_val_u64s()
361 struct bkey_packed *,
363 const struct bkey_packed *);
366 const struct bkey_packed *);
370 const struct bkey_packed *);
373 bool bch2_bkey_pack_key(struct bkey_packed *, const struct bkey *,
382 enum bkey_pack_pos_ret bch2_bkey_pack_pos_lossy(struct bkey_packed *, struct bpos,
385 static inline bool bkey_pack_pos(struct bkey_packed *out, struct bpos in, in bkey_pack_pos()
392 const struct bkey_packed *);
393 bool bch2_bkey_pack(struct bkey_packed *, const struct bkey_i *,
396 typedef void (*compiled_unpack_fn)(struct bkey *, const struct bkey_packed *);
401 const struct bkey_packed *src) in __bkey_unpack_key_format_checked()
420 const struct bkey_packed *src) in bkey_unpack_key_format_checked()
430 const struct bkey_packed *src) in __bkey_unpack_key()
432 if (likely(bkey_packed(src))) in __bkey_unpack_key()
442 const struct bkey_packed *src) in bkey_unpack_key()
444 return likely(bkey_packed(src)) in bkey_unpack_key()
451 const struct bkey_packed *src) in bkey_unpack_pos_format_checked()
461 const struct bkey_packed *src) in bkey_unpack_pos()
463 return likely(bkey_packed(src)) in bkey_unpack_pos()
471 const struct bkey_packed *k, in bkey_disassemble()
481 struct bkey_packed *k, in __bkey_disassemble()