Searched refs:hdev (Results 1 – 2 of 2) sorted by relevance
395 sunos_usb_close_all_eps(sunos_dev_handle_priv_t *hdev) in sunos_usb_close_all_eps() argument401 if (hdev->eps[i].datafd != -1) { in sunos_usb_close_all_eps()402 (void) close(hdev->eps[i].datafd); in sunos_usb_close_all_eps()403 hdev->eps[i].datafd = -1; in sunos_usb_close_all_eps()405 if (hdev->eps[i].statfd != -1) { in sunos_usb_close_all_eps()406 (void) close(hdev->eps[i].statfd); in sunos_usb_close_all_eps()407 hdev->eps[i].statfd = -1; in sunos_usb_close_all_eps()413 sunos_usb_close_ep0(sunos_dev_handle_priv_t *hdev, sunos_dev_priv_t *dpriv) in sunos_usb_close_ep0() argument415 if (hdev->eps[0].datafd >= 0) { in sunos_usb_close_ep0()416 close(hdev->eps[0].datafd); in sunos_usb_close_ep0()[all …]
62 static inline bool usb_hub_is_superspeed(struct usb_device *hdev) in usb_hub_is_superspeed() argument64 return hdev->descriptor.bDeviceProtocol == 3; in usb_hub_is_superspeed()815 struct udevice *hdev; in usb_hub_configure() local818 hdev = dev->dev->parent; in usb_hub_configure()819 while (!usb_hub_is_root_hub(hdev)) { in usb_hub_configure()821 hdev = hdev->parent; in usb_hub_configure()