Lines Matching refs:grants
186 struct list_head grants; member
331 list_add(&gnt_list_entry->node, &rinfo->grants); in fill_grant_buffer()
339 &rinfo->grants, node) { in fill_grant_buffer()
354 BUG_ON(list_empty(&rinfo->grants)); in get_free_grant()
355 gnt_list_entry = list_first_entry(&rinfo->grants, struct grant, in get_free_grant()
1227 if (!list_empty(&rinfo->grants)) { in blkif_free_ring()
1229 &rinfo->grants, node) { in blkif_free_ring()
1470 list_add(&s->grants_used[i]->node, &rinfo->grants); in blkif_completion()
1479 list_add_tail(&s->grants_used[i]->node, &rinfo->grants); in blkif_completion()
1490 list_add(&s->indirect_grants[i]->node, &rinfo->grants); in blkif_completion()
1504 list_add_tail(&s->indirect_grants[i]->node, &rinfo->grants); in blkif_completion()
1921 INIT_LIST_HEAD(&rinfo->grants); in negotiate_mq()
2161 unsigned int psegs, grants, memflags; in blkfront_setup_indirect() local
2169 grants = BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkfront_setup_indirect()
2176 grants = GRANTS_PER_PSEG; in blkfront_setup_indirect()
2180 grants = info->max_indirect_segments; in blkfront_setup_indirect()
2181 psegs = DIV_ROUND_UP(grants, GRANTS_PER_PSEG); in blkfront_setup_indirect()
2184 (grants + INDIRECT_GREFS(grants)) * BLK_RING_SIZE(info)); in blkfront_setup_indirect()
2194 int num = INDIRECT_GREFS(grants) * BLK_RING_SIZE(info); in blkfront_setup_indirect()
2208 kvcalloc(grants, in blkfront_setup_indirect()
2216 kvcalloc(INDIRECT_GREFS(grants), in blkfront_setup_indirect()
2533 LIST_HEAD(grants); in purge_persistent_grants()
2542 list_for_each_entry_safe(gnt_list_entry, tmp, &rinfo->grants, in purge_persistent_grants()
2551 list_add_tail(&gnt_list_entry->node, &grants); in purge_persistent_grants()
2554 list_splice_tail(&grants, &rinfo->grants); in purge_persistent_grants()