Lines Matching defs:devt
78 static struct list_head *cuse_conntbl_head(dev_t devt)
80 return &cuse_conntbl[(MAJOR(devt) + MINOR(devt)) % CUSE_CONNTBL_LEN];
116 dev_t devt = inode->i_cdev->dev;
122 list_for_each_entry(pos, cuse_conntbl_head(devt), list)
123 if (pos->dev->devt == devt) {
333 dev_t devt;
351 /* determine and reserve devt */
352 devt = MKDEV(arg->dev_major, arg->dev_minor);
353 if (!MAJOR(devt))
354 rc = alloc_chrdev_region(&devt, MINOR(devt), 1, devinfo.name);
356 rc = register_chrdev_region(devt, 1, devinfo.name);
362 /* devt determined, create device */
371 dev->devt = devt;
398 rc = cdev_add(cdev, devt, 1);
406 list_add(&cc->list, cuse_conntbl_head(devt));
423 unregister_chrdev_region(devt, 1);