Lines Matching refs:gadget

54 static inline struct dwc2_hsotg *to_hsotg(struct usb_gadget *gadget)  in to_hsotg()  argument
56 return container_of(gadget, struct dwc2_hsotg, gadget); in to_hsotg()
298 usb_gadget_unmap_request(&hsotg->gadget, req, hs_ep->dir_in); in s3c_hsotg_unmap_dma()
716 ret = usb_gadget_map_request(&hsotg->gadget, req, hs_ep->dir_in); in s3c_hsotg_map_dma()
1249 ret = hsotg->driver->setup(&hsotg->gadget, ctrl); in s3c_hsotg_process_control()
2080 hsotg->gadget.speed = USB_SPEED_FULL; in s3c_hsotg_irq_enumdone()
2086 hsotg->gadget.speed = USB_SPEED_HIGH; in s3c_hsotg_irq_enumdone()
2092 hsotg->gadget.speed = USB_SPEED_LOW; in s3c_hsotg_irq_enumdone()
2101 usb_speed_string(hsotg->gadget.speed)); in s3c_hsotg_irq_enumdone()
3024 static int s3c_hsotg_udc_start(struct usb_gadget *gadget, in s3c_hsotg_udc_start() argument
3027 struct dwc2_hsotg *hsotg = to_hsotg(gadget); in s3c_hsotg_udc_start()
3054 hsotg->gadget.dev.of_node = hsotg->dev->of_node; in s3c_hsotg_udc_start()
3055 hsotg->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsotg_udc_start()
3068 otg_set_peripheral(hsotg->uphy->otg, &hsotg->gadget); in s3c_hsotg_udc_start()
3095 static int s3c_hsotg_udc_stop(struct usb_gadget *gadget) in s3c_hsotg_udc_stop() argument
3097 struct dwc2_hsotg *hsotg = to_hsotg(gadget); in s3c_hsotg_udc_stop()
3117 hsotg->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsotg_udc_stop()
3141 static int s3c_hsotg_gadget_getframe(struct usb_gadget *gadget) in s3c_hsotg_gadget_getframe() argument
3143 return s3c_hsotg_read_frameno(to_hsotg(gadget)); in s3c_hsotg_gadget_getframe()
3153 static int s3c_hsotg_pullup(struct usb_gadget *gadget, int is_on) in s3c_hsotg_pullup() argument
3155 struct dwc2_hsotg *hsotg = to_hsotg(gadget); in s3c_hsotg_pullup()
3174 hsotg->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsotg_pullup()
3181 static int s3c_hsotg_vbus_session(struct usb_gadget *gadget, int is_active) in s3c_hsotg_vbus_session() argument
3183 struct dwc2_hsotg *hsotg = to_hsotg(gadget); in s3c_hsotg_vbus_session()
3211 static int s3c_hsotg_vbus_draw(struct usb_gadget *gadget, unsigned mA) in s3c_hsotg_vbus_draw() argument
3213 struct dwc2_hsotg *hsotg = to_hsotg(gadget); in s3c_hsotg_vbus_draw()
3263 list_add_tail(&hs_ep->ep.ep_list, &hsotg->gadget.ep_list); in s3c_hsotg_initep()
3896 hsotg->gadget.max_speed = USB_SPEED_HIGH; in dwc2_gadget_init()
3897 hsotg->gadget.ops = &s3c_hsotg_gadget_ops; in dwc2_gadget_init()
3898 hsotg->gadget.name = dev_name(dev); in dwc2_gadget_init()
3994 INIT_LIST_HEAD(&hsotg->gadget.ep_list); in dwc2_gadget_init()
3995 hsotg->gadget.ep0 = &hsotg->eps_out[0]->ep; in dwc2_gadget_init()
4027 ret = usb_add_gadget_udc(dev, &hsotg->gadget); in dwc2_gadget_init()
4052 usb_del_gadget_udc(&hsotg->gadget); in s3c_hsotg_remove()
4077 hsotg->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsotg_suspend()