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