Lines Matching refs:grefs
85 if (!buf->grefs) in xen_front_pgdir_shbuf_get_dir_start()
88 return buf->grefs[0]; in xen_front_pgdir_shbuf_get_dir_start()
141 if (buf->grefs) { in xen_front_pgdir_shbuf_free()
145 if (buf->grefs[i] != GRANT_INVALID_REF) in xen_front_pgdir_shbuf_free()
146 gnttab_end_foreign_access(buf->grefs[i], in xen_front_pgdir_shbuf_free()
149 kfree(buf->grefs); in xen_front_pgdir_shbuf_free()
214 if (!buf->pages || !buf->backend_map_handles || !buf->grefs) in backend_unmap()
347 page_dir->gref_dir_next_page = buf->grefs[i + 1]; in backend_fill_page_dir()
384 page_dir->gref_dir_next_page = buf->grefs[i + 1]; in guest_fill_page_dir()
386 memcpy(&page_dir->gref, &buf->grefs[cur_gref], in guest_fill_page_dir()
418 buf->grefs[gref_idx++] = cur_ref; in guest_grant_refs_for_buffer()
458 buf->grefs[j++] = cur_ref; in grant_references()
479 buf->grefs = kcalloc(buf->num_grefs, sizeof(*buf->grefs), GFP_KERNEL); in alloc_storage()
480 if (!buf->grefs) in alloc_storage()