Lines Matching refs:hc
37 * \param hc pointer ot the generic host controller
41 usb_error_t usb_hc_init(usb_host_controller_t *hc, usb_hc_version_t version,
44 if (hc == NULL) {
49 hc->done_queue.head.first = NULL;
50 hc->done_queue.head.last_next = &(hc->done_queue.head.first);
52 hc->intr_queue.head.first = NULL;
53 hc->intr_queue.head.last_next = &(hc->intr_queue.head.first);
70 hc->hc_type = USB_OHCI;
71 hc->hc_control = controller;
72 ((usb_ohci_hc_t*) controller)->controller = hc;
86 hc->hc_type = USB_EHCI;
87 hc->hc_control = controller;
88 ((usb_ehci_hc_t*) controller)->controller = hc;
91 hc->handle_intr = usb_ehci_interrupt;
108 hc->next = NULL;
109 hc->prev_next = NULL;
110 host_controllers = hc;
112 hc->next = host_controllers;
113 host_controllers->prev_next = &(hc->next);
114 host_controllers = hc;
116 hc->initialized = 1;
135 usb_host_controller_t *hc = host_controllers;
137 while (hc != NULL) {
138 if (hc->handle_intr != NULL) {
139 (hc->handle_intr)(hc);
141 hc = hc->next;