Lines Matching refs:gd
92 blk_cleanup_queue(dev->gd->queue); in i2o_block_device_free()
94 put_disk(dev->gd); in i2o_block_device_free()
113 i2o_blk_dev->gd->disk_name); in i2o_block_remove()
117 del_gendisk(i2o_blk_dev->gd); in i2o_block_remove()
962 struct gendisk *gd; in i2o_block_device_alloc() local
979 gd = alloc_disk(16); in i2o_block_device_alloc()
980 if (!gd) { in i2o_block_device_alloc()
996 gd->major = I2O_MAJOR; in i2o_block_device_alloc()
997 gd->queue = queue; in i2o_block_device_alloc()
998 gd->fops = &i2o_block_fops; in i2o_block_device_alloc()
999 gd->private_data = dev; in i2o_block_device_alloc()
1001 dev->gd = gd; in i2o_block_device_alloc()
1006 put_disk(gd); in i2o_block_device_alloc()
1029 struct gendisk *gd; in i2o_block_probe() local
1072 gd = i2o_blk_dev->gd; in i2o_block_probe()
1073 gd->first_minor = unit << 4; in i2o_block_probe()
1074 sprintf(gd->disk_name, "i2o/hd%c", 'a' + unit); in i2o_block_probe()
1075 gd->driverfs_dev = &i2o_dev->device; in i2o_block_probe()
1078 queue = gd->queue; in i2o_block_probe()
1096 osm_warn("unable to get blocksize of %s\n", gd->disk_name); in i2o_block_probe()
1100 set_capacity(gd, le64_to_cpu(size) >> KERNEL_SECTOR_SHIFT); in i2o_block_probe()
1102 osm_warn("could not get size of %s\n", gd->disk_name); in i2o_block_probe()
1109 add_disk(gd); in i2o_block_probe()
1114 i2o_blk_dev->gd->disk_name); in i2o_block_probe()