Lines Matching refs:ring_req
262 struct blkif_request *ring_req; in blkif_queue_request() local
283 ring_req = RING_GET_REQUEST(&info->ring, info->ring.req_prod_pvt); in blkif_queue_request()
287 ring_req->id = id; in blkif_queue_request()
288 ring_req->u.rw.sector_number = (blkif_sector_t)blk_rq_pos(req); in blkif_queue_request()
289 ring_req->handle = info->handle; in blkif_queue_request()
291 ring_req->operation = rq_data_dir(req) ? in blkif_queue_request()
303 ring_req->operation = BLKIF_OP_WRITE_BARRIER; in blkif_queue_request()
306 ring_req->nr_segments = blk_rq_map_sg(req->q, req, info->sg); in blkif_queue_request()
307 BUG_ON(ring_req->nr_segments > BLKIF_MAX_SEGMENTS_PER_REQUEST); in blkif_queue_request()
309 for_each_sg(info->sg, sg, ring_req->nr_segments, i) { in blkif_queue_request()
324 ring_req->u.rw.seg[i] = in blkif_queue_request()
334 info->shadow[id].req = *ring_req; in blkif_queue_request()