Lines Matching defs:device
75 * \param device the device the endpoint belongs to
79 static void usb_ohci_ep_init(struct usb_device *device,
82 if (device->flags.usb_mode != USB_MODE_HOST) {
83 /* this usb device mode is not supported */
87 usb_ohci_hc_t *hc = (usb_ohci_hc_t *) device->controller->hc_control;
92 if (device->device_index != hc->root_hub_address) {
101 if (device->speed == USB_SPEED_FULL) {
117 * \brief this function resumes an USB device, this function takes
120 * \param device the device to suspend
122 static void usb_ohci_device_resume(struct usb_device *device)
128 hc = (usb_ohci_hc_t *) (device->controller->hc_control);
130 for ((xfer) = (((&device->controller->intr_queue.head))->first); (xfer);
155 * \brief this function suspends an USB device. the outstanding transfers
156 * for this device are descheduled and inserted into the wait list
158 * \param device the device to resume
160 static void usb_ohci_device_suspend(struct usb_device *device)
166 hc = (usb_ohci_hc_t *) (device->controller->hc_control);
168 for ((xfer) = (((&device->controller->intr_queue.head))->first); (xfer);
171 * only remove those transfers that belong to the given device
173 if (xfer->device == device) {