Lines Matching refs:ring_req
312 blkif_request_t *ring_req; member
1117 blkif_request_t *ring_req, RING_IDX ring_idx) in xbb_get_resources() argument
1154 nreqlist->operation = ring_req->operation; in xbb_get_resources()
1156 (ring_req->sector_number << XBD_SECTOR_SHFT) >> in xbb_get_resources()
1164 nreq->id = ring_req->id; in xbb_get_resources()
1165 nreq->operation = ring_req->operation; in xbb_get_resources()
1168 bcopy(ring_req, &nreq->ring_req_storage, sizeof(*ring_req)); in xbb_get_resources()
1169 nreq->ring_req = &nreq->ring_req_storage; in xbb_get_resources()
1171 nreq->ring_req = ring_req; in xbb_get_resources()
1178 (*reqlist)->nr_segments += ring_req->nr_segments; in xbb_get_resources()
1562 blkif_request_t *ring_req; in xbb_dispatch_io() local
1564 ring_req = nreq->ring_req; in xbb_dispatch_io()
1566 nseg = ring_req->nr_segments; in xbb_dispatch_io()
1581 sg = ring_req->seg; in xbb_dispatch_io()
1697 xbb_count_sects(blkif_request_t *ring_req) in xbb_count_sects() argument
1702 for (i = 0; i < ring_req->nr_segments; i++) { in xbb_count_sects()
1705 nsect = (int8_t)(ring_req->seg[i].last_sect - in xbb_count_sects()
1706 ring_req->seg[i].first_sect + 1); in xbb_count_sects()
1789 blkif_request_t *ring_req; in xbb_run_queue() local
1794 ring_req = RING_GET_REQUEST(&xbb->rings.native, in xbb_run_queue()
1805 ring_req = &ring_req_storage; in xbb_run_queue()
1816 ring_req = &ring_req_storage; in xbb_run_queue()
1835 && ((ring_req->sector_number != cur_sector) in xbb_run_queue()
1836 || (ring_req->operation != cur_operation) in xbb_run_queue()
1837 || ((ring_req->nr_segments + reqlist->nr_segments) > in xbb_run_queue()
1848 retval = xbb_get_resources(xbb, &reqlist, ring_req, in xbb_run_queue()
1875 cur_size = xbb_count_sects(ring_req); in xbb_run_queue()
1876 cur_sector = ring_req->sector_number + cur_size; in xbb_run_queue()
1878 cur_operation = ring_req->operation; in xbb_run_queue()