Home
last modified time | relevance | path

Searched refs:grefs (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/xen/
H A Dxen-front-pgdir-shbuf.c77 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 …]
/openbmc/linux/drivers/xen/xenbus/
H A Dxenbus_client.c380 unsigned int nr_pages, grant_ref_t *grefs) in xenbus_setup_ring() argument
409 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() argument
444 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()
/openbmc/linux/include/xen/
H A Dxen-front-pgdir-shbuf.h34 grant_ref_t *grefs; member
H A Dxenbus.h225 unsigned int nr_pages, grant_ref_t *grefs);
227 grant_ref_t *grefs);