Lines Matching refs:preq

916 				    struct phys_req *preq)  in xen_blkbk_parse_indirect()  argument
956 preq->nr_sects += seg[n].nsec; in xen_blkbk_parse_indirect()
973 struct phys_req preq; in dispatch_discard_io() local
977 preq.sector_number = req->u.discard.sector_number; in dispatch_discard_io()
978 preq.nr_sects = req->u.discard.nr_sectors; in dispatch_discard_io()
980 err = xen_vbd_translate(&preq, blkif, REQ_OP_WRITE); in dispatch_discard_io()
983 preq.sector_number, in dispatch_discard_io()
984 preq.sector_number + preq.nr_sects, blkif->vbd.pdevice); in dispatch_discard_io()
1190 struct phys_req preq; in dispatch_rw_block_io() local
1251 preq.nr_sects = 0; in dispatch_rw_block_io()
1260 preq.dev = req->u.rw.handle; in dispatch_rw_block_io()
1261 preq.sector_number = req->u.rw.sector_number; in dispatch_rw_block_io()
1271 preq.nr_sects += seg[i].nsec; in dispatch_rw_block_io()
1274 preq.dev = req->u.indirect.handle; in dispatch_rw_block_io()
1275 preq.sector_number = req->u.indirect.sector_number; in dispatch_rw_block_io()
1276 if (xen_blkbk_parse_indirect(req, pending_req, seg, &preq)) in dispatch_rw_block_io()
1280 if (xen_vbd_translate(&preq, ring->blkif, operation) != 0) { in dispatch_rw_block_io()
1283 preq.sector_number, in dispatch_rw_block_io()
1284 preq.sector_number + preq.nr_sects, in dispatch_rw_block_io()
1294 if (((int)preq.sector_number|(int)seg[i].nsec) & in dispatch_rw_block_io()
1295 ((bdev_logical_block_size(preq.bdev) >> 9) - 1)) { in dispatch_rw_block_io()
1330 bio = bio_alloc(preq.bdev, bio_max_segs(nseg - i), in dispatch_rw_block_io()
1336 bio->bi_iter.bi_sector = preq.sector_number; in dispatch_rw_block_io()
1339 preq.sector_number += seg[i].nsec; in dispatch_rw_block_io()
1346 bio = bio_alloc(preq.bdev, 0, operation | operation_flags, in dispatch_rw_block_io()
1363 ring->st_rd_sect += preq.nr_sects; in dispatch_rw_block_io()
1365 ring->st_wr_sect += preq.nr_sects; in dispatch_rw_block_io()