/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 …]
|
/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 407 dev_err(disk_to_dev(dev->gd), "blk_mq_alloc_tag_set failed"); in ubiblock_create() 413 gd = blk_mq_alloc_disk(&dev->tag_set, dev); in ubiblock_create() 414 if (IS_ERR(gd)) { in ubiblock_create() 415 ret = PTR_ERR(gd); in ubiblock_create() 419 gd->fops = &ubiblock_ops; in ubiblock_create() [all …]
|
/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 386 gd = blk_mq_alloc_disk(set, d); in aoeblk_gdalloc() 387 if (IS_ERR(gd)) { in aoeblk_gdalloc() 397 WARN_ON(d->gd); in aoeblk_gdalloc() 399 blk_queue_max_hw_sectors(gd->queue, BLK_DEF_MAX_SECTORS); in aoeblk_gdalloc() 400 blk_queue_io_opt(gd->queue, SZ_2M); in aoeblk_gdalloc() 402 d->blkq = gd->queue; in aoeblk_gdalloc() 403 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 blk_cleanup_disk(d->gd); in freedev()
|
/drivers/mtd/ |
D | mtd_blkdevs.c | 280 struct gendisk *gd; in add_mtd_blktrans_dev() local 335 gd = blk_mq_alloc_disk(new->tag_set, new); in add_mtd_blktrans_dev() 336 if (IS_ERR(gd)) { in add_mtd_blktrans_dev() 337 ret = PTR_ERR(gd); in add_mtd_blktrans_dev() 341 new->disk = gd; in add_mtd_blktrans_dev() 343 gd->private_data = new; in add_mtd_blktrans_dev() 344 gd->major = tr->major; in add_mtd_blktrans_dev() 345 gd->first_minor = (new->devnum) << tr->part_bits; in add_mtd_blktrans_dev() 346 gd->minors = 1 << tr->part_bits; in add_mtd_blktrans_dev() 347 gd->fops = &mtd_block_ops; in add_mtd_blktrans_dev() [all …]
|
/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 | 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-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()
|
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-stm32f4.c | 1808 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/net/ethernet/microsoft/mana/ |
D | gdma_main.c | 390 struct gdma_dev *gd = queue->gdma_dev; in mana_gd_register_irq() local 399 gc = gd->gdma_context; in mana_gd_register_irq() 435 struct gdma_dev *gd = queue->gdma_dev; in mana_gd_deregiser_irq() local 442 gc = gd->gdma_context; in mana_gd_deregiser_irq() 526 static int mana_gd_create_eq(struct gdma_dev *gd, in mana_gd_create_eq() argument 530 struct gdma_context *gc = gd->gdma_context; in mana_gd_create_eq() 598 int mana_gd_create_hwc_queue(struct gdma_dev *gd, in mana_gd_create_hwc_queue() argument 602 struct gdma_context *gc = gd->gdma_context; in mana_gd_create_hwc_queue() 622 queue->gdma_dev = gd; in mana_gd_create_hwc_queue() 625 err = mana_gd_create_eq(gd, spec, false, queue); in mana_gd_create_hwc_queue() [all …]
|
D | mana_en.c | 79 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_map_skb() local 86 gc = gd->gdma_context; in mana_map_skb() 97 tp->wqe_req.sgl[0].mem_key = gd->gpa_mkey; in mana_map_skb() 112 tp->wqe_req.sgl[i + 1].mem_key = gd->gpa_mkey; in mana_map_skb() 133 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_start_xmit() local 266 mana_gd_wq_ring_doorbell(gd->gdma_context, gdma_sq); in mana_start_xmit() 722 struct gdma_dev *gd = ac->gdma_dev; in mana_create_eq() local 723 struct gdma_context *gc = gd->gdma_context; in mana_create_eq() 741 err = mana_gd_create_mana_eq(gd, &spec, &ac->eqs[i].eq); in mana_create_eq() 1123 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_deinit_cq() local [all …]
|
D | gdma.h | 371 static inline bool mana_gd_is_mana(struct gdma_dev *gd) in mana_gd_is_mana() argument 373 return gd->dev_id.type == GDMA_DEVICE_MANA; in mana_gd_is_mana() 376 static inline bool mana_gd_is_hwc(struct gdma_dev *gd) in mana_gd_is_hwc() argument 378 return gd->dev_id.type == GDMA_DEVICE_HWC; in mana_gd_is_hwc() 386 int mana_gd_create_hwc_queue(struct gdma_dev *gd, 390 int mana_gd_create_mana_eq(struct gdma_dev *gd, 394 int mana_gd_create_mana_wq_cq(struct gdma_dev *gd, 661 int mana_gd_register_device(struct gdma_dev *gd); 662 int mana_gd_deregister_device(struct gdma_dev *gd);
|
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() 698 struct gdma_dev *gd = &gc->hwc; in mana_hwc_create_channel() local 707 gd->gdma_context = gc; in mana_hwc_create_channel() 708 gd->driver_data = hwc; in mana_hwc_create_channel() 709 hwc->gdma_dev = gd; in mana_hwc_create_channel() 713 gd->dev_id.as_uint32 = 0; in mana_hwc_create_channel() 714 gd->dev_id.type = GDMA_DEVICE_HWC; in mana_hwc_create_channel() 716 gd->pdid = INVALID_PDID; in mana_hwc_create_channel() [all …]
|
/drivers/s390/block/ |
D | dcssblk.c | 86 struct gendisk *gd; member 154 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor() 160 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor() 388 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store() 409 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store() 429 del_gendisk(dev_info->gd); in dcssblk_shared_store() 430 blk_cleanup_disk(dev_info->gd); in dcssblk_shared_store() 643 dev_info->gd = blk_alloc_disk(NUMA_NO_NODE); in dcssblk_add_store() 644 if (dev_info->gd == NULL) { in dcssblk_add_store() 648 dev_info->gd->major = dcssblk_major; in dcssblk_add_store() [all …]
|
/drivers/block/ |
D | xen-blkfront.c | 202 struct gendisk *gd; member 947 struct gendisk *gd = info->gd; in blkif_set_queue_limits() local 955 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in blkif_set_queue_limits() 994 info->gd->disk_name, flush_info(info), in xlvbd_flush() 1074 struct gendisk *gd; in xlvbd_alloc_gendisk() local 1082 BUG_ON(info->gd != NULL); in xlvbd_alloc_gendisk() 1140 gd = blk_mq_alloc_disk(&info->tag_set, info); in xlvbd_alloc_gendisk() 1141 if (IS_ERR(gd)) { in xlvbd_alloc_gendisk() 1142 err = PTR_ERR(gd); in xlvbd_alloc_gendisk() 1146 strcpy(gd->disk_name, DEV_NAME); in xlvbd_alloc_gendisk() [all …]
|
/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, rq, 0); in pd_special_command() 899 disk->gd = p; in pd_probe_drive() 918 disk->gd = NULL; in pd_probe_drive() 954 if (!disk->gd) in pd_detect() 967 if (!disk->gd) in pd_detect() 973 if (disk->gd) { in pd_detect() 974 set_capacity(disk->gd, disk->capacity); in pd_detect() [all …]
|
/drivers/block/rnbd/ |
D | rnbd-clt.c | 106 set_capacity_and_notify(dev->gd, dev->nsectors); in rnbd_clt_change_capacity() 132 gd_kobj = &disk_to_dev(dev->gd)->kobj; in process_msg_open_rsp() 663 gd_kobj = &disk_to_dev(dev->gd)->kobj; in set_dev_states_to_disconnected() 1389 dev->gd->major = rnbd_client_major; in rnbd_clt_setup_gen_disk() 1390 dev->gd->first_minor = idx << RNBD_PART_BITS; in rnbd_clt_setup_gen_disk() 1391 dev->gd->minors = 1 << RNBD_PART_BITS; in rnbd_clt_setup_gen_disk() 1392 dev->gd->fops = &rnbd_client_ops; in rnbd_clt_setup_gen_disk() 1393 dev->gd->queue = dev->queue; in rnbd_clt_setup_gen_disk() 1394 dev->gd->private_data = dev; in rnbd_clt_setup_gen_disk() 1395 snprintf(dev->gd->disk_name, sizeof(dev->gd->disk_name), "rnbd%d", in rnbd_clt_setup_gen_disk() [all …]
|
/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,
|
/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-sharp-ls037v7dw01.c | 194 struct gpio_desc *gd; in sharp_ls_get_gpio_of() local 198 gd = devm_gpiod_get_index(dev, desc, index, GPIOD_OUT_LOW); in sharp_ls_get_gpio_of() 199 if (IS_ERR(gd)) in sharp_ls_get_gpio_of() 200 return PTR_ERR(gd); in sharp_ls_get_gpio_of() 202 *gpiod = gd; in sharp_ls_get_gpio_of()
|
/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()
|
D | bg2.c | 658 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/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()
|