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()
359 struct gendisk *gd; in ubiblock_create() local
385 gd = alloc_disk(1); in ubiblock_create()
386 if (!gd) { in ubiblock_create()
392 gd->fops = &ubiblock_ops; in ubiblock_create()
393 gd->major = ubiblock_major; in ubiblock_create()
394 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()
397 WARN_ON(d->gd); in aoeblk_gdalloc()
403 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-gemini.c340 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()
Dclk-stm32f4.c1527 const struct stm32f4_gate_data *gd; in stm32f4_rcc_init() local
1531 gd = &data->gates_data[n]; in stm32f4_rcc_init()
1532 secondary = 8 * (gd->offset - STM32F4_RCC_AHB1ENR) + in stm32f4_rcc_init()
1533 gd->bit_idx; in stm32f4_rcc_init()
1540 NULL, gd->name, gd->parent_name, gd->flags, in stm32f4_rcc_init()
1541 base + gd->offset, gd->bit_idx, 0, &stm32f4_clk_lock); in stm32f4_rcc_init()
1545 np, gd->name); in stm32f4_rcc_init()
/drivers/mtd/
Dmtd_blkdevs.c328 struct gendisk *gd; in add_mtd_blktrans_dev() local
382 gd = alloc_disk(1 << tr->part_bits); in add_mtd_blktrans_dev()
384 if (!gd) in add_mtd_blktrans_dev()
387 new->disk = gd; in add_mtd_blktrans_dev()
388 gd->private_data = new; in add_mtd_blktrans_dev()
389 gd->major = tr->major; in add_mtd_blktrans_dev()
390 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev()
391 gd->fops = &mtd_block_ops; in add_mtd_blktrans_dev()
395 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
398 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev()
[all …]
/drivers/s390/block/
Ddcssblk.c63 struct gendisk *gd; member
132 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor()
138 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor()
366 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store()
387 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store()
407 del_gendisk(dev_info->gd); in dcssblk_shared_store()
409 dev_info->gd->queue = NULL; in dcssblk_shared_store()
410 put_disk(dev_info->gd); in dcssblk_shared_store()
623 dev_info->gd = alloc_disk(DCSSBLK_MINORS_PER_DISK); in dcssblk_add_store()
624 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()
1001 ace->gd = alloc_disk(ACE_NUM_MINORS); in ace_setup()
1002 if (!ace->gd) in ace_setup()
[all …]
Dxen-blkfront.c195 struct gendisk *gd; member
511 struct gendisk *gd = info->gd; in blkif_ioctl() local
512 if (gd->flags & GENHD_FL_CD) in blkif_ioctl()
931 struct gendisk *gd = info->gd; in blkif_set_queue_limits() local
939 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in blkif_set_queue_limits()
962 static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size, in xlvbd_init_blk_queue() argument
966 struct blkfront_info *info = gd->private_data; in xlvbd_init_blk_queue()
995 info->rq = gd->queue = rq; in xlvbd_init_blk_queue()
996 info->gd = gd; in xlvbd_init_blk_queue()
1019 info->gd->disk_name, flush_info(info), in xlvbd_flush()
[all …]
/drivers/block/paride/
Dpd.c238 struct gendisk *gd; member
397 disk = pd[pd_queue].gd; in set_next_request()
743 rq = blk_get_request(disk->gd->queue, REQ_OP_DRV_IN, __GFP_RECLAIM); in pd_special_command()
748 blk_execute_rq(disk->gd->queue, disk->gd, rq, 0); in pd_special_command()
857 disk->gd = p; in pd_probe_drive()
861 disk->gd = NULL; in pd_probe_drive()
874 disk->gd = NULL; in pd_probe_drive()
909 if (!disk->gd) in pd_detect()
922 if (!disk->gd) in pd_detect()
928 if (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.c198 struct gpio_desc *gd; in sharp_ls_get_gpio_of() local
202 gd = devm_gpiod_get_index(dev, desc, index, GPIOD_OUT_LOW); in sharp_ls_get_gpio_of()
203 if (IS_ERR(gd)) in sharp_ls_get_gpio_of()
204 return PTR_ERR(gd); in sharp_ls_get_gpio_of()
206 *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.c3316 struct gendisk *gd; in sd_probe_async() local
3321 gd = sdkp->disk; in sd_probe_async()
3325 gd->major = sd_major((index & 0xf0) >> 4); in sd_probe_async()
3326 gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00); in sd_probe_async()
3328 gd->fops = &sd_fops; in sd_probe_async()
3329 gd->private_data = &sdkp->driver; in sd_probe_async()
3330 gd->queue = sdkp->device->request_queue; in sd_probe_async()
3344 sd_revalidate_disk(gd); in sd_probe_async()
3346 gd->flags = GENHD_FL_EXT_DEVT; in sd_probe_async()
3348 gd->flags |= GENHD_FL_REMOVABLE; in sd_probe_async()
[all …]
/drivers/crypto/amcc/
Dcrypto4xx_core.c777 struct ce_gd *gd; in crypto4xx_build_pd() local
881 gd = crypto4xx_get_gdp(dev, &gd_dma, gd_idx); in crypto4xx_build_pd()
892 gd->ptr = addr; in crypto4xx_build_pd()
893 gd->ctl_len.len = sg->length; in crypto4xx_build_pd()
894 gd->ctl_len.done = 0; in crypto4xx_build_pd()
895 gd->ctl_len.ready = 1; in crypto4xx_build_pd()
900 gd = crypto4xx_get_gdp(dev, &gd_dma, gd_idx); in crypto4xx_build_pd()

12