Lines Matching refs:gd

198 	struct gendisk *gd;  member
938 struct gendisk *gd = info->gd; in blkif_set_queue_limits() local
946 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in blkif_set_queue_limits()
985 info->gd->disk_name, flush_info(info), in xlvbd_flush()
1064 struct gendisk *gd; in xlvbd_alloc_gendisk() local
1072 BUG_ON(info->gd != NULL); in xlvbd_alloc_gendisk()
1130 gd = blk_mq_alloc_disk(&info->tag_set, info); in xlvbd_alloc_gendisk()
1131 if (IS_ERR(gd)) { in xlvbd_alloc_gendisk()
1132 err = PTR_ERR(gd); in xlvbd_alloc_gendisk()
1136 strcpy(gd->disk_name, DEV_NAME); in xlvbd_alloc_gendisk()
1137 ptr = encode_disk_name(gd->disk_name + sizeof(DEV_NAME) - 1, offset); in xlvbd_alloc_gendisk()
1138 BUG_ON(ptr >= gd->disk_name + DISK_NAME_LEN); in xlvbd_alloc_gendisk()
1142 snprintf(ptr, gd->disk_name + DISK_NAME_LEN - ptr, in xlvbd_alloc_gendisk()
1145 gd->major = XENVBD_MAJOR; in xlvbd_alloc_gendisk()
1146 gd->first_minor = minor; in xlvbd_alloc_gendisk()
1147 gd->minors = nr_minors; in xlvbd_alloc_gendisk()
1148 gd->fops = &xlvbd_block_fops; in xlvbd_alloc_gendisk()
1149 gd->private_data = info; in xlvbd_alloc_gendisk()
1150 set_capacity(gd, capacity); in xlvbd_alloc_gendisk()
1152 info->rq = gd->queue; in xlvbd_alloc_gendisk()
1153 info->gd = gd; in xlvbd_alloc_gendisk()
1161 set_disk_ro(gd, 1); in xlvbd_alloc_gendisk()
1164 gd->flags |= GENHD_FL_REMOVABLE; in xlvbd_alloc_gendisk()
1167 gd->flags |= GENHD_FL_CD; in xlvbd_alloc_gendisk()
1430 info->gd->disk_name, s->associated_id); in blkif_completion()
1528 info->gd->disk_name, rp - rinfo->ring.rsp_cons); in blkif_interrupt()
1548 info->gd->disk_name, id); in blkif_interrupt()
1553 info->gd->disk_name); in blkif_interrupt()
1565 info->gd->disk_name, bret.operation, op); in blkif_interrupt()
1580 info->gd->disk_name, op_name(bret.operation), id); in blkif_interrupt()
1595 info->gd->disk_name, op_name(bret.operation)); in blkif_interrupt()
1607 info->gd->disk_name, op_name(bret.operation)); in blkif_interrupt()
1613 info->gd->disk_name, op_name(bret.operation)); in blkif_interrupt()
1665 pr_alert("%s disabled for further use\n", info->gd->disk_name); in blkif_interrupt()
2133 set_capacity(info->gd, 0); in blkfront_closing()
2332 set_capacity_and_notify(info->gd, sectors); in blkfront_connect()
2398 err = device_add_disk(&info->xbdev->dev, info->gd, NULL); in blkfront_connect()
2400 blk_cleanup_disk(info->gd); in blkfront_connect()
2475 del_gendisk(info->gd); in blkfront_remove()
2482 xlbd_release_minors(info->gd->first_minor, info->gd->minors); in blkfront_remove()
2483 blk_cleanup_disk(info->gd); in blkfront_remove()