Home
last modified time | relevance | path

Searched refs:cur_ref (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/xen/
Dxen-front-pgdir-shbuf.c407 int i, cur_ref, otherend_id; in guest_grant_refs_for_buffer() local
411 cur_ref = gnttab_claim_grant_reference(priv_gref_head); in guest_grant_refs_for_buffer()
412 if (cur_ref < 0) in guest_grant_refs_for_buffer()
413 return cur_ref; in guest_grant_refs_for_buffer()
415 gnttab_grant_foreign_access_ref(cur_ref, otherend_id, in guest_grant_refs_for_buffer()
418 buf->grefs[gref_idx++] = cur_ref; in guest_grant_refs_for_buffer()
435 int ret, i, j, cur_ref; in grant_references() local
451 cur_ref = gnttab_claim_grant_reference(&priv_gref_head); in grant_references()
452 if (cur_ref < 0) in grant_references()
453 return cur_ref; in grant_references()
[all …]
Dgntdev-dmabuf.c535 int cur_ref; in dmabuf_imp_grant_foreign_access() local
537 cur_ref = gnttab_claim_grant_reference(&priv_gref_head); in dmabuf_imp_grant_foreign_access()
538 if (cur_ref < 0) { in dmabuf_imp_grant_foreign_access()
539 ret = cur_ref; in dmabuf_imp_grant_foreign_access()
544 gnttab_grant_foreign_access_ref(cur_ref, domid, in dmabuf_imp_grant_foreign_access()
546 refs[i] = cur_ref; in dmabuf_imp_grant_foreign_access()