Lines Matching refs:bi_iter
125 return __bio_map_or_bounce(c, bio, bio->bi_iter, rw); in bio_map_or_bounce()
156 size_t src_len = src->bi_iter.bi_size; in __bio_uncompress()
252 bio->bi_iter.bi_size = crc->live_size << 9; in bch2_bio_uncompress_inplace()
254 memcpy_to_bio(bio, bio->bi_iter, data.b + (crc->offset << 9)); in bch2_bio_uncompress_inplace()
401 if (src->bi_iter.bi_size <= c->opts.block_size) in __bio_compress()
409 *src_len = src->bi_iter.bi_size; in __bio_compress()
410 *dst_len = dst->bi_iter.bi_size; in __bio_compress()
466 memcpy_to_bio(dst, dst->bi_iter, dst_data.b); in __bio_compress()
468 BUG_ON(!*dst_len || *dst_len > dst->bi_iter.bi_size); in __bio_compress()
469 BUG_ON(!*src_len || *src_len > src->bi_iter.bi_size); in __bio_compress()
487 unsigned orig_dst = dst->bi_iter.bi_size; in bch2_bio_compress()
488 unsigned orig_src = src->bi_iter.bi_size; in bch2_bio_compress()
492 src->bi_iter.bi_size = min_t(unsigned, src->bi_iter.bi_size, in bch2_bio_compress()
495 dst->bi_iter.bi_size = min(dst->bi_iter.bi_size, src->bi_iter.bi_size); in bch2_bio_compress()
501 dst->bi_iter.bi_size = orig_dst; in bch2_bio_compress()
502 src->bi_iter.bi_size = orig_src; in bch2_bio_compress()