/linux-6.6.21/drivers/cdrom/ |
D | gdrom.c | 105 } gd; variable 213 gdrom_hardreset(gd.cd_info); in gdrom_execute_diagnostic() 236 gd.pending = 1; in gdrom_preparedisk_cmd() 237 gdrom_packetcommand(gd.cd_info, spin_command); in gdrom_preparedisk_cmd() 239 wait_event_interruptible_timeout(command_queue, gd.pending == 0, in gdrom_preparedisk_cmd() 241 gd.pending = 0; in gdrom_preparedisk_cmd() 243 if (gd.status & 0x01) { in gdrom_preparedisk_cmd() 273 if (gd.pending) { in gdrom_readtoc_cmd() 277 gd.pending = 1; in gdrom_readtoc_cmd() 278 gdrom_packetcommand(gd.cd_info, toc_command); in gdrom_readtoc_cmd() [all …]
|
/linux-6.6.21/drivers/base/power/ |
D | domain_governor.c | 149 struct genpd_governor_data *cgd = link->child->gd; in update_domain_next_wakeup() 157 genpd->gd->next_wakeup = domain_wakeup; in update_domain_next_wakeup() 163 ktime_t domain_wakeup = genpd->gd->next_wakeup; in next_wakeup_allows_state() 193 struct genpd_governor_data *cgd = link->child->gd; in __default_power_down_ok() 253 genpd->gd->max_off_time_ns = min_off_time_ns - in __default_power_down_ok() 268 struct genpd_governor_data *gd = genpd->gd; in _default_power_down_ok() local 279 if ((genpd->flags & GENPD_FLAG_MIN_RESIDENCY) && (gd->next_wakeup != KTIME_MAX)) { in _default_power_down_ok() 283 gd->max_off_time_changed = true; in _default_power_down_ok() 291 gd->cached_power_down_ok = false; in _default_power_down_ok() 296 if (!gd->max_off_time_changed) { in _default_power_down_ok() [all …]
|
D | domain.c | 512 if (genpd->gd) in dev_pm_genpd_get_next_hrtimer() 513 return genpd->gd->next_hrtimer; in dev_pm_genpd_get_next_hrtimer() 562 timed = timed && genpd->gd && !genpd->states[state_idx].fwnode; in _genpd_power_on() 581 genpd->gd->max_off_time_changed = true; in _genpd_power_on() 613 timed = timed && genpd->gd && !genpd->states[state_idx].fwnode; in _genpd_power_off() 632 genpd->gd->max_off_time_changed = true; in _genpd_power_off() 848 genpd->gd->max_off_time_changed = true; in genpd_dev_pm_qos_notifier() 977 genpd->gd->max_off_time_changed = true; in genpd_runtime_suspend() 1056 genpd->gd->max_off_time_changed = true; in genpd_runtime_resume() 1629 struct genpd_governor_data *gd = genpd->gd; in genpd_add_device() local [all …]
|
/linux-6.6.21/drivers/mtd/ubi/ |
D | block.c | 80 struct gendisk *gd; member 255 dev_err(disk_to_dev(dev->gd), "failed to open ubi volume %d_%d", in ubiblock_open() 272 static void ubiblock_release(struct gendisk *gd) in ubiblock_release() argument 274 struct ubiblock *dev = gd->private_data; in ubiblock_release() 352 struct gendisk *gd; in ubiblock_create() local 390 dev_err(disk_to_dev(dev->gd), "blk_mq_alloc_tag_set failed"); in ubiblock_create() 396 gd = blk_mq_alloc_disk(&dev->tag_set, dev); in ubiblock_create() 397 if (IS_ERR(gd)) { in ubiblock_create() 398 ret = PTR_ERR(gd); in ubiblock_create() 402 gd->fops = &ubiblock_ops; in ubiblock_create() [all …]
|
/linux-6.6.21/arch/xtensa/platforms/iss/ |
D | simdisk.c | 30 struct gendisk *gd; member 172 set_capacity(dev->gd, dev->size >> SECTOR_SHIFT); in simdisk_attach() 174 pr_info("SIMDISK: %s=%s\n", dev->gd->disk_name, dev->filename); in simdisk_attach() 198 dev->gd->disk_name, dev->filename); in simdisk_detach() 274 dev->gd = blk_alloc_disk(NUMA_NO_NODE); in simdisk_setup() 275 if (!dev->gd) in simdisk_setup() 277 dev->gd->major = simdisk_major; in simdisk_setup() 278 dev->gd->first_minor = which; in simdisk_setup() 279 dev->gd->minors = SIMDISK_MINORS; in simdisk_setup() 280 dev->gd->fops = &simdisk_ops; in simdisk_setup() [all …]
|
/linux-6.6.21/drivers/block/aoe/ |
D | aoeblk.c | 190 p = strchr(d->gd->disk_name, '/'); in aoedisk_add_debugfs() 192 p = d->gd->disk_name; in aoedisk_add_debugfs() 333 struct gendisk *gd; in aoeblk_gdalloc() local 374 gd = blk_mq_alloc_disk(set, d); in aoeblk_gdalloc() 375 if (IS_ERR(gd)) { in aoeblk_gdalloc() 385 WARN_ON(d->gd); in aoeblk_gdalloc() 387 blk_queue_max_hw_sectors(gd->queue, BLK_DEF_MAX_SECTORS); in aoeblk_gdalloc() 388 blk_queue_io_opt(gd->queue, SZ_2M); in aoeblk_gdalloc() 390 d->blkq = gd->queue; in aoeblk_gdalloc() 391 d->gd = gd; 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()
|
/linux-6.6.21/drivers/mtd/ |
D | mtd_blkdevs.c | 281 struct gendisk *gd; in add_mtd_blktrans_dev() local 336 gd = blk_mq_alloc_disk(new->tag_set, new); in add_mtd_blktrans_dev() 337 if (IS_ERR(gd)) { in add_mtd_blktrans_dev() 338 ret = PTR_ERR(gd); in add_mtd_blktrans_dev() 342 new->disk = gd; in add_mtd_blktrans_dev() 344 gd->private_data = new; in add_mtd_blktrans_dev() 345 gd->major = tr->major; in add_mtd_blktrans_dev() 346 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev() 347 gd->minors = 1 << tr->part_bits; in add_mtd_blktrans_dev() 348 gd->fops = &mtd_block_ops; in add_mtd_blktrans_dev() [all …]
|
/linux-6.6.21/drivers/clk/ |
D | clk-asm9260.c | 293 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()
|
D | clk-gemini.c | 338 const struct gemini_gate_data *gd; in gemini_clk_probe() local 340 gd = &gemini_gates[i]; in gemini_clk_probe() 342 clk_hw_register_gate(NULL, gd->name, in gemini_clk_probe() 343 gd->parent_name, in gemini_clk_probe() 344 gd->flags, in gemini_clk_probe() 346 gd->bit_idx, in gemini_clk_probe()
|
D | clk-ast2600.c | 690 const struct aspeed_gate_data *gd = &aspeed_g6_gates[i]; in aspeed_g6_clk_probe() local 693 if (!gd->name) in aspeed_g6_clk_probe() 700 gate_flags = (gd->clock_idx == 14) ? 0 : CLK_GATE_SET_TO_DISABLE; in aspeed_g6_clk_probe() 702 gd->name, in aspeed_g6_clk_probe() 703 gd->parent_name, in aspeed_g6_clk_probe() 704 gd->flags, in aspeed_g6_clk_probe() 706 gd->clock_idx, in aspeed_g6_clk_probe() 707 gd->reset_idx, in aspeed_g6_clk_probe()
|
/linux-6.6.21/drivers/s390/block/ |
D | dcssblk.c | 74 struct gendisk *gd; member 142 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor() 148 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor() 376 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store() 397 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store() 416 dax_remove_host(dev_info->gd); in dcssblk_shared_store() 419 del_gendisk(dev_info->gd); in dcssblk_shared_store() 420 put_disk(dev_info->gd); in dcssblk_shared_store() 632 dev_info->gd = blk_alloc_disk(NUMA_NO_NODE); in dcssblk_add_store() 633 if (dev_info->gd == NULL) { in dcssblk_add_store() [all …]
|
/linux-6.6.21/drivers/net/ethernet/microsoft/mana/ |
D | gdma_main.c | 445 struct gdma_dev *gd = queue->gdma_dev; in mana_gd_register_irq() local 454 gc = gd->gdma_context; in mana_gd_register_irq() 490 struct gdma_dev *gd = queue->gdma_dev; in mana_gd_deregiser_irq() local 497 gc = gd->gdma_context; in mana_gd_deregiser_irq() 581 static int mana_gd_create_eq(struct gdma_dev *gd, in mana_gd_create_eq() argument 585 struct gdma_context *gc = gd->gdma_context; in mana_gd_create_eq() 653 int mana_gd_create_hwc_queue(struct gdma_dev *gd, in mana_gd_create_hwc_queue() argument 657 struct gdma_context *gc = gd->gdma_context; in mana_gd_create_hwc_queue() 677 queue->gdma_dev = gd; in mana_gd_create_hwc_queue() 680 err = mana_gd_create_eq(gd, spec, false, queue); in mana_gd_create_hwc_queue() [all …]
|
D | mana_en.c | 110 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_map_skb() local 120 gc = gd->gdma_context; in mana_map_skb() 134 mana_add_sge(tp, ash, 0, da, sge0_len, gd->gpa_mkey); in mana_map_skb() 143 mana_add_sge(tp, ash, sg_i, da, sge1_len, gd->gpa_mkey); in mana_map_skb() 157 gd->gpa_mkey); in mana_map_skb() 226 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_start_xmit() local 404 mana_gd_wq_ring_doorbell(gd->gdma_context, gdma_sq); in mana_start_xmit() 1228 struct gdma_dev *gd = ac->gdma_dev; in mana_create_eq() local 1229 struct gdma_context *gc = gd->gdma_context; in mana_create_eq() 1247 err = mana_gd_create_mana_eq(gd, &spec, &ac->eqs[i].eq); in mana_create_eq() [all …]
|
D | hw_channel.c | 107 struct gdma_dev *gd = hwc->gdma_dev; in mana_hwc_init_event_handler() local 116 gd->doorbell = eq_db.doorbell; in mana_hwc_init_event_handler() 150 gd->gdma_context->max_num_cqs = val; in mana_hwc_init_event_handler() 704 struct gdma_dev *gd = &gc->hwc; in mana_hwc_create_channel() local 713 gd->gdma_context = gc; in mana_hwc_create_channel() 714 gd->driver_data = hwc; in mana_hwc_create_channel() 715 hwc->gdma_dev = gd; in mana_hwc_create_channel() 720 gd->dev_id.as_uint32 = 0; in mana_hwc_create_channel() 721 gd->dev_id.type = GDMA_DEVICE_HWC; in mana_hwc_create_channel() 723 gd->pdid = INVALID_PDID; in mana_hwc_create_channel() [all …]
|
/linux-6.6.21/fs/ocfs2/ |
D | resize.c | 39 struct ocfs2_group_desc *gd, in ocfs2_calc_new_backup_super() argument 47 u64 blkno, gd_blkno, lgd_blkno = le64_to_cpu(gd->bg_blkno); in ocfs2_calc_new_backup_super() 67 (unsigned long *)gd->bg_bitmap); in ocfs2_calc_new_backup_super() 70 (unsigned long *)gd->bg_bitmap); in ocfs2_calc_new_backup_super() 375 struct ocfs2_group_desc *gd = in ocfs2_check_new_group() local 384 if (le16_to_cpu(gd->bg_chain) != input->chain) in ocfs2_check_new_group() 387 (unsigned long long)le64_to_cpu(gd->bg_blkno), in ocfs2_check_new_group() 388 le16_to_cpu(gd->bg_chain), input->chain); in ocfs2_check_new_group() 389 else if (le16_to_cpu(gd->bg_bits) != input->clusters * cl_bpc) in ocfs2_check_new_group() 392 (unsigned long long)le64_to_cpu(gd->bg_blkno), in ocfs2_check_new_group() [all …]
|
D | suballoc.c | 161 struct ocfs2_group_desc *gd = (struct ocfs2_group_desc *)bh->b_data; in ocfs2_validate_gd_self() local 163 if (!OCFS2_IS_VALID_GROUP_DESC(gd)) { in ocfs2_validate_gd_self() 166 gd->bg_signature); in ocfs2_validate_gd_self() 169 if (le64_to_cpu(gd->bg_blkno) != bh->b_blocknr) { in ocfs2_validate_gd_self() 172 (unsigned long long)le64_to_cpu(gd->bg_blkno)); in ocfs2_validate_gd_self() 175 if (le32_to_cpu(gd->bg_generation) != OCFS2_SB(sb)->fs_generation) { in ocfs2_validate_gd_self() 178 le32_to_cpu(gd->bg_generation)); in ocfs2_validate_gd_self() 181 if (le16_to_cpu(gd->bg_free_bits_count) > le16_to_cpu(gd->bg_bits)) { in ocfs2_validate_gd_self() 184 le16_to_cpu(gd->bg_bits), in ocfs2_validate_gd_self() 185 le16_to_cpu(gd->bg_free_bits_count)); in ocfs2_validate_gd_self() [all …]
|
/linux-6.6.21/drivers/block/ |
D | xen-blkfront.c | 202 struct gendisk *gd; member 947 struct gendisk *gd = info->gd; in blkif_set_queue_limits() local 954 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in blkif_set_queue_limits() 960 get_capacity(gd)); in blkif_set_queue_limits() 994 info->gd->disk_name, flush_info(info), in xlvbd_flush() 1073 struct gendisk *gd; in xlvbd_alloc_gendisk() local 1081 BUG_ON(info->gd != NULL); in xlvbd_alloc_gendisk() 1139 gd = blk_mq_alloc_disk(&info->tag_set, info); in xlvbd_alloc_gendisk() 1140 if (IS_ERR(gd)) { in xlvbd_alloc_gendisk() 1141 err = PTR_ERR(gd); in xlvbd_alloc_gendisk() [all …]
|
/linux-6.6.21/drivers/block/rnbd/ |
D | rnbd-clt.c | 74 if (get_capacity(dev->gd) == new_nsectors) in rnbd_clt_change_capacity() 81 get_capacity(dev->gd), new_nsectors); in rnbd_clt_change_capacity() 82 set_capacity_and_notify(dev->gd, new_nsectors); in rnbd_clt_change_capacity() 102 gd_kobj = &disk_to_dev(dev->gd)->kobj; in process_msg_open_rsp() 642 gd_kobj = &disk_to_dev(dev->gd)->kobj; in set_dev_states_to_disconnected() 928 if (get_disk_ro(dev->gd) && (mode & BLK_OPEN_WRITE)) in rnbd_client_open() 1372 dev->gd->major = rnbd_client_major; in rnbd_clt_setup_gen_disk() 1373 dev->gd->first_minor = idx << RNBD_PART_BITS; in rnbd_clt_setup_gen_disk() 1374 dev->gd->minors = 1 << RNBD_PART_BITS; in rnbd_clt_setup_gen_disk() 1375 dev->gd->fops = &rnbd_client_ops; in rnbd_clt_setup_gen_disk() [all …]
|
/linux-6.6.21/include/net/mana/ |
D | gdma.h | 394 static inline bool mana_gd_is_mana(struct gdma_dev *gd) in mana_gd_is_mana() argument 396 return gd->dev_id.type == GDMA_DEVICE_MANA; in mana_gd_is_mana() 399 static inline bool mana_gd_is_hwc(struct gdma_dev *gd) in mana_gd_is_hwc() argument 401 return gd->dev_id.type == GDMA_DEVICE_HWC; in mana_gd_is_hwc() 409 int mana_gd_create_hwc_queue(struct gdma_dev *gd, 413 int mana_gd_create_mana_eq(struct gdma_dev *gd, 417 int mana_gd_create_mana_wq_cq(struct gdma_dev *gd, 836 int mana_gd_register_device(struct gdma_dev *gd); 837 int mana_gd_deregister_device(struct gdma_dev *gd);
|
/linux-6.6.21/drivers/macintosh/ |
D | windfarm_pm81.c | 166 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()
|
D | windfarm_pid.h | 32 s32 gd, gp, gr; /* PID gains */ member 65 s32 gd, gp, gr; /* PID gains */ member
|
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-sharp-ls037v7dw01.c | 193 struct gpio_desc *gd; in sharp_ls_get_gpio_of() local 197 gd = devm_gpiod_get_index(dev, desc, index, GPIOD_OUT_LOW); in sharp_ls_get_gpio_of() 198 if (IS_ERR(gd)) in sharp_ls_get_gpio_of() 199 return PTR_ERR(gd); in sharp_ls_get_gpio_of() 201 *gpiod = gd; in sharp_ls_get_gpio_of()
|
/linux-6.6.21/drivers/infiniband/hw/mana/ |
D | qp.c | 105 struct gdma_dev *gd = mdev->gdma_dev; in mana_ib_create_qp_rss() local 119 mc = gd->driver_data; in mana_ib_create_qp_rss() 270 struct gdma_dev *gd = mdev->gdma_dev; in mana_ib_create_qp_raw() local 281 mc = gd->driver_data; in mana_ib_create_qp_raw() 440 struct gdma_dev *gd = mdev->gdma_dev; in mana_ib_destroy_qp_rss() local 448 mc = gd->driver_data; in mana_ib_destroy_qp_rss() 467 struct gdma_dev *gd = mdev->gdma_dev; in mana_ib_destroy_qp_raw() local 474 mc = gd->driver_data; in mana_ib_destroy_qp_raw()
|
/linux-6.6.21/drivers/clk/berlin/ |
D | bg2q.c | 352 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()
|