Lines Matching refs:num_grant
724 int num_sg, max_grefs, num_grant;
755 num_grant = 0;
758 num_grant += gnttab_count_grant(sg->offset, sg->length);
761 num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST;
765 if (num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST &&
777 ring_req->u.indirect.nr_segments = num_grant;
801 ring_req->u.rw.nr_segments = num_grant;
1389 int num_sg, num_grant;
1396 num_grant = s->req.operation == BLKIF_OP_INDIRECT ?
1417 num_grant += s2->req.u.rw.nr_segments;
1458 for (i = 0; i < num_grant; i++) {
1484 for (i = 0; i < INDIRECT_GREFS(num_grant); i++) {