Lines Matching +full:32 +full:k
14 return (((x & 0x00000000ffULL) << 32)| in swab40()
18 ((x & 0xff00000000ULL) >> 32)); in swab40()
21 int bch2_backpointer_validate(struct bch_fs *, struct bkey_s_c k,
30 .min_val_size = 32, \
109 bp->k.type = KEY_TYPE_deleted; in bch2_bucket_backpointer_mod()
110 set_bkey_val_u64s(&bp->k, 0); in bch2_bucket_backpointer_mod()
116 static inline enum bch_data_type bch2_bkey_ptr_data_type(struct bkey_s_c k, in bch2_bkey_ptr_data_type() argument
120 switch (k.k->type) { in bch2_bkey_ptr_data_type()
129 struct bkey_s_c_stripe s = bkey_s_c_to_stripe(k); in bch2_bkey_ptr_data_type()
145 struct bkey_s_c k, struct extent_ptr_decoded p, in bch2_extent_ptr_to_bp() argument
150 bp->k.p = POS(p.ptr.dev, ((u64) p.ptr.offset << MAX_EXTENT_COMPRESS_RATIO_SHIFT) + p.crc.offset); in bch2_extent_ptr_to_bp()
154 .data_type = bch2_bkey_ptr_data_type(k, p, entry), in bch2_extent_ptr_to_bp()
156 .bucket_len = ptr_disk_sectors(level ? btree_sectors(c) : k.k->size, p), in bch2_extent_ptr_to_bp()
157 .pos = k.k->p, in bch2_extent_ptr_to_bp()