Lines Matching refs:bkey_packed
26 const struct bkey_packed *);
38 static inline void bkey_p_copy(struct bkey_packed *dst, const struct bkey_packed *src) in bkey_p_copy()
52 const struct bkey_packed *,
53 const struct bkey_packed *);
55 unsigned bch2_bkey_ffs(const struct btree *, const struct bkey_packed *);
58 int __bch2_bkey_cmp_packed_format_checked(const struct bkey_packed *,
59 const struct bkey_packed *,
64 const struct bkey_packed *,
69 const struct bkey_packed *,
70 const struct bkey_packed *);
74 const struct bkey_packed *,
79 const struct bkey_packed *l, const struct bpos *r) in bkey_cmp_left_packed()
91 const struct bkey_packed *l, in bkey_cmp_left_packed_byval()
200 void bch2_bkey_swab_key(const struct bkey_format *, struct bkey_packed *);
218 #define bkey_packed(_k) \ macro
222 #define bkey_packed(_k) ((_k)->format != KEY_FORMAT_CURRENT) macro
228 static inline struct bkey_packed *bkey_to_packed(struct bkey_i *k) in bkey_to_packed()
230 return (struct bkey_packed *) k; in bkey_to_packed()
233 static inline const struct bkey_packed *bkey_to_packed_c(const struct bkey_i *k) in bkey_to_packed_c()
235 return (const struct bkey_packed *) k; in bkey_to_packed_c()
238 static inline struct bkey_i *packed_to_bkey(struct bkey_packed *k) in packed_to_bkey()
240 return bkey_packed(k) ? NULL : (struct bkey_i *) k; in packed_to_bkey()
243 static inline const struct bkey *packed_to_bkey_c(const struct bkey_packed *k) in packed_to_bkey_c()
245 return bkey_packed(k) ? NULL : (const struct bkey *) k; in packed_to_bkey_c()
314 const struct bkey_packed *k) in bkeyp_key_u64s()
316 return bkey_packed(k) ? format->key_u64s : BKEY_U64s; in bkeyp_key_u64s()
320 const struct bkey_packed *k) in bkeyp_u64s_valid()
326 const struct bkey_packed *k) in bkeyp_key_bytes()
332 const struct bkey_packed *k) in bkeyp_val_u64s()
338 const struct bkey_packed *k) in bkeyp_val_bytes()
344 struct bkey_packed *k, unsigned val_u64s) in set_bkeyp_val_u64s()
355 struct bkey_packed *,
357 const struct bkey_packed *);
360 const struct bkey_packed *);
364 const struct bkey_packed *);
367 bool bch2_bkey_pack_key(struct bkey_packed *, const struct bkey *,
376 enum bkey_pack_pos_ret bch2_bkey_pack_pos_lossy(struct bkey_packed *, struct bpos,
379 static inline bool bkey_pack_pos(struct bkey_packed *out, struct bpos in, in bkey_pack_pos()
386 const struct bkey_packed *);
387 bool bch2_bkey_pack(struct bkey_packed *, const struct bkey_i *,
390 typedef void (*compiled_unpack_fn)(struct bkey *, const struct bkey_packed *);
395 const struct bkey_packed *src) in __bkey_unpack_key_format_checked()
413 const struct bkey_packed *src) in bkey_unpack_key_format_checked()
423 const struct bkey_packed *src) in __bkey_unpack_key()
425 if (likely(bkey_packed(src))) in __bkey_unpack_key()
435 const struct bkey_packed *src) in bkey_unpack_key()
437 return likely(bkey_packed(src)) in bkey_unpack_key()
444 const struct bkey_packed *src) in bkey_unpack_pos_format_checked()
454 const struct bkey_packed *src) in bkey_unpack_pos()
456 return likely(bkey_packed(src)) in bkey_unpack_pos()
464 const struct bkey_packed *k, in bkey_disassemble()
474 struct bkey_packed *k, in __bkey_disassemble()