• Home
  • Raw
  • Download

Lines Matching refs:gadget

144 	struct usb_gadget gadget;  member
176 static inline struct s3c_hsudc *to_hsudc(struct usb_gadget *gadget) in to_hsudc() argument
178 return container_of(gadget, struct s3c_hsudc, gadget); in to_hsudc()
294 hsudc->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsudc_stop_activity()
669 ret = hsudc->driver->setup(&hsudc->gadget, &ctrl); in s3c_hsudc_process_setup()
772 if (!hsudc->driver || hsudc->gadget.speed == USB_SPEED_UNKNOWN) in s3c_hsudc_ep_enable()
883 if (!hsudc->driver || hsudc->gadget.speed == USB_SPEED_UNKNOWN) in s3c_hsudc_queue()
997 list_add_tail(&hsep->ep.ep_list, &hsudc->gadget.ep_list); in s3c_hsudc_initep()
1038 INIT_LIST_HEAD(&hsudc->gadget.ep_list); in s3c_hsudc_setup_ep()
1096 hsudc->gadget.speed = (sys_status & S3C_SSR_HSP) ? in s3c_hsudc_irq()
1102 if (hsudc->gadget.speed != USB_SPEED_UNKNOWN in s3c_hsudc_irq()
1104 hsudc->driver->suspend(&hsudc->gadget); in s3c_hsudc_irq()
1109 if (hsudc->gadget.speed != USB_SPEED_UNKNOWN in s3c_hsudc_irq()
1111 hsudc->driver->resume(&hsudc->gadget); in s3c_hsudc_irq()
1152 static int s3c_hsudc_start(struct usb_gadget *gadget, in s3c_hsudc_start() argument
1155 struct s3c_hsudc *hsudc = to_hsudc(gadget); in s3c_hsudc_start()
1181 &hsudc->gadget); in s3c_hsudc_start()
1184 hsudc->gadget.name); in s3c_hsudc_start()
1206 static int s3c_hsudc_stop(struct usb_gadget *gadget) in s3c_hsudc_stop() argument
1208 struct s3c_hsudc *hsudc = to_hsudc(gadget); in s3c_hsudc_stop()
1215 hsudc->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsudc_stop()
1241 static int s3c_hsudc_gadget_getframe(struct usb_gadget *gadget) in s3c_hsudc_gadget_getframe() argument
1243 return s3c_hsudc_read_frameno(to_hsudc(gadget)); in s3c_hsudc_gadget_getframe()
1246 static int s3c_hsudc_vbus_draw(struct usb_gadget *gadget, unsigned mA) in s3c_hsudc_vbus_draw() argument
1248 struct s3c_hsudc *hsudc = to_hsudc(gadget); in s3c_hsudc_vbus_draw()
1306 hsudc->gadget.max_speed = USB_SPEED_HIGH; in s3c_hsudc_probe()
1307 hsudc->gadget.ops = &s3c_hsudc_gadget_ops; in s3c_hsudc_probe()
1308 hsudc->gadget.name = dev_name(dev); in s3c_hsudc_probe()
1309 hsudc->gadget.ep0 = &hsudc->ep[0].ep; in s3c_hsudc_probe()
1310 hsudc->gadget.is_otg = 0; in s3c_hsudc_probe()
1311 hsudc->gadget.is_a_peripheral = 0; in s3c_hsudc_probe()
1312 hsudc->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsudc_probe()
1343 ret = usb_add_gadget_udc(&pdev->dev, &hsudc->gadget); in s3c_hsudc_probe()