/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/xtensa/platforms/iss/ |
D | simdisk.c | 31 struct gendisk *gd; member 174 set_capacity(dev->gd, dev->size >> SECTOR_SHIFT); in simdisk_attach() 176 pr_info("SIMDISK: %s=%s\n", dev->gd->disk_name, dev->filename); in simdisk_attach() 200 dev->gd->disk_name, dev->filename); in simdisk_detach() 275 dev->gd = alloc_disk(SIMDISK_MINORS); in simdisk_setup() 276 if (dev->gd == NULL) { in simdisk_setup() 280 dev->gd->major = simdisk_major; in simdisk_setup() 281 dev->gd->first_minor = which; in simdisk_setup() 282 dev->gd->fops = &simdisk_ops; in simdisk_setup() 283 dev->gd->queue = dev->queue; in simdisk_setup() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-asm9260.c | 298 const struct asm9260_gate_data *gd = &asm9260_mux_gates[n]; in asm9260_acc_init() local 300 hw = clk_hw_register_gate(NULL, gd->name, in asm9260_acc_init() 301 gd->parent_name, gd->flags | CLK_SET_RATE_PARENT, in asm9260_acc_init() 302 base + gd->reg, gd->bit_idx, 0, &asm9260_clk_lock); in asm9260_acc_init() 317 const struct asm9260_gate_data *gd = &asm9260_ahb_gates[n]; in asm9260_acc_init() local 319 hws[gd->idx] = clk_hw_register_gate(NULL, gd->name, in asm9260_acc_init() 320 gd->parent_name, gd->flags, base + gd->reg, in asm9260_acc_init() 321 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtd_blkdevs.c | 345 struct gendisk *gd; in add_mtd_blktrans_dev() local 396 gd = alloc_disk(1 << tr->part_bits); in add_mtd_blktrans_dev() 398 if (!gd) in add_mtd_blktrans_dev() 401 new->disk = gd; in add_mtd_blktrans_dev() 402 gd->private_data = new; in add_mtd_blktrans_dev() 403 gd->major = tr->major; in add_mtd_blktrans_dev() 404 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev() 405 gd->fops = &mtd_block_ops; in add_mtd_blktrans_dev() 409 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev() 412 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/block/ |
D | xen-blkfront.c | 197 struct gendisk *gd; member 522 struct gendisk *gd = info->gd; in blkif_ioctl() local 523 if (gd->flags & GENHD_FL_CD) in blkif_ioctl() 950 struct gendisk *gd = info->gd; in blkif_set_queue_limits() local 958 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in blkif_set_queue_limits() 982 static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size, in xlvbd_init_blk_queue() argument 986 struct blkfront_info *info = gd->private_data; in xlvbd_init_blk_queue() 1015 info->rq = gd->queue = rq; in xlvbd_init_blk_queue() 1016 info->gd = gd; in xlvbd_init_blk_queue() 1039 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 …]
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
D | resize.c | 41 struct ocfs2_group_desc *gd, in ocfs2_calc_new_backup_super() argument 49 u64 blkno, gd_blkno, lgd_blkno = le64_to_cpu(gd->bg_blkno); in ocfs2_calc_new_backup_super() 69 (unsigned long *)gd->bg_bitmap); in ocfs2_calc_new_backup_super() 72 (unsigned long *)gd->bg_bitmap); in ocfs2_calc_new_backup_super() 377 struct ocfs2_group_desc *gd = in ocfs2_check_new_group() local 386 if (le16_to_cpu(gd->bg_chain) != input->chain) in ocfs2_check_new_group() 389 (unsigned long long)le64_to_cpu(gd->bg_blkno), in ocfs2_check_new_group() 390 le16_to_cpu(gd->bg_chain), input->chain); in ocfs2_check_new_group() 391 else if (le16_to_cpu(gd->bg_bits) != input->clusters * cl_bpc) in ocfs2_check_new_group() 394 (unsigned long long)le64_to_cpu(gd->bg_blkno), in ocfs2_check_new_group() [all …]
|
D | suballoc.c | 163 struct ocfs2_group_desc *gd = (struct ocfs2_group_desc *)bh->b_data; in ocfs2_validate_gd_self() local 165 if (!OCFS2_IS_VALID_GROUP_DESC(gd)) { in ocfs2_validate_gd_self() 168 gd->bg_signature); in ocfs2_validate_gd_self() 171 if (le64_to_cpu(gd->bg_blkno) != bh->b_blocknr) { in ocfs2_validate_gd_self() 174 (unsigned long long)le64_to_cpu(gd->bg_blkno)); in ocfs2_validate_gd_self() 177 if (le32_to_cpu(gd->bg_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_gd_self() 180 le32_to_cpu(gd->bg_generation)); in ocfs2_validate_gd_self() 183 if (le16_to_cpu(gd->bg_free_bits_count) > le16_to_cpu(gd->bg_bits)) { in ocfs2_validate_gd_self() 186 le16_to_cpu(gd->bg_bits), in ocfs2_validate_gd_self() 187 le16_to_cpu(gd->bg_free_bits_count)); in ocfs2_validate_gd_self() [all …]
|
D | move_extents.c | 539 struct ocfs2_group_desc *gd = (struct ocfs2_group_desc *)bh->b_data; in ocfs2_probe_alloc_group() local 541 le64_to_cpu(gd->bg_blkno)); in ocfs2_probe_alloc_group() 543 for (i = base_bit; i < le16_to_cpu(gd->bg_bits); i++) { in ocfs2_probe_alloc_group() 545 used = ocfs2_test_bit(i, (unsigned long *)gd->bg_bitmap); in ocfs2_probe_alloc_group() 585 struct ocfs2_group_desc *gd; in ocfs2_move_extent() local 690 gd = (struct ocfs2_group_desc *)gd_bh->b_data; in ocfs2_move_extent() 692 le16_to_cpu(gd->bg_chain)); in ocfs2_move_extent() 698 ret = ocfs2_block_group_set_bits(handle, gb_inode, gd, gd_bh, in ocfs2_move_extent() 702 le16_to_cpu(gd->bg_chain)); in ocfs2_move_extent()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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,
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/clk/berlin/ |
D | bg2q.c | 348 const struct berlin2_gate_data *gd = &bg2q_gates[n]; in berlin2q_clock_setup() local 350 hws[CLKID_GFX2DAXI + n] = clk_hw_register_gate(NULL, gd->name, in berlin2q_clock_setup() 351 gd->parent_name, gd->flags, gbase + REG_CLKENABLE, in berlin2q_clock_setup() 352 gd->bit_idx, 0, &lock); in berlin2q_clock_setup()
|
D | bg2.c | 655 const struct berlin2_gate_data *gd = &bg2_gates[n]; in berlin2_clock_setup() local 657 hws[CLKID_GETH0 + n] = clk_hw_register_gate(NULL, gd->name, in berlin2_clock_setup() 658 gd->parent_name, gd->flags, gbase + REG_CLKENABLE, in berlin2_clock_setup() 659 gd->bit_idx, 0, &lock); in berlin2_clock_setup()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|