Home
last modified time | relevance | path

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

12

/drivers/cdrom/
Dgdrom.c106 } 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/
Dblock.c82 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/
Dclk-asm9260.c293 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()
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-ast2600.c652 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()
Dclk-aspeed.c543 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()
Dclk-stm32f4.c1808 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/
Daoeblk.c203 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 …]
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()
279 del_gendisk(d->gd); in freedev()
280 put_disk(d->gd); in freedev()
/drivers/mtd/
Dmtd_blkdevs.c345 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/
Ddcssblk.c87 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/
Dxen-blkfront.c201 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 …]
Dxsysace.c208 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/
Dpd.c238 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/
Dwindfarm_pm81.c165 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()
Dwindfarm_pid.h29 s32 gd, gp, gr; /* PID gains */ member
62 s32 gd, gp, gr; /* PID gains */ member
Dwindfarm_pm112.c167 pid.gd = piddata->gd; in create_cpu_loop()
348 .gd = 48 << 20,
398 .gd = 30 << 20,
449 .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.c67 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/
Dpanel-sharp-ls037v7dw01.c199 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/
Dbg2q.c352 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()
Dbg2.c658 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/
Drnbd-clt.c104 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/
Dgpio-tqmx86.c44 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/
Dsd.c3390 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 …]

12