Searched refs:hc (Results 1 - 25 of 27) sorted by relevance

12

/barrelfish-master/usr/drivers/usb/usb_manager/
H A Dusb_controller.c37 * \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, argument
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
135 usb_host_controller_t *hc = host_controllers; local
[all...]
H A Dusb_manager.c390 usb_host_controller_t *hc = malloc(sizeof(*hc)); local
391 memset(hc, 0, sizeof(*hc));
400 uerr = usb_hc_init(hc, USB_EHCI, controller_base);
408 uerr = usb_hc_init(hc, USB_OHCI, controller_base);
416 uerr = usb_hc_init(hc, USB_UHCI, controller_base);
424 uerr = usb_hc_init(hc, USB_XHCI, controller_base);
427 if (uerr != USB_ERR_OK && hc != NULL) {
428 free(hc);
[all...]
H A Dusb_device.c438 * \param hc the host controller of the newly discovered device
449 struct usb_device *usb_device_alloc(struct usb_host_controller *hc, argument
461 while (device_index < hc->devices_max) {
462 if (hc->devices[device_index] == NULL) {
468 if (device_index == hc->devices_max) {
497 device->controller = hc;
637 hc->devices[device_index] = device;
/barrelfish-master/usr/drivers/usb/usb_manager/controller/ehci/
H A Dusb_ehci.c34 * \param hc the ehci controller to reset
36 usb_error_t usb_ehci_hc_reset(usb_ehci_hc_t *hc) argument
39 ehci_usbcmd_hcr_wrf(&hc->ehci_base, 1);
45 if (ehci_usbcmd_hcr_rdf(&hc->ehci_base)) {
56 if (ehci_usbcmd_hcr_rdf(&hc->ehci_base)) {
68 if ((ehci_usbcmd_rawrd(&hc->ehci_base) & 0xFFFFF0FF) != 0x00080000) {
72 if (ehci_usbsts_rawrd(&hc->ehci_base) != 0x00001000) {
76 if (ehci_usbintr_rawrd(&hc->ehci_base) != 0x00000000) {
80 if (ehci_frindex_rawrd(&hc->ehci_base) != 0x00000000) {
84 if (ehci_ctrldssegment_rawrd(&hc
105 usb_ehci_hc_halt(usb_ehci_hc_t *hc) argument
133 usb_ehci_initialize_controller(usb_ehci_hc_t *hc) argument
236 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) host->hc_control; local
323 usb_ehci_init(usb_ehci_hc_t *hc, uintptr_t base) argument
[all...]
H A Dusb_ehci_bus.h27 void usb_ehci_sleep(struct usb_host_controller *hc, uint32_t state);
29 void usb_ehci_set_power(struct usb_host_controller *hc);
31 void usb_ehci_poll(usb_ehci_hc_t *hc);
H A Dusb_ehci_root_hub.c131 * \param hc the host controller which got the interrupt
133 void usb_ehci_roothub_interrupt(usb_ehci_hc_t *hc) argument
137 for (uint16_t i = 0; i < hc->rh_num_ports; i++) {
138 ehci_portsc_t ps = ehci_portsc_rd(&hc->ehci_base, i);
146 usb_hub_root_interrupt(hc->controller);
164 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) device->controller->hc_control; local
166 const void *data = (const void *) &hc->rh_desc;
181 hc->rh_desc.temp[0] = hc->rh_device_config;
202 hc
517 usb_ehci_roothub_port_disown(usb_ehci_hc_t *hc, uint16_t portno) argument
[all...]
H A Dusb_ehci_bus.c52 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) (hostc->hc_control); local
54 usb_ehci_poll(hc);
60 * \param hc host ehci host controller to poll
66 void usb_ehci_poll(usb_ehci_hc_t *hc) argument
71 struct usb_xfer *xfer = hc->controller->intr_queue.head.first;
122 * \param hc the host controller to sleep / wakeup
127 void usb_ehci_sleep(struct usb_host_controller *hc, uint32_t state) argument
129 assert(hc->hc_type == USB_EHCI);
131 usb_ehci_hc_t *ehci_hc = hc->hc_control;
149 usb_ehci_do_poll(hc);
165 usb_ehci_set_power(struct usb_host_controller *hc) argument
187 usb_ehci_hc_t *hc = device->controller->hc_control; local
223 usb_ehci_hc_t *hc = device->controller->hc_control; local
260 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) device->controller->hc_control; local
[all...]
H A Dusb_ehci_pipe.c69 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) (xfer->host_controller->hc_control); local
72 usb_ehci_xfer_standard_setup(xfer, &(hc->qh_async_last));
141 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) (xfer->host_controller->hc_control); local
146 usb_ehci_xfer_standard_setup(xfer, &(hc->qh_async_last));
187 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) xfer->host_controller->hc_control; local
204 if (hc->qh_intr_stat[tmp] < hc->qh_intr_stat[match]) {
214 hc->qh_intr_stat[match]++;
228 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) xfer->host_controller->hc_control; local
231 hc
257 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) xfer->host_controller->hc_control; local
[all...]
H A Dusb_ehci_root_hub.h23 void usb_ehci_roothub_interrupt(usb_ehci_hc_t *hc);
H A Dusb_ehci_memory.h39 void usb_ehci_pframes_alloc(usb_ehci_hc_t *hc);
H A Dusb_ehci_xfer.c298 usb_ehci_hc_t *hc = (usb_ehci_hc_t *) xfer->host_controller->hc_control; local
306 hc->qh_async_last);
312 hc->qh_intr_last[xfer->intr_qh_pos]);
348 usb_ehci_hc_t *hc; ///< the host controller member in struct:usb_ehci_qtd_setup_param
354 uint16_t max_frame_size; ///< the maximum frame size of the hc
374 usb_paddr_t terminate = setup->hc->qh_terminate->qh_self;
375 usb_paddr_t qtd_alt_next = setup->hc->qh_terminate->qh_self;
565 .hc = (usb_ehci_hc_t *) xfer->host_controller->hc_control,
H A Dusb_ehci.h704 usb_error_t usb_ehci_init(usb_ehci_hc_t *hc, uintptr_t controller_base);
705 usb_error_t usb_ehci_hc_reset(usb_ehci_hc_t *hc);
706 usb_error_t usb_ehci_initialize_controller(usb_ehci_hc_t *hc);
H A Dusb_ehci_memory.c455 void usb_ehci_pframes_alloc(usb_ehci_hc_t *hc) argument
463 hc->pframes = page->page.buffer;
464 hc->pframes_phys = page->page.phys_addr;
/barrelfish-master/usr/drivers/usb/usb_manager/controller/ohci/
H A Dusb_ohci.c48 * \param hc the host controller
51 static usb_error_t usb_ohci_init_controller(usb_ohci_hc_t *hc, uint8_t suspend) argument
56 ohci_control_pr(status, 512, hc->ohci_base);
62 if (ohci_control_ir_rdf(hc->ohci_base)) {
67 ohci_control_hcfs_wrf(hc->ohci_base, 0);
77 ohci_fm_interval_t ival = ohci_fm_interval_rd(hc->ohci_base);
79 ohci_cmdstatus_hcr_wrf(hc->ohci_base, 1);
87 if (!ohci_cmdstatus_hcr_rdf(hc->ohci_base)) {
91 if (ohci_cmdstatus_hcr_rdf(hc->ohci_base)) {
97 ohci_control_hcfs_wrf(hc
191 usb_ohci_init(usb_ohci_hc_t *hc, uintptr_t base) argument
275 usb_ohci_detach(usb_ohci_hc_t *hc) argument
284 usb_ohci_interrupt(usb_ohci_hc_t *hc) argument
[all...]
H A Dusb_ohci_bus.h14 void usb_ohci_do_poll(struct usb_host_controller *hc);
H A Dusb_ohci_root_hub.h22 void usb_ohci_root_hub_interrupt(usb_ohci_hc_t *hc);
H A Dusb_ohci_root_hub.c84 * \param hc the host controller
86 void usb_ohci_root_hub_interrupt(usb_ohci_hc_t *hc) argument
89 memset(hc->root_hub_intr_data, 0, sizeof(hc->root_hub_intr_data));
92 //ohci_rh_status_t hstatus = ohci_rh_status_rd(hc->ohci_base);
96 uint16_t num_ports = hc->root_hub_num_ports + 1;
97 if (num_ports > (8 * sizeof(hc->root_hub_intr_data))) {
98 num_ports = (8 * sizeof(hc->root_hub_intr_data));
102 // ohci_rh_portstat_pr(buf, 4047, hc->ohci_base);
108 ps = ohci_rh_portstat_rd(hc
128 usb_ohci_root_hub_sc_intr_enable(usb_ohci_hc_t *hc) argument
156 usb_ohci_hc_t *hc = (usb_ohci_hc_t *) device->controller->hc_control; local
[all...]
H A Dusb_ohci_bus.c47 * \param hc pointer to the host controller
49 void usb_ohci_do_poll(struct usb_host_controller *hc) argument
58 for ((xfer) = (((&hc->intr_queue.head))->first); (xfer); (xfer) =
87 usb_ohci_hc_t *hc = (usb_ohci_hc_t *) device->controller->hc_control; local
92 if (device->device_index != hc->root_hub_address) {
125 usb_ohci_hc_t *hc; local
128 hc = (usb_ohci_hc_t *) (device->controller->hc_control);
135 usb_ohci_append_qh(ed, hc->qh_bulk_last);
136 ohci_cmdstatus_blf_wrf(hc->ohci_base, 0x1);
139 usb_ohci_append_qh(ed, hc
163 usb_ohci_hc_t *hc; local
[all...]
H A Dusb_ohci_pipe.c95 usb_ohci_hc_t *hc = (usb_ohci_hc_t *) xfer->host_controller->hc_control; local
98 usb_ohci_xfer_start(xfer, &hc->qh_bulk_last);
168 usb_ohci_hc_t *hc = (usb_ohci_hc_t *) xfer->host_controller->hc_control; local
171 usb_ohci_xfer_start(xfer, &hc->qh_ctrl_last);
209 usb_ohci_hc_t *hc = (usb_ohci_hc_t *) xfer->host_controller->hc_control; local
232 if (hc->intr_stats[x] < hc->intr_stats[best]) {
243 hc->intr_stats[best]++;
256 usb_ohci_hc_t *hc = (usb_ohci_hc_t *) xfer->host_controller->hc_control; local
259 hc
285 usb_ohci_hc_t *hc = (usb_ohci_hc_t *) xfer->host_controller->hc_control; local
[all...]
H A Dusb_ohci_xfer.c401 usb_ohci_hc_t *hc = (usb_ohci_hc_t *) xfer->host_controller->hc_control; local
410 usb_ohci_remove_qh(ed, hc->qh_isoc_last);
413 usb_ohci_remove_qh(ed, hc->qh_intr_last[xfer->intr_qh_pos]);
416 usb_ohci_remove_qh(ed, hc->qh_ctrl_last);
419 usb_ohci_remove_qh(ed, hc->qh_bulk_last);
/barrelfish-master/lib/cxx/cxx/
H A Ddebug.cpp155 size_t hc = hash<const void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_);
156 __c_node* c = __cbeg_[hc];
199 size_t hc = hash<void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_); local
200 __c_node* p = __cbeg_[hc];
204 __cbeg_[hc] = __fn(buf, __c, p);
250 size_t hc = hash<void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_); local
251 __c_node* p = __cbeg_[hc];
281 size_t hc = hash<void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_); local
282 __c_node* p = __cbeg_[hc];
307 size_t hc local
334 size_t hc = hash<void*>()(__c) % static_cast<size_t>(__cend_ - __cbeg_); local
450 size_t hc = hash<void*>()(c1) % static_cast<size_t>(__cend_ - __cbeg_); local
[all...]
/barrelfish-master/usr/drivers/usb/usb_manager/include/
H A Dusb_controller.h81 void (*xfer_poll)(struct usb_host_controller *hc);
140 usb_error_t usb_hc_init(usb_host_controller_t *hc, usb_hc_version_t version,
H A Dusb_device.h134 struct usb_device *usb_device_alloc(struct usb_host_controller *hc, struct usb_device *parent_hub, uint8_t depth,
/barrelfish-master/usr/drivers/usb/usb_manager/hub/
H A Dusb_hub.c588 struct usb_host_controller *hc = hub_device->controller; local
589 struct usb_device *child = hc->devices[port->device_index];
640 struct usb_host_controller *hc = dev->controller; local
659 hc->uframe_usage[cs] += length;
669 hc->uframe_usage[cs] += length;
819 void usb_hub_root_interrupt(struct usb_host_controller *hc) argument
822 if (hc == NULL) {
826 if ((hc->devices == NULL) || (hc->root_hub == NULL)) {
830 if (usb_hub_explore(hc
[all...]
/barrelfish-master/lib/barrelfish/
H A Dram_alloc.c85 struct hyper_rpc_client *hc = get_hyper_rpc_client();
86 err = hc->vtbl.npt_map(hc, *ret, &err2);

Completed in 118 milliseconds

12