/linux-2.4.37.9/drivers/ide/ |
D | ide-probe.c | 1170 struct gendisk *gd; in init_gendisk() local 1178 gd = kmalloc(sizeof(struct gendisk), GFP_KERNEL); in init_gendisk() 1179 if (!gd) in init_gendisk() 1181 memset(gd, 0, sizeof(struct gendisk)); in init_gendisk() 1183 gd->sizes = kmalloc(minors * sizeof(int), GFP_KERNEL); in init_gendisk() 1184 if (!gd->sizes) in init_gendisk() 1186 gd->part = kmalloc(minors * sizeof(struct hd_struct), GFP_KERNEL); in init_gendisk() 1187 if (!gd->part) in init_gendisk() 1199 memset(gd->part, 0, minors * sizeof(struct hd_struct)); in init_gendisk() 1215 hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; in init_gendisk() [all …]
|
D | ide.c | 833 struct gendisk *gd; in ide_unregister() local 962 gd = hwif->gd; in ide_unregister() 963 if (gd) { in ide_unregister() 964 del_gendisk(gd); in ide_unregister() 965 kfree(gd->sizes); in ide_unregister() 966 kfree(gd->part); in ide_unregister() 967 if (gd->de_arr) in ide_unregister() 968 kfree(gd->de_arr); in ide_unregister() 969 if (gd->flags) in ide_unregister() 970 kfree(gd->flags); in ide_unregister() [all …]
|
D | ide-floppy.c | 1841 grok_partitions(HWIF(drive)->gd, drive->select.b.unit, in idefloppy_revalidate() 2050 hwif->gd->de_arr[i] = drive->de; in idefloppy_setup() 2052 hwif->gd->flags[i] |= GENHD_FL_REMOVABLE; in idefloppy_setup()
|
D | ide-disk.c | 780 grok_partitions(HWIF(drive)->gd, drive->select.b.unit, in idedisk_revalidate() 1654 hwif->gd->de_arr[i] = drive->de; in idedisk_setup() 1656 hwif->gd->flags[i] |= GENHD_FL_REMOVABLE; in idedisk_setup()
|
D | ide-cd.c | 2245 …HWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS] = (toc->capacity * SECTORS_PER_FRAME) >… in cdrom_read_toc() 3087 HWIF(drive)->gd->sizes[minor] = toc->capacity * BLOCKS_PER_FRAME; in ide_cdrom_revalidate() 3093 blk_size[HWIF(drive)->major] = HWIF(drive)->gd->sizes; in ide_cdrom_revalidate()
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_quota.h | 329 #define XFS_TRANS_RESERVE_QUOTA_BYDQUOTS(mp, tp, ud, gd, nb, ni, fl) \ argument 330 XFS_DQTRXOP(mp, tp, qo_reserve_quota_bydquots, mp, ud, gd, nb, ni, fl) 343 #define XFS_TRANS_RESERVE_QUOTA(mp, tp, ud, gd, nb, ni, f) \ argument 344 XFS_TRANS_RESERVE_QUOTA_BYDQUOTS(mp, tp, ud, gd, nb, ni, \ 346 #define XFS_TRANS_UNRESERVE_QUOTA(mp, tp, ud, gd, nb, ni, f) \ argument 347 XFS_TRANS_RESERVE_QUOTA_BYDQUOTS(mp, tp, ud, gd, -(nb), -(ni), \
|
/linux-2.4.37.9/drivers/ide/raid/ |
D | medley.c | 586 struct gendisk *gd; in get_device_lock() local 601 gd = get_gendisk(MKDEV(MAJOR(member), 0)); in get_device_lock() 602 if (gd != NULL) { in get_device_lock() 603 if (gd->major == MAJOR(member)) { in get_device_lock() 604 for (j = 1 + (minor << gd->minor_shift); in get_device_lock() 605 j < ((minor + 1) << gd->minor_shift); in get_device_lock() 607 gd->part[j].nr_sects = 0; in get_device_lock()
|
D | hptraid.c | 610 struct gendisk *gd; in writeentry() local 623 gd=get_gendisk(MKDEV(disk->major, 0)); in writeentry() 624 if (gd!=NULL) { in writeentry() 625 if (gd->major==disk->major) in writeentry() 626 for (j=1+(disk->minor<<gd->minor_shift); in writeentry() 627 j<((disk->minor+1)<<gd->minor_shift); in writeentry() 628 j++) gd->part[j].nr_sects=0; in writeentry()
|
/linux-2.4.37.9/drivers/block/ |
D | ll_rw_blk.c | 723 struct gendisk *gd; in locate_hd_struct() local 728 gd = get_gendisk(req->rq_dev); in locate_hd_struct() 729 if (gd && gd->part) { in locate_hd_struct() 731 int devnr = MINOR(req->rq_dev) >> gd->minor_shift; in locate_hd_struct() 732 int whole_minor = devnr << gd->minor_shift; in locate_hd_struct() 734 *hd1 = &gd->part[whole_minor]; in locate_hd_struct() 736 *hd2= &gd->part[MINOR(req->rq_dev)]; in locate_hd_struct()
|
/linux-2.4.37.9/drivers/usb/ |
D | devio.c | 699 struct usbdevfs_getdriver gd; in proc_getdriver() local 703 if (copy_from_user(&gd, arg, sizeof(gd))) in proc_getdriver() 705 if ((ret = findintfif(ps->dev, gd.interface)) < 0) in proc_getdriver() 707 interface = usb_ifnum_to_if(ps->dev, gd.interface); in proc_getdriver() 712 strcpy(gd.driver, interface->driver->name); in proc_getdriver() 713 if (copy_to_user(arg, &gd, sizeof(gd))) in proc_getdriver()
|
/linux-2.4.37.9/fs/xfs/quota/ |
D | xfs_qm_syscalls.c | 1294 xfs_dqtest_t **gd) in xfs_qm_internalqcheck_get_dquots() argument 1299 xfs_qm_internalqcheck_dqget(mp, gid, XFS_DQ_GROUP, gd); in xfs_qm_internalqcheck_get_dquots() 1325 xfs_dqtest_t *ud, *gd; in xfs_qm_internalqcheck_adjust() local 1368 &ud, &gd); in xfs_qm_internalqcheck_adjust() 1374 ASSERT(gd); in xfs_qm_internalqcheck_adjust() 1375 xfs_qm_internalqcheck_dqadjust(ip, gd); in xfs_qm_internalqcheck_adjust()
|
/linux-2.4.37.9/arch/ppc/xmon/ |
D | xmon.c | 1868 int gd = 1; in xmon_symbol_to_addr() local 1874 gd++; in xmon_symbol_to_addr() 1876 gd++; in xmon_symbol_to_addr() 1878 if (gd > goodness) { in xmon_symbol_to_addr() 1880 goodness = gd; in xmon_symbol_to_addr() 1881 if (gd == 3) in xmon_symbol_to_addr()
|
/linux-2.4.37.9/include/linux/mtd/ |
D | compatmac.h | 458 struct gendisk *gd, **gdp; in del_gendisk() local 462 gd = *gdp; *gdp = gd->next; in del_gendisk()
|
/linux-2.4.37.9/fs/udf/ |
D | super.c | 1028 struct generic_desc *gd; in udf_process_sequence() local 1047 gd = (struct generic_desc *)bh->b_data; in udf_process_sequence() 1048 vdsn = le32_to_cpu(gd->volDescSeqNum); in udf_process_sequence() 1127 gd = (struct generic_desc *)bh2->b_data; in udf_process_sequence()
|
/linux-2.4.37.9/drivers/char/ |
D | pcxx.c | 1090 volatile struct global_data *gd; in pcxe_init() local 1515 gd = (volatile struct global_data *)((ulong)memaddr + GLOBAL); in pcxe_init() 1534 ch->mailbox = gd; in pcxe_init()
|
D | epca.c | 1927 volatile struct global_data *gd; in post_fep_init() local 2009 gd = (volatile struct global_data *)((ulong)memaddr + GLOBAL); in post_fep_init() 2036 ch->mailbox = gd; in post_fep_init()
|
/linux-2.4.37.9/include/linux/ |
D | ide.h | 856 struct gendisk *gd; /* gendisk structure */ member
|