Lines Matching refs:hmcdrv_dev
77 static struct hmcdrv_dev_node hmcdrv_dev; /* HMC device struct (static) */ variable
104 *mode = hmcdrv_dev.mode; in hmcdrv_dev_name()
300 cdev_init(&hmcdrv_dev.dev, &hmcdrv_dev_fops); in hmcdrv_dev_init()
301 hmcdrv_dev.dev.owner = THIS_MODULE; in hmcdrv_dev_init()
302 rc = cdev_add(&hmcdrv_dev.dev, hmcdrv_dev_no, 1); in hmcdrv_dev_init()
322 hmcdrv_dev.mode = 0; /* "unset" */ in hmcdrv_dev_init()
335 cdev_del(&hmcdrv_dev.dev); in hmcdrv_dev_init()
343 hmcdrv_dev.dev.minor = MISC_DYNAMIC_MINOR; in hmcdrv_dev_init()
344 hmcdrv_dev.dev.name = HMCDRV_DEV_NAME; in hmcdrv_dev_init()
345 hmcdrv_dev.dev.fops = &hmcdrv_dev_fops; in hmcdrv_dev_init()
346 hmcdrv_dev.dev.mode = 0; /* finally produces 0600 */ in hmcdrv_dev_init()
347 rc = misc_register(&hmcdrv_dev.dev); in hmcdrv_dev_init()
364 cdev_del(&hmcdrv_dev.dev); in hmcdrv_dev_exit()
367 misc_deregister(&hmcdrv_dev.dev); in hmcdrv_dev_exit()