Home
last modified time | relevance | path

Searched refs:gd (Results 1 – 17 of 17) sorted by relevance

/linux-2.4.37.9/drivers/ide/
Dide-probe.c1170 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 …]
Dide.c833 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 …]
Dide-floppy.c1841 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()
Dide-disk.c780 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()
Dide-cd.c2245 …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/
Dxfs_quota.h329 #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/
Dmedley.c586 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()
Dhptraid.c610 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/
Dll_rw_blk.c723 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/
Ddevio.c699 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/
Dxfs_qm_syscalls.c1294 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/
Dxmon.c1868 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/
Dcompatmac.h458 struct gendisk *gd, **gdp; in del_gendisk() local
462 gd = *gdp; *gdp = gd->next; in del_gendisk()
/linux-2.4.37.9/fs/udf/
Dsuper.c1028 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/
Dpcxx.c1090 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()
Depca.c1927 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/
Dide.h856 struct gendisk *gd; /* gendisk structure */ member