Home
last modified time | relevance | path

Searched refs:gd (Results 1 – 25 of 34) 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()
361 struct gendisk *gd; in ubiblock_create() local
387 gd = alloc_disk(1); in ubiblock_create()
388 if (!gd) { in ubiblock_create()
394 gd->fops = &ubiblock_ops; in ubiblock_create()
395 gd->major = ubiblock_major; in ubiblock_create()
396 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.c310 const struct asm9260_gate_data *gd = &asm9260_mux_gates[n]; in asm9260_acc_init() local
312 hw = clk_hw_register_gate(NULL, gd->name, in asm9260_acc_init()
313 gd->parent_name, gd->flags | CLK_SET_RATE_PARENT, in asm9260_acc_init()
314 base + gd->reg, gd->bit_idx, 0, &asm9260_clk_lock); in asm9260_acc_init()
329 const struct asm9260_gate_data *gd = &asm9260_ahb_gates[n]; in asm9260_acc_init() local
331 hws[gd->idx] = clk_hw_register_gate(NULL, gd->name, in asm9260_acc_init()
332 gd->parent_name, gd->flags, base + gd->reg, in asm9260_acc_init()
333 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.c51 struct gendisk *gd; member
119 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor()
125 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor()
353 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store()
374 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store()
392 del_gendisk(dev_info->gd); in dcssblk_shared_store()
394 dev_info->gd->queue = NULL; in dcssblk_shared_store()
395 put_disk(dev_info->gd); in dcssblk_shared_store()
608 dev_info->gd = alloc_disk(DCSSBLK_MINORS_PER_DISK); in dcssblk_add_store()
609 if (dev_info->gd == NULL) { in dcssblk_add_store()
[all …]
/drivers/block/
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 …]
Dxen-blkfront.c191 struct gendisk *gd; member
506 struct gendisk *gd = info->gd; in blkif_ioctl() local
507 if (gd->flags & GENHD_FL_CD) in blkif_ioctl()
917 struct gendisk *gd = info->gd; in blkif_set_queue_limits() local
925 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in blkif_set_queue_limits()
951 static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size, in xlvbd_init_blk_queue() argument
955 struct blkfront_info *info = gd->private_data; in xlvbd_init_blk_queue()
984 info->rq = gd->queue = rq; in xlvbd_init_blk_queue()
985 info->gd = gd; in xlvbd_init_blk_queue()
1008 info->gd->disk_name, flush_info(info), in xlvbd_flush()
[all …]
Dmg_disk.c114 struct gendisk *gd; member
993 host->gd = alloc_disk(MG_DISK_MAX_PART); in mg_probe()
994 if (!host->gd) { in mg_probe()
1000 host->gd->major = host->major; in mg_probe()
1001 host->gd->first_minor = 0; in mg_probe()
1002 host->gd->fops = &mg_disk_ops; in mg_probe()
1003 host->gd->queue = host->breq; in mg_probe()
1004 host->gd->private_data = host; in mg_probe()
1005 sprintf(host->gd->disk_name, MG_DISK_NAME"a"); in mg_probe()
1007 set_capacity(host->gd, host->n_sectors); in mg_probe()
[all …]
/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.c166 pid.gd = piddata->gd; in create_cpu_loop()
344 .gd = 48 << 20,
394 .gd = 30 << 20,
445 .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,
/drivers/gpu/drm/omapdrm/displays/
Dpanel-sharp-ls037v7dw01.c202 struct gpio_desc *gd; in sharp_ls_get_gpio_of() local
206 gd = devm_gpiod_get_index(dev, desc, index, GPIOD_OUT_LOW); in sharp_ls_get_gpio_of()
207 if (IS_ERR(gd)) in sharp_ls_get_gpio_of()
208 return PTR_ERR(gd); in sharp_ls_get_gpio_of()
210 *gpiod = gd; in sharp_ls_get_gpio_of()
/drivers/video/fbdev/omap2/omapfb/displays/
Dpanel-sharp-ls037v7dw01.c202 struct gpio_desc *gd; in sharp_ls_get_gpio_of() local
206 gd = devm_gpiod_get_index(dev, desc, index, GPIOD_OUT_LOW); in sharp_ls_get_gpio_of()
207 if (IS_ERR(gd)) in sharp_ls_get_gpio_of()
208 return PTR_ERR(gd); in sharp_ls_get_gpio_of()
210 *gpiod = gd; in sharp_ls_get_gpio_of()
/drivers/clk/berlin/
Dbg2q.c359 const struct berlin2_gate_data *gd = &bg2q_gates[n]; in berlin2q_clock_setup() local
361 hws[CLKID_GFX2DAXI + n] = clk_hw_register_gate(NULL, gd->name, in berlin2q_clock_setup()
362 gd->parent_name, gd->flags, gbase + REG_CLKENABLE, in berlin2q_clock_setup()
363 gd->bit_idx, 0, &lock); in berlin2q_clock_setup()
Dbg2.c666 const struct berlin2_gate_data *gd = &bg2_gates[n]; in berlin2_clock_setup() local
668 hws[CLKID_GETH0 + n] = clk_hw_register_gate(NULL, gd->name, in berlin2_clock_setup()
669 gd->parent_name, gd->flags, gbase + REG_CLKENABLE, in berlin2_clock_setup()
670 gd->bit_idx, 0, &lock); in berlin2_clock_setup()
/drivers/scsi/
Dsd.c3001 struct gendisk *gd; in sd_probe_async() local
3006 gd = sdkp->disk; in sd_probe_async()
3010 gd->major = sd_major((index & 0xf0) >> 4); in sd_probe_async()
3011 gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00); in sd_probe_async()
3012 gd->minors = SD_MINORS; in sd_probe_async()
3014 gd->fops = &sd_fops; in sd_probe_async()
3015 gd->private_data = &sdkp->driver; in sd_probe_async()
3016 gd->queue = sdkp->device->request_queue; in sd_probe_async()
3030 sd_revalidate_disk(gd); in sd_probe_async()
3032 gd->flags = GENHD_FL_EXT_DEVT; in sd_probe_async()
[all …]
/drivers/crypto/amcc/
Dcrypto4xx_core.c771 struct ce_gd *gd; in crypto4xx_build_pd() local
875 gd = crypto4xx_get_gdp(dev, &gd_dma, gd_idx); in crypto4xx_build_pd()
886 gd->ptr = addr; in crypto4xx_build_pd()
887 gd->ctl_len.len = sg->length; in crypto4xx_build_pd()
888 gd->ctl_len.done = 0; in crypto4xx_build_pd()
889 gd->ctl_len.ready = 1; in crypto4xx_build_pd()
894 gd = crypto4xx_get_gdp(dev, &gd_dma, gd_idx); in crypto4xx_build_pd()

12