Lines Matching refs:rbi
1075 struct bio *bi, *rbi; in ops_run_io() local
1098 rbi = &sh->dev[i].rreq; /* For writing to replacement */ in ops_run_io()
1241 bio_set_dev(rbi, rrdev->bdev); in ops_run_io()
1242 bio_set_op_attrs(rbi, op, op_flags); in ops_run_io()
1244 rbi->bi_end_io = raid5_end_write_request; in ops_run_io()
1245 rbi->bi_private = sh; in ops_run_io()
1250 rbi->bi_opf, i); in ops_run_io()
1255 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1258 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1263 rbi->bi_vcnt = 1; in ops_run_io()
1264 rbi->bi_io_vec[0].bv_len = RAID5_STRIPE_SIZE(conf); in ops_run_io()
1265 rbi->bi_io_vec[0].bv_offset = sh->dev[i].offset; in ops_run_io()
1266 rbi->bi_iter.bi_size = RAID5_STRIPE_SIZE(conf); in ops_run_io()
1267 rbi->bi_write_hint = sh->dev[i].write_hint; in ops_run_io()
1274 rbi->bi_vcnt = 0; in ops_run_io()
1276 trace_block_bio_remap(rbi, in ops_run_io()
1280 bio_list_add(&pending_bios, rbi); in ops_run_io()
1282 submit_bio_noacct(rbi); in ops_run_io()
1389 struct bio *rbi, *rbi2; in ops_complete_biofill() local
1392 rbi = dev->read; in ops_complete_biofill()
1394 while (rbi && rbi->bi_iter.bi_sector < in ops_complete_biofill()
1396 rbi2 = r5_next_bio(conf, rbi, dev->sector); in ops_complete_biofill()
1397 bio_endio(rbi); in ops_complete_biofill()
1398 rbi = rbi2; in ops_complete_biofill()
1422 struct bio *rbi; in ops_run_biofill() local
1424 dev->read = rbi = dev->toread; in ops_run_biofill()
1427 while (rbi && rbi->bi_iter.bi_sector < in ops_run_biofill()
1429 tx = async_copy_data(0, rbi, &dev->page, in ops_run_biofill()
1432 rbi = r5_next_bio(conf, rbi, dev->sector); in ops_run_biofill()