/drivers/cdrom/ |
D | gdrom.c | 106 } gd; variable 214 gdrom_hardreset(gd.cd_info); in gdrom_execute_diagnostic() 237 gd.pending = 1; in gdrom_preparedisk_cmd() 238 gdrom_packetcommand(gd.cd_info, spin_command); in gdrom_preparedisk_cmd() 240 wait_event_interruptible_timeout(command_queue, gd.pending == 0, in gdrom_preparedisk_cmd() 242 gd.pending = 0; in gdrom_preparedisk_cmd() 244 if (gd.status & 0x01) { in gdrom_preparedisk_cmd() 274 if (gd.pending) { in gdrom_readtoc_cmd() 278 gd.pending = 1; in gdrom_readtoc_cmd() 279 gdrom_packetcommand(gd.cd_info, toc_command); in gdrom_readtoc_cmd() [all …]
|
/drivers/mtd/ubi/ |
D | block.c | 82 struct gendisk *gd; member 245 dev_err(disk_to_dev(dev->gd), "failed to open ubi volume %d_%d", in ubiblock_open() 262 static void ubiblock_release(struct gendisk *gd, fmode_t mode) in ubiblock_release() argument 264 struct ubiblock *dev = gd->private_data; in ubiblock_release() 369 struct gendisk *gd; in ubiblock_create() local 398 gd = alloc_disk(1); in ubiblock_create() 399 if (!gd) { in ubiblock_create() 405 gd->fops = &ubiblock_ops; in ubiblock_create() 406 gd->major = ubiblock_major; in ubiblock_create() 407 gd->first_minor = idr_alloc(&ubiblock_minor_idr, dev, 0, 0, GFP_KERNEL); in ubiblock_create() [all …]
|
/drivers/clk/ |
D | clk-asm9260.c | 293 const struct asm9260_gate_data *gd = &asm9260_mux_gates[n]; in asm9260_acc_init() local 295 hw = clk_hw_register_gate(NULL, gd->name, in asm9260_acc_init() 296 gd->parent_name, gd->flags | CLK_SET_RATE_PARENT, in asm9260_acc_init() 297 base + gd->reg, gd->bit_idx, 0, &asm9260_clk_lock); in asm9260_acc_init() 312 const struct asm9260_gate_data *gd = &asm9260_ahb_gates[n]; in asm9260_acc_init() local 314 hws[gd->idx] = clk_hw_register_gate(NULL, gd->name, in asm9260_acc_init() 315 gd->parent_name, gd->flags, base + gd->reg, in asm9260_acc_init() 316 gd->bit_idx, 0, &asm9260_clk_lock); in asm9260_acc_init()
|
D | clk-gemini.c | 340 const struct gemini_gate_data *gd; in gemini_clk_probe() local 342 gd = &gemini_gates[i]; in gemini_clk_probe() 344 clk_hw_register_gate(NULL, gd->name, in gemini_clk_probe() 345 gd->parent_name, in gemini_clk_probe() 346 gd->flags, in gemini_clk_probe() 348 gd->bit_idx, in gemini_clk_probe()
|
D | clk-ast2600.c | 652 const struct aspeed_gate_data *gd = &aspeed_g6_gates[i]; in aspeed_g6_clk_probe() local 659 gate_flags = (gd->clock_idx == 14) ? 0 : CLK_GATE_SET_TO_DISABLE; in aspeed_g6_clk_probe() 661 gd->name, in aspeed_g6_clk_probe() 662 gd->parent_name, in aspeed_g6_clk_probe() 663 gd->flags, in aspeed_g6_clk_probe() 665 gd->clock_idx, in aspeed_g6_clk_probe() 666 gd->reset_idx, in aspeed_g6_clk_probe()
|
D | clk-aspeed.c | 543 const struct aspeed_gate_data *gd = &aspeed_gates[i]; in aspeed_clk_probe() local 549 gate_flags = (gd->clock_idx == 14) ? 0 : CLK_GATE_SET_TO_DISABLE; in aspeed_clk_probe() 551 gd->name, in aspeed_clk_probe() 552 gd->parent_name, in aspeed_clk_probe() 553 gd->flags, in aspeed_clk_probe() 555 gd->clock_idx, in aspeed_clk_probe() 556 gd->reset_idx, in aspeed_clk_probe()
|
D | clk-stm32f4.c | 1808 const struct stm32f4_gate_data *gd; in stm32f4_rcc_init() local 1812 gd = &data->gates_data[n]; in stm32f4_rcc_init() 1813 secondary = 8 * (gd->offset - STM32F4_RCC_AHB1ENR) + in stm32f4_rcc_init() 1814 gd->bit_idx; in stm32f4_rcc_init() 1821 NULL, gd->name, gd->parent_name, gd->flags, in stm32f4_rcc_init() 1822 base + gd->offset, gd->bit_idx, 0, &stm32f4_clk_lock); in stm32f4_rcc_init() 1826 np, gd->name); in stm32f4_rcc_init()
|
/drivers/block/aoe/ |
D | aoeblk.c | 203 p = strchr(d->gd->disk_name, '/'); in aoedisk_add_debugfs() 205 p = d->gd->disk_name; in aoedisk_add_debugfs() 346 struct gendisk *gd; in aoeblk_gdalloc() local 365 gd = alloc_disk(AOE_PARTITIONS); in aoeblk_gdalloc() 366 if (gd == NULL) { in aoeblk_gdalloc() 406 WARN_ON(d->gd); in aoeblk_gdalloc() 411 d->blkq = gd->queue = q; in aoeblk_gdalloc() 413 d->gd = gd; in aoeblk_gdalloc() 416 gd->major = AOE_MAJOR; in aoeblk_gdalloc() 417 gd->first_minor = d->sysminor; in aoeblk_gdalloc() [all …]
|
D | aoedev.c | 235 if (d->gd) in aoedev_downdev() 236 set_capacity(d->gd, 0); in aoedev_downdev() 248 if (!d->gd) in user_req() 250 p = kbasename(d->gd->disk_name); in user_req() 251 lim = sizeof(d->gd->disk_name); in user_req() 252 lim -= p - d->gd->disk_name; in user_req() 277 if (d->gd) { in freedev() 279 del_gendisk(d->gd); in freedev() 280 put_disk(d->gd); in freedev()
|
/drivers/mtd/ |
D | mtd_blkdevs.c | 345 struct gendisk *gd; in add_mtd_blktrans_dev() local 399 gd = alloc_disk(1 << tr->part_bits); in add_mtd_blktrans_dev() 401 if (!gd) in add_mtd_blktrans_dev() 404 new->disk = gd; in add_mtd_blktrans_dev() 405 gd->private_data = new; in add_mtd_blktrans_dev() 406 gd->major = tr->major; in add_mtd_blktrans_dev() 407 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev() 408 gd->fops = &mtd_block_ops; in add_mtd_blktrans_dev() 412 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev() 415 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev() [all …]
|
/drivers/s390/block/ |
D | dcssblk.c | 87 struct gendisk *gd; member 156 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor() 162 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor() 390 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store() 411 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store() 431 del_gendisk(dev_info->gd); in dcssblk_shared_store() 433 dev_info->gd->queue = NULL; in dcssblk_shared_store() 434 put_disk(dev_info->gd); in dcssblk_shared_store() 647 dev_info->gd = alloc_disk(DCSSBLK_MINORS_PER_DISK); in dcssblk_add_store() 648 if (dev_info->gd == NULL) { in dcssblk_add_store() [all …]
|
/drivers/block/ |
D | xen-blkfront.c | 201 struct gendisk *gd; member 530 struct gendisk *gd = info->gd; in blkif_ioctl() local 531 if (gd->flags & GENHD_FL_CD) in blkif_ioctl() 959 struct gendisk *gd = info->gd; in blkif_set_queue_limits() local 967 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in blkif_set_queue_limits() 991 static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size, in xlvbd_init_blk_queue() argument 995 struct blkfront_info *info = gd->private_data; in xlvbd_init_blk_queue() 1024 info->rq = gd->queue = rq; in xlvbd_init_blk_queue() 1025 info->gd = gd; in xlvbd_init_blk_queue() 1048 info->gd->disk_name, flush_info(info), in xlvbd_flush() [all …]
|
D | xsysace.c | 208 struct gendisk *gd; member 509 set_capacity(ace->gd, 0); in ace_fsm_dostate() 638 set_capacity(ace->gd, 0); in ace_fsm_dostate() 645 set_capacity(ace->gd, in ace_fsm_dostate() 888 static unsigned int ace_check_events(struct gendisk *gd, unsigned int clearing) in ace_check_events() argument 890 struct ace_device *ace = gd->private_data; in ace_check_events() 1024 ace->gd = alloc_disk(ACE_NUM_MINORS); in ace_setup() 1025 if (!ace->gd) in ace_setup() 1028 ace->gd->major = ace_major; in ace_setup() 1029 ace->gd->first_minor = ace->id * ACE_NUM_MINORS; in ace_setup() [all …]
|
/drivers/block/paride/ |
D | pd.c | 238 struct gendisk *gd; member 404 disk = pd[pd_queue].gd; in set_next_request() 778 rq = blk_get_request(disk->gd->queue, REQ_OP_DRV_IN, 0); in pd_special_command() 784 blk_execute_rq(disk->gd->queue, disk->gd, rq, 0); in pd_special_command() 902 disk->gd = p; in pd_probe_drive() 934 disk->gd = NULL; in pd_probe_drive() 970 if (!disk->gd) in pd_detect() 983 if (!disk->gd) in pd_detect() 989 if (disk->gd) { in pd_detect() 990 set_capacity(disk->gd, disk->capacity); in pd_detect() [all …]
|
/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 | 29 s32 gd, gp, gr; /* PID gains */ member 62 s32 gd, gp, gr; /* PID gains */ member
|
D | windfarm_pm112.c | 167 pid.gd = piddata->gd; in create_cpu_loop() 348 .gd = 48 << 20, 398 .gd = 30 << 20, 449 .gd = 0,
|
D | windfarm_pm91.c | 184 pid_param.gd = piddata->gd; in wf_smu_create_cpu_fans() 295 .gd = 0x01e00000, in wf_smu_create_drive_fans() 376 .gd = 0x00000000, in wf_smu_create_slots_fans()
|
D | windfarm_pid.c | 67 target = (s32)((integ * (s64)st->param.gr + deriv * (s64)st->param.gd + in wf_pid_run() 128 deriv *= st->param.gd; in wf_cpu_pid_run()
|
/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-sharp-ls037v7dw01.c | 199 struct gpio_desc *gd; in sharp_ls_get_gpio_of() local 203 gd = devm_gpiod_get_index(dev, desc, index, GPIOD_OUT_LOW); in sharp_ls_get_gpio_of() 204 if (IS_ERR(gd)) in sharp_ls_get_gpio_of() 205 return PTR_ERR(gd); in sharp_ls_get_gpio_of() 207 *gpiod = gd; in sharp_ls_get_gpio_of()
|
/drivers/clk/berlin/ |
D | bg2q.c | 352 const struct berlin2_gate_data *gd = &bg2q_gates[n]; in berlin2q_clock_setup() local 354 hws[CLKID_GFX2DAXI + n] = clk_hw_register_gate(NULL, gd->name, in berlin2q_clock_setup() 355 gd->parent_name, gd->flags, gbase + REG_CLKENABLE, in berlin2q_clock_setup() 356 gd->bit_idx, 0, &lock); in berlin2q_clock_setup()
|
D | bg2.c | 658 const struct berlin2_gate_data *gd = &bg2_gates[n]; in berlin2_clock_setup() local 660 hws[CLKID_GETH0 + n] = clk_hw_register_gate(NULL, gd->name, in berlin2_clock_setup() 661 gd->parent_name, gd->flags, gbase + REG_CLKENABLE, in berlin2_clock_setup() 662 gd->bit_idx, 0, &lock); in berlin2_clock_setup()
|
/drivers/block/rnbd/ |
D | rnbd-clt.c | 104 set_capacity(dev->gd, dev->nsectors); in rnbd_clt_change_capacity() 105 revalidate_disk_size(dev->gd, true); in rnbd_clt_change_capacity() 1317 dev->gd->major = rnbd_client_major; in rnbd_clt_setup_gen_disk() 1318 dev->gd->first_minor = idx << RNBD_PART_BITS; in rnbd_clt_setup_gen_disk() 1319 dev->gd->fops = &rnbd_client_ops; in rnbd_clt_setup_gen_disk() 1320 dev->gd->queue = dev->queue; in rnbd_clt_setup_gen_disk() 1321 dev->gd->private_data = dev; in rnbd_clt_setup_gen_disk() 1322 snprintf(dev->gd->disk_name, sizeof(dev->gd->disk_name), "rnbd%d", in rnbd_clt_setup_gen_disk() 1325 dev->gd->disk_name, in rnbd_clt_setup_gen_disk() 1329 set_capacity(dev->gd, dev->nsectors); in rnbd_clt_setup_gen_disk() [all …]
|
/drivers/gpio/ |
D | gpio-tqmx86.c | 44 static u8 tqmx86_gpio_read(struct tqmx86_gpio_data *gd, unsigned int reg) in tqmx86_gpio_read() argument 46 return ioread8(gd->io_base + reg); in tqmx86_gpio_read() 49 static void tqmx86_gpio_write(struct tqmx86_gpio_data *gd, u8 val, in tqmx86_gpio_write() argument 52 iowrite8(val, gd->io_base + reg); in tqmx86_gpio_write()
|
/drivers/scsi/ |
D | sd.c | 3390 struct gendisk *gd; in sd_probe() local 3414 gd = alloc_disk(SD_MINORS); in sd_probe() 3415 if (!gd) in sd_probe() 3424 error = sd_format_disk_name("sd", index, gd->disk_name, DISK_NAME_LEN); in sd_probe() 3432 sdkp->disk = gd; in sd_probe() 3459 gd->major = sd_major((index & 0xf0) >> 4); in sd_probe() 3460 gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00); in sd_probe() 3462 gd->fops = &sd_fops; in sd_probe() 3463 gd->private_data = &sdkp->driver; in sd_probe() 3464 gd->queue = sdkp->device->request_queue; in sd_probe() [all …]
|