/openwrt/target/linux/adm5120/files-3.18/drivers/usb/host/ |
H A D | adm5120-pm.c | 20 static int admhc_restart(struct admhcd *ahcd); 22 static int admhc_rh_suspend(struct admhcd *ahcd, int autostop) 23 __releases(ahcd->lock) 24 __acquires(ahcd->lock) 28 ahcd->hc_control = admhc_readl(ahcd, &ahcd->regs->control); 29 switch (ahcd->hc_control & OHCI_CTRL_HCFS) { 31 admhc_dbg(ahcd, "resume/suspend?\n"); 32 ahcd 66 dl_done_list (ahcd); variable 186 periodic_reinit(ahcd); variable 255 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 270 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 291 admhc_root_hub_state_changes(struct admhcd *ahcd, int changed, int any_connected) argument 349 admhc_restart(struct admhcd *ahcd) argument 424 admhc_rh_resume(struct admhcd *ahcd) argument 432 admhc_root_hub_state_changes(struct admhcd *ahcd, int changed, int any_connected) argument [all...] |
H A D | adm5120-hcd.c | 11 * [ uhci code and gregs ahcd fragments ] 68 static void admhc_dump(struct admhcd *ahcd, int verbose); 69 static int admhc_init(struct admhcd *ahcd); 86 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 95 spin_lock_irqsave(&ahcd->lock, flags); 96 urb_print(ahcd, urb, "ENQEUE", usb_pipein(pipe), -EINPROGRESS); 97 spin_unlock_irqrestore(&ahcd->lock, flags); 101 ed = ed_get(ahcd, urb->ep, urb->dev, pipe, urb->interval); 144 urb_priv = urb_priv_alloc(ahcd, td_cnt, mem_flags); 150 spin_lock_irqsave(&ahcd 216 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 263 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 324 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 329 admhc_usb_reset(struct admhcd *ahcd) argument 349 struct admhcd *ahcd; local 363 admhc_eds_cleanup(struct admhcd *ahcd) argument 390 admhc_eds_init(struct admhcd *ahcd) argument 445 admhc_init(struct admhcd *ahcd) argument 484 admhc_run(struct admhcd *ahcd) argument 638 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 757 struct admhcd *ahcd = hcd_to_admhcd(hcd); local [all...] |
H A D | adm5120-mem.c | 32 static void admhc_hcd_init(struct admhcd *ahcd) argument 34 ahcd->next_statechange = jiffies; 35 spin_lock_init(&ahcd->lock); 36 INIT_LIST_HEAD(&ahcd->pending); 41 static int admhc_mem_init(struct admhcd *ahcd) argument 43 ahcd->td_cache = dma_pool_create("admhc_td", 44 admhcd_to_hcd(ahcd)->self.controller, 49 if (!ahcd->td_cache) 52 ahcd->ed_cache = dma_pool_create("admhc_ed", 53 admhcd_to_hcd(ahcd) 70 admhc_mem_cleanup(struct admhcd *ahcd) argument 86 dma_to_td(struct admhcd *ahcd, dma_addr_t td_dma) argument 99 td_alloc(struct admhcd *ahcd, gfp_t mem_flags) argument 117 td_free(struct admhcd *ahcd, struct td *td) argument 139 ed_alloc(struct admhcd *ahcd, gfp_t mem_flags) argument 157 ed_free(struct admhcd *ahcd, struct ed *ed) argument 165 urb_priv_free(struct admhcd *ahcd, struct urb_priv *urb_priv) argument 177 urb_priv_alloc(struct admhcd *ahcd, int num_tds, gfp_t mem_flags) argument [all...] |
H A D | adm5120-hub.c | 71 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 77 spin_lock_irqsave(&ahcd->lock, flags); 82 status = admhc_read_rhdesc(ahcd); 87 if (ahcd->num_ports > 7) { 93 for (i = 0; i < ahcd->num_ports; i++) { 94 status = admhc_read_portstatus(ahcd, i); 109 if (admhc_root_hub_state_changes(ahcd, changed, 116 spin_unlock_irqrestore(&ahcd->lock, flags); 123 static int admhc_get_hub_descriptor(struct admhcd *ahcd, char *buf) argument 126 u32 rh = admhc_read_rhdesc(ahcd); 156 admhc_get_hub_status(struct admhcd *ahcd, char *buf) argument 176 admhc_get_port_status(struct admhcd *ahcd, unsigned port, char *buf) argument 210 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 256 admhc_port_reset(struct admhcd *ahcd, unsigned port) argument 273 admhc_port_enable(struct admhcd *ahcd, unsigned port) argument 287 admhc_port_disable(struct admhcd *ahcd, unsigned port) argument 301 admhc_port_write(struct admhcd *ahcd, unsigned port, u32 val) argument 315 struct admhcd *ahcd = hcd_to_admhcd(hcd); local [all...] |
H A D | adm5120.h | 406 void (*start_hnp)(struct admhcd *ahcd); 449 static inline struct usb_hcd *admhcd_to_hcd(const struct admhcd *ahcd) argument 451 return container_of((void *)ahcd, struct usb_hcd, hcd_priv); 461 # define admhc_dbg(ahcd, fmt, args...) \ 464 # define admhc_dbg(ahcd, fmt, args...) do { } while (0) 467 #define admhc_err(ahcd, fmt, args...) \ 469 #define admhc_info(ahcd, fmt, args...) \ 471 #define admhc_warn(ahcd, fmt, args...) \ 477 # define admhc_vdbg(ahcd, fmt, args...) do { } while (0) 519 #define big_endian_desc(ahcd) (ahc 542 admhc_readl(const struct admhcd *ahcd, __hc32 __iomem *regs) argument 554 admhc_writel(const struct admhcd *ahcd, const unsigned int val, __hc32 __iomem *regs) argument 566 admhc_writel_flush(const struct admhcd *ahcd) argument 578 cpu_to_hc16(const struct admhcd *ahcd, const u16 x) argument 585 cpu_to_hc16p(const struct admhcd *ahcd, const u16 *x) argument 592 cpu_to_hc32(const struct admhcd *ahcd, const u32 x) argument 599 cpu_to_hc32p(const struct admhcd *ahcd, const u32 *x) argument 607 hc16_to_cpu(const struct admhcd *ahcd, const __hc16 x) argument 614 hc16_to_cpup(const struct admhcd *ahcd, const __hc16 *x) argument 621 hc32_to_cpu(const struct admhcd *ahcd, const __hc32 x) argument 628 hc32_to_cpup(const struct admhcd *ahcd, const __hc32 *x) argument 637 admhc_frame_no(const struct admhcd *ahcd) argument 645 admhc_frame_remain(const struct admhcd *ahcd) argument 656 admhc_disable(struct admhcd *ahcd) argument 666 periodic_reinit(struct admhcd *ahcd) argument 684 admhc_read_rhdesc(struct admhcd *ahcd) argument 689 admhc_read_portstatus(struct admhcd *ahcd, int port) argument 694 admhc_write_portstatus(struct admhcd *ahcd, int port, u32 value) argument 700 roothub_write_status(struct admhcd *ahcd, u32 value) argument 706 admhc_intr_disable(struct admhcd *ahcd, u32 ints) argument 716 admhc_intr_enable(struct admhcd *ahcd, u32 ints) argument 726 admhc_intr_ack(struct admhcd *ahcd, u32 ints) argument 731 admhc_dma_enable(struct admhcd *ahcd) argument 744 admhc_dma_disable(struct admhcd *ahcd) argument [all...] |
H A D | adm5120-q.c | 24 * PRECONDITION: ahcd lock held, irqs blocked. 27 finish_urb(struct admhcd *ahcd, struct urb *urb, int status) 28 __releases(ahcd->lock) 29 __acquires(ahcd->lock) 31 urb_priv_free(ahcd, urb->hcpriv); 38 admhcd_to_hcd(ahcd)->self.bandwidth_isoc_reqs--; 41 admhcd_to_hcd(ahcd)->self.bandwidth_int_reqs--; 46 urb_print(ahcd, urb, "RET", usb_pipeout(urb->pipe), status); 50 usb_hcd_unlink_urb_from_ep(admhcd_to_hcd(ahcd), urb); 51 spin_unlock(&ahcd 142 ed_schedule(struct admhcd *ahcd, struct ed *ed) argument 223 ed_deschedule(struct admhcd *ahcd, struct ed *ed) argument 249 ed_create(struct admhcd *ahcd, unsigned int type, u32 info) argument 291 ed_get(struct admhcd *ahcd, struct usb_host_endpoint *ep, struct usb_device *udev, unsigned int pipe, int interval) argument 330 start_ed_unlink(struct admhcd *ahcd, struct ed *ed) argument 365 td_fill(struct admhcd *ahcd, u32 info, dma_addr_t data, int len, struct urb *urb, int index) argument 428 td_submit_urb(struct admhcd *ahcd, struct urb *urb) argument 560 td_done(struct admhcd *ahcd, struct urb *urb, struct td *td) argument 638 ed_halted(struct admhcd *ahcd, struct td *td, int cc) argument 707 finish_unlinks(struct admhcd *ahcd, u16 tick) argument 838 ed_unhalt(struct admhcd *ahcd, struct ed *ed, struct urb *urb) argument 870 ed_intr_refill(struct admhcd *ahcd, struct ed *ed) argument 878 is_ed_halted(struct admhcd *ahcd, struct ed *ed) argument 883 is_td_halted(struct admhcd *ahcd, struct ed *ed, struct td *td) argument 890 ed_update(struct admhcd *ahcd, struct ed *ed) argument 954 admhc_td_complete(struct admhcd *ahcd) argument [all...] |
H A D | adm5120-dbg.c | 85 urb_print(struct admhcd *ahcd, struct urb *urb, char *str, int small, int status) argument 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, argument 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, cha argument 189 admhc_dump_status(struct admhcd *ahcd, char **next, unsigned *size) argument 246 admhc_dump_roothub( struct admhcd *ahcd, int verbose, char **next, unsigned *size) argument 283 admhc_dump(struct admhcd *ahcd, int verbose) argument 298 admhc_dump_td(const struct admhcd *ahcd, const char *label, const struct td *td) argument 329 admhc_dump_ed(const struct admhcd *ahcd, const char *label, const struct ed *ed, int verbose) argument 372 urb_print(struct admhcd *ahcd, struct urb * urb, char * str, int small, int status) argument 374 admhc_dump_ed(const struct admhcd *ahcd, const char *label, const struct ed *ed, int verbose) argument 376 admhc_dump_td(const struct admhcd *ahcd, const char *label, const struct td *td) argument 378 admhc_dump(struct admhcd *ahcd, int verbose) argument 425 struct admhcd *ahcd; member in struct:debug_buffer 432 show_list(struct admhcd *ahcd, char *buf, size_t count, struct ed *ed) argument 500 struct admhcd *ahcd; local 518 struct admhcd *ahcd; local 614 struct admhcd *ahcd; local 687 alloc_buffer(struct admhcd *ahcd, ssize_t (*fill_func)(struct debug_buffer *)) argument 785 create_debug_files(struct admhcd *ahcd) argument 826 remove_debug_files(struct admhcd *ahcd) argument [all...] |
H A D | adm5120-drv.c | 14 * Modified for LH7A404 from ahcd-sa1111.c 114 struct admhcd *ahcd = hcd_to_admhcd(hcd); local 117 ret = admhc_init(ahcd); 123 ret = admhc_run(ahcd);
|