Lines Matching refs:hd
207 usbd_get_hub_desc(struct usbd_device *dev, usb_hub_descriptor_t *hd, int speed) in usbd_get_hub_desc() argument
232 nports = hd->bNbrPorts = UHD_SS_NPORTS_MAX; in usbd_get_hub_desc()
235 hd->bDescLength = USB_HUB_DESCRIPTOR_SIZE + in usbd_get_hub_desc()
237 memcpy(hd->DeviceRemovable, hssd.DeviceRemovable, rmvlen); in usbd_get_hub_desc()
238 hd->bDescriptorType = hssd.bDescriptorType; in usbd_get_hub_desc()
239 hd->bNbrPorts = hssd.bNbrPorts; in usbd_get_hub_desc()
240 hd->wHubCharacteristics[0] = hssd.wHubCharacteristics[0]; in usbd_get_hub_desc()
241 hd->wHubCharacteristics[1] = hssd.wHubCharacteristics[1]; in usbd_get_hub_desc()
242 hd->bPwrOn2PwrGood = hssd.bPwrOn2PwrGood; in usbd_get_hub_desc()
243 hd->bHubContrCurrent = hssd.bHubContrCurrent; in usbd_get_hub_desc()
251 err = usbd_do_request(dev, &req, hd); in usbd_get_hub_desc()
252 nports = hd->bNbrPorts; in usbd_get_hub_desc()
256 err = usbd_do_request(dev, &req, hd); in usbd_get_hub_desc()
532 usb_hub_descriptor_t *hd = &dev->ud_hub->uh_hubdesc; in uhub_explore() local
563 for (port = 1; port <= hd->bNbrPorts; port++) { in uhub_explore()
598 for (port = 1; port <= hd->bNbrPorts; port++) { in uhub_explore()