Lines Matching defs:cur_ref
407 int i, cur_ref, otherend_id;
411 cur_ref = gnttab_claim_grant_reference(priv_gref_head);
412 if (cur_ref < 0)
413 return cur_ref;
415 gnttab_grant_foreign_access_ref(cur_ref, otherend_id,
418 buf->grefs[gref_idx++] = cur_ref;
435 int ret, i, j, cur_ref;
451 cur_ref = gnttab_claim_grant_reference(&priv_gref_head);
452 if (cur_ref < 0)
453 return cur_ref;
457 gnttab_grant_foreign_access_ref(cur_ref, otherend_id, frame, 0);
458 buf->grefs[j++] = cur_ref;