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()
134 struct bkey_s_c_stripe s = bkey_s_c_to_stripe(k); in bch2_bkey_ptr_data_type()
150 struct bkey_s_c k, struct extent_ptr_decoded p, in bch2_extent_ptr_to_bp() argument
155 bp->k.p.inode = p.ptr.dev; in bch2_extent_ptr_to_bp()
157 if (k.k->type != KEY_TYPE_stripe) in bch2_extent_ptr_to_bp()
158 bp->k.p.offset = ((u64) p.ptr.offset << MAX_EXTENT_COMPRESS_RATIO_SHIFT) + p.crc.offset; in bch2_extent_ptr_to_bp()
164 struct bkey_s_c_stripe s = bkey_s_c_to_stripe(k); in bch2_extent_ptr_to_bp()
165 bp->k.p.offset = ((u64) (p.ptr.offset + le16_to_cpu(s.v->sectors)) << in bch2_extent_ptr_to_bp()
172 .data_type = bch2_bkey_ptr_data_type(k, p, entry), in bch2_extent_ptr_to_bp()
174 .bucket_len = ptr_disk_sectors(level ? btree_sectors(c) : k.k->size, p), in bch2_extent_ptr_to_bp()
175 .pos = k.k->p, in bch2_extent_ptr_to_bp()