Lines Matching defs:hub

31 usb_error_t usb_hub_clear_hub_feature(struct usb_device *hub, uint16_t feature)
41 return (usb_exec_request(hub, 0, &req, NULL, NULL));
44 usb_error_t usb_hub_clear_port_feature(struct usb_device *hub, uint16_t feature,
55 return (usb_exec_request(hub, 0, &req, NULL, NULL));
58 usb_error_t usb_hub_clear_tt_buffer(struct usb_device *hub, uint8_t dev_addr,
63 if (hub->device_desc.bDeviceClass == USB_HUB_CLASS_CODE
64 && hub->device_desc.bDeviceProtocol == USB_HUB_PROTOCOL_HSHUBSTT) {
66 * if there is just a single transaction translator in the hub,
82 return (usb_exec_request(hub, 0, &req, NULL, NULL));
85 usb_error_t usb_hub_get_hub_status(struct usb_device *hub,
99 return (usb_exec_request(hub, 0, &req, ret_status, NULL));
102 usb_error_t usb_hub_get_port_status(struct usb_device *hub, uint16_t port,
116 return (usb_exec_request(hub, 0, &req, ret_status, NULL));
119 usb_error_t usb_hub_reset_tt(struct usb_device *hub, uint16_t port)
125 if (hub->device_desc.bDeviceClass == USB_HUB_CLASS_CODE
126 && hub->device_desc.bDeviceProtocol == USB_HUB_PROTOCOL_HSHUBSTT) {
128 * if there is just a single transaction translator in the hub,
141 return (usb_exec_request(hub, 0, &req, NULL, NULL));
144 usb_error_t usb_hub_set_hub_feature(struct usb_device *hub, uint16_t feature)
155 return (usb_exec_request(hub, 0, &req, NULL, NULL));
158 usb_error_t usb_hub_set_port_feature(struct usb_device *hub, uint16_t feature,
170 return (usb_exec_request(hub, 0, &req, NULL, NULL));
173 usb_error_t usb_hub_get_tt_state(struct usb_device *hub, uint16_t flags,
181 usb_error_t usb_hub_stop_tt(struct usb_device *hub, uint16_t port)
187 usb_error_t usb_hub_get_hub_descriptor(struct usb_device *hub, uint16_t nports,
202 return (usb_exec_request(hub, 0, &req, ret_desc, NULL));
205 usb_error_t usb_hub_set_hub_descriptor(struct usb_device *hub,
211 usb_error_t usb_hub_re_enumerate(struct usb_device *hub)
216 usb_error_t usb_hub_reset_port(struct usb_device *hub, uint8_t port)
223 err = usb_hub_clear_port_feature(hub, USB_HUB_FEATURE_C_PORT_RESET, port);
231 err = usb_hub_set_port_feature(hub, USB_HUB_FEATURE_PORT_RESET, port);
246 err = usb_hub_get_port_status(hub, port, &ps);
255 USB_DEBUG("NOTICE: Device %i has disappeared...\n", hub->device_address);
280 err = usb_hub_clear_port_feature(hub, USB_HUB_FEATURE_C_PORT_RESET, port);