Lines Matching refs:ehci

80 #define ehci_dbg(ehci, fmt, ...) \  argument
81 dev_dbg ((ehci)->hcd.controller , fmt , __VA_ARGS__ )
82 #define ehci_err(ehci, fmt, ...) \ argument
83 dev_err ((ehci)->hcd.controller , fmt , __VA_ARGS__ )
84 #define ehci_info(ehci, fmt, ...) \ argument
85 dev_info ((ehci)->hcd.controller , fmt , __VA_ARGS__ )
86 #define ehci_warn(ehci, fmt, ...) \ argument
87 dev_warn ((ehci)->hcd.controller , fmt , __VA_ARGS__ )
92 #define ehci_vdbg(ehci, fmt, args...) do { } while (0) argument
97 static void dbg_hcs_params (struct ehci_hcd *ehci, char *label) in dbg_hcs_params() argument
100 U32 params = ehci_readl (&ehci->caps->hcs_params); in dbg_hcs_params()
103 dev_dbg ((ehci)->hcd.controller, in dbg_hcs_params()
120 byte = ehci_readb (&ehci->caps->portroute[(i>>1)]); in dbg_hcs_params()
125 ehci_dbg (ehci, "%s portroute %s\n", in dbg_hcs_params()
132 static __inline__ void dbg_hcs_params (struct ehci_hcd *ehci, char *label) {} in dbg_hcs_params() argument
138 static void dbg_hcc_params (struct ehci_hcd *ehci, char *label) in dbg_hcc_params() argument
140 U32 params = ehci_readl (&ehci->caps->hcc_params); in dbg_hcc_params()
143 dev_dbg ((ehci)->hcd.controller, in dbg_hcc_params()
151 dev_dbg ((ehci)->hcd.controller, in dbg_hcc_params()
163 static __inline__ void dbg_hcc_params (struct ehci_hcd *ehci, char *label) {} in dbg_hcc_params() argument
178 static void dbg_qtd (char *label, struct ehci_hcd *ehci, struct ehci_qtd *qtd) in dbg_qtd() argument
180 dev_dbg ((ehci)->hcd.controller, "%s qtd %p next%08x %08x token%08x buf=%08x\n", label, qtd, in dbg_qtd()
186 dev_dbg ((ehci)->hcd.controller, " buf1=%08x buf2=%08x buf3=%08x bufp4=%08x\n", in dbg_qtd()
193 static void dbg_qh (char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) in dbg_qh() argument
195 dev_dbg ((ehci)->hcd.controller, "%s qh %p next%08x info %x %x qtd %x\n", label, in dbg_qh()
198 dbg_qtd ("qh overlay", ehci, (struct ehci_qtd *) &qh->hw_qtd_next); in dbg_qh()
412 static inline void dbg_qh (char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) in dbg_qh() argument
429 #define dbg_status(ehci, label, status) { \ argument
432 ehci_dbg (ehci, "%s\n", _buf); \
435 #define dbg_cmd(ehci, label, command) { \ argument
438 ehci_dbg (ehci, "%s\n", _buf); \
441 #define dbg_port(ehci, label, port, status) { \ argument
444 ehci_dbg (ehci, "%s\n", _buf); \
502 struct ehci_hcd *ehci, in qh_lines() argument
523 if ((qh->hw_alt_next & QTD_MASK) == ehci->async->hw_alt_next) in qh_lines()
581 if (td->hw_alt_next == ehci->async->hw_alt_next) in qh_lines()
651 struct ehci_hcd *ehci; in show_async() local
658 ehci = hcd_to_ehci (hcd); in show_async()
662 spin_lock_irqsave (&ehci->lock, flags); in show_async()
663 for (qh = ehci->async->qh_next.qh; size > 0 && qh; qh = qh->qh_next.qh) in show_async()
664 qh_lines (ehci, qh, &next, &size); in show_async()
665 if (ehci->reclaim && size > 0) { in show_async()
670 for (qh = ehci->reclaim; size > 0 && qh; qh = qh->reclaim) in show_async()
671 qh_lines (ehci, qh, &next, &size); in show_async()
673 spin_unlock_irqrestore (&ehci->lock, flags); in show_async()
701 struct ehci_hcd *ehci; in show_periodic() local
714 ehci = hcd_to_ehci (hcd); in show_periodic()
718 temp = snprintf (next, size, "size = %d\n", ehci->periodic_size); in show_periodic()
740 spin_lock_irqsave (&ehci->lock, flags); in show_periodic()
741 for (i = 0; i < ehci->periodic_size; i++) { in show_periodic()
742 p = ehci->pshadow [i]; in show_periodic()
745 tag = Q_NEXT_TYPE (ehci->periodic [i]); in show_periodic()
898 spin_unlock_irqrestore (&ehci->lock, flags); in show_periodic()
937 struct ehci_hcd *ehci; in show_registers() local
945 ehci = hcd_to_ehci (hcd); in show_registers()
949 spin_lock_irqsave (&ehci->lock, flags); in show_registers()
951 i = ehci_readw (&ehci->caps->hci_version); in show_registers()
954 i >> 8, i & 0x0ff, ehci->hcd.state); in show_registers()
958 i = ehci_readl (&ehci->caps->hcs_params); in show_registers()
963 i = ehci_readl (&ehci->caps->hcc_params); in show_registers()
969 ehci_readl (&ehci->regs->status)); in show_registers()
993 ehci_readl (&ehci->regs->command)); in show_registers()
999 ehci_readl (&ehci->regs->intr_enable)); in show_registers()
1005 ehci_readl (&ehci->regs->frame_index)); in show_registers()
1027 for (i = 0; i < HCS_N_PORTS (ehci->hcs_params); i++) { in show_registers()
1029 ehci_readl (&ehci->regs->port_status [i])); in show_registers()
1035 if (ehci->reclaim) { in show_registers()
1037 ehci->reclaim, in show_registers()
1038 ehci->reclaim_ready ? " ready" : ""); in show_registers()
1064 ehci->stats.normal, ehci->stats.error, ehci->stats.reclaim, in show_registers()
1065 ehci->stats.lost_iaa); in show_registers()
1070 ehci->stats.complete, ehci->stats.unlink); in show_registers()
1075 spin_unlock_irqrestore (&ehci->lock, flags); in show_registers()