| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | core.c | 39 struct usb_gadget *gadget; member 468 int usb_gadget_frame_number(struct usb_gadget *gadget) in usb_gadget_frame_number() argument 472 ret = gadget->ops->get_frame(gadget); in usb_gadget_frame_number() 474 trace_usb_gadget_frame_number(gadget, ret); in usb_gadget_frame_number() 493 int usb_gadget_wakeup(struct usb_gadget *gadget) in usb_gadget_wakeup() argument 497 if (!gadget->ops->wakeup) { in usb_gadget_wakeup() 502 ret = gadget->ops->wakeup(gadget); in usb_gadget_wakeup() 505 trace_usb_gadget_wakeup(gadget, ret); in usb_gadget_wakeup() 520 int usb_gadget_set_selfpowered(struct usb_gadget *gadget) in usb_gadget_set_selfpowered() argument 524 if (!gadget->ops->set_selfpowered) { in usb_gadget_set_selfpowered() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/dwc3/ |
| H A D | gadget.su | |
| /OK3568_Linux_fs/u-boot/drivers/usb/gadget/ |
| H A D | g_dnl.su | |
| H A D | f_fastboot.su | |
| H A D | epautoconf.c | 50 struct usb_gadget *gadget, in ep_matches() argument 88 if (gadget_is_pxa(gadget) in ep_matches() 125 if (!gadget->is_dualspeed && max > 64) in ep_matches() 133 if (!gadget->is_dualspeed && max > 1023) in ep_matches() 139 if (!gadget->is_dualspeed) in ep_matches() 177 find_ep(struct usb_gadget *gadget, const char *name) in find_ep() argument 181 list_for_each_entry(ep, &gadget->ep_list, ep_list) { in find_ep() 219 struct usb_gadget *gadget, in usb_ep_autoconfig() argument 231 if (gadget_is_net2280(gadget) && type == USB_ENDPOINT_XFER_INT) { in usb_ep_autoconfig() 233 ep = find_ep(gadget, "ep-e"); in usb_ep_autoconfig() [all …]
|
| H A D | f_mass_storage.su | |
| H A D | gadget_chips.h | 173 static inline int usb_gadget_controller_number(struct usb_gadget *gadget) in usb_gadget_controller_number() argument 175 if (gadget_is_net2280(gadget)) in usb_gadget_controller_number() 177 else if (gadget_is_dummy(gadget)) in usb_gadget_controller_number() 179 else if (gadget_is_pxa(gadget)) in usb_gadget_controller_number() 181 else if (gadget_is_sh(gadget)) in usb_gadget_controller_number() 183 else if (gadget_is_sa1100(gadget)) in usb_gadget_controller_number() 185 else if (gadget_is_goku(gadget)) in usb_gadget_controller_number() 187 else if (gadget_is_mq11xx(gadget)) in usb_gadget_controller_number() 189 else if (gadget_is_omap(gadget)) in usb_gadget_controller_number() 191 else if (gadget_is_n9604(gadget)) in usb_gadget_controller_number() [all …]
|
| H A D | composite.c | 103 status = usb_gadget_disconnect(cdev->gadget); in usb_function_deactivate() 130 status = usb_gadget_connect(cdev->gadget); in usb_function_activate() 234 struct usb_gadget *gadget = cdev->gadget; in config_desc() local 239 if (gadget->speed == USB_SPEED_SUPER) in config_desc() 240 speed = gadget->speed; in config_desc() 241 else if (gadget_is_dualspeed(gadget)) { in config_desc() 242 if (gadget->speed == USB_SPEED_HIGH) in config_desc() 275 struct usb_gadget *gadget = cdev->gadget; in count_configs() local 280 if (gadget_is_dualspeed(gadget)) { in count_configs() 281 if (gadget->speed == USB_SPEED_HIGH) in count_configs() [all …]
|
| H A D | ether.c | 105 struct usb_gadget *gadget; member 201 #define qlen(gadget) \ argument 202 (DEFAULT_QLEN*((gadget->speed == USB_SPEED_HIGH) ? qmult : 1)) 215 #define qlen(gadget) DEFAULT_QLEN argument 935 struct usb_gadget *gadget = dev->gadget; in set_ether_config() local 940 dev->status = ep_desc(gadget, &hs_status_desc, in set_ether_config() 953 dev->in = ep_desc(gadget, &hs_source_desc, &fs_source_desc); in set_ether_config() 956 dev->out = ep_desc(gadget, &hs_sink_desc, &fs_sink_desc); in set_ether_config() 986 result = alloc_requests(dev, qlen(gadget), gfp_flags); in set_ether_config() 1053 struct usb_gadget *gadget = dev->gadget; in eth_set_config() local [all …]
|
| H A D | .built-in.o.cmd | |
| H A D | g_dnl.c | 96 struct usb_gadget *gadget = cdev->gadget; in g_dnl_unbind() local 99 "controller '%s'\n", __func__, gadget->name); in g_dnl_unbind() 100 usb_gadget_disconnect(gadget); in g_dnl_unbind() 198 struct usb_gadget *gadget = cdev->gadget; in g_dnl_get_bcd_device_number() local 201 gcnum = usb_gadget_controller_number(gadget); in g_dnl_get_bcd_device_number() 223 struct usb_gadget *gadget = cdev->gadget; in g_dnl_bind() local 227 debug("%s: gadget: 0x%p cdev: 0x%p\n", __func__, gadget, cdev); in g_dnl_bind() 263 __func__, gadget->name); in g_dnl_bind() 268 "controller '%s'\n", __func__, gadget->name); in g_dnl_bind() 269 usb_gadget_connect(gadget); in g_dnl_bind()
|
| /OK3568_Linux_fs/u-boot/include/linux/usb/ |
| H A D | gadget.h | 475 void (*udc_set_speed)(struct usb_gadget *gadget, 544 static inline void set_gadget_data(struct usb_gadget *gadget, void *data) in set_gadget_data() argument 546 gadget->dev.driver_data = data; in set_gadget_data() 549 static inline void *get_gadget_data(struct usb_gadget *gadget) in get_gadget_data() argument 551 return gadget->dev.driver_data; in get_gadget_data() 560 #define gadget_for_each_ep(tmp, gadget) \ argument 561 list_for_each_entry(tmp, &(gadget)->ep_list, ep_list) 612 static inline int usb_gadget_frame_number(struct usb_gadget *gadget) in usb_gadget_frame_number() argument 614 return gadget->ops->get_frame(gadget); in usb_gadget_frame_number() 630 static inline int usb_gadget_wakeup(struct usb_gadget *gadget) in usb_gadget_wakeup() argument [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | gadget.h | 333 void (*udc_set_ssp_rate)(struct usb_gadget *gadget, 335 void (*udc_async_callbacks)(struct usb_gadget *gadget, bool enable); 339 int (*check_config)(struct usb_gadget *gadget); 470 static inline void set_gadget_data(struct usb_gadget *gadget, void *data) in set_gadget_data() argument 471 { dev_set_drvdata(&gadget->dev, data); } in set_gadget_data() 472 static inline void *get_gadget_data(struct usb_gadget *gadget) in get_gadget_data() argument 473 { return dev_get_drvdata(&gadget->dev); } in get_gadget_data() 478 static inline struct usb_gadget *usb_get_gadget(struct usb_gadget *gadget) in usb_get_gadget() argument 480 get_device(&gadget->dev); in usb_get_gadget() 481 return gadget; in usb_get_gadget() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/gadget/udc/ |
| H A D | udc-core.c | 39 struct usb_gadget *gadget; member 50 int usb_gadget_map_request(struct usb_gadget *gadget, in usb_gadget_map_request() argument 63 void usb_gadget_unmap_request(struct usb_gadget *gadget, in usb_gadget_unmap_request() argument 92 void usb_gadget_set_state(struct usb_gadget *gadget, in usb_gadget_set_state() argument 95 gadget->state = state; in usb_gadget_set_state() 110 void usb_gadget_udc_reset(struct usb_gadget *gadget, in usb_gadget_udc_reset() argument 113 driver->reset(gadget); in usb_gadget_udc_reset() 114 usb_gadget_set_state(gadget, USB_STATE_DEFAULT); in usb_gadget_udc_reset() 133 return udc->gadget->ops->udc_start(udc->gadget, udc->driver); in usb_gadget_udc_start() 150 udc->gadget->ops->udc_stop(udc->gadget); in usb_gadget_udc_stop() [all …]
|
| H A D | udc-core.su | |
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A D | configfs-usb-gadget | 1 What: /config/usb-gadget 8 What: /config/usb-gadget/gadget 13 The attributes of a gadget: 16 UDC bind a gadget to UDC/unbind a gadget; 18 to bind a gadget, empty string "" to unbind. 34 What: /config/usb-gadget/gadget/configs 38 This group contains a USB gadget's configurations 40 What: /config/usb-gadget/gadget/configs/config 51 What: /config/usb-gadget/gadget/configs/config/strings 58 What: /config/usb-gadget/gadget/configs/config/strings/language [all …]
|
| H A D | configfs-usb-gadget-uvc | 1 What: /config/usb-gadget/gadget/functions/uvc.name 13 What: /config/usb-gadget/gadget/functions/uvc.name/control 25 What: /config/usb-gadget/gadget/functions/uvc.name/control/class 30 What: /config/usb-gadget/gadget/functions/uvc.name/control/class/ss 35 What: /config/usb-gadget/gadget/functions/uvc.name/control/class/fs 40 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal 45 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/output 50 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/output/default 67 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/camera 72 What: /config/usb-gadget/gadget/functions/uvc.name/control/terminal/camera/default [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/ |
| H A D | epautoconf.c | 64 struct usb_gadget *gadget, in usb_ep_autoconfig_ss() argument 71 if (gadget->ops->match_ep) { in usb_ep_autoconfig_ss() 72 ep = gadget->ops->match_ep(gadget, desc, ep_comp); in usb_ep_autoconfig_ss() 78 list_for_each_entry (ep, &gadget->ep_list, ep_list) { in usb_ep_autoconfig_ss() 79 if (usb_gadget_ep_match_desc(gadget, ep, desc, ep_comp)) in usb_ep_autoconfig_ss() 100 if (++gadget->in_epnum > 15) in usb_ep_autoconfig_ss() 102 desc->bEndpointAddress = USB_DIR_IN | gadget->in_epnum; in usb_ep_autoconfig_ss() 104 if (++gadget->out_epnum > 15) in usb_ep_autoconfig_ss() 106 desc->bEndpointAddress |= gadget->out_epnum; in usb_ep_autoconfig_ss() 150 struct usb_gadget *gadget, in usb_ep_autoconfig() argument [all …]
|
| H A D | composite.c | 411 status = usb_gadget_deactivate(cdev->gadget); in usb_function_deactivate() 446 status = usb_gadget_activate(cdev->gadget); in usb_function_activate() 567 struct usb_gadget *gadget = cdev->gadget; in config_desc() local 573 if (gadget->speed >= USB_SPEED_SUPER) in config_desc() 574 speed = gadget->speed; in config_desc() 575 else if (gadget_is_dualspeed(gadget)) { in config_desc() 577 if (gadget->speed == USB_SPEED_HIGH) in config_desc() 630 struct usb_gadget *gadget = cdev->gadget; in count_configs() local 637 if (gadget_is_dualspeed(gadget)) { in count_configs() 638 if (gadget->speed == USB_SPEED_HIGH) in count_configs() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/bdc/ |
| H A D | bdc_udc.c | 86 bdc->gadget.ep0->maxpacket = EP0_MAX_PKT_SIZE; in bdc_uspc_connected() 87 bdc->gadget.speed = USB_SPEED_SUPER; in bdc_uspc_connected() 98 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected() 99 bdc->gadget.speed = USB_SPEED_HIGH; in bdc_uspc_connected() 104 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected() 105 bdc->gadget.speed = USB_SPEED_FULL; in bdc_uspc_connected() 110 bdc->gadget.ep0->maxpacket = 8; in bdc_uspc_connected() 111 bdc->gadget.speed = USB_SPEED_LOW; in bdc_uspc_connected() 125 usb_gadget_set_state(&bdc->gadget, USB_STATE_DEFAULT); in bdc_uspc_connected() 145 bdc->gadget_driver->disconnect(&bdc->gadget); in bdc_uspc_disconnected() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/aspeed-vhub/ |
| H A D | dev.c | 66 if (d->gadget.speed == USB_SPEED_HIGH) in ast_vhub_dev_enable() 110 d->gadget.speed = USB_SPEED_UNKNOWN; in ast_vhub_dev_disable() 168 st0 = d->gadget.is_selfpowered << USB_DEVICE_SELF_POWERED; in ast_vhub_dev_status() 233 if (d->gadget.speed == USB_SPEED_UNKNOWN) { in ast_vhub_std_dev_request() 234 d->gadget.speed = ep->vhub->speed; in ast_vhub_std_dev_request() 235 if (d->gadget.speed > d->driver->max_speed) in ast_vhub_std_dev_request() 236 d->gadget.speed = d->driver->max_speed; in ast_vhub_std_dev_request() 238 d->gadget.speed); in ast_vhub_std_dev_request() 271 static int ast_vhub_udc_wakeup(struct usb_gadget* gadget) in ast_vhub_udc_wakeup() argument 273 struct ast_vhub_dev *d = to_ast_dev(gadget); in ast_vhub_udc_wakeup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/legacy/ |
| H A D | dbgp.c | 27 struct usb_gadget *gadget; member 124 dev_dbg(&dbgp.gadget->dev, in dbgp_complete() 162 dev_dbg(&dbgp.gadget->dev, in dbgp_enable_ep_req() 204 dev_dbg(&dbgp.gadget->dev, "enable ep: failure (%d:%d)\n", stp, err); in dbgp_enable_ep() 209 static void dbgp_disconnect(struct usb_gadget *gadget) in dbgp_disconnect() argument 218 static void dbgp_unbind(struct usb_gadget *gadget) in dbgp_unbind() argument 226 usb_ep_free_request(gadget->ep0, dbgp.req); in dbgp_unbind() 235 static int dbgp_configure_endpoints(struct usb_gadget *gadget) in dbgp_configure_endpoints() argument 239 usb_ep_autoconfig_reset(gadget); in dbgp_configure_endpoints() 241 dbgp.i_ep = usb_ep_autoconfig(gadget, &i_desc); in dbgp_configure_endpoints() [all …]
|
| H A D | raw_gadget.c | 173 struct usb_gadget *gadget; member 214 usb_ep_dequeue(dev->gadget->ep0, dev->req); in dev_free() 215 usb_ep_free_request(dev->gadget->ep0, dev->req); in dev_free() 278 static int gadget_bind(struct usb_gadget *gadget, in gadget_bind() argument 287 if (strcmp(gadget->name, dev->udc_name) != 0) in gadget_bind() 290 set_gadget_data(gadget, dev); in gadget_bind() 291 req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL); in gadget_bind() 293 dev_err(&gadget->dev, "usb_ep_alloc_request failed\n"); in gadget_bind() 294 set_gadget_data(gadget, NULL); in gadget_bind() 302 dev->gadget = gadget; in gadget_bind() [all …]
|
| /OK3568_Linux_fs/buildroot/package/libusbgx/ |
| H A D | 0001-Add-include-of-sys-sysmacro.h.patch | 16 examples/gadget-acm-ecm.c | 1 + 17 examples/gadget-import.c | 1 + 18 examples/gadget-ms.c | 1 + 24 diff --git a/examples/gadget-acm-ecm.c b/examples/gadget-acm-ecm.c 26 --- a/examples/gadget-acm-ecm.c 27 +++ b/examples/gadget-acm-ecm.c 36 diff --git a/examples/gadget-import.c b/examples/gadget-import.c 38 --- a/examples/gadget-import.c 39 +++ b/examples/gadget-import.c 48 diff --git a/examples/gadget-ms.c b/examples/gadget-ms.c [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/phy/ |
| H A D | phy-gpio-vbus-usb.c | 98 if (!gpio_vbus->phy.otg->gadget) in gpio_vbus_work() 116 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work() 126 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work() 135 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work() 141 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work() 155 otg->gadget ? otg->gadget->name : "none"); in gpio_vbus_irq() 157 if (otg->gadget) in gpio_vbus_irq() 167 struct usb_gadget *gadget) in gpio_vbus_set_peripheral() argument 175 if (!gadget) { in gpio_vbus_set_peripheral() 177 otg->gadget->name); in gpio_vbus_set_peripheral() [all …]
|