Lines Matching refs:gadget
636 struct usb_gadget *gadget = dev->gadget; in thor_func_setup() local
662 value = usb_ep_queue(gadget->ep0, req, 0); in thor_func_setup()
749 struct usb_gadget *gadget = c->cdev->gadget; in thor_func_bind() local
761 dev->gadget = gadget; in thor_func_bind()
770 dev->req = usb_ep_alloc_request(gadget->ep0, 0); in thor_func_bind()
802 ep = usb_ep_autoconfig(gadget, &fs_in_desc); in thor_func_bind()
808 if (gadget_is_dualspeed(gadget)) { in thor_func_bind()
816 ep = usb_ep_autoconfig(gadget, &fs_out_desc); in thor_func_bind()
822 if (gadget_is_dualspeed(gadget)) in thor_func_bind()
829 ep = usb_ep_autoconfig(gadget, &fs_int_desc); in thor_func_bind()
838 if (gadget_is_dualspeed(gadget)) { in thor_func_bind()
856 free_ep_req(gadget->ep0, dev->req); in thor_func_bind()
866 free_ep_req(dev->gadget->ep0, dev->req); in thor_unbind()
901 struct usb_gadget *gadget = cdev->gadget; in thor_eps_setup() local
909 d = ep_desc(gadget, &hs_in_desc, &fs_in_desc); in thor_eps_setup()
927 d = ep_desc(gadget, &hs_out_desc, &fs_out_desc); in thor_eps_setup()
945 d = ep_desc(gadget, &hs_int_desc, &fs_int_desc); in thor_eps_setup()