taglinefilesource code
gd1797drivers/block/ide-cd.cHWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS]
gd523drivers/block/ide.cstatic void ide_geninit (struct gendisk *gd)
gd526drivers/block/ide.cide_hwif_t *hwif = gd->real_devices;
gd528drivers/block/ide.cfor (unit = 0; unit < gd->nr_real; ++unit) {
gd553drivers/block/ide.cstruct gendisk *gd, **gdp;
gd563drivers/block/ide.cgd        = kmalloc (sizeof(struct gendisk), GFP_KERNEL);
gd564drivers/block/ide.cgd->sizes = kmalloc (minors * sizeof(int), GFP_KERNEL);
gd565drivers/block/ide.cgd->part  = kmalloc (minors * sizeof(struct hd_struct), GFP_KERNEL);
gd574drivers/block/ide.chwif->drives[unit].part = &gd->part[unit << PARTN_BITS];
gd576drivers/block/ide.cgd->major  = hwif->major;    /* our major device number */
gd577drivers/block/ide.cgd->major_name  = IDE_MAJOR_NAME;  /* treated special in genhd.c */
gd578drivers/block/ide.cgd->minor_shift  = PARTN_BITS;    /* num bits for partitions */
gd579drivers/block/ide.cgd->max_p  = 1<<PARTN_BITS;  /* 1 + max partitions / drive */
gd580drivers/block/ide.cgd->max_nr  = units;    /* max num real drives */
gd581drivers/block/ide.cgd->nr_real  = units;    /* current num real drives */
gd582drivers/block/ide.cgd->init  = ide_geninit;    /* initialization function */
gd583drivers/block/ide.cgd->real_devices= hwif;      /* ptr to internal data */
gd584drivers/block/ide.cgd->next  = NULL;      /* linked list of major devs */
gd587drivers/block/ide.chwif->gd = *gdp = gd;      /* link onto tail of list */
gd1871drivers/block/ide.cresetup_one_dev(HWIF(drive)->gd, drive->select.b.unit);
gd3238drivers/block/ide.chwif->gd->real_devices = hwif->drives[0].name;
gd3239drivers/block/ide.cfor (i = 0; i < hwif->gd->nr_real; i++)
gd3250drivers/block/ide.cstruct gendisk *prev_gd, *gd;
gd3301drivers/block/ide.cgd = gendisk_head; prev_gd = NULL;
gd3302drivers/block/ide.cwhile (gd && (gd != hwif->gd)) {
gd3303drivers/block/ide.cprev_gd = gd;
gd3304drivers/block/ide.cgd = gd->next;
gd3306drivers/block/ide.cif (gd != hwif->gd)
gd3310drivers/block/ide.cprev_gd->next = gd->next;
gd3312drivers/block/ide.cgendisk_head = gd->next;
gd3313drivers/block/ide.ckfree(gd->sizes);
gd3314drivers/block/ide.ckfree(gd->part);
gd3315drivers/block/ide.ckfree(gd);
gd411drivers/block/ide.hstruct gendisk  *gd;    /* gendisk structure */