Lines Matching refs:devt
78 static struct list_head *cuse_conntbl_head(dev_t devt) in cuse_conntbl_head() argument
80 return &cuse_conntbl[(MAJOR(devt) + MINOR(devt)) % CUSE_CONNTBL_LEN]; in cuse_conntbl_head()
116 dev_t devt = inode->i_cdev->dev; in cuse_open() local
122 list_for_each_entry(pos, cuse_conntbl_head(devt), list) in cuse_open()
123 if (pos->dev->devt == devt) { in cuse_open()
329 dev_t devt; in cuse_process_init_reply() local
348 devt = MKDEV(arg->dev_major, arg->dev_minor); in cuse_process_init_reply()
349 if (!MAJOR(devt)) in cuse_process_init_reply()
350 rc = alloc_chrdev_region(&devt, MINOR(devt), 1, devinfo.name); in cuse_process_init_reply()
352 rc = register_chrdev_region(devt, 1, devinfo.name); in cuse_process_init_reply()
367 dev->devt = devt; in cuse_process_init_reply()
394 rc = cdev_add(cdev, devt, 1); in cuse_process_init_reply()
402 list_add(&cc->list, cuse_conntbl_head(devt)); in cuse_process_init_reply()
419 unregister_chrdev_region(devt, 1); in cuse_process_init_reply()