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 0x00, 0x02, /* __le16 bcdUSB; v2.0 */
165 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */
166 0x00, /* __u8 bDeviceSubClass; */
167 0x00, /* __u8 bDeviceProtocol; [ usb 2.0 no TT ] */
168 0x40, /* __u8 bMaxPacketSize0; 64 Bytes */
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; */
184 0x12, /* __u8 bLength; */
186 0x10, 0x01, /* __le16 bcdUSB; v1.1 */
188 0x09, /* __u8 bDeviceClass; HUB_CLASSCODE */
189 0x00, /* __u8 bDeviceSubClass; */
190 0x00, /* __u8 bDeviceProtocol; [ low/full speeds only ] */
191 0x40, /* __u8 bMaxPacketSize0; 64 Bytes */
193 0x6b, 0x1d, /* __le16 idVendor; Linux Foundation 0x1d6b */
194 0x01, 0x00, /* __le16 idProduct; device 0x0001 */
197 0x03, /* __u8 iManufacturer; */
198 0x02, /* __u8 iProduct; */
199 0x01, /* __u8 iSerialNumber; */
200 0x01 /* __u8 bNumConfigurations; */
211 0x09, /* __u8 bLength; */
213 0x19, 0x00, /* __le16 wTotalLength; */
214 0x01, /* __u8 bNumInterfaces; (1) */
215 0x01, /* __u8 bConfigurationValue; */
216 0x00, /* __u8 iConfiguration; */
217 0xc0, /* __u8 bmAttributes;
221 4..0: resvd */
222 0x00, /* __u8 MaxPower; */
226 * one interface, protocol 0
236 0x09, /* __u8 if_bLength; */
238 0x00, /* __u8 if_bInterfaceNumber; */
239 0x00, /* __u8 if_bAlternateSetting; */
240 0x01, /* __u8 if_bNumEndpoints; */
241 0x09, /* __u8 if_bInterfaceClass; HUB_CLASSCODE */
242 0x00, /* __u8 if_bInterfaceSubClass; */
243 0x00, /* __u8 if_bInterfaceProtocol; [usb1.1 or single tt] */
244 0x00, /* __u8 if_iInterface; */
247 0x07, /* __u8 ep_bLength; */
249 0x81, /* __u8 ep_bEndpointAddress; IN Endpoint 1 */
250 0x03, /* __u8 ep_bmAttributes; Interrupt */
251 0x02, 0x00, /* __le16 ep_wMaxPacketSize; 1 + (MAX_ROOT_PORTS / 8) */
252 0xff /* __u8 ep_bInterval; (255ms -- usb 2.0 spec) */
258 0x09, /* __u8 bLength; */
260 0x19, 0x00, /* __le16 wTotalLength; */
261 0x01, /* __u8 bNumInterfaces; (1) */
262 0x01, /* __u8 bConfigurationValue; */
263 0x00, /* __u8 iConfiguration; */
264 0xc0, /* __u8 bmAttributes;
268 4..0: resvd */
269 0x00, /* __u8 MaxPower; */
273 * one interface, protocol 0
283 0x09, /* __u8 if_bLength; */
285 0x00, /* __u8 if_bInterfaceNumber; */
286 0x00, /* __u8 if_bAlternateSetting; */
287 0x01, /* __u8 if_bNumEndpoints; */
288 0x09, /* __u8 if_bInterfaceClass; HUB_CLASSCODE */
289 0x00, /* __u8 if_bInterfaceSubClass; */
290 0x00, /* __u8 if_bInterfaceProtocol; [usb1.1 or single tt] */
291 0x00, /* __u8 if_iInterface; */
294 0x07, /* __u8 ep_bLength; */
296 0x81, /* __u8 ep_bEndpointAddress; IN Endpoint 1 */
297 0x03, /* __u8 ep_bmAttributes; Interrupt */
300 (USB_MAXCHILDREN + 1 + 7) / 8, 0x00,
301 0x0c /* __u8 ep_bInterval; (256ms -- usb 2.0 spec) */
306 0x09, /* __u8 bLength; */
308 0x1f, 0x00, /* __le16 wTotalLength; */
309 0x01, /* __u8 bNumInterfaces; (1) */
310 0x01, /* __u8 bConfigurationValue; */
311 0x00, /* __u8 iConfiguration; */
312 0xc0, /* __u8 bmAttributes;
316 4..0: resvd */
317 0x00, /* __u8 MaxPower; */
320 0x09, /* __u8 if_bLength; */
322 0x00, /* __u8 if_bInterfaceNumber; */
323 0x00, /* __u8 if_bAlternateSetting; */
324 0x01, /* __u8 if_bNumEndpoints; */
325 0x09, /* __u8 if_bInterfaceClass; HUB_CLASSCODE */
326 0x00, /* __u8 if_bInterfaceSubClass; */
327 0x00, /* __u8 if_bInterfaceProtocol; */
328 0x00, /* __u8 if_iInterface; */
331 0x07, /* __u8 ep_bLength; */
333 0x81, /* __u8 ep_bEndpointAddress; IN Endpoint 1 */
334 0x03, /* __u8 ep_bmAttributes; Interrupt */
337 (USB_MAXCHILDREN + 1 + 7) / 8, 0x00,
338 0x0c, /* __u8 ep_bInterval; (256ms -- usb 2.0 spec) */
341 0x06, /* __u8 ss_bLength */
344 0x00, /* __u8 ss_bMaxBurst; allows 1 TX between ACKs */
345 0x00, /* __u8 ss_bmAttributes; 1 packet per service interval */
346 0x02, 0x00 /* __le16 ss_wBytesPerInterval; 15 bits for max 15 ports */
351 * 0 is unauthorized for all devices
356 #define USB_AUTHORIZE_NONE 0
363 …"Default USB device authorization: 0 is not authorized, 1 is authorized (default), 2 is authorized…
404 * @id: the string ID number (0: langids, 1: serial #, 2: product, 3: vendor)
420 static char const langids[4] = {4, USB_DT_STRING, 0x09, 0x04}; in rh_string()
424 case 0: in rh_string()
425 /* Array of LANGID codes (0x0409 is MSFT-speak for "en-us") */ in rh_string()
447 return 0; in rh_string()
460 unsigned len = 0; in rh_call_control()
462 u8 patch_wakeup = 0; in rh_call_control()
463 u8 patch_protocol = 0; in rh_call_control()
500 urb->actual_length = 0; in rh_call_control()
522 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
525 tbuf[1] = 0; in rh_call_control()
530 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control()
542 tbuf[0] = 1; in rh_call_control()
548 switch (wValue & 0xff00) { in rh_call_control()
594 if ((wValue & 0xff) < 4) in rh_call_control()
595 urb->actual_length = rh_string(wValue & 0xff, in rh_call_control()
607 tbuf[0] = 0; in rh_call_control()
624 tbuf[0] = 0; in rh_call_control()
625 tbuf[1] = 0; in rh_call_control()
669 if (status < 0) { in rh_call_control()
670 len = 0; in rh_call_control()
673 "CTRL: TypeReq=0x%x val=0x%x " in rh_call_control()
674 "idx=0x%x len=%d ==> %d\n", in rh_call_control()
678 } else if (status > 0) { in rh_call_control()
681 status = 0; in rh_call_control()
713 return 0; in rh_call_control()
739 if (length > 0) { in usb_hcd_poll_rh_status()
748 status = 0; in usb_hcd_poll_rh_status()
759 length = 0; in usb_hcd_poll_rh_status()
770 (length == 0 && hcd->status_urb != NULL)) in usb_hcd_poll_rh_status()
810 retval = 0; in rh_queue_status()
840 if (usb_endpoint_num(&urb->ep->desc) == 0) { /* Control URB */ in usb_rh_urb_dequeue()
869 memset(&bus->devmap, 0, sizeof(bus->devmap)); in usb_bus_init()
875 bus->bandwidth_allocated = 0; in usb_bus_init()
876 bus->bandwidth_int_reqs = 0; in usb_bus_init()
877 bus->bandwidth_isoc_reqs = 0; in usb_bus_init()
892 * Return: 0 if successful. A negative error code otherwise.
901 if (busnum < 0) { in usb_register_bus()
912 return 0; in usb_register_bus()
953 * Return: 0 if successful. A negative error code otherwise.
982 if (le16_to_cpu(usb_dev->descriptor.bcdUSB) >= 0x0201) { in register_root_hub()
1125 * Return: 0 for no error, otherwise a negative error code (in which case
1132 int rc = 0; in usb_hcd_link_urb_to_ep()
1157 urb->unlinked = 0; in usb_hcd_link_urb_to_ep()
1180 * Return: 0 for no error, otherwise a negative error code (in which case
1207 return 0; in usb_hcd_check_unlink_urb()
1289 return 0; in hcd_alloc_coherent()
1306 *dma_handle = 0; in hcd_free_coherent()
1388 int ret = 0; in usb_hcd_map_urb_for_dma()
1428 if (urb->transfer_buffer_length != 0 in usb_hcd_map_urb_for_dma()
1437 if (ret == 0) in usb_hcd_map_urb_for_dma()
1532 if (likely(status == 0)) { in usb_hcd_submit_urb()
1597 * then urb->use_count must be 0, since disconnected in usb_hcd_unlink_urb()
1601 if (atomic_read(&urb->use_count) > 0) { in usb_hcd_unlink_urb()
1602 retval = 0; in usb_hcd_unlink_urb()
1606 if (retval == 0) { in usb_hcd_unlink_urb()
1609 if (retval == 0) in usb_hcd_unlink_urb()
1638 if (likely(status == 0)) in __usb_hcd_giveback_urb()
1849 int ret = 0; in usb_hcd_alloc_bandwidth()
1855 return 0; in usb_hcd_alloc_bandwidth()
1857 /* Configuration is being removed - set configuration 0 */ in usb_hcd_alloc_bandwidth()
1868 return 0; in usb_hcd_alloc_bandwidth()
1871 * each interface's alt setting 0 and ask the HCD to check the bandwidth in usb_hcd_alloc_bandwidth()
1872 * of the bus. There will always be bandwidth for endpoint 0, so it's in usb_hcd_alloc_bandwidth()
1877 /* Remove endpoints (except endpoint 0, which is always on the in usb_hcd_alloc_bandwidth()
1884 if (ret < 0) in usb_hcd_alloc_bandwidth()
1890 if (ret < 0) in usb_hcd_alloc_bandwidth()
1894 for (i = 0; i < num_intfs; ++i) { in usb_hcd_alloc_bandwidth()
1898 first_alt = &new_config->intf_cache[i]->altsetting[0]; in usb_hcd_alloc_bandwidth()
1900 /* Set up endpoints for alternate interface setting 0 */ in usb_hcd_alloc_bandwidth()
1901 alt = usb_find_alt_setting(new_config, iface_num, 0); in usb_hcd_alloc_bandwidth()
1903 /* No alt setting 0? Pick the first setting. */ in usb_hcd_alloc_bandwidth()
1906 for (j = 0; j < alt->desc.bNumEndpoints; j++) { in usb_hcd_alloc_bandwidth()
1908 if (ret < 0) in usb_hcd_alloc_bandwidth()
1922 * and the device will think alt setting 0 is installed. in usb_hcd_alloc_bandwidth()
1925 * out the alternate setting 0 structure, or the first in usb_hcd_alloc_bandwidth()
1927 * setting 0. in usb_hcd_alloc_bandwidth()
1929 cur_alt = usb_altnum_to_altsetting(iface, 0); in usb_hcd_alloc_bandwidth()
1931 cur_alt = &iface->altsetting[0]; in usb_hcd_alloc_bandwidth()
1935 for (i = 0; i < cur_alt->desc.bNumEndpoints; i++) { in usb_hcd_alloc_bandwidth()
1938 if (ret < 0) in usb_hcd_alloc_bandwidth()
1942 for (i = 0; i < new_alt->desc.bNumEndpoints; i++) { in usb_hcd_alloc_bandwidth()
1945 if (ret < 0) in usb_hcd_alloc_bandwidth()
1951 if (ret < 0) in usb_hcd_alloc_bandwidth()
1995 usb_settoggle(udev, epnum, is_out, 0); in usb_hcd_reset_endpoint()
1997 usb_settoggle(udev, epnum, !is_out, 0); in usb_hcd_reset_endpoint()
2033 for (i = 0; i < num_eps; i++) { in usb_alloc_streams()
2044 if (ret < 0) in usb_alloc_streams()
2047 for (i = 0; i < num_eps; i++) in usb_alloc_streams()
2064 * Return: 0 on success. On failure, a negative error code.
2080 for (i = 0; i < num_eps; i++) in usb_free_streams()
2085 if (ret < 0) in usb_free_streams()
2088 for (i = 0; i < num_eps; i++) in usb_free_streams()
2089 eps[i]->streams = 0; in usb_free_streams()
2142 urb = usb_alloc_urb(0, GFP_KERNEL); in request_single_step_set_feature_urb()
2146 urb->pipe = usb_rcvctrlpipe(udev, 0); in request_single_step_set_feature_urb()
2155 urb->actual_length = 0; in request_single_step_set_feature_urb()
2199 dr->wIndex = 0; in ehset_single_step_set_feature()
2223 retval = hcd->driver->submit_single_step_set_feature(hcd, urb, 0); in ehset_single_step_set_feature()
2256 return 0; in hcd_bus_suspend()
2266 if (status == 0) { in hcd_bus_suspend()
2279 if (status != 0) { in hcd_bus_suspend()
2308 return 0; in hcd_bus_resume()
2321 return 0; in hcd_bus_resume()
2326 if (status == 0) in hcd_bus_resume()
2329 if (status == 0) { in hcd_bus_resume()
2391 pm_wakeup_event(&hcd->self.root_hub->dev, 0); in usb_hcd_resume_root_hub()
2416 * Return: 0 if successful.
2434 if (status == 0) in usb_bus_start_enum()
2593 timer_setup(&hcd->rh_timer, rh_timer_func, 0); in __usb_create_hcd()
2724 if (retval != 0) { in usb_hcd_request_irqs()
2731 dev_info(hcd->self.controller, "irq %d, %s 0x%08llx\n", irqnum, in usb_hcd_request_irqs()
2736 hcd->irq = 0; in usb_hcd_request_irqs()
2738 dev_info(hcd->self.controller, "%s 0x%08llx\n", in usb_hcd_request_irqs()
2743 return 0; in usb_hcd_request_irqs()
2769 hcd->rh_pollable = 0; in usb_stop_hcd()
2860 if (retval != 0) { in usb_add_hcd()
2866 if (retval < 0) in usb_add_hcd()
2869 rhdev = usb_alloc_dev(NULL, &hcd->self, 0); in usb_add_hcd()
2925 if (retval < 0) { in usb_add_hcd()
2958 if (retval < 0) { in usb_add_hcd()
2967 if (retval != 0) in usb_add_hcd()
2977 if (retval != 0) in usb_add_hcd()
2989 if (usb_hcd_is_primary_hcd(hcd) && hcd->irq > 0) in usb_add_hcd()
3038 hcd->rh_registered = 0; in usb_remove_hcd()
3069 if (hcd->irq > 0) in usb_remove_hcd()
3080 hcd->flags = 0; in usb_remove_hcd()
3135 if (err < 0) { in usb_hcd_setup_local_mem()
3141 return 0; in usb_hcd_setup_local_mem()
3167 return 0; in usb_mon_register()