/linux/drivers/cdrom/ |
A D | gdrom.c | 106 } gd; variable 237 gd.pending = 1; in gdrom_preparedisk_cmd() 242 gd.pending = 0; in gdrom_preparedisk_cmd() 278 gd.pending = 1; in gdrom_readtoc_cmd() 291 gd.pending = 0; in gdrom_readtoc_cmd() 318 if (!gd.toc) in gdrom_get_last_session() 732 gd.disk->queue = gd.gdrom_rq; in probe_gdrom_setupqueue() 752 memset(&gd, 0, sizeof(gd)); in probe_gdrom() 781 gd.disk = blk_mq_alloc_disk(&gd.tag_set, NULL); in probe_gdrom() 786 gd.gdrom_rq = gd.disk->queue; in probe_gdrom() [all …]
|
/linux/drivers/mtd/ubi/ |
A D | block.c | 82 struct gendisk *gd; member 369 struct gendisk *gd; in ubiblock_create() local 414 if (IS_ERR(gd)) { in ubiblock_create() 415 ret = PTR_ERR(gd); in ubiblock_create() 419 gd->fops = &ubiblock_ops; in ubiblock_create() 421 gd->minors = 1; in ubiblock_create() 429 gd->private_data = dev; in ubiblock_create() 432 dev->gd = gd; in ubiblock_create() 434 dev->rq = gd->queue; in ubiblock_create() 450 ret = add_disk(dev->gd); in ubiblock_create() [all …]
|
/linux/arch/xtensa/platforms/iss/ |
A D | simdisk.c | 30 struct gendisk *gd; member 269 if (!dev->gd) in simdisk_setup() 272 dev->gd->first_minor = which; in simdisk_setup() 274 dev->gd->fops = &simdisk_ops; in simdisk_setup() 275 dev->gd->private_data = dev; in simdisk_setup() 277 set_capacity(dev->gd, 0); in simdisk_setup() 278 err = add_disk(dev->gd); in simdisk_setup() 287 blk_cleanup_disk(dev->gd); in simdisk_setup() 339 if (dev->gd) { in simdisk_teardown() 340 del_gendisk(dev->gd); in simdisk_teardown() [all …]
|
/linux/drivers/block/aoe/ |
A D | aoeblk.c | 204 p = d->gd->disk_name; in aoedisk_add_debugfs() 345 struct gendisk *gd; in aoeblk_gdalloc() local 386 if (IS_ERR(gd)) { in aoeblk_gdalloc() 396 WARN_ON(d->gd); in aoeblk_gdalloc() 401 d->blkq = gd->queue; in aoeblk_gdalloc() 402 d->gd = gd; in aoeblk_gdalloc() 405 gd->major = AOE_MAJOR; in aoeblk_gdalloc() 408 gd->fops = &aoe_bdops; in aoeblk_gdalloc() 409 gd->private_data = d; in aoeblk_gdalloc() 411 snprintf(gd->disk_name, sizeof gd->disk_name, "etherd/e%ld.%d", in aoeblk_gdalloc() [all …]
|
A 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()
|
/linux/drivers/mtd/ |
A D | mtd_blkdevs.c | 280 struct gendisk *gd; in add_mtd_blktrans_dev() local 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() 351 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev() 354 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev() 359 snprintf(gd->disk_name, sizeof(gd->disk_name), in add_mtd_blktrans_dev() 382 gd->queue = new->rq; in add_mtd_blktrans_dev() [all …]
|
/linux/drivers/clk/ |
A 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()
|
A 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()
|
A 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()
|
A 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()
|
/linux/drivers/s390/block/ |
A D | dcssblk.c | 86 struct gendisk *gd; member 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() 644 if (dev_info->gd == NULL) { in dcssblk_add_store() 676 dev_info->gd->first_minor); in dcssblk_add_store() 707 set_disk_ro(dev_info->gd,1); in dcssblk_add_store() 710 set_disk_ro(dev_info->gd,0); in dcssblk_add_store() 723 blk_cleanup_disk(dev_info->gd); in dcssblk_add_store() [all …]
|
/linux/drivers/net/ethernet/microsoft/mana/ |
A D | gdma_main.c | 396 gc = gd->gdma_context; in mana_gd_register_irq() 439 gc = gd->gdma_context; in mana_gd_deregiser_irq() 619 queue->gdma_dev = gd; in mana_gd_create_hwc_queue() 744 queue->gdma_dev = gd; in mana_gd_create_mana_eq() 791 queue->gdma_dev = gd; in mana_gd_create_mana_wq_cq() 879 gd->pdid = INVALID_PDID; in mana_gd_register_device() 886 req.hdr.dev_id = gd->dev_id; in mana_gd_register_device() 895 gd->pdid = resp.pdid; in mana_gd_register_device() 897 gd->doorbell = resp.db_id; in mana_gd_register_device() 915 req.hdr.dev_id = gd->dev_id; in mana_gd_deregister_device() [all …]
|
A D | mana_en.c | 86 gc = gd->gdma_context; in mana_map_skb() 722 struct gdma_dev *gd = ac->gdma_dev; in mana_create_eq() local 1189 gc = gd->gdma_context; in mana_create_txq() 1407 gc = gd->gdma_context; in mana_create_rxq() 1555 err = mana_cfg_vport(apc, gd->pdid, gd->doorbell); in mana_create_vport() 1853 ac->gdma_dev = gd; in mana_probe() 1854 gd->driver_data = ac; in mana_probe() 1900 mana_remove(gd, false); in mana_probe() 1948 mana_gd_deregister_device(gd); in mana_remove() 1953 gd->driver_data = NULL; in mana_remove() [all …]
|
A D | gdma.h | 368 static inline bool mana_gd_is_mana(struct gdma_dev *gd) in mana_gd_is_mana() argument 370 return gd->dev_id.type == GDMA_DEVICE_MANA; in mana_gd_is_mana() 373 static inline bool mana_gd_is_hwc(struct gdma_dev *gd) in mana_gd_is_hwc() argument 375 return gd->dev_id.type == GDMA_DEVICE_HWC; in mana_gd_is_hwc() 383 int mana_gd_create_hwc_queue(struct gdma_dev *gd, 387 int mana_gd_create_mana_eq(struct gdma_dev *gd, 391 int mana_gd_create_mana_wq_cq(struct gdma_dev *gd, 651 int mana_gd_register_device(struct gdma_dev *gd); 652 int mana_gd_deregister_device(struct gdma_dev *gd);
|
A 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() 678 struct gdma_dev *gd = &gc->hwc; in mana_hwc_create_channel() local 687 gd->gdma_context = gc; in mana_hwc_create_channel() 688 gd->driver_data = hwc; in mana_hwc_create_channel() 689 hwc->gdma_dev = gd; in mana_hwc_create_channel() 693 gd->dev_id.as_uint32 = 0; in mana_hwc_create_channel() 694 gd->dev_id.type = GDMA_DEVICE_HWC; in mana_hwc_create_channel() 696 gd->pdid = INVALID_PDID; in mana_hwc_create_channel() [all …]
|
/linux/fs/ocfs2/ |
A D | resize.c | 39 struct ocfs2_group_desc *gd, in ocfs2_calc_new_backup_super() argument 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() 392 (unsigned long long)le64_to_cpu(gd->bg_blkno), in ocfs2_check_new_group() 393 le16_to_cpu(gd->bg_bits), input->clusters); in ocfs2_check_new_group() 397 (unsigned long long)le64_to_cpu(gd->bg_blkno), in ocfs2_check_new_group() [all …]
|
A D | suballoc.c | 166 gd->bg_signature); 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() 188 if (le16_to_cpu(gd->bg_bits) > (8 * le16_to_cpu(gd->bg_size))) { in ocfs2_validate_gd_self() 191 le16_to_cpu(gd->bg_bits), in ocfs2_validate_gd_self() 217 le16_to_cpu(gd->bg_bits)); in ocfs2_validate_gd_parent() 221 if ((le16_to_cpu(gd->bg_chain) > in ocfs2_validate_gd_parent() 227 le16_to_cpu(gd->bg_chain)); in ocfs2_validate_gd_parent() 1492 if (gd->bg_free_bits_count) { in ocfs2_cluster_group_search() 1508 le16_to_cpu(gd->bg_bits), in ocfs2_cluster_group_search() [all …]
|
A D | move_extents.c | 537 struct ocfs2_group_desc *gd = (struct ocfs2_group_desc *)bh->b_data; in ocfs2_probe_alloc_group() local 539 le64_to_cpu(gd->bg_blkno)); in ocfs2_probe_alloc_group() 541 for (i = base_bit; i < le16_to_cpu(gd->bg_bits); i++) { in ocfs2_probe_alloc_group() 543 used = ocfs2_test_bit(i, (unsigned long *)gd->bg_bitmap); in ocfs2_probe_alloc_group() 583 struct ocfs2_group_desc *gd; in ocfs2_move_extent() local 688 gd = (struct ocfs2_group_desc *)gd_bh->b_data; in ocfs2_move_extent() 690 le16_to_cpu(gd->bg_chain)); in ocfs2_move_extent() 696 ret = ocfs2_block_group_set_bits(handle, gb_inode, gd, gd_bh, in ocfs2_move_extent() 700 le16_to_cpu(gd->bg_chain)); in ocfs2_move_extent()
|
/linux/drivers/block/ |
A D | xen-blkfront.c | 198 struct gendisk *gd; member 938 struct gendisk *gd = info->gd; in blkif_set_queue_limits() local 1064 struct gendisk *gd; in xlvbd_alloc_gendisk() local 1131 if (IS_ERR(gd)) { in xlvbd_alloc_gendisk() 1132 err = PTR_ERR(gd); in xlvbd_alloc_gendisk() 1147 gd->minors = nr_minors; in xlvbd_alloc_gendisk() 1152 info->rq = gd->queue; in xlvbd_alloc_gendisk() 1153 info->gd = gd; in xlvbd_alloc_gendisk() 1161 set_disk_ro(gd, 1); in xlvbd_alloc_gendisk() 2475 del_gendisk(info->gd); in blkfront_remove() [all …]
|
/linux/drivers/block/rnbd/ |
A D | rnbd-clt.c | 1396 dev->gd->private_data = dev; in rnbd_clt_setup_gen_disk() 1397 snprintf(dev->gd->disk_name, sizeof(dev->gd->disk_name), "rnbd%d", in rnbd_clt_setup_gen_disk() 1400 dev->gd->disk_name, in rnbd_clt_setup_gen_disk() 1408 set_disk_ro(dev->gd, true); in rnbd_clt_setup_gen_disk() 1415 err = add_disk(dev->gd); in rnbd_clt_setup_gen_disk() 1417 blk_cleanup_disk(dev->gd); in rnbd_clt_setup_gen_disk() 1429 if (IS_ERR(dev->gd)) in rnbd_client_setup_device() 1430 return PTR_ERR(dev->gd); in rnbd_client_setup_device() 1431 dev->queue = dev->gd->queue; in rnbd_client_setup_device() 1640 del_gendisk(dev->gd); in destroy_gen_disk() [all …]
|
/linux/drivers/macintosh/ |
A 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()
|
A D | windfarm_pid.h | 29 s32 gd, gp, gr; /* PID gains */ member 62 s32 gd, gp, gr; /* PID gains */ member
|
/linux/drivers/block/paride/ |
A D | pd.c | 238 struct gendisk *gd; member 404 disk = pd[pd_queue].gd; in set_next_request() 778 rq = blk_mq_alloc_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() 917 disk->gd = p; in pd_probe_drive() 940 set_capacity(disk->gd, disk->capacity); in pd_probe_drive() 941 ret = add_disk(disk->gd); in pd_probe_drive() 946 blk_cleanup_disk(disk->gd); in pd_probe_drive() 949 disk->gd = NULL; in pd_probe_drive() 1017 struct gendisk *p = disk->gd; in pd_exit() [all …]
|
/linux/drivers/video/fbdev/omap2/omapfb/displays/ |
A 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()
|
/linux/drivers/clk/berlin/ |
A 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()
|