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()
974 struct phys_req preq; in dispatch_discard_io() local
978 preq.sector_number = req->u.discard.sector_number; in dispatch_discard_io()
979 preq.nr_sects = req->u.discard.nr_sectors; in dispatch_discard_io()
981 err = xen_vbd_translate(&preq, blkif, REQ_OP_WRITE); in dispatch_discard_io()
984 preq.sector_number, in dispatch_discard_io()
985 preq.sector_number + preq.nr_sects, blkif->vbd.pdevice); in dispatch_discard_io()
1189 struct phys_req preq; in dispatch_rw_block_io() local
1250 preq.nr_sects = 0; in dispatch_rw_block_io()
1259 preq.dev = req->u.rw.handle; in dispatch_rw_block_io()
1260 preq.sector_number = req->u.rw.sector_number; in dispatch_rw_block_io()
1270 preq.nr_sects += seg[i].nsec; in dispatch_rw_block_io()
1273 preq.dev = req->u.indirect.handle; in dispatch_rw_block_io()
1274 preq.sector_number = req->u.indirect.sector_number; in dispatch_rw_block_io()
1275 if (xen_blkbk_parse_indirect(req, pending_req, seg, &preq)) in dispatch_rw_block_io()
1279 if (xen_vbd_translate(&preq, ring->blkif, operation) != 0) { in dispatch_rw_block_io()
1282 preq.sector_number, in dispatch_rw_block_io()
1283 preq.sector_number + preq.nr_sects, in dispatch_rw_block_io()
1293 if (((int)preq.sector_number|(int)seg[i].nsec) & in dispatch_rw_block_io()
1294 ((bdev_logical_block_size(preq.bdev) >> 9) - 1)) { in dispatch_rw_block_io()
1334 bio_set_dev(bio, preq.bdev); in dispatch_rw_block_io()
1337 bio->bi_iter.bi_sector = preq.sector_number; in dispatch_rw_block_io()
1341 preq.sector_number += seg[i].nsec; in dispatch_rw_block_io()
1353 bio_set_dev(bio, preq.bdev); in dispatch_rw_block_io()
1369 ring->st_rd_sect += preq.nr_sects; in dispatch_rw_block_io()
1371 ring->st_wr_sect += preq.nr_sects; in dispatch_rw_block_io()