Searched refs:cur_ref (Results 1 – 2 of 2) sorted by relevance
405 int i, cur_ref, otherend_id; in guest_grant_refs_for_buffer() local409 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() local449 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()[all …]
501 int cur_ref; in dmabuf_imp_grant_foreign_access() local503 cur_ref = gnttab_claim_grant_reference(&priv_gref_head); in dmabuf_imp_grant_foreign_access()504 if (cur_ref < 0) { in dmabuf_imp_grant_foreign_access()505 ret = cur_ref; in dmabuf_imp_grant_foreign_access()510 gnttab_grant_foreign_access_ref(cur_ref, domid, in dmabuf_imp_grant_foreign_access()512 refs[i] = cur_ref; in dmabuf_imp_grant_foreign_access()