/linux-3.4.99/drivers/cdrom/ |
D | gdrom.c | 125 } gd; variable 233 gdrom_hardreset(gd.cd_info); in gdrom_execute_diagnostic() 256 gd.pending = 1; in gdrom_preparedisk_cmd() 257 gdrom_packetcommand(gd.cd_info, spin_command); in gdrom_preparedisk_cmd() 259 wait_event_interruptible_timeout(command_queue, gd.pending == 0, in gdrom_preparedisk_cmd() 261 gd.pending = 0; in gdrom_preparedisk_cmd() 263 if (gd.status & 0x01) { in gdrom_preparedisk_cmd() 293 if (gd.pending) { in gdrom_readtoc_cmd() 297 gd.pending = 1; in gdrom_readtoc_cmd() 298 gdrom_packetcommand(gd.cd_info, toc_command); in gdrom_readtoc_cmd() [all …]
|
/linux-3.4.99/drivers/block/aoe/ |
D | aoeblk.c | 118 return sysfs_create_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_add_sysfs() 123 sysfs_remove_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_rm_sysfs() 256 struct gendisk *gd; in aoeblk_gdalloc() local 259 gd = alloc_disk(AOE_PARTITIONS); in aoeblk_gdalloc() 260 if (gd == NULL) { in aoeblk_gdalloc() 280 gd->major = AOE_MAJOR; in aoeblk_gdalloc() 281 gd->first_minor = d->sysminor * AOE_PARTITIONS; in aoeblk_gdalloc() 282 gd->fops = &aoe_bdops; in aoeblk_gdalloc() 283 gd->private_data = d; in aoeblk_gdalloc() 284 set_capacity(gd, d->ssize); in aoeblk_gdalloc() [all …]
|
D | aoedev.c | 94 if (d->gd) in aoedev_downdev() 95 set_capacity(d->gd, 0); in aoedev_downdev() 106 if (d->gd) { in aoedev_freedev() 108 del_gendisk(d->gd); in aoedev_freedev() 109 put_disk(d->gd); in aoedev_freedev()
|
/linux-3.4.99/drivers/block/ |
D | xen-blkfront.c | 88 struct gendisk *gd; member 239 struct gendisk *gd = info->gd; in blkif_ioctl() local 240 if (gd->flags & GENHD_FL_CD) in blkif_ioctl() 415 static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size) in xlvbd_init_blk_queue() argument 418 struct blkfront_info *info = gd->private_data; in xlvbd_init_blk_queue() 428 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in xlvbd_init_blk_queue() 452 gd->queue = rq; in xlvbd_init_blk_queue() 462 info->gd->disk_name, in xlvbd_flush() 533 struct gendisk *gd; in xlvbd_alloc_gendisk() local 540 BUG_ON(info->gd != NULL); in xlvbd_alloc_gendisk() [all …]
|
D | xsysace.c | 211 struct gendisk *gd; member 497 set_capacity(ace->gd, 0); in ace_fsm_dostate() 626 set_capacity(ace->gd, 0); in ace_fsm_dostate() 633 set_capacity(ace->gd, in ace_fsm_dostate() 870 static unsigned int ace_check_events(struct gendisk *gd, unsigned int clearing) in ace_check_events() argument 872 struct ace_device *ace = gd->private_data; in ace_check_events() 878 static int ace_revalidate_disk(struct gendisk *gd) in ace_revalidate_disk() argument 880 struct ace_device *ace = gd->private_data; in ace_revalidate_disk() 1001 ace->gd = alloc_disk(ACE_NUM_MINORS); in ace_setup() 1002 if (!ace->gd) in ace_setup() [all …]
|
D | mg_disk.c | 114 struct gendisk *gd; member 990 host->gd = alloc_disk(MG_DISK_MAX_PART); in mg_probe() 991 if (!host->gd) { in mg_probe() 997 host->gd->major = host->major; in mg_probe() 998 host->gd->first_minor = 0; in mg_probe() 999 host->gd->fops = &mg_disk_ops; in mg_probe() 1000 host->gd->queue = host->breq; in mg_probe() 1001 host->gd->private_data = host; in mg_probe() 1002 sprintf(host->gd->disk_name, MG_DISK_NAME"a"); in mg_probe() 1004 set_capacity(host->gd, host->n_sectors); in mg_probe() [all …]
|
/linux-3.4.99/drivers/mtd/ |
D | mtd_blkdevs.c | 341 struct gendisk *gd; in add_mtd_blktrans_dev() local 395 gd = alloc_disk(1 << tr->part_bits); in add_mtd_blktrans_dev() 397 if (!gd) in add_mtd_blktrans_dev() 400 new->disk = gd; in add_mtd_blktrans_dev() 401 gd->private_data = new; in add_mtd_blktrans_dev() 402 gd->major = tr->major; in add_mtd_blktrans_dev() 403 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev() 404 gd->fops = &mtd_blktrans_ops; in add_mtd_blktrans_dev() 408 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev() 411 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev() [all …]
|
/linux-3.4.99/drivers/message/i2o/ |
D | i2o_block.c | 92 blk_cleanup_queue(dev->gd->queue); in i2o_block_device_free() 94 put_disk(dev->gd); in i2o_block_device_free() 113 i2o_blk_dev->gd->disk_name); in i2o_block_remove() 117 del_gendisk(i2o_blk_dev->gd); in i2o_block_remove() 966 struct gendisk *gd; in i2o_block_device_alloc() local 983 gd = alloc_disk(16); in i2o_block_device_alloc() 984 if (!gd) { in i2o_block_device_alloc() 1000 gd->major = I2O_MAJOR; in i2o_block_device_alloc() 1001 gd->queue = queue; in i2o_block_device_alloc() 1002 gd->fops = &i2o_block_fops; in i2o_block_device_alloc() [all …]
|
D | i2o_block.h | 74 struct gendisk *gd; member
|
/linux-3.4.99/drivers/s390/block/ |
D | dcssblk.c | 49 struct gendisk *gd; member 131 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor() 137 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor() 371 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store() 392 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store() 410 del_gendisk(dev_info->gd); in dcssblk_shared_store() 412 dev_info->gd->queue = NULL; in dcssblk_shared_store() 413 put_disk(dev_info->gd); in dcssblk_shared_store() 594 dev_info->gd = alloc_disk(DCSSBLK_MINORS_PER_DISK); in dcssblk_add_store() 595 if (dev_info->gd == NULL) { in dcssblk_add_store() [all …]
|
/linux-3.4.99/fs/ocfs2/ |
D | resize.c | 55 struct ocfs2_group_desc *gd, in ocfs2_calc_new_backup_super() argument 64 u64 blkno, gd_blkno, lgd_blkno = le64_to_cpu(gd->bg_blkno); in ocfs2_calc_new_backup_super() 78 (unsigned long *)gd->bg_bitmap); in ocfs2_calc_new_backup_super() 81 (unsigned long *)gd->bg_bitmap); in ocfs2_calc_new_backup_super() 388 struct ocfs2_group_desc *gd = in ocfs2_check_new_group() local 397 if (le16_to_cpu(gd->bg_chain) != input->chain) in ocfs2_check_new_group() 400 (unsigned long long)le64_to_cpu(gd->bg_blkno), in ocfs2_check_new_group() 401 le16_to_cpu(gd->bg_chain), input->chain); in ocfs2_check_new_group() 402 else if (le16_to_cpu(gd->bg_bits) != input->clusters * cl_bpc) in ocfs2_check_new_group() 405 (unsigned long long)le64_to_cpu(gd->bg_blkno), in ocfs2_check_new_group() [all …]
|
D | suballoc.c | 187 struct ocfs2_group_desc *gd = (struct ocfs2_group_desc *)bh->b_data; in ocfs2_validate_gd_self() local 189 if (!OCFS2_IS_VALID_GROUP_DESC(gd)) { in ocfs2_validate_gd_self() 192 gd->bg_signature); in ocfs2_validate_gd_self() 196 if (le64_to_cpu(gd->bg_blkno) != bh->b_blocknr) { in ocfs2_validate_gd_self() 200 (unsigned long long)le64_to_cpu(gd->bg_blkno)); in ocfs2_validate_gd_self() 204 if (le32_to_cpu(gd->bg_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_gd_self() 208 le32_to_cpu(gd->bg_generation)); in ocfs2_validate_gd_self() 212 if (le16_to_cpu(gd->bg_free_bits_count) > le16_to_cpu(gd->bg_bits)) { in ocfs2_validate_gd_self() 216 le16_to_cpu(gd->bg_bits), in ocfs2_validate_gd_self() 217 le16_to_cpu(gd->bg_free_bits_count)); in ocfs2_validate_gd_self() [all …]
|
D | move_extents.c | 530 struct ocfs2_group_desc *gd = (struct ocfs2_group_desc *)bh->b_data; in ocfs2_probe_alloc_group() local 532 le64_to_cpu(gd->bg_blkno)); in ocfs2_probe_alloc_group() 534 for (i = base_bit; i < le16_to_cpu(gd->bg_bits); i++) { in ocfs2_probe_alloc_group() 536 used = ocfs2_test_bit(i, (unsigned long *)gd->bg_bitmap); in ocfs2_probe_alloc_group() 653 struct ocfs2_group_desc *gd; in ocfs2_move_extent() local 760 gd = (struct ocfs2_group_desc *)gd_bh->b_data; in ocfs2_move_extent() 762 le16_to_cpu(gd->bg_chain)); in ocfs2_move_extent() 768 ret = ocfs2_block_group_set_bits(handle, gb_inode, gd, gd_bh, in ocfs2_move_extent()
|
/linux-3.4.99/drivers/block/paride/ |
D | pd.c | 238 struct gendisk *gd; member 724 rq = blk_get_request(disk->gd->queue, READ, __GFP_WAIT); in pd_special_command() 729 err = blk_execute_rq(disk->gd->queue, disk->gd, rq, 0); in pd_special_command() 841 disk->gd = p; in pd_probe_drive() 851 disk->gd = NULL; in pd_probe_drive() 880 if (!disk->gd) in pd_detect() 893 if (!disk->gd) in pd_detect() 899 if (disk->gd) { in pd_detect() 900 set_capacity(disk->gd, disk->capacity); in pd_detect() 901 add_disk(disk->gd); in pd_detect() [all …]
|
/linux-3.4.99/include/linux/power/ |
D | charger-manager.h | 135 extern int setup_charger_manager(struct charger_global_desc *gd); 138 static void __maybe_unused setup_charger_manager(struct charger_global_desc *gd) in setup_charger_manager() argument
|
/linux-3.4.99/drivers/macintosh/ |
D | windfarm_pm81.c | 165 s32 gd, gp, gr; member 197 .gd = 0x15400000, 209 .gd = 0x08e00000, 221 .gd = 0x15400000, 299 pid_param.gd = param->gd; in wf_smu_create_sys_fans() 438 pid_param.gd = piddata->gd; in wf_smu_create_cpu_fans()
|
D | windfarm_pid.h | 30 s32 gd, gp, gr; /* PID gains */ member 63 s32 gd, gp, gr; /* PID gains */ member
|
D | windfarm_pm112.c | 166 pid.gd = piddata->gd; in create_cpu_loop() 344 .gd = 48 << 20, 394 .gd = 30 << 20, 445 .gd = 0,
|
D | windfarm_pm91.c | 183 pid_param.gd = piddata->gd; in wf_smu_create_cpu_fans() 297 .gd = 0x01e00000, in wf_smu_create_drive_fans() 378 .gd = 0x00000000, in wf_smu_create_slots_fans()
|
D | windfarm_pid.c | 68 target = (s32)((integ * (s64)st->param.gr + deriv * (s64)st->param.gd + in wf_pid_run() 129 deriv *= st->param.gd; in wf_cpu_pid_run()
|
/linux-3.4.99/drivers/scsi/ |
D | sd.c | 2594 struct gendisk *gd; in sd_probe_async() local 2599 gd = sdkp->disk; in sd_probe_async() 2603 gd->major = sd_major((index & 0xf0) >> 4); in sd_probe_async() 2604 gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00); in sd_probe_async() 2605 gd->minors = SD_MINORS; in sd_probe_async() 2607 gd->fops = &sd_fops; in sd_probe_async() 2608 gd->private_data = &sdkp->driver; in sd_probe_async() 2609 gd->queue = sdkp->device->request_queue; in sd_probe_async() 2623 sd_revalidate_disk(gd); in sd_probe_async() 2628 gd->driverfs_dev = &sdp->sdev_gendev; in sd_probe_async() [all …]
|
/linux-3.4.99/drivers/power/ |
D | charger-manager.c | 726 int setup_charger_manager(struct charger_global_desc *gd) in setup_charger_manager() argument 728 if (!gd) in setup_charger_manager() 736 if (!gd->rtc_only_wakeup) { in setup_charger_manager() 741 if (gd->rtc_name) { in setup_charger_manager() 742 rtc_dev = rtc_class_open(gd->rtc_name); in setup_charger_manager() 752 g_desc = gd; in setup_charger_manager()
|
/linux-3.4.99/arch/mips/include/asm/mach-rc32434/ |
D | rb.h | 77 struct gendisk *gd; member
|
/linux-3.4.99/net/sunrpc/auth_gss/ |
D | svcauth_gss.c | 758 struct gss_domain *gd = container_of(dom, struct gss_domain, h); in svcauth_gss_flavor() local 760 return gd->pseudoflavor; in svcauth_gss_flavor() 932 struct gss_svc_data *gd = (struct gss_svc_data *)rqstp->rq_auth_data; in svc_gss_principal() local 934 if (gd && gd->rsci) in svc_gss_principal() 935 return gd->rsci->client_name; in svc_gss_principal() 1415 struct gss_domain *gd = container_of(dom, struct gss_domain, h); in svcauth_gss_domain_release() local 1418 kfree(gd); in svcauth_gss_domain_release()
|
/linux-3.4.99/fs/xfs/ |
D | xfs_quota.h | 375 #define xfs_trans_reserve_quota(tp, mp, ud, gd, nb, ni, f) \ argument 376 xfs_trans_reserve_quota_bydquots(tp, mp, ud, gd, nb, ni, \
|