Lines Matching defs:cdev
168 struct cdev cdev;
617 struct ffs_data *ffs = container_of(inode->i_cdev, struct ffs_data, cdev);
1003 struct ffs_epfile *epfile = container_of(inode->i_cdev, struct ffs_epfile, cdev);
1503 cdev_init(&ffs->cdev, &ffs_ep0_operations);
1505 ret = cdev_add(&ffs->cdev, ffs->devno, 1);
1514 cdev_del(&ffs->cdev);
1537 cdev_del(&ffs->cdev);
1709 static int functionfs_bind(struct ffs_data *ffs, struct usb_composite_dev *cdev)
1720 first_id = usb_string_ids_n(cdev, ffs->strings_count);
1724 ffs->ep0req = usb_ep_alloc_request(cdev->gadget->ep0, GFP_KERNEL);
1741 ffs->gadget = cdev->gadget;
1742 ffs->speed = cdev->gadget->speed;
1788 cdev_init(&epfile->cdev, &ffs_epfile_operations);
1790 ret = cdev_add(&epfile->cdev, epfile->devno, 1);
1800 cdev_del(&epfile->cdev);
1819 cdev_del(&epfile->cdev);
2789 /* String' IDs are allocated when fsf_data is bound to cdev */
2922 func->gadget = c->cdev->gadget;
2932 ret = functionfs_bind(func->ffs, c->cdev);
2967 c->cdev->use_os_string ? ffs->interfaces_count : 0);
2969 c->cdev->use_os_string ? ffs->interfaces_count : 0);
2971 c->cdev->use_os_string ? ffs->interfaces_count : 0);
3071 if (c->cdev->use_os_string) {
3092 c->cdev->use_os_string ? ffs->interfaces_count : 0;