Home
last modified time | relevance | path

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

12

/drivers/cdrom/
Dgdrom.c125 } 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 …]
/drivers/mtd/ubi/
Dblock.c90 struct gendisk *gd; member
253 dev_err(disk_to_dev(dev->gd), "failed to open ubi volume %d_%d", in ubiblock_open()
270 static void ubiblock_release(struct gendisk *gd, fmode_t mode) in ubiblock_release() argument
272 struct ubiblock *dev = gd->private_data; in ubiblock_release()
362 struct gendisk *gd; in ubiblock_create() local
388 gd = alloc_disk(1); in ubiblock_create()
389 if (!gd) { in ubiblock_create()
395 gd->fops = &ubiblock_ops; in ubiblock_create()
396 gd->major = ubiblock_major; in ubiblock_create()
397 gd->first_minor = idr_alloc(&ubiblock_minor_idr, dev, 0, 0, GFP_KERNEL); in ubiblock_create()
[all …]
/drivers/block/aoe/
Daoeblk.c199 p = strchr(d->gd->disk_name, '/'); in aoedisk_add_debugfs()
201 p = d->gd->disk_name; in aoedisk_add_debugfs()
209 d->gd->disk_name); in aoedisk_add_debugfs()
225 return sysfs_create_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_add_sysfs()
230 sysfs_remove_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_rm_sysfs()
353 struct gendisk *gd; in aoeblk_gdalloc() local
371 gd = alloc_disk(AOE_PARTITIONS); in aoeblk_gdalloc()
372 if (gd == NULL) { in aoeblk_gdalloc()
396 WARN_ON(d->gd); in aoeblk_gdalloc()
402 d->blkq = gd->queue = q; in aoeblk_gdalloc()
[all …]
Daoedev.c235 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()
280 del_gendisk(d->gd); in freedev()
281 put_disk(d->gd); in freedev()
/drivers/clk/
Dclk-asm9260.c303 const struct asm9260_gate_data *gd = &asm9260_mux_gates[n]; in asm9260_acc_init() local
305 clk = clk_register_gate(NULL, gd->name, in asm9260_acc_init()
306 gd->parent_name, gd->flags | CLK_SET_RATE_PARENT, in asm9260_acc_init()
307 base + gd->reg, gd->bit_idx, 0, &asm9260_clk_lock); in asm9260_acc_init()
322 const struct asm9260_gate_data *gd = &asm9260_ahb_gates[n]; in asm9260_acc_init() local
324 clks[gd->idx] = clk_register_gate(NULL, gd->name, in asm9260_acc_init()
325 gd->parent_name, gd->flags, base + gd->reg, in asm9260_acc_init()
326 gd->bit_idx, 0, &asm9260_clk_lock); in asm9260_acc_init()
Dclk-stm32f4.c355 const struct stm32f4_gate_data *gd = &stm32f4_gates[n]; in stm32f4_rcc_init() local
357 8 * (gd->offset - STM32F4_RCC_AHB1ENR) + gd->bit_idx; in stm32f4_rcc_init()
364 NULL, gd->name, gd->parent_name, gd->flags, in stm32f4_rcc_init()
365 base + gd->offset, gd->bit_idx, 0, &stm32f4_clk_lock); in stm32f4_rcc_init()
369 np->full_name, gd->name); in stm32f4_rcc_init()
/drivers/mtd/
Dmtd_blkdevs.c324 struct gendisk *gd; in add_mtd_blktrans_dev() local
378 gd = alloc_disk(1 << tr->part_bits); in add_mtd_blktrans_dev()
380 if (!gd) in add_mtd_blktrans_dev()
383 new->disk = gd; in add_mtd_blktrans_dev()
384 gd->private_data = new; in add_mtd_blktrans_dev()
385 gd->major = tr->major; in add_mtd_blktrans_dev()
386 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev()
387 gd->fops = &mtd_block_ops; in add_mtd_blktrans_dev()
391 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
394 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
[all …]
/drivers/s390/block/
Ddcssblk.c50 struct gendisk *gd; member
118 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor()
124 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor()
352 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store()
373 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store()
391 del_gendisk(dev_info->gd); in dcssblk_shared_store()
393 dev_info->gd->queue = NULL; in dcssblk_shared_store()
394 put_disk(dev_info->gd); in dcssblk_shared_store()
607 dev_info->gd = alloc_disk(DCSSBLK_MINORS_PER_DISK); in dcssblk_add_store()
608 if (dev_info->gd == NULL) { in dcssblk_add_store()
[all …]
/drivers/block/
Dxen-blkfront.c134 struct gendisk *gd; member
446 struct gendisk *gd = info->gd; in blkif_ioctl() local
447 if (gd->flags & GENHD_FL_CD) in blkif_ioctl()
796 static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size, in xlvbd_init_blk_queue() argument
801 struct blkfront_info *info = gd->private_data; in xlvbd_init_blk_queue()
824 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in xlvbd_init_blk_queue()
849 gd->queue = rq; in xlvbd_init_blk_queue()
870 info->gd->disk_name, flush_info(info->feature_flush), in xlvbd_flush()
949 struct gendisk *gd; in xlvbd_alloc_gendisk() local
957 BUG_ON(info->gd != NULL); in xlvbd_alloc_gendisk()
[all …]
Dxsysace.c211 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()
1000 ace->gd = alloc_disk(ACE_NUM_MINORS); in ace_setup()
1001 if (!ace->gd) in ace_setup()
[all …]
Dmg_disk.c114 struct gendisk *gd; member
996 host->gd = alloc_disk(MG_DISK_MAX_PART); in mg_probe()
997 if (!host->gd) { in mg_probe()
1003 host->gd->major = host->major; in mg_probe()
1004 host->gd->first_minor = 0; in mg_probe()
1005 host->gd->fops = &mg_disk_ops; in mg_probe()
1006 host->gd->queue = host->breq; in mg_probe()
1007 host->gd->private_data = host; in mg_probe()
1008 sprintf(host->gd->disk_name, MG_DISK_NAME"a"); in mg_probe()
1010 set_capacity(host->gd, host->n_sectors); in mg_probe()
[all …]
/drivers/video/fbdev/omap2/displays-new/
Dpanel-sharp-ls037v7dw01.c203 struct gpio_desc *gd; in sharp_ls_get_gpio() local
212 gd = gpio_to_desc(gpio); in sharp_ls_get_gpio()
213 if (IS_ERR(gd)) in sharp_ls_get_gpio()
214 return PTR_ERR(gd) == -ENOENT ? 0 : PTR_ERR(gd); in sharp_ls_get_gpio()
216 *gpiod = gd; in sharp_ls_get_gpio()
270 struct gpio_desc *gd; in sharp_ls_get_gpio_of() local
274 gd = devm_gpiod_get_index(dev, desc, index, GPIOD_OUT_LOW); in sharp_ls_get_gpio_of()
275 if (IS_ERR(gd)) in sharp_ls_get_gpio_of()
276 return PTR_ERR(gd); in sharp_ls_get_gpio_of()
278 *gpiod = gd; in sharp_ls_get_gpio_of()
/drivers/block/paride/
Dpd.c238 struct gendisk *gd; member
726 rq = blk_get_request(disk->gd->queue, READ, __GFP_RECLAIM); in pd_special_command()
733 err = blk_execute_rq(disk->gd->queue, disk->gd, rq, 0); in pd_special_command()
843 disk->gd = p; in pd_probe_drive()
853 disk->gd = NULL; in pd_probe_drive()
888 if (!disk->gd) in pd_detect()
901 if (!disk->gd) in pd_detect()
907 if (disk->gd) { in pd_detect()
908 set_capacity(disk->gd, disk->capacity); in pd_detect()
909 add_disk(disk->gd); in pd_detect()
[all …]
/drivers/macintosh/
Dwindfarm_pm81.c166 s32 gd, gp, gr; member
198 .gd = 0x15400000,
210 .gd = 0x08e00000,
222 .gd = 0x15400000,
300 pid_param.gd = param->gd; in wf_smu_create_sys_fans()
439 pid_param.gd = piddata->gd; in wf_smu_create_cpu_fans()
Dwindfarm_pid.h30 s32 gd, gp, gr; /* PID gains */ member
63 s32 gd, gp, gr; /* PID gains */ member
Dwindfarm_pm112.c169 pid.gd = piddata->gd; in create_cpu_loop()
350 .gd = 48 << 20,
400 .gd = 30 << 20,
451 .gd = 0,
Dwindfarm_pm91.c184 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()
Dwindfarm_pid.c68 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()
Dwindfarm_rm31.c325 pid.gd = mpu->pid_gd; in cpu_setup_pid()
344 .gd = 0x00500000,
357 .gd = 0,
444 .gd = 0,
Dwindfarm_pm72.c424 pid.gd = mpu->pid_gd; in cpu_setup_pid()
443 .gd = 40 << 20,
455 .gd = 20 << 20,
535 .gd = 30 << 20,
Dwindfarm_pm121.c552 pid_param.gd = PM121_SYS_GD; in pm121_create_sys_fans()
694 pid_param.gd = piddata->gd; in pm121_create_cpu_fans()
/drivers/clk/berlin/
Dbg2q.c352 const struct berlin2_gate_data *gd = &bg2q_gates[n]; in berlin2q_clock_setup() local
354 clks[CLKID_GFX2DAXI + n] = clk_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()
Dbg2.c658 const struct berlin2_gate_data *gd = &bg2_gates[n]; in berlin2_clock_setup() local
660 clks[CLKID_GETH0 + n] = clk_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/scsi/
Dsd.c3019 struct gendisk *gd; in sd_probe_async() local
3024 gd = sdkp->disk; in sd_probe_async()
3028 gd->major = sd_major((index & 0xf0) >> 4); in sd_probe_async()
3029 gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00); in sd_probe_async()
3030 gd->minors = SD_MINORS; in sd_probe_async()
3032 gd->fops = &sd_fops; in sd_probe_async()
3033 gd->private_data = &sdkp->driver; in sd_probe_async()
3034 gd->queue = sdkp->device->request_queue; in sd_probe_async()
3048 sd_revalidate_disk(gd); in sd_probe_async()
3050 gd->driverfs_dev = &sdp->sdev_gendev; in sd_probe_async()
[all …]
/drivers/crypto/amcc/
Dcrypto4xx_core.c768 struct ce_gd *gd; in crypto4xx_build_pd() local
868 gd = crypto4xx_get_gdp(dev, &gd_dma, gd_idx); in crypto4xx_build_pd()
879 gd->ptr = addr; in crypto4xx_build_pd()
880 gd->ctl_len.len = sg->length; in crypto4xx_build_pd()
881 gd->ctl_len.done = 0; in crypto4xx_build_pd()
882 gd->ctl_len.ready = 1; in crypto4xx_build_pd()
887 gd = crypto4xx_get_gdp(dev, &gd_dma, gd_idx); in crypto4xx_build_pd()

12