Searched refs:grefs (Results 1 – 4 of 4) 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()205 if (!buf->pages || !buf->backend_map_handles || !buf->grefs) in backend_unmap()345 page_dir->gref_dir_next_page = buf->grefs[i + 1]; in backend_fill_page_dir()382 page_dir->gref_dir_next_page = buf->grefs[i + 1]; in guest_fill_page_dir()384 memcpy(&page_dir->gref, &buf->grefs[cur_gref], in guest_fill_page_dir()[all …]
380 unsigned int nr_pages, grant_ref_t *grefs) in xenbus_setup_ring() argument409 grefs[i] = gnttab_claim_grant_reference(&gref_head); in xenbus_setup_ring()410 gnttab_grant_foreign_access_ref(grefs[i], dev->otherend_id, in xenbus_setup_ring()422 grefs[i] = INVALID_GRANT_REF; in xenbus_setup_ring()439 grant_ref_t *grefs) in xenbus_teardown_ring() argument444 if (grefs[i] != INVALID_GRANT_REF) { in xenbus_teardown_ring()445 gnttab_end_foreign_access(grefs[i], NULL); in xenbus_teardown_ring()446 grefs[i] = INVALID_GRANT_REF; in xenbus_teardown_ring()
34 grant_ref_t *grefs; member
228 unsigned int nr_pages, grant_ref_t *grefs);230 grant_ref_t *grefs);