• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/usr/drivers/usb/usb_manager/controller/ehci/

Lines Matching defs:device

19 // Mackerel device
171 * \brief resumes a suspended USB device on this host controller
173 * \param device the usb devices to to resume
177 void usb_ehci_device_resume(struct usb_device *device)
179 assert(device->controller->hc_type == USB_EHCI);
181 struct usb_xfer_queue *queue = &device->controller->intr_queue;
185 /* just handle the xfers that are belonging to this device */
186 if (xfer->device == device) {
187 usb_ehci_hc_t *hc = device->controller->hc_control;
210 * \brief suspends a attached USB device by pausing all its transfers
212 * \param device the usb device to suspend
214 void usb_ehci_device_suspend(struct usb_device *device)
216 assert(device->controller->hc_type == USB_EHCI);
218 struct usb_xfer_queue *queue = &device->controller->intr_queue;
222 if (xfer->device == device) {
223 usb_ehci_hc_t *hc = device->controller->hc_control;
249 * \brief initializes a device endpoint with the values given by the descriptor
251 * \param device the device, this endpoint belongs
255 void usb_ehci_endpoint_init(struct usb_device *device,
258 assert(device->controller->hc_type == USB_EHCI);
260 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) device->controller->hc_control;
263 * CASE 1: The device is the root hub. Setting up endpoints for the root
266 if (device->device_index == hc->rh_device_address) {
271 * CASE 2: the attached device is not a high speed device and is directly
276 if (device->speed != USB_SPEED_HIGH) {
277 if ((device->hs_hub_address == 0) || (device->hs_hub_port_number == 0)
278 || (device->parent_hs_hub == NULL)
279 || (device->parent_hs_hub->hub == NULL)) {
295 * the device speed
297 if (device->speed == USB_SPEED_HIGH) {
299 } else if (device->speed == USB_SPEED_FULL) {