Lines Matching refs:num_grant
715 int num_sg, max_grefs, num_grant; in blkif_queue_rw_req() local
746 num_grant = 0; in blkif_queue_rw_req()
749 num_grant += gnttab_count_grant(sg->offset, sg->length); in blkif_queue_rw_req()
752 num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_queue_rw_req()
756 if (num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST && in blkif_queue_rw_req()
768 ring_req->u.indirect.nr_segments = num_grant; in blkif_queue_rw_req()
791 ring_req->u.rw.nr_segments = num_grant; in blkif_queue_rw_req()
1383 int num_sg, num_grant; in blkif_completion() local
1390 num_grant = s->req.operation == BLKIF_OP_INDIRECT ? in blkif_completion()
1411 num_grant += s2->req.u.rw.nr_segments; in blkif_completion()
1452 for (i = 0; i < num_grant; i++) { in blkif_completion()
1478 for (i = 0; i < INDIRECT_GREFS(num_grant); i++) { in blkif_completion()