Searched refs:char_device (Results 1 – 4 of 4) sorted by relevance
64 tcd->char_device = cdev_alloc(); in register_tape_dev()65 if (!tcd->char_device) { in register_tape_dev()70 tcd->char_device->owner = fops->owner; in register_tape_dev()71 tcd->char_device->ops = fops; in register_tape_dev()73 rc = cdev_add(tcd->char_device, dev, 1); in register_tape_dev()78 tcd->char_device->dev, NULL, in register_tape_dev()94 device_destroy(tape_class, tcd->char_device->dev); in register_tape_dev()97 cdev_del(tcd->char_device); in register_tape_dev()110 device_destroy(tape_class, tcd->char_device->dev); in unregister_tape_dev()111 cdev_del(tcd->char_device); in unregister_tape_dev()
856 if (urd->char_device) { in ur_set_online()865 urd->char_device = cdev_alloc(); in ur_set_online()866 if (!urd->char_device) { in ur_set_online()871 urd->char_device->ops = &ur_fops; in ur_set_online()872 urd->char_device->owner = ur_fops.owner; in ur_set_online()901 cdev_del(urd->char_device); in ur_set_online()902 urd->char_device = NULL; in ur_set_online()920 if (!urd->char_device) { in ur_set_offline_force()931 device_destroy(vmur_class, urd->char_device->dev); in ur_set_offline_force()932 cdev_del(urd->char_device); in ur_set_offline_force()[all …]
25 struct cdev *char_device; member
70 struct cdev *char_device; member
Completed in 7 milliseconds