• Home
  • Raw
  • Download

Lines Matching refs:gd

51 	struct gendisk *gd;  member
119 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor()
125 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor()
353 set_disk_ro(dev_info->gd, 1); in dcssblk_shared_store()
374 set_disk_ro(dev_info->gd, 0); in dcssblk_shared_store()
392 del_gendisk(dev_info->gd); in dcssblk_shared_store()
394 dev_info->gd->queue = NULL; in dcssblk_shared_store()
395 put_disk(dev_info->gd); in dcssblk_shared_store()
608 dev_info->gd = alloc_disk(DCSSBLK_MINORS_PER_DISK); in dcssblk_add_store()
609 if (dev_info->gd == NULL) { in dcssblk_add_store()
613 dev_info->gd->major = dcssblk_major; in dcssblk_add_store()
614 dev_info->gd->fops = &dcssblk_devops; in dcssblk_add_store()
616 dev_info->gd->queue = dev_info->dcssblk_queue; in dcssblk_add_store()
617 dev_info->gd->private_data = dev_info; in dcssblk_add_store()
623 set_capacity(dev_info->gd, seg_byte_size >> 9); // size in sectors in dcssblk_add_store()
642 sprintf(dev_info->gd->disk_name, "dcssblk%d", in dcssblk_add_store()
643 dev_info->gd->first_minor); in dcssblk_add_store()
658 device_add_disk(&dev_info->dev, dev_info->gd); in dcssblk_add_store()
664 set_disk_ro(dev_info->gd,1); in dcssblk_add_store()
667 set_disk_ro(dev_info->gd,0); in dcssblk_add_store()
677 dev_info->gd->queue = NULL; in dcssblk_add_store()
678 put_disk(dev_info->gd); in dcssblk_add_store()
689 dev_info->gd->queue = NULL; in dcssblk_add_store()
690 put_disk(dev_info->gd); in dcssblk_add_store()
755 del_gendisk(dev_info->gd); in dcssblk_remove_store()
757 dev_info->gd->queue = NULL; in dcssblk_remove_store()
758 put_disk(dev_info->gd); in dcssblk_remove_store()