• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/adm5120/files/drivers/usb/host/

Lines Matching refs:ahcd

85 urb_print(struct admhcd *ahcd, struct urb *urb, char *str, int small, int status)
90 admhc_dbg(ahcd, "%s URB: no dev", str);
97 admhc_dbg(ahcd, "URB-%s %p dev=%d ep=%d%s-%s flags=%x len=%d/%d "
115 admhc_dbg(ahcd, "setup(8):");
121 admhc_dbg(ahcd, "data(%d/%d):",
134 #define admhc_dbg_sw(ahcd, next, size, format, arg...) \
141 admhc_dbg(ahcd, format, ## arg); \
145 static void admhc_dump_intr_mask(struct admhcd *ahcd, char *label, u32 mask,
148 admhc_dbg_sw(ahcd, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s%s%s%s\n",
166 static void maybe_print_eds(struct admhcd *ahcd, char *label, u32 value,
170 admhc_dbg_sw(ahcd, next, size, "%s %08x\n", label, value);
189 admhc_dump_status(struct admhcd *ahcd, char **next, unsigned *size)
191 struct admhcd_regs __iomem *regs = ahcd->regs;
194 temp = admhc_readl(ahcd, &regs->gencontrol);
195 admhc_dbg_sw(ahcd, next, size,
204 temp = admhc_readl(ahcd, &regs->host_control);
205 admhc_dbg_sw(ahcd, next, size,
212 admhc_dump_intr_mask(ahcd, "int_status",
213 admhc_readl(ahcd, &regs->int_status),
215 admhc_dump_intr_mask(ahcd, "int_enable",
216 admhc_readl(ahcd, &regs->int_enable),
219 maybe_print_eds(ahcd, "hosthead",
220 admhc_readl(ahcd, &regs->hosthead), next, size);
247 struct admhcd *ahcd,
254 temp = admhc_read_rhdesc(ahcd);
259 admhc_dbg_sw(ahcd, next, size,
273 (temp & ADMHC_RH_NUMP), ahcd->num_ports
277 for (i = 0; i < ahcd->num_ports; i++) {
278 temp = admhc_read_portstatus(ahcd, i);
279 dbg_port_sw(ahcd, i, temp, next, size);
283 static void admhc_dump(struct admhcd *ahcd, int verbose)
285 admhc_dbg(ahcd, "ADMHC ahcd state\n");
288 admhc_dump_status(ahcd, NULL, NULL);
289 admhc_dbg(ahcd, "current frame #%04x\n",
290 admhc_frame_no(ahcd));
292 admhc_dump_roothub(ahcd, verbose, NULL, NULL);
298 static void admhc_dump_td(const struct admhcd *ahcd, const char *label,
303 admhc_dbg(ahcd, "%s td %p; urb %p index %d; hwNextTD %08x\n",
306 hc32_to_cpup(ahcd, &td->hwNextTD));
308 tmp = hc32_to_cpup(ahcd, &td->hwINFO);
309 admhc_dbg(ahcd, " status %08x%s CC=%x EC=%d %s %s ISI=%x FN=%x\n",
319 tmp = hc32_to_cpup(ahcd, &td->hwCBL);
320 admhc_dbg(ahcd, " dbp %08x; cbl %08x; LEN=%d%s\n",
321 hc32_to_cpup(ahcd, &td->hwDBP),
329 admhc_dump_ed(const struct admhcd *ahcd, const char *label,
332 u32 tmp = hc32_to_cpu(ahcd, ed->hwINFO);
334 admhc_dbg(ahcd, "%s ed %p %s type %s; next ed %08x\n",
337 hc32_to_cpup(ahcd, &ed->hwNextED));
339 admhc_dbg(ahcd, " info %08x MAX=%d%s%s%s%s EP=%d DEV=%d\n", tmp,
348 tmp = hc32_to_cpup(ahcd, &ed->hwHeadP);
349 admhc_dbg(ahcd, " tds: head %08x tail %08x %s%s%s\n",
351 hc32_to_cpup(ahcd, &ed->hwTailP),
365 admhc_dump_td(ahcd, " ->", td);
372 static inline void urb_print(struct admhcd *ahcd, struct urb * urb, char * str,
374 static inline void admhc_dump_ed(const struct admhcd *ahcd, const char *label,
376 static inline void admhc_dump_td(const struct admhcd *ahcd, const char *label,
378 static inline void admhc_dump(struct admhcd *ahcd, int verbose) {}
425 struct admhcd *ahcd;
432 show_list(struct admhcd *ahcd, char *buf, size_t count, struct ed *ed)
442 u32 info = hc32_to_cpu(ahcd, ed->hwINFO);
443 u32 headp = hc32_to_cpu(ahcd, ed->hwHeadP);
444 u32 tailp = hc32_to_cpu(ahcd, ed->hwTailP);
472 info = hc32_to_cpup(ahcd, &td->hwINFO);
473 dbp = hc32_to_cpup(ahcd, &td->hwDBP);
474 cbl = hc32_to_cpup(ahcd, &td->hwCBL);
500 struct admhcd *ahcd;
504 ahcd = buf->ahcd;
506 spin_lock_irqsave(&ahcd->lock, flags);
507 temp = show_list(ahcd, buf->page, PAGE_SIZE, ahcd->ed_head);
508 spin_unlock_irqrestore(&ahcd->lock, flags);
518 struct admhcd *ahcd;
530 ahcd = buf->ahcd;
539 spin_lock_irqsave(&ahcd->lock, flags);
541 ed = ahcd->periodic[i];
545 temp = scnprintf(next, size, "%2d [%3d]:", i, ahcd->load[i]);
561 u32 info = hc32_to_cpu(ahcd, ed->hwINFO);
580 cpu_to_hc32(ahcd, ED_H)) ?
602 spin_unlock_irqrestore(&ahcd->lock, flags);
614 struct admhcd *ahcd;
621 ahcd = buf->ahcd;
622 hcd = admhc_to_hcd(ahcd);
623 regs = ahcd->regs;
627 spin_lock_irqsave(&ahcd->lock, flags);
631 admhc_dbg_sw(ahcd, &next, &size,
646 admhc_dump_status(ahcd, &next, &size);
649 rdata = admhc_readl(ahcd, &regs->fminterval);
658 rdata = admhc_readl(ahcd, &regs->fmnumber);
667 rdata = admhc_readl(ahcd, &regs->lsthresh);
674 admhcd_to_hcd(ahcd)->poll_rh ? "ON" : "OFF");
679 admhc_dump_roothub(ahcd, 1, &next, &size);
682 spin_unlock_irqrestore(&ahcd->lock, flags);
687 static struct debug_buffer *alloc_buffer(struct admhcd *ahcd,
695 buf->ahcd = ahcd;
785 static inline void create_debug_files(struct admhcd *ahcd)
787 struct usb_bus *bus = &admhcd_to_hcd(ahcd)->self;
789 ahcd->debug_dir = debugfs_create_dir(bus->bus_name, admhc_debug_root);
790 if (!ahcd->debug_dir)
793 ahcd->debug_async = debugfs_create_file("async", S_IRUGO,
794 ahcd->debug_dir, ahcd,
796 if (!ahcd->debug_async)
799 ahcd->debug_periodic = debugfs_create_file("periodic", S_IRUGO,
800 ahcd->debug_dir, ahcd,
802 if (!ahcd->debug_periodic)
805 ahcd->debug_registers = debugfs_create_file("registers", S_IRUGO,
806 ahcd->debug_dir, ahcd,
808 if (!ahcd->debug_registers)
811 admhc_dbg(ahcd, "created debug files\n");
815 debugfs_remove(ahcd->debug_periodic);
817 debugfs_remove(ahcd->debug_async);
819 debugfs_remove(ahcd->debug_dir);
821 ahcd->debug_periodic = NULL;
822 ahcd->debug_async = NULL;
823 ahcd->debug_dir = NULL;
826 static inline void remove_debug_files(struct admhcd *ahcd)
828 debugfs_remove(ahcd->debug_registers);
829 debugfs_remove(ahcd->debug_periodic);
830 debugfs_remove(ahcd->debug_async);
831 debugfs_remove(ahcd->debug_dir);