Lines Matching refs:gd
114 struct gendisk *gd; member
996 host->gd = alloc_disk(MG_DISK_MAX_PART); in mg_probe()
997 if (!host->gd) { in mg_probe()
1003 host->gd->major = host->major; in mg_probe()
1004 host->gd->first_minor = 0; in mg_probe()
1005 host->gd->fops = &mg_disk_ops; in mg_probe()
1006 host->gd->queue = host->breq; in mg_probe()
1007 host->gd->private_data = host; in mg_probe()
1008 sprintf(host->gd->disk_name, MG_DISK_NAME"a"); in mg_probe()
1010 set_capacity(host->gd, host->n_sectors); in mg_probe()
1012 add_disk(host->gd); in mg_probe()
1047 if (host->gd) { in mg_remove()
1048 del_gendisk(host->gd); in mg_remove()
1049 put_disk(host->gd); in mg_remove()