Lines Matching refs:num_grant
736 int num_sg, max_grefs, num_grant;
767 num_grant = 0;
770 num_grant += gnttab_count_grant(sg->offset, sg->length);
773 num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST;
777 if (num_grant > BLKIF_MAX_SEGMENTS_PER_REQUEST &&
789 ring_req->u.indirect.nr_segments = num_grant;
813 ring_req->u.rw.nr_segments = num_grant;
1462 int num_sg, num_grant;
1469 num_grant = s->req.operation == BLKIF_OP_INDIRECT ?
1490 num_grant += s2->req.u.rw.nr_segments;
1531 for (i = 0; i < num_grant; i++) {
1557 for (i = 0; i < INDIRECT_GREFS(num_grant); i++) {