Lines Matching refs:gd
2908 struct gendisk *gd; in sd_probe_async() local
2913 gd = sdkp->disk; in sd_probe_async()
2917 gd->major = sd_major((index & 0xf0) >> 4); in sd_probe_async()
2918 gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00); in sd_probe_async()
2919 gd->minors = SD_MINORS; in sd_probe_async()
2921 gd->fops = &sd_fops; in sd_probe_async()
2922 gd->private_data = &sdkp->driver; in sd_probe_async()
2923 gd->queue = sdkp->device->request_queue; in sd_probe_async()
2937 sd_revalidate_disk(gd); in sd_probe_async()
2939 gd->driverfs_dev = &sdp->sdev_gendev; in sd_probe_async()
2940 gd->flags = GENHD_FL_EXT_DEVT; in sd_probe_async()
2942 gd->flags |= GENHD_FL_REMOVABLE; in sd_probe_async()
2943 gd->events |= DISK_EVENT_MEDIA_CHANGE; in sd_probe_async()
2947 add_disk(gd); in sd_probe_async()
2951 sd_revalidate_disk(gd); in sd_probe_async()
2981 struct gendisk *gd; in sd_probe() local
2998 gd = alloc_disk(SD_MINORS); in sd_probe()
2999 if (!gd) in sd_probe()
3016 error = sd_format_disk_name("sd", index, gd->disk_name, DISK_NAME_LEN); in sd_probe()
3024 sdkp->disk = gd; in sd_probe()
3058 put_disk(gd); in sd_probe()