Lines Matching refs:gd
199 p = strchr(d->gd->disk_name, '/'); in aoedisk_add_debugfs()
201 p = d->gd->disk_name; in aoedisk_add_debugfs()
209 d->gd->disk_name); in aoedisk_add_debugfs()
225 return sysfs_create_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_add_sysfs()
230 sysfs_remove_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_rm_sysfs()
353 struct gendisk *gd; in aoeblk_gdalloc() local
371 gd = alloc_disk(AOE_PARTITIONS); in aoeblk_gdalloc()
372 if (gd == NULL) { in aoeblk_gdalloc()
396 WARN_ON(d->gd); in aoeblk_gdalloc()
402 d->blkq = gd->queue = q; in aoeblk_gdalloc()
404 d->gd = gd; in aoeblk_gdalloc()
407 gd->major = AOE_MAJOR; in aoeblk_gdalloc()
408 gd->first_minor = d->sysminor; in aoeblk_gdalloc()
409 gd->fops = &aoe_bdops; in aoeblk_gdalloc()
410 gd->private_data = d; in aoeblk_gdalloc()
411 set_capacity(gd, d->ssize); in aoeblk_gdalloc()
412 snprintf(gd->disk_name, sizeof gd->disk_name, "etherd/e%ld.%d", in aoeblk_gdalloc()
420 add_disk(gd); in aoeblk_gdalloc()
433 put_disk(gd); in aoeblk_gdalloc()