tag | line | file | source code |
gd | 1783 | drivers/block/ide-cd.c | HWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS] |
gd | 451 | drivers/block/ide.c | static void ide_geninit (struct gendisk *gd) |
gd | 454 | drivers/block/ide.c | ide_hwif_t *hwif = gd->real_devices; |
gd | 456 | drivers/block/ide.c | for (unit = 0; unit < gd->nr_real; ++unit) { |
gd | 469 | drivers/block/ide.c | gd->real_devices = hwif->drives[0].name; /* name of first drive */ |
gd | 507 | drivers/block/ide.c | struct gendisk *gd; |
gd | 517 | drivers/block/ide.c | gd = ide_alloc (sizeof(struct gendisk), 0); |
gd | 518 | drivers/block/ide.c | gd->sizes = ide_alloc (minors * sizeof(int), 0); |
gd | 519 | drivers/block/ide.c | gd->part = ide_alloc (minors * sizeof(struct hd_struct), 0); |
gd | 528 | drivers/block/ide.c | hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; |
gd | 530 | drivers/block/ide.c | gd->major = hwif->major; /* our major device number */ |
gd | 531 | drivers/block/ide.c | gd->major_name = IDE_MAJOR_NAME; /* treated special in genhd.c */ |
gd | 532 | drivers/block/ide.c | gd->minor_shift = PARTN_BITS; /* num bits for partitions */ |
gd | 533 | drivers/block/ide.c | gd->max_p = 1<<PARTN_BITS; /* 1 + max partitions / drive */ |
gd | 534 | drivers/block/ide.c | gd->max_nr = units; /* max num real drives */ |
gd | 535 | drivers/block/ide.c | gd->nr_real = units; /* current num real drives */ |
gd | 536 | drivers/block/ide.c | gd->init = ide_geninit; /* initialization function */ |
gd | 537 | drivers/block/ide.c | gd->real_devices= hwif; /* ptr to internal data */ |
gd | 539 | drivers/block/ide.c | gd->next = gendisk_head; /* link new major into list */ |
gd | 540 | drivers/block/ide.c | hwif->gd = gendisk_head = gd; |
gd | 1736 | drivers/block/ide.c | resetup_one_dev(HWIF(drive)->gd, drive->select.b.unit); |
gd | 306 | drivers/block/ide.h | struct gendisk *gd; /* gendisk structure */ |