Lines Matching refs:devt
603 dev_t devt; in hwicap_setup() local
631 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR + id); in hwicap_setup()
659 drvdata->devt = devt; in hwicap_setup()
681 retval = cdev_add(&drvdata->cdev, devt, 1); in hwicap_setup()
687 device_create(icap_class, dev, devt, NULL, "%s%d", DRIVER_NAME, id); in hwicap_setup()
730 device_destroy(icap_class, drvdata->devt); in hwicap_remove()
737 probed_devices[MINOR(dev->devt)-XHWICAP_MINOR] = 0; in hwicap_remove()
853 dev_t devt; in hwicap_module_init() local
859 devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); in hwicap_module_init()
860 retval = register_chrdev_region(devt, in hwicap_module_init()
873 unregister_chrdev_region(devt, HWICAP_DEVICES); in hwicap_module_init()
880 dev_t devt = MKDEV(XHWICAP_MAJOR, XHWICAP_MINOR); in hwicap_module_cleanup() local
886 unregister_chrdev_region(devt, HWICAP_DEVICES); in hwicap_module_cleanup()