Lines Matching refs:rbi
1074 struct bio *bi, *rbi; in ops_run_io() local
1097 rbi = &sh->dev[i].rreq; /* For writing to replacement */ in ops_run_io()
1240 bio_set_dev(rbi, rrdev->bdev); in ops_run_io()
1241 bio_set_op_attrs(rbi, op, op_flags); in ops_run_io()
1243 rbi->bi_end_io = raid5_end_write_request; in ops_run_io()
1244 rbi->bi_private = sh; in ops_run_io()
1249 rbi->bi_opf, i); in ops_run_io()
1254 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1257 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1262 rbi->bi_vcnt = 1; in ops_run_io()
1263 rbi->bi_io_vec[0].bv_len = RAID5_STRIPE_SIZE(conf); in ops_run_io()
1264 rbi->bi_io_vec[0].bv_offset = sh->dev[i].offset; in ops_run_io()
1265 rbi->bi_iter.bi_size = RAID5_STRIPE_SIZE(conf); in ops_run_io()
1266 rbi->bi_write_hint = sh->dev[i].write_hint; in ops_run_io()
1273 rbi->bi_vcnt = 0; in ops_run_io()
1275 trace_block_bio_remap(rbi->bi_disk->queue, in ops_run_io()
1276 rbi, disk_devt(conf->mddev->gendisk), in ops_run_io()
1279 bio_list_add(&pending_bios, rbi); in ops_run_io()
1281 submit_bio_noacct(rbi); in ops_run_io()
1388 struct bio *rbi, *rbi2; in ops_complete_biofill() local
1391 rbi = dev->read; in ops_complete_biofill()
1393 while (rbi && rbi->bi_iter.bi_sector < in ops_complete_biofill()
1395 rbi2 = r5_next_bio(conf, rbi, dev->sector); in ops_complete_biofill()
1396 bio_endio(rbi); in ops_complete_biofill()
1397 rbi = rbi2; in ops_complete_biofill()
1421 struct bio *rbi; in ops_run_biofill() local
1423 dev->read = rbi = dev->toread; in ops_run_biofill()
1426 while (rbi && rbi->bi_iter.bi_sector < in ops_run_biofill()
1428 tx = async_copy_data(0, rbi, &dev->page, in ops_run_biofill()
1431 rbi = r5_next_bio(conf, rbi, dev->sector); in ops_run_biofill()