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()
1294 struct phys_req preq; in dispatch_rw_block_io() local
1355 preq.nr_sects = 0; in dispatch_rw_block_io()
1364 preq.dev = req->u.rw.handle; in dispatch_rw_block_io()
1365 preq.sector_number = req->u.rw.sector_number; in dispatch_rw_block_io()
1375 preq.nr_sects += seg[i].nsec; in dispatch_rw_block_io()
1378 preq.dev = req->u.indirect.handle; in dispatch_rw_block_io()
1379 preq.sector_number = req->u.indirect.sector_number; in dispatch_rw_block_io()
1380 if (xen_blkbk_parse_indirect(req, pending_req, seg, &preq)) in dispatch_rw_block_io()
1384 if (xen_vbd_translate(&preq, ring->blkif, operation) != 0) { in dispatch_rw_block_io()
1387 preq.sector_number, in dispatch_rw_block_io()
1388 preq.sector_number + preq.nr_sects, in dispatch_rw_block_io()
1398 if (((int)preq.sector_number|(int)seg[i].nsec) & in dispatch_rw_block_io()
1399 ((bdev_logical_block_size(preq.bdev) >> 9) - 1)) { in dispatch_rw_block_io()
1434 bio = bio_alloc(preq.bdev, bio_max_segs(nseg - i), in dispatch_rw_block_io()
1440 bio->bi_iter.bi_sector = preq.sector_number; in dispatch_rw_block_io()
1443 preq.sector_number += seg[i].nsec; in dispatch_rw_block_io()
1450 bio = bio_alloc(preq.bdev, 0, operation | operation_flags, in dispatch_rw_block_io()
1467 ring->st_rd_sect += preq.nr_sects; in dispatch_rw_block_io()
1469 ring->st_wr_sect += preq.nr_sects; in dispatch_rw_block_io()