Home | History | Annotate | Download | only in multimedia

Lines Matching refs:hcd

141         @param hcd_id: The HCD id, e.g. 0000:00:1a.0
142 @param hcd_path: The path to HCD, e.g. /sys/bus/pci/drivers/echi_hcd.
145 logging.debug('hcd id: %s, hcd path: %s', hcd_id, hcd_path)
151 """Resets HCD by unbinding and binding driver."""
165 (HCD), then, HCD will re-enumerate all the USB devices. This method has
186 # The path to search for HCD on PCI or platform bus.
187 # The HCD id should be filled in the end.
192 # Skips auto HCD for issue crbug.com/537513.
194 # This essentially means we can not control HCD on these boards.
212 """Skips HCD controlling on some boards."""
215 logging.info('Skip HCD controlling on board %s', board)
223 We can find the HCD id for USB from driver's realpath.
226 /sys/devices/soc0/70090000.usb/xhci-hcd.0.auto/usb1
227 => HCD id is xhci-hcd.0.auto
232 => HCD id is 0000:00:14.0
234 There might be multiple HCD ids like 0000:00:1a.0 for usb1,
237 @raises: USBDeviceDriversManagerError if HCD id can not be found.
254 raise USBDeviceDriversManagerError('Can not find HCD id')
257 logging.debug('Found HCD ids: %s', self._hcd_ids)
261 """Finds HCD paths from HCD id and create HostControllerDrivers.
263 HCD is under /sys/bus/pci/drivers/ for x86 boards, and under
266 For each HCD id, finds HCD by checking HCD id under it, e.g.
271 HCD path found for a given HCD id.
286 'More than 1 HCD id path found: %s' % hcd_id_paths)
297 """Resets host controller by unbinding then binding HCD.
299 @raises: USBDeviceDriversManagerError if there is no HCD to control.
303 raise USBDeviceDriversManagerError('HCD is not found yet')
304 for hcd in self._hcds:
305 hcd.reset()