Lines Matching refs:grants
144 struct list_head grants; member
247 list_add(&gnt_list_entry->node, &info->grants); in fill_grant_buffer()
255 &info->grants, node) { in fill_grant_buffer()
270 BUG_ON(list_empty(&info->grants)); in get_free_grant()
271 gnt_list_entry = list_first_entry(&info->grants, struct grant, in get_free_grant()
1091 if (!list_empty(&info->grants)) { in blkif_free()
1093 &info->grants, node) { in blkif_free()
1255 list_add(&s->grants_used[i]->node, &info->grants); in blkif_completion()
1266 list_add_tail(&s->grants_used[i]->node, &info->grants); in blkif_completion()
1275 list_add(&s->indirect_grants[i]->node, &info->grants); in blkif_completion()
1290 list_add_tail(&s->indirect_grants[i]->node, &info->grants); in blkif_completion()
1624 INIT_LIST_HEAD(&info->grants); in blkfront_probe()
1856 unsigned int psegs, grants; in blkfront_setup_indirect() local
1860 grants = BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkfront_setup_indirect()
1862 grants = info->max_indirect_segments; in blkfront_setup_indirect()
1863 psegs = grants / GRANTS_PER_PSEG; in blkfront_setup_indirect()
1866 (grants + INDIRECT_GREFS(grants)) * BLK_RING_SIZE(info)); in blkfront_setup_indirect()
1876 int num = INDIRECT_GREFS(grants) * BLK_RING_SIZE(info); in blkfront_setup_indirect()
1889 sizeof(info->shadow[i].grants_used[0]) * grants, in blkfront_setup_indirect()
1895 INDIRECT_GREFS(grants), in blkfront_setup_indirect()