Lines Matching refs:gd
114 struct gendisk *gd; member
993 host->gd = alloc_disk(MG_DISK_MAX_PART); in mg_probe()
994 if (!host->gd) { in mg_probe()
1000 host->gd->major = host->major; in mg_probe()
1001 host->gd->first_minor = 0; in mg_probe()
1002 host->gd->fops = &mg_disk_ops; in mg_probe()
1003 host->gd->queue = host->breq; in mg_probe()
1004 host->gd->private_data = host; in mg_probe()
1005 sprintf(host->gd->disk_name, MG_DISK_NAME"a"); in mg_probe()
1007 set_capacity(host->gd, host->n_sectors); in mg_probe()
1009 add_disk(host->gd); in mg_probe()
1044 if (host->gd) { in mg_remove()
1045 del_gendisk(host->gd); in mg_remove()
1046 put_disk(host->gd); in mg_remove()