• Home
  • Raw
  • Download

Lines Matching refs:disk

90 static void ubd_release(struct gendisk *disk, fmode_t mode);
808 struct gendisk *disk; in ubd_disk_register() local
810 disk = alloc_disk(1 << UBD_SHIFT); in ubd_disk_register()
811 if(disk == NULL) in ubd_disk_register()
814 disk->major = major; in ubd_disk_register()
815 disk->first_minor = unit << UBD_SHIFT; in ubd_disk_register()
816 disk->fops = &ubd_blops; in ubd_disk_register()
817 set_capacity(disk, size / 512); in ubd_disk_register()
819 sprintf(disk->disk_name, "ubd%c", 'a' + unit); in ubd_disk_register()
821 sprintf(disk->disk_name, "ubd_fake%d", unit); in ubd_disk_register()
830 disk->driverfs_dev = &ubd_devs[unit].pdev.dev; in ubd_disk_register()
833 disk->private_data = &ubd_devs[unit]; in ubd_disk_register()
834 disk->queue = ubd_devs[unit].queue; in ubd_disk_register()
835 add_disk(disk); in ubd_disk_register()
837 *disk_out = disk; in ubd_disk_register()
978 struct gendisk *disk = ubd_gendisk[n]; in ubd_remove() local
995 if(disk != NULL){ in ubd_remove()
996 del_gendisk(disk); in ubd_remove()
997 put_disk(disk); in ubd_remove()
1114 struct gendisk *disk = bdev->bd_disk; in ubd_open() local
1115 struct ubd *ubd_dev = disk->private_data; in ubd_open()
1123 disk->disk_name, ubd_dev->file, -err); in ubd_open()
1128 set_disk_ro(disk, !ubd_dev->openflags.w); in ubd_open()
1141 static void ubd_release(struct gendisk *disk, fmode_t mode) in ubd_release() argument
1143 struct ubd *ubd_dev = disk->private_data; in ubd_release()
1216 struct gendisk *disk = req->rq_disk; in prepare_request() local
1217 struct ubd *ubd_dev = disk->private_data; in prepare_request()