/drivers/usb/host/ |
D | uhci-hcd.c | 92 static void suspend_rh(struct uhci_hcd *uhci, enum uhci_rh_state new_state); 93 static void wakeup_rh(struct uhci_hcd *uhci); 94 static void uhci_get_current_frame_number(struct uhci_hcd *uhci); 99 static __hc32 uhci_frame_skel_link(struct uhci_hcd *uhci, int frame) in uhci_frame_skel_link() argument 121 return LINK_TO_QH(uhci, uhci->skelqh[skelnum]); in uhci_frame_skel_link() 131 static void finish_reset(struct uhci_hcd *uhci) in finish_reset() argument 139 for (port = 0; port < uhci->rh_numports; ++port) in finish_reset() 140 uhci_writew(uhci, 0, USBPORTSC1 + (port * 2)); in finish_reset() 142 uhci->port_c_suspend = uhci->resuming_ports = 0; in finish_reset() 143 uhci->rh_state = UHCI_RH_RESET; in finish_reset() [all …]
|
D | uhci-hub.c | 44 static int any_ports_active(struct uhci_hcd *uhci) in any_ports_active() argument 48 for (port = 0; port < uhci->rh_numports; ++port) { in any_ports_active() 49 if ((uhci_readw(uhci, USBPORTSC1 + port * 2) & in any_ports_active() 51 test_bit(port, &uhci->port_c_suspend)) in any_ports_active() 57 static inline int get_hub_status_data(struct uhci_hcd *uhci, char *buf) in get_hub_status_data() argument 72 for (port = 0; port < uhci->rh_numports; ++port) { in get_hub_status_data() 73 if ((uhci_readw(uhci, USBPORTSC1 + port * 2) & mask) || in get_hub_status_data() 74 test_bit(port, &uhci->port_c_suspend)) in get_hub_status_data() 81 status = uhci_readw(uhci, port_addr); \ 85 uhci_writew(uhci, status, port_addr) [all …]
|
D | uhci-q.c | 29 static void uhci_set_next_interrupt(struct uhci_hcd *uhci) in uhci_set_next_interrupt() argument 31 if (uhci->is_stopped) in uhci_set_next_interrupt() 32 mod_timer(&uhci_to_hcd(uhci)->rh_timer, jiffies); in uhci_set_next_interrupt() 33 uhci->term_td->status |= cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_set_next_interrupt() 36 static inline void uhci_clear_next_interrupt(struct uhci_hcd *uhci) in uhci_clear_next_interrupt() argument 38 uhci->term_td->status &= ~cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_clear_next_interrupt() 47 static void uhci_fsbr_on(struct uhci_hcd *uhci) in uhci_fsbr_on() argument 54 uhci->fsbr_is_on = 1; in uhci_fsbr_on() 55 lqh = list_entry(uhci->skel_async_qh->node.prev, in uhci_fsbr_on() 57 lqh->link = LINK_TO_QH(uhci, uhci->skel_term_qh); in uhci_fsbr_on() [all …]
|
D | uhci-hcd.h | 85 #define UHCI_PTR_BITS(uhci) cpu_to_hc32((uhci), 0x000F) argument 86 #define UHCI_PTR_TERM(uhci) cpu_to_hc32((uhci), 0x0001) argument 87 #define UHCI_PTR_QH(uhci) cpu_to_hc32((uhci), 0x0002) argument 88 #define UHCI_PTR_DEPTH(uhci) cpu_to_hc32((uhci), 0x0004) argument 89 #define UHCI_PTR_BREADTH(uhci) cpu_to_hc32((uhci), 0x0000) argument 193 #define LINK_TO_QH(uhci, qh) (UHCI_PTR_QH((uhci)) | \ argument 194 cpu_to_hc32((uhci), (qh)->dma_handle)) 227 #define td_token(uhci, td) hc32_to_cpu((uhci), (td)->token) argument 278 #define td_status(uhci, td) hc32_to_cpu((uhci), \ argument 281 #define LINK_TO_TD(uhci, td) (cpu_to_hc32((uhci), (td)->dma_handle)) argument [all …]
|
D | uhci-pci.c | 27 static void uhci_pci_reset_hc(struct uhci_hcd *uhci) in uhci_pci_reset_hc() argument 29 uhci_reset_hc(to_pci_dev(uhci_dev(uhci)), uhci->io_addr); in uhci_pci_reset_hc() 38 static int uhci_pci_check_and_reset_hc(struct uhci_hcd *uhci) in uhci_pci_check_and_reset_hc() argument 40 return uhci_check_and_reset_hc(to_pci_dev(uhci_dev(uhci)), in uhci_pci_check_and_reset_hc() 41 uhci->io_addr); in uhci_pci_check_and_reset_hc() 48 static void uhci_pci_configure_hc(struct uhci_hcd *uhci) in uhci_pci_configure_hc() argument 50 struct pci_dev *pdev = to_pci_dev(uhci_dev(uhci)); in uhci_pci_configure_hc() 60 static int uhci_pci_resume_detect_interrupts_are_broken(struct uhci_hcd *uhci) in uhci_pci_resume_detect_interrupts_are_broken() argument 64 switch (to_pci_dev(uhci_dev(uhci))->vendor) { in uhci_pci_resume_detect_interrupts_are_broken() 82 for (port = 0; port < uhci->rh_numports; ++port) { in uhci_pci_resume_detect_interrupts_are_broken() [all …]
|
D | uhci-debug.c | 43 static int uhci_show_td(struct uhci_hcd *uhci, struct uhci_td *td, char *buf, in uhci_show_td() argument 50 status = td_status(uhci, td); in uhci_show_td() 52 hc32_to_cpu(uhci, td->link)); in uhci_show_td() 69 token = td_token(uhci, td); in uhci_show_td() 92 out += sprintf(out, "(buf=%08x)\n", hc32_to_cpu(uhci, td->buffer)); in uhci_show_td() 100 static int uhci_show_urbp(struct uhci_hcd *uhci, struct urb_priv *urbp, in uhci_show_urbp() argument 143 out += uhci_show_td(uhci, td, out, in uhci_show_urbp() 148 if (td_status(uhci, td) & TD_CTRL_ACTIVE) in uhci_show_urbp() 165 static int uhci_show_qh(struct uhci_hcd *uhci, in uhci_show_qh() argument 183 hc32_to_cpu(uhci, qh->link), in uhci_show_qh() [all …]
|
D | uhci-platform.c | 17 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_platform_init() local 20 if (!uhci->rh_numports) in uhci_platform_init() 21 uhci->rh_numports = uhci_count_ports(hcd); in uhci_platform_init() 24 uhci->reset_hc = uhci_generic_reset_hc; in uhci_platform_init() 25 uhci->check_and_reset_hc = uhci_generic_check_and_reset_hc; in uhci_platform_init() 28 uhci->configure_hc = NULL; in uhci_platform_init() 29 uhci->resume_detect_interrupts_are_broken = NULL; in uhci_platform_init() 30 uhci->global_suspend_mode_is_broken = NULL; in uhci_platform_init() 33 check_and_reset_hc(uhci); in uhci_platform_init() 71 struct uhci_hcd *uhci; in uhci_hcd_platform_probe() local [all …]
|
D | uhci-grlib.c | 28 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_grlib_init() local 39 if (!(uhci_readw(uhci, USBPORTSC1) & 0x80)) { in uhci_grlib_init() 40 uhci->big_endian_mmio = 1; in uhci_grlib_init() 41 uhci->big_endian_desc = 1; in uhci_grlib_init() 44 uhci->rh_numports = uhci_count_ports(hcd); in uhci_grlib_init() 47 uhci->reset_hc = uhci_generic_reset_hc; in uhci_grlib_init() 48 uhci->check_and_reset_hc = uhci_generic_check_and_reset_hc; in uhci_grlib_init() 50 uhci->configure_hc = NULL; in uhci_grlib_init() 51 uhci->resume_detect_interrupts_are_broken = NULL; in uhci_grlib_init() 52 uhci->global_suspend_mode_is_broken = NULL; in uhci_grlib_init() [all …]
|
D | Makefile | 67 obj-$(CONFIG_USB_UHCI_HCD) += uhci-hcd.o
|
D | Kconfig | 619 module will be called uhci-hcd.
|