Searched refs:grefs (Results 1 – 2 of 2) sorted by relevance
77 if (!buf->grefs) in xen_front_pgdir_shbuf_get_dir_start()80 return buf->grefs[0]; in xen_front_pgdir_shbuf_get_dir_start()133 if (buf->grefs) { in xen_front_pgdir_shbuf_free()137 if (buf->grefs[i] != INVALID_GRANT_REF) in xen_front_pgdir_shbuf_free()138 gnttab_end_foreign_access(buf->grefs[i], NULL); in xen_front_pgdir_shbuf_free()140 kfree(buf->grefs); in xen_front_pgdir_shbuf_free()384 memcpy(&page_dir->gref, &buf->grefs[cur_gref], in guest_fill_page_dir()416 buf->grefs[gref_idx++] = cur_ref; in guest_grant_refs_for_buffer()456 buf->grefs[j++] = cur_ref; in grant_references()477 buf->grefs = kcalloc(buf->num_grefs, sizeof(*buf->grefs), GFP_KERNEL); in alloc_storage()[all …]
391 unsigned int nr_pages, grant_ref_t *grefs) in xenbus_setup_ring() argument420 grefs[i] = gnttab_claim_grant_reference(&gref_head); in xenbus_setup_ring()421 gnttab_grant_foreign_access_ref(grefs[i], dev->otherend_id, in xenbus_setup_ring()433 grefs[i] = INVALID_GRANT_REF; in xenbus_setup_ring()450 grant_ref_t *grefs) in xenbus_teardown_ring() argument455 if (grefs[i] != INVALID_GRANT_REF) { in xenbus_teardown_ring()456 gnttab_end_foreign_access(grefs[i], NULL); in xenbus_teardown_ring()457 grefs[i] = INVALID_GRANT_REF; in xenbus_teardown_ring()
Completed in 7 milliseconds