taglinefilesource code
gd1739drivers/block/ide-cd.cHWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS]
gd527drivers/block/ide.cstatic void ide_geninit (struct gendisk *gd)
gd530drivers/block/ide.cide_hwif_t *hwif = gd->real_devices;
gd532drivers/block/ide.cfor (unit = 0; unit < gd->nr_real; ++unit) {
gd557drivers/block/ide.cstruct gendisk *gd, **gdp;
gd567drivers/block/ide.cgd        = kmalloc (sizeof(struct gendisk), GFP_KERNEL);
gd568drivers/block/ide.cgd->sizes = kmalloc (minors * sizeof(int), GFP_KERNEL);
gd569drivers/block/ide.cgd->part  = kmalloc (minors * sizeof(struct hd_struct), GFP_KERNEL);
gd578drivers/block/ide.chwif->drives[unit].part = &gd->part[unit << PARTN_BITS];
gd580drivers/block/ide.cgd->major  = hwif->major;    /* our major device number */
gd581drivers/block/ide.cgd->major_name  = IDE_MAJOR_NAME;  /* treated special in genhd.c */
gd582drivers/block/ide.cgd->minor_shift  = PARTN_BITS;    /* num bits for partitions */
gd583drivers/block/ide.cgd->max_p  = 1<<PARTN_BITS;  /* 1 + max partitions / drive */
gd584drivers/block/ide.cgd->max_nr  = units;    /* max num real drives */
gd585drivers/block/ide.cgd->nr_real  = units;    /* current num real drives */
gd586drivers/block/ide.cgd->init  = ide_geninit;    /* initialization function */
gd587drivers/block/ide.cgd->real_devices= hwif;      /* ptr to internal data */
gd588drivers/block/ide.cgd->next  = NULL;      /* linked list of major devs */
gd591drivers/block/ide.chwif->gd = *gdp = gd;      /* link onto tail of list */
gd1886drivers/block/ide.cresetup_one_dev(HWIF(drive)->gd, drive->select.b.unit);
gd3256drivers/block/ide.cfor (i = 0; i < hwif->gd->nr_real; i++)
gd3268drivers/block/ide.cstruct gendisk *gd, **gdp;
gd3328drivers/block/ide.cif (*gdp == hwif->gd)
gd3333drivers/block/ide.cgd = *gdp; *gdp = gd->next;
gd3334drivers/block/ide.ckfree(gd->sizes);
gd3335drivers/block/ide.ckfree(gd->part);
gd3336drivers/block/ide.ckfree(gd);
gd404drivers/block/ide.hstruct gendisk  *gd;    /* gendisk structure */
gd968drivers/char/pcxx.cvolatile struct global_data *gd;
gd1264drivers/char/pcxx.cgd = (volatile struct global_data *)((ulong)memaddr + GLOBAL);
gd1277drivers/char/pcxx.cch->mailbox = gd;