• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/usb/host/

Lines Matching refs:ohci

75 #define ohci_dbg_sw(ohci, next, size, format, arg...) \
82 ohci_dbg(ohci,format, ## arg ); \
87 struct ohci_hcd *ohci,
93 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n",
109 struct ohci_hcd *ohci,
116 ohci_dbg_sw (ohci, next, size, "%s %08x\n", label, value);
285 static void ohci_dump_td (const struct ohci_hcd *ohci, const char *label,
288 u32 tmp = hc32_to_cpup (ohci, &td->hwINFO);
290 ohci_dbg (ohci, "%s td %p%s; urb %p index %d; hw next td %08x\n",
294 hc32_to_cpup (ohci, &td->hwNextTD));
311 ohci_dbg (ohci, " info %08x CC=%x %s DI=%d %s %s\n", tmp,
315 cbp = hc32_to_cpup (ohci, &td->hwCBP);
316 be = hc32_to_cpup (ohci, &td->hwBE);
317 ohci_dbg (ohci, " cbp %08x be %08x (len %d)\n", cbp, be,
321 ohci_dbg (ohci, " info %08x CC=%x FC=%d DI=%d SF=%04x\n", tmp,
326 ohci_dbg (ohci, " bp0 %08x be %08x\n",
327 hc32_to_cpup (ohci, &td->hwCBP) & ~0x0fff,
328 hc32_to_cpup (ohci, &td->hwBE));
330 u16 psw = ohci_hwPSW (ohci, td, i);
332 ohci_dbg (ohci, " psw [%d] = %2x, CC=%x %s=%d\n", i,
342 ohci_dump_ed (const struct ohci_hcd *ohci, const char *label,
345 u32 tmp = hc32_to_cpu (ohci, ed->hwINFO);
348 ohci_dbg (ohci, "%s, ed %p state 0x%x type %s; next ed %08x\n",
351 hc32_to_cpup (ohci, &ed->hwNextED));
357 ohci_dbg (ohci,
367 tmp = hc32_to_cpup (ohci, &ed->hwHeadP);
368 ohci_dbg (ohci, " tds: head %08x %s%s tail %08x%s\n",
372 hc32_to_cpup (ohci, &ed->hwTailP),
383 ohci_dump_td (ohci, " ->", td);
434 struct ohci_hcd *ohci;
441 show_list (struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed)
454 u32 info = hc32_to_cpu (ohci, ed->hwINFO);
455 u32 headp = hc32_to_cpu (ohci, ed->hwHeadP);
478 info = hc32_to_cpup (ohci, &td->hwINFO);
479 cbp = hc32_to_cpup (ohci, &td->hwCBP);
480 be = hc32_to_cpup (ohci, &td->hwBE);
508 struct ohci_hcd *ohci;
512 ohci = buf->ohci;
515 spin_lock_irqsave (&ohci->lock, flags);
516 temp = show_list(ohci, buf->page, buf->count, ohci->ed_controltail);
517 temp += show_list(ohci, buf->page + temp, buf->count - temp,
518 ohci->ed_bulktail);
519 spin_unlock_irqrestore (&ohci->lock, flags);
528 struct ohci_hcd *ohci;
539 ohci = buf->ohci;
548 spin_lock_irqsave (&ohci->lock, flags);
550 if (!(ed = ohci->periodic [i]))
553 temp = scnprintf (next, size, "%2d [%3d]:", i, ohci->load [i]);
569 u32 info = hc32_to_cpu (ohci, ed->hwINFO);
590 cpu_to_hc32(ohci, ED_H)) ?
612 spin_unlock_irqrestore (&ohci->lock, flags);
622 struct ohci_hcd *ohci;
629 ohci = buf->ohci;
630 hcd = ohci_to_hcd(ohci);
631 regs = ohci->regs;
635 spin_lock_irqsave (&ohci->lock, flags);
639 ohci_dbg_sw (ohci, &next, &size,
654 ohci_dump_status(ohci, &next, &size);
657 if (ohci->hcca)
658 ohci_dbg_sw (ohci, &next, &size,
659 "hcca frame 0x%04x\n", ohci_frame_no(ohci));
662 rdata = ohci_readl (ohci, &regs->fminterval);
670 rdata = ohci_readl (ohci, &regs->fmremaining);
677 rdata = ohci_readl (ohci, &regs->periodicstart);
683 rdata = ohci_readl (ohci, &regs->lsthresh);
690 HCD_POLL_RH(ohci_to_hcd(ohci)) ? "ON" : "off");
695 ohci_dump_roothub (ohci, 1, &next, &size);
698 spin_unlock_irqrestore (&ohci->lock, flags);
703 static struct debug_buffer *alloc_buffer(struct ohci_hcd *ohci,
711 buf->ohci = ohci;
800 static inline void create_debug_files (struct ohci_hcd *ohci)
802 struct usb_bus *bus = &ohci_to_hcd(ohci)->self;
804 ohci->debug_dir = debugfs_create_dir(bus->bus_name, ohci_debug_root);
805 if (!ohci->debug_dir)
808 ohci->debug_async = debugfs_create_file("async", S_IRUGO,
809 ohci->debug_dir, ohci,
811 if (!ohci->debug_async)
814 ohci->debug_periodic = debugfs_create_file("periodic", S_IRUGO,
815 ohci->debug_dir, ohci,
817 if (!ohci->debug_periodic)
820 ohci->debug_registers = debugfs_create_file("registers", S_IRUGO,
821 ohci->debug_dir, ohci,
823 if (!ohci->debug_registers)
826 ohci_dbg (ohci, "created debug files\n");
830 debugfs_remove(ohci->debug_periodic);
832 debugfs_remove(ohci->debug_async);
834 debugfs_remove(ohci->debug_dir);
836 ohci->debug_periodic = NULL;
837 ohci->debug_async = NULL;
838 ohci->debug_dir = NULL;
841 static inline void remove_debug_files (struct ohci_hcd *ohci)
843 debugfs_remove(ohci->debug_registers);
844 debugfs_remove(ohci->debug_periodic);
845 debugfs_remove(ohci->debug_async);
846 debugfs_remove(ohci->debug_dir);