taglinefilesource code
gd1783drivers/block/ide-cd.cHWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS]
gd451drivers/block/ide.cstatic void ide_geninit (struct gendisk *gd)
gd454drivers/block/ide.cide_hwif_t *hwif = gd->real_devices;
gd456drivers/block/ide.cfor (unit = 0; unit < gd->nr_real; ++unit) {
gd469drivers/block/ide.cgd->real_devices = hwif->drives[0].name;  /* name of first drive */
gd507drivers/block/ide.cstruct gendisk *gd;
gd517drivers/block/ide.cgd        = ide_alloc (sizeof(struct gendisk), 0);
gd518drivers/block/ide.cgd->sizes = ide_alloc (minors * sizeof(int), 0);
gd519drivers/block/ide.cgd->part  = ide_alloc (minors * sizeof(struct hd_struct), 0);
gd528drivers/block/ide.chwif->drives[unit].part = &gd->part[unit << PARTN_BITS];
gd530drivers/block/ide.cgd->major  = hwif->major;    /* our major device number */
gd531drivers/block/ide.cgd->major_name  = IDE_MAJOR_NAME;  /* treated special in genhd.c */
gd532drivers/block/ide.cgd->minor_shift  = PARTN_BITS;    /* num bits for partitions */
gd533drivers/block/ide.cgd->max_p  = 1<<PARTN_BITS;  /* 1 + max partitions / drive */
gd534drivers/block/ide.cgd->max_nr  = units;    /* max num real drives */
gd535drivers/block/ide.cgd->nr_real  = units;    /* current num real drives */
gd536drivers/block/ide.cgd->init  = ide_geninit;    /* initialization function */
gd537drivers/block/ide.cgd->real_devices= hwif;      /* ptr to internal data */
gd539drivers/block/ide.cgd->next = gendisk_head;    /* link new major into list */
gd540drivers/block/ide.chwif->gd = gendisk_head = gd;
gd1736drivers/block/ide.cresetup_one_dev(HWIF(drive)->gd, drive->select.b.unit);
gd306drivers/block/ide.hstruct gendisk  *gd;    /* gendisk structure */