Lines Matching refs:devt
609 dev_t devt; in hwicap_setup() local
637 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR + id); in hwicap_setup()
664 drvdata->devt = devt; in hwicap_setup()
686 retval = cdev_add(&drvdata->cdev, devt, 1); in hwicap_setup()
692 device_create(&icap_class, dev, devt, NULL, "%s%d", DRIVER_NAME, id); in hwicap_setup()
816 device_destroy(&icap_class, drvdata->devt); in hwicap_drv_remove()
823 probed_devices[MINOR(dev->devt)-XHWICAP_MINOR] = 0; in hwicap_drv_remove()
850 dev_t devt; in hwicap_module_init() local
858 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); in hwicap_module_init()
859 retval = register_chrdev_region(devt, in hwicap_module_init()
872 unregister_chrdev_region(devt, HWICAP_DEVICES); in hwicap_module_init()
879 dev_t devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); in hwicap_module_cleanup() local
885 unregister_chrdev_region(devt, HWICAP_DEVICES); in hwicap_module_cleanup()