Lines Matching full:ep0

51  * are two types of files.  One type is for the device, implementing ep0.
89 /* /dev/gadget/$CHIP represents ep0 and the whole device */
95 * ep0/device i/o modes and binding to the controller. Driver
101 /* From then on, ep0 fd is in either of two basic modes:
110 /* UNBOUND means the driver closed ep0, so the device won't be
131 /* drivers reading ep0 MUST handle control requests (SETUP)
154 /* except this scratch i/o buffer for ep0 */
243 * at the end of ep0 configuration, or after unbind.
845 /* EP0 IMPLEMENTATION can be partly in userspace.
898 DBG (dev, "ep0 request busy!\n"); in setup_req()
938 (void) usb_ep_set_halt (dev->gadget->ep0); in ep0_read()
943 struct usb_ep *ep = dev->gadget->ep0; in ep0_read()
1001 clean_req (dev->gadget->ep0, dev->req); in ep0_read()
1025 /* ep0 i/o has special semantics during STATE_DEV_SETUP */ in ep0_read()
1041 * concurrent ep0 readers may lose events. in ep0_read()
1141 retval = setup_req (dev->gadget->ep0, dev->req, len); in ep0_write()
1152 dev->gadget->ep0, dev->req, in ep0_write()
1158 clean_req (dev->gadget->ep0, dev->req); in ep0_write()
1168 (void) usb_ep_set_halt (dev->gadget->ep0); in ep0_write()
1196 /* closing ep0 === shutdown all */ in dev_release()
1278 /* The in-kernel gadget driver handles most ep0 issues, in particular
1281 * Unrecognized ep0 requests may be handled in user space.
1298 /* assumes ep0 uses the same value for both speeds ... */ in make_qualifier()
1299 qual.bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in make_qualifier()
1392 dev->dev->bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in gadgetfs_setup()
1482 /* if there's an ep0 reader, don't stall */ in gadgetfs_setup()
1494 value = setup_req (gadget->ep0, dev->req, in gadgetfs_setup()
1501 value = usb_ep_queue (gadget->ep0, dev->req, in gadgetfs_setup()
1506 clean_req (gadget->ep0, dev->req); in gadgetfs_setup()
1526 * queued to EP0. in gadgetfs_setup()
1539 value = usb_ep_queue (gadget->ep0, req, GFP_KERNEL); in gadgetfs_setup()
1665 gadget->ep0->driver_data = NULL; in gadgetfs_unbind()
1670 usb_ep_free_request (gadget->ep0, dev->req); in gadgetfs_unbind()
1692 gadget->ep0->driver_data = dev; in gadgetfs_bind()
1695 dev->req = usb_ep_alloc_request (gadget->ep0, GFP_KERNEL); in gadgetfs_bind()
1904 * kick in after the ep0 descriptor is closed. in dev_config()
1961 * if epfiles inherited ownership and permissons from ep0 ...
2058 /* the ep0 file is named after the controller we expect; in gadgetfs_fill_super()