Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/xen/
Dxen-scsiback.c494 static int scsiback_gnttab_data_map(struct vscsiif_request *ring_req, in scsiback_gnttab_data_map() argument
502 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 …]
/Linux-v6.6/drivers/block/
Dxen-blkfront.c535 struct blkif_request **ring_req) in blkif_ring_get_request() argument
539 *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() local
560 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 …]
/Linux-v6.6/drivers/scsi/
Dxen-scsifront.c185 struct vscsiif_request *ring_req; in scsifront_do_request() local
200 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 …]