Lines Matching refs:cur_ref
405 int i, cur_ref, otherend_id; in guest_grant_refs_for_buffer() local
409 cur_ref = gnttab_claim_grant_reference(priv_gref_head); in guest_grant_refs_for_buffer()
410 if (cur_ref < 0) in guest_grant_refs_for_buffer()
411 return cur_ref; in guest_grant_refs_for_buffer()
413 gnttab_grant_foreign_access_ref(cur_ref, otherend_id, in guest_grant_refs_for_buffer()
416 buf->grefs[gref_idx++] = cur_ref; in guest_grant_refs_for_buffer()
433 int ret, i, j, cur_ref; in grant_references() local
449 cur_ref = gnttab_claim_grant_reference(&priv_gref_head); in grant_references()
450 if (cur_ref < 0) in grant_references()
451 return cur_ref; in grant_references()
455 gnttab_grant_foreign_access_ref(cur_ref, otherend_id, frame, 0); in grant_references()
456 buf->grefs[j++] = cur_ref; in grant_references()