Lines Matching +full:0 +full:x1d6b
119 0x12, /* __u8 bLength; */
121 0x10, 0x03, /* __le16 bcdUSB; v3.1 */
123 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */
124 0x00, /* __u8 bDeviceSubClass; */
125 0x03, /* __u8 bDeviceProtocol; USB 3 hub */
126 0x09, /* __u8 bMaxPacketSize0; 2^9 = 512 Bytes */
128 0x6b, 0x1d, /* __le16 idVendor; Linux Foundation 0x1d6b */
129 0x03, 0x00, /* __le16 idProduct; device 0x0003 */
132 0x03, /* __u8 iManufacturer; */
133 0x02, /* __u8 iProduct; */
134 0x01, /* __u8 iSerialNumber; */
135 0x01 /* __u8 bNumConfigurations; */
140 0x12, /* __u8 bLength; */
142 0x00, 0x03, /* __le16 bcdUSB; v3.0 */
144 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */
145 0x00, /* __u8 bDeviceSubClass; */
146 0x03, /* __u8 bDeviceProtocol; USB 3.0 hub */
147 0x09, /* __u8 bMaxPacketSize0; 2^9 = 512 Bytes */
149 0x6b, 0x1d, /* __le16 idVendor; Linux Foundation 0x1d6b */
150 0x03, 0x00, /* __le16 idProduct; device 0x0003 */
153 0x03, /* __u8 iManufacturer; */
154 0x02, /* __u8 iProduct; */
155 0x01, /* __u8 iSerialNumber; */
156 0x01 /* __u8 bNumConfigurations; */
161 0x12, /* __u8 bLength; */
163 0x50, 0x02, /* __le16 bcdUSB; v2.5 */
165 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */
166 0x00, /* __u8 bDeviceSubClass; */
167 0x00, /* __u8 bDeviceProtocol; [ usb 2.0 no TT ] */
168 0xFF, /* __u8 bMaxPacketSize0; always 0xFF (WUSB Spec 7.4.1). */
170 0x6b, 0x1d, /* __le16 idVendor; Linux Foundation 0x1d6b */
171 0x02, 0x00, /* __le16 idProduct; device 0x0002 */
174 0x03, /* __u8 iManufacturer; */
175 0x02, /* __u8 iProduct; */
176 0x01, /* __u8 iSerialNumber; */
177 0x01 /* __u8 bNumConfigurations; */
182 0x12, /* __u8 bLength; */
184 0x00, 0x02, /* __le16 bcdUSB; v2.0 */
186 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */
187 0x00, /* __u8 bDeviceSubClass; */
188 0x00, /* __u8 bDeviceProtocol; [ usb 2.0 no TT ] */
189 0x40, /* __u8 bMaxPacketSize0; 64 Bytes */
191 0x6b, 0x1d, /* __le16 idVendor; Linux Foundation 0x1d6b */
192 0x02, 0x00, /* __le16 idProduct; device 0x0002 */
195 0x03, /* __u8 iManufacturer; */
196 0x02, /* __u8 iProduct; */
197 0x01, /* __u8 iSerialNumber; */
198 0x01 /* __u8 bNumConfigurations; */
205 0x12, /* __u8 bLength; */
207 0x10, 0x01, /* __le16 bcdUSB; v1.1 */
209 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */
210 0x00, /* __u8 bDeviceSubClass; */
211 0x00, /* __u8 bDeviceProtocol; [ low/full speeds only ] */
212 0x40, /* __u8 bMaxPacketSize0; 64 Bytes */
214 0x6b, 0x1d, /* __le16 idVendor; Linux Foundation 0x1d6b */
215 0x01, 0x00, /* __le16 idProduct; device 0x0001 */
218 0x03, /* __u8 iManufacturer; */
219 0x02, /* __u8 iProduct; */
220 0x01, /* __u8 iSerialNumber; */
221 0x01 /* __u8 bNumConfigurations; */
232 0x09, /* __u8 bLength; */
234 0x19, 0x00, /* __le16 wTotalLength; */
235 0x01, /* __u8 bNumInterfaces; (1) */
236 0x01, /* __u8 bConfigurationValue; */
237 0x00, /* __u8 iConfiguration; */
238 0xc0, /* __u8 bmAttributes;
242 4..0: resvd */
243 0x00, /* __u8 MaxPower; */
247 * one interface, protocol 0
257 0x09, /* __u8 if_bLength; */
259 0x00, /* __u8 if_bInterfaceNumber; */
260 0x00, /* __u8 if_bAlternateSetting; */
261 0x01, /* __u8 if_bNumEndpoints; */
262 0x09, /* __u8 if_bInterfaceClass; HUB_CLASSCODE */
263 0x00, /* __u8 if_bInterfaceSubClass; */
264 0x00, /* __u8 if_bInterfaceProtocol; [usb1.1 or single tt] */
265 0x00, /* __u8 if_iInterface; */
268 0x07, /* __u8 ep_bLength; */
270 0x81, /* __u8 ep_bEndpointAddress; IN Endpoint 1 */
271 0x03, /* __u8 ep_bmAttributes; Interrupt */
272 0x02, 0x00, /* __le16 ep_wMaxPacketSize; 1 + (MAX_ROOT_PORTS / 8) */
273 0xff /* __u8 ep_bInterval; (255ms -- usb 2.0 spec) */
279 0x09, /* __u8 bLength; */
281 0x19, 0x00, /* __le16 wTotalLength; */
282 0x01, /* __u8 bNumInterfaces; (1) */
283 0x01, /* __u8 bConfigurationValue; */
284 0x00, /* __u8 iConfiguration; */
285 0xc0, /* __u8 bmAttributes;
289 4..0: resvd */
290 0x00, /* __u8 MaxPower; */
294 * one interface, protocol 0
304 0x09, /* __u8 if_bLength; */
306 0x00, /* __u8 if_bInterfaceNumber; */
307 0x00, /* __u8 if_bAlternateSetting; */
308 0x01, /* __u8 if_bNumEndpoints; */
309 0x09, /* __u8 if_bInterfaceClass; HUB_CLASSCODE */
310 0x00, /* __u8 if_bInterfaceSubClass; */
311 0x00, /* __u8 if_bInterfaceProtocol; [usb1.1 or single tt] */
312 0x00, /* __u8 if_iInterface; */
315 0x07, /* __u8 ep_bLength; */
317 0x81, /* __u8 ep_bEndpointAddress; IN Endpoint 1 */
318 0x03, /* __u8 ep_bmAttributes; Interrupt */
321 (USB_MAXCHILDREN + 1 + 7) / 8, 0x00,
322 0x0c /* __u8 ep_bInterval; (256ms -- usb 2.0 spec) */
327 0x09, /* __u8 bLength; */
329 0x1f, 0x00, /* __le16 wTotalLength; */
330 0x01, /* __u8 bNumInterfaces; (1) */
331 0x01, /* __u8 bConfigurationValue; */
332 0x00, /* __u8 iConfiguration; */
333 0xc0, /* __u8 bmAttributes;
337 4..0: resvd */
338 0x00, /* __u8 MaxPower; */
341 0x09, /* __u8 if_bLength; */
343 0x00, /* __u8 if_bInterfaceNumber; */
344 0x00, /* __u8 if_bAlternateSetting; */
345 0x01, /* __u8 if_bNumEndpoints; */
346 0x09, /* __u8 if_bInterfaceClass; HUB_CLASSCODE */
347 0x00, /* __u8 if_bInterfaceSubClass; */
348 0x00, /* __u8 if_bInterfaceProtocol; */
349 0x00, /* __u8 if_iInterface; */
352 0x07, /* __u8 ep_bLength; */
354 0x81, /* __u8 ep_bEndpointAddress; IN Endpoint 1 */
355 0x03, /* __u8 ep_bmAttributes; Interrupt */
358 (USB_MAXCHILDREN + 1 + 7) / 8, 0x00,
359 0x0c, /* __u8 ep_bInterval; (256ms -- usb 2.0 spec) */
362 0x06, /* __u8 ss_bLength */
365 0x00, /* __u8 ss_bMaxBurst; allows 1 TX between ACKs */
366 0x00, /* __u8 ss_bmAttributes; 1 packet per service interval */
367 0x02, 0x00 /* __le16 ss_wBytesPerInterval; 15 bits for max 15 ports */
372 * 0 is unauthorized for all devices
377 #define USB_AUTHORIZE_NONE 0
384 "Default USB device authorization: 0 is not authorized, 1 is "
427 * @id: the string ID number (0: langids, 1: serial #, 2: product, 3: vendor)
443 static char const langids[4] = {4, USB_DT_STRING, 0x09, 0x04}; in rh_string()
447 case 0: in rh_string()
448 /* Array of LANGID codes (0x0409 is MSFT-speak for "en-us") */ in rh_string()
470 return 0; in rh_string()
483 unsigned len = 0; in rh_call_control()
485 u8 patch_wakeup = 0; in rh_call_control()
486 u8 patch_protocol = 0; in rh_call_control()
523 urb->actual_length = 0; in rh_call_control()
545 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
548 tbuf[1] = 0; in rh_call_control()
553 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control()
565 tbuf[0] = 1; in rh_call_control()
571 switch (wValue & 0xff00) { in rh_call_control()
621 if ((wValue & 0xff) < 4) in rh_call_control()
622 urb->actual_length = rh_string(wValue & 0xff, in rh_call_control()
634 tbuf[0] = 0; in rh_call_control()
651 tbuf[0] = 0; in rh_call_control()
652 tbuf[1] = 0; in rh_call_control()
696 if (status < 0) { in rh_call_control()
697 len = 0; in rh_call_control()
700 "CTRL: TypeReq=0x%x val=0x%x " in rh_call_control()
701 "idx=0x%x len=%d ==> %d\n", in rh_call_control()
705 } else if (status > 0) { in rh_call_control()
708 status = 0; in rh_call_control()
740 return 0; in rh_call_control()
766 if (length > 0) { in usb_hcd_poll_rh_status()
775 status = 0; in usb_hcd_poll_rh_status()
786 length = 0; in usb_hcd_poll_rh_status()
797 (length == 0 && hcd->status_urb != NULL)) in usb_hcd_poll_rh_status()
837 retval = 0; in rh_queue_status()
867 if (usb_endpoint_num(&urb->ep->desc) == 0) { /* Control URB */ in usb_rh_urb_dequeue()
896 memset (&bus->devmap, 0, sizeof(struct usb_devmap)); in usb_bus_init()
902 bus->bandwidth_allocated = 0; in usb_bus_init()
903 bus->bandwidth_int_reqs = 0; in usb_bus_init()
904 bus->bandwidth_isoc_reqs = 0; in usb_bus_init()
919 * Return: 0 if successful. A negative error code otherwise.
928 if (busnum < 0) { in usb_register_bus()
939 return 0; in usb_register_bus()
980 * Return: 0 if successful. A negative error code otherwise.
1002 return (retval < 0) ? retval : -EMSGSIZE; in register_root_hub()
1005 if (le16_to_cpu(usb_dev->descriptor.bcdUSB) >= 0x0201) { in register_root_hub()
1148 * Return: 0 for no error, otherwise a negative error code (in which case
1155 int rc = 0; in usb_hcd_link_urb_to_ep()
1180 urb->unlinked = 0; in usb_hcd_link_urb_to_ep()
1203 * Return: 0 for no error, otherwise a negative error code (in which case
1230 return 0; in usb_hcd_check_unlink_urb()
1312 return 0; in hcd_alloc_coherent()
1329 *dma_handle = 0; in hcd_free_coherent()
1411 int ret = 0; in usb_hcd_map_urb_for_dma()
1451 if (urb->transfer_buffer_length != 0 in usb_hcd_map_urb_for_dma()
1460 if (ret == 0) in usb_hcd_map_urb_for_dma()
1555 if (likely(status == 0)) { in usb_hcd_submit_urb()
1620 * then urb->use_count must be 0, since disconnected in usb_hcd_unlink_urb()
1624 if (atomic_read(&urb->use_count) > 0) { in usb_hcd_unlink_urb()
1625 retval = 0; in usb_hcd_unlink_urb()
1629 if (retval == 0) { in usb_hcd_unlink_urb()
1632 if (retval == 0) in usb_hcd_unlink_urb()
1660 if (likely(status == 0)) in __usb_hcd_giveback_urb()
1869 int ret = 0; in usb_hcd_alloc_bandwidth()
1875 return 0; in usb_hcd_alloc_bandwidth()
1877 /* Configuration is being removed - set configuration 0 */ in usb_hcd_alloc_bandwidth()
1888 return 0; in usb_hcd_alloc_bandwidth()
1891 * each interface's alt setting 0 and ask the HCD to check the bandwidth in usb_hcd_alloc_bandwidth()
1892 * of the bus. There will always be bandwidth for endpoint 0, so it's in usb_hcd_alloc_bandwidth()
1897 /* Remove endpoints (except endpoint 0, which is always on the in usb_hcd_alloc_bandwidth()
1904 if (ret < 0) in usb_hcd_alloc_bandwidth()
1910 if (ret < 0) in usb_hcd_alloc_bandwidth()
1914 for (i = 0; i < num_intfs; ++i) { in usb_hcd_alloc_bandwidth()
1918 first_alt = &new_config->intf_cache[i]->altsetting[0]; in usb_hcd_alloc_bandwidth()
1920 /* Set up endpoints for alternate interface setting 0 */ in usb_hcd_alloc_bandwidth()
1921 alt = usb_find_alt_setting(new_config, iface_num, 0); in usb_hcd_alloc_bandwidth()
1923 /* No alt setting 0? Pick the first setting. */ in usb_hcd_alloc_bandwidth()
1926 for (j = 0; j < alt->desc.bNumEndpoints; j++) { in usb_hcd_alloc_bandwidth()
1928 if (ret < 0) in usb_hcd_alloc_bandwidth()
1942 * and the device will think alt setting 0 is installed. in usb_hcd_alloc_bandwidth()
1945 * out the alternate setting 0 structure, or the first in usb_hcd_alloc_bandwidth()
1947 * setting 0. in usb_hcd_alloc_bandwidth()
1949 cur_alt = usb_altnum_to_altsetting(iface, 0); in usb_hcd_alloc_bandwidth()
1951 cur_alt = &iface->altsetting[0]; in usb_hcd_alloc_bandwidth()
1955 for (i = 0; i < cur_alt->desc.bNumEndpoints; i++) { in usb_hcd_alloc_bandwidth()
1958 if (ret < 0) in usb_hcd_alloc_bandwidth()
1962 for (i = 0; i < new_alt->desc.bNumEndpoints; i++) { in usb_hcd_alloc_bandwidth()
1965 if (ret < 0) in usb_hcd_alloc_bandwidth()
1971 if (ret < 0) in usb_hcd_alloc_bandwidth()
2015 usb_settoggle(udev, epnum, is_out, 0); in usb_hcd_reset_endpoint()
2017 usb_settoggle(udev, epnum, !is_out, 0); in usb_hcd_reset_endpoint()
2053 for (i = 0; i < num_eps; i++) { in usb_alloc_streams()
2064 if (ret < 0) in usb_alloc_streams()
2067 for (i = 0; i < num_eps; i++) in usb_alloc_streams()
2084 * Return: 0 on success. On failure, a negative error code.
2100 for (i = 0; i < num_eps; i++) in usb_free_streams()
2105 if (ret < 0) in usb_free_streams()
2108 for (i = 0; i < num_eps; i++) in usb_free_streams()
2109 eps[i]->streams = 0; in usb_free_streams()
2162 urb = usb_alloc_urb(0, GFP_KERNEL); in request_single_step_set_feature_urb()
2166 urb->pipe = usb_rcvctrlpipe(udev, 0); in request_single_step_set_feature_urb()
2175 urb->actual_length = 0; in request_single_step_set_feature_urb()
2219 dr->wIndex = 0; in ehset_single_step_set_feature()
2243 retval = hcd->driver->submit_single_step_set_feature(hcd, urb, 0); in ehset_single_step_set_feature()
2276 return 0; in hcd_bus_suspend()
2286 if (status == 0) { in hcd_bus_suspend()
2299 if (status != 0) { in hcd_bus_suspend()
2328 return 0; in hcd_bus_resume()
2341 return 0; in hcd_bus_resume()
2346 if (status == 0) in hcd_bus_resume()
2349 if (status == 0) { in hcd_bus_resume()
2411 pm_wakeup_event(&hcd->self.root_hub->dev, 0); in usb_hcd_resume_root_hub()
2436 * Return: 0 if successful.
2454 if (status == 0) in usb_bus_start_enum()
2613 timer_setup(&hcd->rh_timer, rh_timer_func, 0); in __usb_create_hcd()
2744 if (retval != 0) { in usb_hcd_request_irqs()
2751 dev_info(hcd->self.controller, "irq %d, %s 0x%08llx\n", irqnum, in usb_hcd_request_irqs()
2756 hcd->irq = 0; in usb_hcd_request_irqs()
2758 dev_info(hcd->self.controller, "%s 0x%08llx\n", in usb_hcd_request_irqs()
2763 return 0; in usb_hcd_request_irqs()
2789 hcd->rh_pollable = 0; in usb_stop_hcd()
2872 if (retval != 0) { in usb_add_hcd()
2878 if (retval < 0) in usb_add_hcd()
2881 rhdev = usb_alloc_dev(NULL, &hcd->self, 0); in usb_add_hcd()
2940 if (retval < 0) { in usb_add_hcd()
2973 if (retval < 0) { in usb_add_hcd()
2982 if (retval != 0) in usb_add_hcd()
2992 if (retval != 0) in usb_add_hcd()
3004 if (usb_hcd_is_primary_hcd(hcd) && hcd->irq > 0) in usb_add_hcd()
3053 hcd->rh_registered = 0; in usb_remove_hcd()
3084 if (hcd->irq > 0) in usb_remove_hcd()
3095 hcd->flags = 0; in usb_remove_hcd()
3146 if (err < 0) { in usb_hcd_setup_local_mem()
3152 return 0; in usb_hcd_setup_local_mem()
3178 return 0; in usb_mon_register()