Home
last modified time | relevance | path

Searched refs:ring_req (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/xen/
Dxen-scsiback.c472 static int scsiback_gnttab_data_map(struct vscsiif_request *ring_req, in scsiback_gnttab_data_map() argument
480 unsigned int nr_segments = (unsigned int)ring_req->nr_segments; in scsiback_gnttab_data_map()
495 ring_req->nr_segments); in scsiback_gnttab_data_map()
499 if (ring_req->nr_segments & VSCSIIF_SG_GRANT) { in scsiback_gnttab_data_map()
500 err = scsiback_gnttab_data_map_list(pending_req, ring_req->seg, in scsiback_gnttab_data_map()
508 n_segs = ring_req->seg[i].length / in scsiback_gnttab_data_map()
510 if ((unsigned)ring_req->seg[i].offset + in scsiback_gnttab_data_map()
511 (unsigned)ring_req->seg[i].length > PAGE_SIZE || in scsiback_gnttab_data_map()
513 ring_req->seg[i].length) in scsiback_gnttab_data_map()
539 seg = ring_req->seg; in scsiback_gnttab_data_map()
[all …]
/Linux-v4.19/drivers/block/
Dxen-blkfront.c526 struct blkif_request **ring_req) in blkif_ring_get_request() argument
530 *ring_req = RING_GET_REQUEST(&rinfo->ring, rinfo->ring.req_prod_pvt); in blkif_ring_get_request()
538 (*ring_req)->u.rw.id = id; in blkif_ring_get_request()
546 struct blkif_request *ring_req; in blkif_queue_discard_req() local
550 id = blkif_ring_get_request(rinfo, req, &ring_req); in blkif_queue_discard_req()
552 ring_req->operation = BLKIF_OP_DISCARD; in blkif_queue_discard_req()
553 ring_req->u.discard.nr_sectors = blk_rq_sectors(req); in blkif_queue_discard_req()
554 ring_req->u.discard.id = id; in blkif_queue_discard_req()
555 ring_req->u.discard.sector_number = (blkif_sector_t)blk_rq_pos(req); in blkif_queue_discard_req()
557 ring_req->u.discard.flag = BLKIF_DISCARD_SECURE; in blkif_queue_discard_req()
[all …]
/Linux-v4.19/drivers/scsi/
Dxen-scsifront.c182 struct vscsiif_request *ring_req; in scsifront_do_request() local
197 ring_req = RING_GET_REQUEST(&(info->ring), ring->req_prod_pvt); in scsifront_do_request()
200 ring_req->rqid = id; in scsifront_do_request()
201 ring_req->act = shadow->act; in scsifront_do_request()
202 ring_req->ref_rqid = shadow->ref_rqid; in scsifront_do_request()
203 ring_req->nr_segments = shadow->nr_segments; in scsifront_do_request()
205 ring_req->id = sc->device->id; in scsifront_do_request()
206 ring_req->lun = sc->device->lun; in scsifront_do_request()
207 ring_req->channel = sc->device->channel; in scsifront_do_request()
208 ring_req->cmd_len = sc->cmd_len; in scsifront_do_request()
[all …]