Searched refs:persistent_gnt (Results 1 – 3 of 3) sorted by relevance
/drivers/block/xen-blkback/ |
D | blkback.c | 192 struct persistent_gnt *persistent_gnt) in add_persistent_gnt() argument 195 struct persistent_gnt *this; in add_persistent_gnt() 205 this = container_of(*new, struct persistent_gnt, node); in add_persistent_gnt() 208 if (persistent_gnt->gnt < this->gnt) in add_persistent_gnt() 210 else if (persistent_gnt->gnt > this->gnt) in add_persistent_gnt() 218 bitmap_zero(persistent_gnt->flags, PERSISTENT_GNT_FLAGS_SIZE); in add_persistent_gnt() 219 set_bit(PERSISTENT_GNT_ACTIVE, persistent_gnt->flags); in add_persistent_gnt() 221 rb_link_node(&(persistent_gnt->node), parent, new); in add_persistent_gnt() 222 rb_insert_color(&(persistent_gnt->node), &blkif->persistent_gnts); in add_persistent_gnt() 228 static struct persistent_gnt *get_persistent_gnt(struct xen_blkif *blkif, in get_persistent_gnt() [all …]
|
D | common.h | 250 struct persistent_gnt { struct 329 struct persistent_gnt *persistent_gnt; member
|
/drivers/block/ |
D | xen-blkfront.c | 924 struct grant *persistent_gnt; in blkif_free() local 938 list_for_each_entry_safe(persistent_gnt, n, in blkif_free() 940 list_del(&persistent_gnt->node); in blkif_free() 941 if (persistent_gnt->gref != GRANT_INVALID_REF) { in blkif_free() 942 gnttab_end_foreign_access(persistent_gnt->gref, in blkif_free() 947 __free_page(pfn_to_page(persistent_gnt->pfn)); in blkif_free() 948 kfree(persistent_gnt); in blkif_free() 979 persistent_gnt = info->shadow[i].grants_used[j]; in blkif_free() 980 gnttab_end_foreign_access(persistent_gnt->gref, 0, 0UL); in blkif_free() 982 __free_page(pfn_to_page(persistent_gnt->pfn)); in blkif_free() [all …]
|