Lines Matching refs:char_device
882 if (urd->char_device) { in ur_set_online()
891 urd->char_device = cdev_alloc(); in ur_set_online()
892 if (!urd->char_device) { in ur_set_online()
897 urd->char_device->ops = &ur_fops; in ur_set_online()
898 urd->char_device->owner = ur_fops.owner; in ur_set_online()
900 rc = cdev_add(urd->char_device, MKDEV(major, minor), 1); in ur_set_online()
916 urd->char_device->dev, NULL, "%s", node_id); in ur_set_online()
927 cdev_del(urd->char_device); in ur_set_online()
928 urd->char_device = NULL; in ur_set_online()
946 if (!urd->char_device) { in ur_set_offline_force()
961 device_destroy(vmur_class, urd->char_device->dev); in ur_set_offline_force()
962 cdev_del(urd->char_device); in ur_set_offline_force()
963 urd->char_device = NULL; in ur_set_offline_force()