gnt_list_entry 293 drivers/block/xen-blkfront.c struct grant *gnt_list_entry, *n; gnt_list_entry 297 drivers/block/xen-blkfront.c gnt_list_entry = kzalloc(sizeof(struct grant), GFP_NOIO); gnt_list_entry 298 drivers/block/xen-blkfront.c if (!gnt_list_entry) gnt_list_entry 304 drivers/block/xen-blkfront.c kfree(gnt_list_entry); gnt_list_entry 307 drivers/block/xen-blkfront.c gnt_list_entry->page = granted_page; gnt_list_entry 310 drivers/block/xen-blkfront.c gnt_list_entry->gref = GRANT_INVALID_REF; gnt_list_entry 311 drivers/block/xen-blkfront.c list_add(&gnt_list_entry->node, &rinfo->grants); gnt_list_entry 318 drivers/block/xen-blkfront.c list_for_each_entry_safe(gnt_list_entry, n, gnt_list_entry 320 drivers/block/xen-blkfront.c list_del(&gnt_list_entry->node); gnt_list_entry 322 drivers/block/xen-blkfront.c __free_page(gnt_list_entry->page); gnt_list_entry 323 drivers/block/xen-blkfront.c kfree(gnt_list_entry); gnt_list_entry 332 drivers/block/xen-blkfront.c struct grant *gnt_list_entry; gnt_list_entry 335 drivers/block/xen-blkfront.c gnt_list_entry = list_first_entry(&rinfo->grants, struct grant, gnt_list_entry 337 drivers/block/xen-blkfront.c list_del(&gnt_list_entry->node); gnt_list_entry 339 drivers/block/xen-blkfront.c if (gnt_list_entry->gref != GRANT_INVALID_REF) gnt_list_entry 342 drivers/block/xen-blkfront.c return gnt_list_entry; gnt_list_entry 345 drivers/block/xen-blkfront.c static inline void grant_foreign_access(const struct grant *gnt_list_entry, gnt_list_entry 348 drivers/block/xen-blkfront.c gnttab_page_grant_foreign_access_ref_one(gnt_list_entry->gref, gnt_list_entry 350 drivers/block/xen-blkfront.c gnt_list_entry->page, gnt_list_entry 358 drivers/block/xen-blkfront.c struct grant *gnt_list_entry = get_free_grant(rinfo); gnt_list_entry 361 drivers/block/xen-blkfront.c if (gnt_list_entry->gref != GRANT_INVALID_REF) gnt_list_entry 362 drivers/block/xen-blkfront.c return gnt_list_entry; gnt_list_entry 365 drivers/block/xen-blkfront.c gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); gnt_list_entry 366 drivers/block/xen-blkfront.c BUG_ON(gnt_list_entry->gref == -ENOSPC); gnt_list_entry 368 drivers/block/xen-blkfront.c grant_foreign_access(gnt_list_entry, info); gnt_list_entry 371 drivers/block/xen-blkfront.c gnttab_grant_foreign_access_ref(gnt_list_entry->gref, gnt_list_entry 376 drivers/block/xen-blkfront.c return gnt_list_entry; gnt_list_entry 382 drivers/block/xen-blkfront.c struct grant *gnt_list_entry = get_free_grant(rinfo); gnt_list_entry 385 drivers/block/xen-blkfront.c if (gnt_list_entry->gref != GRANT_INVALID_REF) gnt_list_entry 386 drivers/block/xen-blkfront.c return gnt_list_entry; gnt_list_entry 389 drivers/block/xen-blkfront.c gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); gnt_list_entry 390 drivers/block/xen-blkfront.c BUG_ON(gnt_list_entry->gref == -ENOSPC); gnt_list_entry 399 drivers/block/xen-blkfront.c gnt_list_entry->page = indirect_page; gnt_list_entry 401 drivers/block/xen-blkfront.c grant_foreign_access(gnt_list_entry, info); gnt_list_entry 403 drivers/block/xen-blkfront.c return gnt_list_entry; gnt_list_entry 589 drivers/block/xen-blkfront.c struct grant *gnt_list_entry; gnt_list_entry 619 drivers/block/xen-blkfront.c gnt_list_entry = get_indirect_grant(&setup->gref_head, rinfo); gnt_list_entry 620 drivers/block/xen-blkfront.c shadow->indirect_grants[n] = gnt_list_entry; gnt_list_entry 621 drivers/block/xen-blkfront.c setup->segments = kmap_atomic(gnt_list_entry->page); gnt_list_entry 622 drivers/block/xen-blkfront.c ring_req->u.indirect.indirect_grefs[n] = gnt_list_entry->gref; gnt_list_entry 625 drivers/block/xen-blkfront.c gnt_list_entry = get_grant(&setup->gref_head, gfn, rinfo); gnt_list_entry 626 drivers/block/xen-blkfront.c ref = gnt_list_entry->gref; gnt_list_entry 631 drivers/block/xen-blkfront.c shadow->grants_used[setup->grant_idx] = gnt_list_entry; gnt_list_entry 636 drivers/block/xen-blkfront.c shared_data = kmap_atomic(gnt_list_entry->page); gnt_list_entry 2666 drivers/block/xen-blkfront.c struct grant *gnt_list_entry, *tmp; gnt_list_entry 2675 drivers/block/xen-blkfront.c list_for_each_entry_safe(gnt_list_entry, tmp, &rinfo->grants, gnt_list_entry 2677 drivers/block/xen-blkfront.c if (gnt_list_entry->gref == GRANT_INVALID_REF || gnt_list_entry 2678 drivers/block/xen-blkfront.c gnttab_query_foreign_access(gnt_list_entry->gref)) gnt_list_entry 2681 drivers/block/xen-blkfront.c list_del(&gnt_list_entry->node); gnt_list_entry 2682 drivers/block/xen-blkfront.c gnttab_end_foreign_access(gnt_list_entry->gref, 0, 0UL); gnt_list_entry 2684 drivers/block/xen-blkfront.c gnt_list_entry->gref = GRANT_INVALID_REF; gnt_list_entry 2685 drivers/block/xen-blkfront.c list_add_tail(&gnt_list_entry->node, &rinfo->grants);