Searched refs:ring_req (Results 1 – 3 of 3) sorted by relevance
494 static int scsiback_gnttab_data_map(struct vscsiif_request *ring_req, in scsiback_gnttab_data_map() argument502 unsigned int nr_segments = (unsigned int)ring_req->nr_segments; in scsiback_gnttab_data_map()517 ring_req->nr_segments); in scsiback_gnttab_data_map()521 if (ring_req->nr_segments & VSCSIIF_SG_GRANT) { in scsiback_gnttab_data_map()522 err = scsiback_gnttab_data_map_list(pending_req, ring_req->seg, in scsiback_gnttab_data_map()530 n_segs = ring_req->seg[i].length / in scsiback_gnttab_data_map()532 if ((unsigned)ring_req->seg[i].offset + in scsiback_gnttab_data_map()533 (unsigned)ring_req->seg[i].length > PAGE_SIZE || in scsiback_gnttab_data_map()535 ring_req->seg[i].length) in scsiback_gnttab_data_map()561 seg = ring_req->seg; in scsiback_gnttab_data_map()[all …]
535 struct blkif_request **ring_req) in blkif_ring_get_request() argument539 *ring_req = RING_GET_REQUEST(&rinfo->ring, rinfo->ring.req_prod_pvt); in blkif_ring_get_request()555 struct blkif_request *ring_req, *final_ring_req; in blkif_queue_discard_req() local560 ring_req = &rinfo->shadow[id].req; in blkif_queue_discard_req()562 ring_req->operation = BLKIF_OP_DISCARD; in blkif_queue_discard_req()563 ring_req->u.discard.nr_sectors = blk_rq_sectors(req); in blkif_queue_discard_req()564 ring_req->u.discard.id = id; in blkif_queue_discard_req()565 ring_req->u.discard.sector_number = (blkif_sector_t)blk_rq_pos(req); in blkif_queue_discard_req()567 ring_req->u.discard.flag = BLKIF_DISCARD_SECURE; in blkif_queue_discard_req()569 ring_req->u.discard.flag = 0; in blkif_queue_discard_req()[all …]
185 struct vscsiif_request *ring_req; in scsifront_do_request() local200 ring_req = RING_GET_REQUEST(&(info->ring), ring->req_prod_pvt); in scsifront_do_request()203 ring_req->rqid = id; in scsifront_do_request()204 ring_req->act = shadow->act; in scsifront_do_request()205 ring_req->ref_rqid = shadow->ref_rqid; in scsifront_do_request()206 ring_req->nr_segments = shadow->nr_segments; in scsifront_do_request()208 ring_req->id = sc->device->id; in scsifront_do_request()209 ring_req->lun = sc->device->lun; in scsifront_do_request()210 ring_req->channel = sc->device->channel; in scsifront_do_request()211 ring_req->cmd_len = sc->cmd_len; in scsifront_do_request()[all …]