/drivers/usb/host/ |
H A D | uhci-hcd.c | 49 #include "uhci-hcd.h" 69 * show all queues in /sys/kernel/debug/uhci/[pci_addr] 91 static void suspend_rh(struct uhci_hcd *uhci, enum uhci_rh_state new_state); 92 static void wakeup_rh(struct uhci_hcd *uhci); 93 static void uhci_get_current_frame_number(struct uhci_hcd *uhci); 98 static __hc32 uhci_frame_skel_link(struct uhci_hcd *uhci, int frame) argument 120 return LINK_TO_QH(uhci, uhci->skelqh[skelnum]); 123 #include "uhci-debug.c" 124 #include "uhci 130 finish_reset(struct uhci_hcd *uhci) argument 151 uhci_hc_died(struct uhci_hcd *uhci) argument 167 check_and_reset_hc(struct uhci_hcd *uhci) argument 184 uhci_generic_reset_hc(struct uhci_hcd *uhci) argument 210 uhci_generic_check_and_reset_hc(struct uhci_hcd *uhci) argument 249 configure_hc(struct uhci_hcd *uhci) argument 266 resume_detect_interrupts_are_broken(struct uhci_hcd *uhci) argument 277 global_suspend_mode_is_broken(struct uhci_hcd *uhci) argument 364 uhci_get_current_frame_number(uhci); variable 379 uhci_scan_schedule(uhci); variable 380 uhci_fsbr_off(uhci); variable 383 start_rh(struct uhci_hcd *uhci) argument 432 start_rh(uhci); variable 440 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 504 uhci_get_current_frame_number(struct uhci_hcd *uhci) argument 518 release_uhci(struct uhci_hcd *uhci) argument 565 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 709 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 725 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 752 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 770 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 794 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 809 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local [all...] |
H A D | uhci-pci.c | 4 * Extracted from uhci-hcd.c: 26 static void uhci_pci_reset_hc(struct uhci_hcd *uhci) argument 28 uhci_reset_hc(to_pci_dev(uhci_dev(uhci)), uhci->io_addr); 37 static int uhci_pci_check_and_reset_hc(struct uhci_hcd *uhci) argument 39 return uhci_check_and_reset_hc(to_pci_dev(uhci_dev(uhci)), 40 uhci->io_addr); 45 * This function is called at the end of configure_hc in uhci-hcd.c. 47 static void uhci_pci_configure_hc(struct uhci_hcd *uhci) argument 49 struct pci_dev *pdev = to_pci_dev(uhci_dev(uhci)); 59 uhci_pci_resume_detect_interrupts_are_broken(struct uhci_hcd *uhci) argument 91 uhci_pci_global_suspend_mode_is_broken(struct uhci_hcd *uhci) argument 115 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 169 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 208 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local [all...] |
H A D | uhci-hub.c | 42 static int any_ports_active(struct uhci_hcd *uhci) argument 46 for (port = 0; port < uhci->rh_numports; ++port) { 47 if ((uhci_readw(uhci, USBPORTSC1 + port * 2) & 49 test_bit(port, &uhci->port_c_suspend)) 55 static inline int get_hub_status_data(struct uhci_hcd *uhci, char *buf) argument 70 for (port = 0; port < uhci->rh_numports; ++port) { 71 if ((uhci_readw(uhci, USBPORTSC1 + port * 2) & mask) || 72 test_bit(port, &uhci->port_c_suspend)) 79 status = uhci_readw(uhci, port_addr); \ 83 uhci_writew(uhci, statu 94 uhci_finish_suspend(struct uhci_hcd *uhci, int port, unsigned long port_addr) argument 123 wait_for_HP(struct uhci_hcd *uhci, unsigned long port_addr) argument 135 uhci_check_ports(struct uhci_hcd *uhci) argument 186 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 244 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local [all...] |
H A D | uhci-hcd.h | 81 #define UHCI_PTR_BITS(uhci) cpu_to_hc32((uhci), 0x000F) 82 #define UHCI_PTR_TERM(uhci) cpu_to_hc32((uhci), 0x0001) 83 #define UHCI_PTR_QH(uhci) cpu_to_hc32((uhci), 0x0002) 84 #define UHCI_PTR_DEPTH(uhci) cpu_to_hc32((uhci), 0x0004) 85 #define UHCI_PTR_BREADTH(uhci) cpu_to_hc32((uhci), 462 uhci_to_hcd(struct uhci_hcd *uhci) argument 501 uhci_readl(const struct uhci_hcd *uhci, int reg) argument 506 uhci_writel(const struct uhci_hcd *uhci, u32 val, int reg) argument 511 uhci_readw(const struct uhci_hcd *uhci, int reg) argument 516 uhci_writew(const struct uhci_hcd *uhci, u16 val, int reg) argument 521 uhci_readb(const struct uhci_hcd *uhci, int reg) argument 526 uhci_writeb(const struct uhci_hcd *uhci, u8 val, int reg) argument 548 uhci_readl(const struct uhci_hcd *uhci, int reg) argument 560 uhci_writel(const struct uhci_hcd *uhci, u32 val, int reg) argument 572 uhci_readw(const struct uhci_hcd *uhci, int reg) argument 584 uhci_writew(const struct uhci_hcd *uhci, u16 val, int reg) argument 596 uhci_readb(const struct uhci_hcd *uhci, int reg) argument 608 uhci_writeb(const struct uhci_hcd *uhci, u8 val, int reg) argument 631 cpu_to_hc32(const struct uhci_hcd *uhci, const u32 x) argument 639 hc32_to_cpu(const struct uhci_hcd *uhci, const __hc32 x) argument 648 cpu_to_hc32(const struct uhci_hcd *uhci, const u32 x) argument 654 hc32_to_cpu(const struct uhci_hcd *uhci, const __hc32 x) argument [all...] |
H A D | uhci-q.c | 28 static void uhci_set_next_interrupt(struct uhci_hcd *uhci) argument 30 if (uhci->is_stopped) 31 mod_timer(&uhci_to_hcd(uhci)->rh_timer, jiffies); 32 uhci->term_td->status |= cpu_to_hc32(uhci, TD_CTRL_IOC); 35 static inline void uhci_clear_next_interrupt(struct uhci_hcd *uhci) argument 37 uhci->term_td->status &= ~cpu_to_hc32(uhci, TD_CTRL_IOC); 46 static void uhci_fsbr_on(struct uhci_hcd *uhci) argument 53 uhci 59 uhci_fsbr_off(struct uhci_hcd *uhci) argument 71 uhci_add_fsbr(struct uhci_hcd *uhci, struct urb *urb) argument 79 uhci_urbp_wants_fsbr(struct uhci_hcd *uhci, struct urb_priv *urbp) argument 94 struct uhci_hcd *uhci = (struct uhci_hcd *) _uhci; local 106 uhci_alloc_td(struct uhci_hcd *uhci) argument 124 uhci_free_td(struct uhci_hcd *uhci, struct uhci_td *td) argument 134 uhci_fill_td(struct uhci_hcd *uhci, struct uhci_td *td, u32 status, u32 token, u32 buffer) argument 155 uhci_insert_td_in_frame_list(struct uhci_hcd *uhci, struct uhci_td *td, unsigned framenum) argument 182 uhci_remove_td_from_frame_list(struct uhci_hcd *uhci, struct uhci_td *td) argument 215 uhci_remove_tds_from_frame(struct uhci_hcd *uhci, unsigned int framenum) argument 236 uhci_unlink_isochronous_tds(struct uhci_hcd *uhci, struct urb *urb) argument 245 uhci_alloc_qh(struct uhci_hcd *uhci, struct usb_device *udev, struct usb_host_endpoint *hep) argument 293 uhci_free_qh(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 315 uhci_cleanup_queue(struct uhci_hcd *uhci, struct uhci_qh *qh, struct urb *urb) argument 373 uhci_fixup_toggles(struct uhci_hcd *uhci, struct uhci_qh *qh, int skip_first) argument 425 link_iso(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 436 link_interrupt(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 452 link_async(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 481 uhci_activate_qh(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 522 unlink_interrupt(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 534 unlink_async(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 552 uhci_unlink_qh(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 587 uhci_make_qh_idle(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 611 uhci_highest_load(struct uhci_hcd *uhci, int phase, int period) argument 624 uhci_check_bandwidth(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 660 uhci_reserve_bandwidth(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 693 uhci_release_bandwidth(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 723 uhci_alloc_urb_priv(struct uhci_hcd *uhci, struct urb *urb) argument 741 uhci_free_urb_priv(struct uhci_hcd *uhci, struct urb_priv *urbp) argument 790 uhci_submit_control(struct uhci_hcd *uhci, struct urb *urb, struct uhci_qh *qh) argument 916 uhci_submit_common(struct uhci_hcd *uhci, struct urb *urb, struct uhci_qh *qh) argument 1057 uhci_submit_bulk(struct uhci_hcd *uhci, struct urb *urb, struct uhci_qh *qh) argument 1074 uhci_submit_interrupt(struct uhci_hcd *uhci, struct urb *urb, struct uhci_qh *qh) argument 1123 uhci_fixup_short_transfer(struct uhci_hcd *uhci, struct uhci_qh *qh, struct urb_priv *urbp) argument 1171 uhci_result_common(struct uhci_hcd *uhci, struct urb *urb) argument 1255 uhci_submit_isochronous(struct uhci_hcd *uhci, struct urb *urb, struct uhci_qh *qh) argument 1370 uhci_result_isochronous(struct uhci_hcd *uhci, struct urb *urb) argument 1413 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 1484 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 1576 uhci_scan_qh(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 1669 uhci_advance_check(struct uhci_hcd *uhci, struct uhci_qh *qh) argument 1742 uhci_scan_schedule(struct uhci_hcd *uhci) argument [all...] |
H A D | uhci-debug.c | 17 #include "uhci-hcd.h" 42 static int uhci_show_td(struct uhci_hcd *uhci, struct uhci_td *td, char *buf, argument 49 status = td_status(uhci, td); 51 hc32_to_cpu(uhci, td->link)); 68 token = td_token(uhci, td); 91 out += sprintf(out, "(buf=%08x)\n", hc32_to_cpu(uhci, td->buffer)); 99 static int uhci_show_urbp(struct uhci_hcd *uhci, struct urb_priv *urbp, argument 142 out += uhci_show_td(uhci, td, out, 147 if (td_status(uhci, td) & TD_CTRL_ACTIVE) 164 static int uhci_show_qh(struct uhci_hcd *uhci, argument 278 uhci_show_root_hub_state(struct uhci_hcd *uhci, char *buf) argument 304 uhci_show_status(struct uhci_hcd *uhci, char *buf, int len) argument 373 uhci_sprint_schedule(struct uhci_hcd *uhci, char *buf, int len) argument 559 struct uhci_hcd *uhci = inode->i_private; local 643 uhci_show_qh(struct uhci_hcd *uhci, struct uhci_qh *qh, char *buf, int len, int space) argument 649 uhci_sprint_schedule(struct uhci_hcd *uhci, char *buf, int len) argument [all...] |
H A D | uhci-platform.c | 6 * This file is based on uhci-grlib.c 16 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 18 uhci->rh_numports = uhci_count_ports(hcd); 21 uhci->reset_hc = uhci_generic_reset_hc; 22 uhci->check_and_reset_hc = uhci_generic_check_and_reset_hc; 25 uhci->configure_hc = NULL; 26 uhci->resume_detect_interrupts_are_broken = NULL; 27 uhci->global_suspend_mode_is_broken = NULL; 30 check_and_reset_hc(uhci); 67 struct uhci_hcd *uhci; local [all...] |
H A D | uhci-grlib.c | 27 struct uhci_hcd *uhci = hcd_to_uhci(hcd); local 38 if (!(uhci_readw(uhci, USBPORTSC1) & 0x80)) { 39 uhci->big_endian_mmio = 1; 40 uhci->big_endian_desc = 1; 43 uhci->rh_numports = uhci_count_ports(hcd); 46 uhci->reset_hc = uhci_generic_reset_hc; 47 uhci->check_and_reset_hc = uhci_generic_check_and_reset_hc; 49 uhci->configure_hc = NULL; 50 uhci->resume_detect_interrupts_are_broken = NULL; 51 uhci 93 struct uhci_hcd *uhci = NULL; local [all...] |
H A D | Makefile | 65 obj-$(CONFIG_USB_UHCI_HCD) += uhci-hcd.o
|
H A D | Kconfig | 605 module will be called uhci-hcd.
|