tag | line | file | source code |
gd | 1739 | drivers/block/ide-cd.c | HWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS] |
gd | 527 | drivers/block/ide.c | static void ide_geninit (struct gendisk *gd) |
gd | 530 | drivers/block/ide.c | ide_hwif_t *hwif = gd->real_devices; |
gd | 532 | drivers/block/ide.c | for (unit = 0; unit < gd->nr_real; ++unit) { |
gd | 557 | drivers/block/ide.c | struct gendisk *gd, **gdp; |
gd | 567 | drivers/block/ide.c | gd = kmalloc (sizeof(struct gendisk), GFP_KERNEL); |
gd | 568 | drivers/block/ide.c | gd->sizes = kmalloc (minors * sizeof(int), GFP_KERNEL); |
gd | 569 | drivers/block/ide.c | gd->part = kmalloc (minors * sizeof(struct hd_struct), GFP_KERNEL); |
gd | 578 | drivers/block/ide.c | hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; |
gd | 580 | drivers/block/ide.c | gd->major = hwif->major; /* our major device number */ |
gd | 581 | drivers/block/ide.c | gd->major_name = IDE_MAJOR_NAME; /* treated special in genhd.c */ |
gd | 582 | drivers/block/ide.c | gd->minor_shift = PARTN_BITS; /* num bits for partitions */ |
gd | 583 | drivers/block/ide.c | gd->max_p = 1<<PARTN_BITS; /* 1 + max partitions / drive */ |
gd | 584 | drivers/block/ide.c | gd->max_nr = units; /* max num real drives */ |
gd | 585 | drivers/block/ide.c | gd->nr_real = units; /* current num real drives */ |
gd | 586 | drivers/block/ide.c | gd->init = ide_geninit; /* initialization function */ |
gd | 587 | drivers/block/ide.c | gd->real_devices= hwif; /* ptr to internal data */ |
gd | 588 | drivers/block/ide.c | gd->next = NULL; /* linked list of major devs */ |
gd | 591 | drivers/block/ide.c | hwif->gd = *gdp = gd; /* link onto tail of list */ |
gd | 1886 | drivers/block/ide.c | resetup_one_dev(HWIF(drive)->gd, drive->select.b.unit); |
gd | 3256 | drivers/block/ide.c | for (i = 0; i < hwif->gd->nr_real; i++) |
gd | 3268 | drivers/block/ide.c | struct gendisk *gd, **gdp; |
gd | 3328 | drivers/block/ide.c | if (*gdp == hwif->gd) |
gd | 3333 | drivers/block/ide.c | gd = *gdp; *gdp = gd->next; |
gd | 3334 | drivers/block/ide.c | kfree(gd->sizes); |
gd | 3335 | drivers/block/ide.c | kfree(gd->part); |
gd | 3336 | drivers/block/ide.c | kfree(gd); |
gd | 404 | drivers/block/ide.h | struct gendisk *gd; /* gendisk structure */ |
gd | 968 | drivers/char/pcxx.c | volatile struct global_data *gd; |
gd | 1264 | drivers/char/pcxx.c | gd = (volatile struct global_data *)((ulong)memaddr + GLOBAL); |
gd | 1277 | drivers/char/pcxx.c | ch->mailbox = gd; |