/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ohci-hub.c | 47 static int ohci_rh_suspend (struct ohci_hcd *ohci, int autostop) 48 __releases(ohci->lock) 49 __acquires(ohci->lock) 53 ohci->hc_control = ohci_readl (ohci, &ohci->regs->control); 54 switch (ohci->hc_control & OHCI_CTRL_HCFS) { 56 ohci_dbg (ohci, "resume/suspend?\n"); 57 ohci->hc_control &= ~OHCI_CTRL_HCFS; 58 ohci 91 update_done_list(ohci); global() variable 92 ohci_work(ohci); global() variable 235 periodic_reinit (ohci); global() variable 306 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_bus_suspend() local 326 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_bus_resume() local 347 ohci_root_hub_state_changes(struct ohci_hcd *ohci, int changed, int any_connected, int rhsc_status) ohci_root_hub_state_changes() argument 435 ohci_rh_resume(struct ohci_hcd *ohci) ohci_rh_resume() argument 443 ohci_root_hub_state_changes(struct ohci_hcd *ohci, int changed, int any_connected, int rhsc_status) ohci_root_hub_state_changes() argument 470 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_hub_status_data() local 538 ohci_hub_descriptor( struct ohci_hcd *ohci, struct usb_hub_descriptor *desc ) ohci_hub_descriptor() argument 582 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_start_port_reset() local 620 root_port_reset(struct ohci_hcd *ohci, unsigned port) root_port_reset() argument 684 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_hub_control() local [all...] |
H A D | ohci-hcd.c | 11 * [ uhci code and gregs ohci fragments ] 80 #include "ohci.h" 83 static void ohci_dump(struct ohci_hcd *ohci); 87 #include "ohci-hub.c" 88 #include "ohci-dbg.c" 89 #include "ohci-mem.c" 90 #include "ohci-q.c" 152 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_enqueue() local 161 ed = ed_get(ohci, urb->ep, urb->dev, pipe, urb->interval); in ohci_urb_enqueue() 204 urb_priv->td [i] = td_alloc (ohci, mem_flag in ohci_urb_enqueue() 317 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_urb_dequeue() local 352 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_endpoint_disable() local 405 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_get_frame() local 410 ohci_usb_reset(struct ohci_hcd *ohci) ohci_usb_reset() argument 424 struct ohci_hcd *ohci; _ohci_shutdown() local 440 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_shutdown() local 454 ohci_init(struct ohci_hcd *ohci) ohci_init() argument 545 ohci_run(struct ohci_hcd *ohci) ohci_run() argument 715 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_setup() local 726 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_start() local 751 struct ohci_hcd *ohci = from_timer(ohci, t, io_watchdog); io_watchdog_func() local 880 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_irq() local 994 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_stop() local 1032 ohci_restart(struct ohci_hcd *ohci) ohci_restart() argument 1100 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_suspend() local 1128 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_resume() local [all...] |
H A D | ohci-q.c | 38 * PRECONDITION: ohci lock held, irqs blocked. 41 finish_urb(struct ohci_hcd *ohci, struct urb *urb, int status) 42 __releases(ohci->lock) 43 __acquires(ohci->lock) 45 struct device *dev = ohci_to_hcd(ohci)->self.controller; 52 urb_free_priv (ohci, urb->hcpriv); 59 ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs--; 60 if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0) { 61 if (quirk_amdiso(ohci)) 63 if (quirk_amdprefetch(ohci)) 109 balance(struct ohci_hcd *ohci, int interval, int load) balance() argument 143 periodic_link(struct ohci_hcd *ohci, struct ed *ed) periodic_link() argument 183 ed_schedule(struct ohci_hcd *ohci, struct ed *ed) ed_schedule() argument 270 periodic_unlink(struct ohci_hcd *ohci, struct ed *ed) periodic_unlink() argument 317 ed_deschedule(struct ohci_hcd *ohci, struct ed *ed) ed_deschedule() argument 400 ed_get( struct ohci_hcd *ohci, struct usb_host_endpoint *ep, struct usb_device *udev, unsigned int pipe, int interval ) ed_get() argument 484 start_ed_unlink(struct ohci_hcd *ohci, struct ed *ed) start_ed_unlink() argument 516 td_fill(struct ohci_hcd *ohci, u32 info, dma_addr_t data, int len, struct urb *urb, int index) td_fill() argument 591 td_submit_urb( struct ohci_hcd *ohci, struct urb *urb ) td_submit_urb() argument 756 td_done(struct ohci_hcd *ohci, struct urb *urb, struct td *td) td_done() argument 833 ed_halted(struct ohci_hcd *ohci, struct td *td, int cc) ed_halted() argument 899 add_to_done_list(struct ohci_hcd *ohci, struct td *td) add_to_done_list() argument 935 update_done_list(struct ohci_hcd *ohci) update_done_list() argument 975 finish_unlinks(struct ohci_hcd *ohci) finish_unlinks() argument 1150 takeback_td(struct ohci_hcd *ohci, struct td *td) takeback_td() argument 1198 process_done_list(struct ohci_hcd *ohci) process_done_list() argument 1217 ohci_work(struct ohci_hcd *ohci) ohci_work() argument [all...] |
H A D | ohci.h | 75 #define OKAY_TO_TAKEBACK(ohci, ed) \ 76 ((int) (ohci->wdh_cnt - ed->takeback_wdh_cnt) >= 0) 350 * This is the full ohci controller description 384 void (*start_hnp)(struct ohci_hcd *ohci); 443 static inline int quirk_nec(struct ohci_hcd *ohci) in quirk_nec() argument 445 return ohci->flags & OHCI_QUIRK_NEC; in quirk_nec() 447 static inline int quirk_zfmicro(struct ohci_hcd *ohci) in quirk_zfmicro() argument 449 return ohci->flags & OHCI_QUIRK_ZFMICRO; in quirk_zfmicro() 451 static inline int quirk_amdiso(struct ohci_hcd *ohci) in quirk_amdiso() argument 453 return ohci in quirk_amdiso() 455 quirk_amdprefetch(struct ohci_hcd *ohci) quirk_amdprefetch() argument 460 quirk_nec(struct ohci_hcd *ohci) quirk_nec() argument 464 quirk_zfmicro(struct ohci_hcd *ohci) quirk_zfmicro() argument 468 quirk_amdiso(struct ohci_hcd *ohci) quirk_amdiso() argument 472 quirk_amdprefetch(struct ohci_hcd *ohci) quirk_amdprefetch() argument 483 ohci_to_hcd(const struct ohci_hcd *ohci) ohci_to_hcd() argument 561 _ohci_readl(const struct ohci_hcd *ohci, __hc32 __iomem * regs) _ohci_readl() argument 573 _ohci_writel(const struct ohci_hcd *ohci, const unsigned int val, __hc32 __iomem *regs) _ohci_writel() argument 592 cpu_to_hc16(const struct ohci_hcd *ohci, const u16 x) cpu_to_hc16() argument 599 cpu_to_hc16p(const struct ohci_hcd *ohci, const u16 *x) cpu_to_hc16p() argument 606 cpu_to_hc32(const struct ohci_hcd *ohci, const u32 x) cpu_to_hc32() argument 613 cpu_to_hc32p(const struct ohci_hcd *ohci, const u32 *x) cpu_to_hc32p() argument 621 hc16_to_cpu(const struct ohci_hcd *ohci, const __hc16 x) hc16_to_cpu() argument 628 hc16_to_cpup(const struct ohci_hcd *ohci, const __hc16 *x) hc16_to_cpup() argument 635 hc32_to_cpu(const struct ohci_hcd *ohci, const __hc32 x) hc32_to_cpu() argument 642 hc32_to_cpup(const struct ohci_hcd *ohci, const __hc32 *x) hc32_to_cpup() argument 661 ohci_frame_no(const struct ohci_hcd *ohci) ohci_frame_no() argument 674 ohci_hwPSWp(const struct ohci_hcd *ohci, const struct td *td, int index) ohci_hwPSWp() argument 681 ohci_hwPSW(const struct ohci_hcd *ohci, const struct td *td, int index) ohci_hwPSW() argument 694 periodic_reinit(struct ohci_hcd *ohci) periodic_reinit() argument [all...] |
H A D | ohci-pci.c | 9 * [ uhci code and gregs ohci fragments ] 25 #include "ohci.h" 30 static const char hcd_name[] = "ohci-pci"; 46 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_amd756() local 48 ohci->flags = OHCI_QUIRK_AMD756; in ohci_quirk_amd756() 49 ohci_dbg (ohci, "AMD756 erratum 4 workaround\n"); in ohci_quirk_amd756() 61 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_opti() local 63 ohci_dbg (ohci, "WARNING: OPTi workarounds unavailable\n"); in ohci_quirk_opti() 80 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_ns() local 82 ohci in ohci_quirk_ns() 96 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_quirk_zfmicro() local 109 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_quirk_toshiba_scc() local 131 struct ohci_hcd *ohci = container_of(work, struct ohci_hcd, nec_work); ohci_quirk_nec_worker() local 142 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_quirk_nec() local 153 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_quirk_amd700() local 170 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_quirk_qemu() local 240 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_pci_reset() local [all...] |
H A D | ohci-dbg.c | 23 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ 30 ohci_dbg(ohci,format, ## arg ); \ 34 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ 43 struct ohci_hcd *ohci, in ohci_dump_intr_mask() 49 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n", in ohci_dump_intr_mask() 65 struct ohci_hcd *ohci, in maybe_print_eds() 72 ohci_dbg_sw (ohci, next, size, "%s %08x\n", label, value); in maybe_print_eds() 86 static const char *rh_state_string(struct ohci_hcd *ohci) in rh_state_string() argument 88 switch (ohci->rh_state) { in rh_state_string() 255 static void ohci_dump_td (const struct ohci_hcd *ohci, cons argument 42 ohci_dump_intr_mask( struct ohci_hcd *ohci, char *label, u32 mask, char **next, unsigned *size) ohci_dump_intr_mask() argument 64 maybe_print_eds( struct ohci_hcd *ohci, char *label, u32 value, char **next, unsigned *size) maybe_print_eds() argument 312 ohci_dump_ed(const struct ohci_hcd *ohci, const char *label, const struct ed *ed, int verbose) ohci_dump_ed() argument 393 struct ohci_hcd *ohci; global() member 400 show_list(struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed) show_list() argument 467 struct ohci_hcd *ohci; fill_async_buffer() local 488 struct ohci_hcd *ohci; fill_periodic_buffer() local 584 struct ohci_hcd *ohci; fill_registers_buffer() local 665 alloc_buffer(struct ohci_hcd *ohci, ssize_t (*fill_func)(struct debug_buffer *)) alloc_buffer() argument 762 create_debug_files(struct ohci_hcd *ohci) create_debug_files() argument 779 remove_debug_files(struct ohci_hcd *ohci) remove_debug_files() argument [all...] |
H A D | ohci-mem.c | 27 static void ohci_hcd_init (struct ohci_hcd *ohci) in ohci_hcd_init() argument 29 ohci->next_statechange = jiffies; in ohci_hcd_init() 30 spin_lock_init (&ohci->lock); in ohci_hcd_init() 31 INIT_LIST_HEAD (&ohci->pending); in ohci_hcd_init() 32 INIT_LIST_HEAD(&ohci->eds_in_use); in ohci_hcd_init() 37 static int ohci_mem_init (struct ohci_hcd *ohci) in ohci_mem_init() argument 43 if (ohci_to_hcd(ohci)->localmem_pool) in ohci_mem_init() 46 ohci->td_cache = dma_pool_create ("ohci_td", in ohci_mem_init() 47 ohci_to_hcd(ohci)->self.controller, in ohci_mem_init() 51 if (!ohci in ohci_mem_init() 65 ohci_mem_cleanup(struct ohci_hcd *ohci) ohci_mem_cleanup() argument [all...] |
H A D | ohci-ppc-of.c | 12 * Modified for of_platform bus from ohci-sa1111.c 28 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_ppc_of_start() local 31 if ((ret = ohci_init(ohci)) < 0) in ohci_ppc_of_start() 34 if ((ret = ohci_run(ohci)) < 0) { in ohci_ppc_of_start() 91 struct ohci_hcd *ohci; in ohci_hcd_ppc_of_probe() local 103 of_device_is_compatible(dn, "ohci-bigendian") || in ohci_hcd_ppc_of_probe() 104 of_device_is_compatible(dn, "ohci-be"); in ohci_hcd_ppc_of_probe() 133 ohci = hcd_to_ohci(hcd); in ohci_hcd_ppc_of_probe() 135 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in ohci_hcd_ppc_of_probe() 136 if (of_device_is_compatible(dn, "fsl,mpc5200-ohci")) in ohci_hcd_ppc_of_probe() [all...] |
H A D | Makefile | 58 obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o 59 obj-$(CONFIG_USB_OHCI_HCD_PCI) += ohci-pci.o 60 obj-$(CONFIG_USB_OHCI_HCD_PLATFORM) += ohci-platform.o 61 obj-$(CONFIG_USB_OHCI_EXYNOS) += ohci-exynos.o 62 obj-$(CONFIG_USB_OHCI_HCD_OMAP1) += ohci-omap.o 63 obj-$(CONFIG_USB_OHCI_HCD_SPEAR) += ohci-spear.o 64 obj-$(CONFIG_USB_OHCI_HCD_STI) += ohci-st.o 65 obj-$(CONFIG_USB_OHCI_HCD_AT91) += ohci-at91.o 66 obj-$(CONFIG_USB_OHCI_HCD_S3C2410) += ohci-s3c2410.o 67 obj-$(CONFIG_USB_OHCI_HCD_LPC32XX) += ohci [all...] |
H A D | ohci-tmio.c | 21 * usb-ohci-tc6393.c(C) Copyright 2004 Lineo Solutions, Inc. 92 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in tmio_stop_hc() local 97 switch (ohci->num_ports) { in tmio_stop_hc() 99 dev_err(&dev->dev, "Unsupported amount of ports: %d\n", ohci->num_ports); in tmio_stop_hc() 136 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_tmio_start() local 139 if ((ret = ohci_init(ohci)) < 0) in ohci_tmio_start() 142 if ((ret = ohci_run(ohci)) < 0) { in ohci_tmio_start() 195 struct ohci_hcd *ohci; in ohci_hcd_tmio_drv_probe() local 240 ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_probe() 241 ohci_hcd_init(ohci); in ohci_hcd_tmio_drv_probe() 295 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_hcd_tmio_drv_suspend() local 325 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_hcd_tmio_drv_resume() local [all...] |
H A D | ohci-omap.c | 13 * and on ohci-sa1111.c by Christopher Hoover <ch@hpl.hp.com> 32 #include "ohci.h" 63 static const char hcd_name[] = "ohci-omap"; 164 static void start_hnp(struct ohci_hcd *ohci) in start_hnp() argument 166 struct usb_hcd *hcd = ohci_to_hcd(ohci); in start_hnp() 175 writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); in start_hnp() 188 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_reset() local 215 &ohci_to_hcd(ohci)->self); in ohci_omap_reset() 226 ohci->start_hnp = start_hnp; in ohci_omap_reset() 242 ohci in ohci_omap_reset() 436 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_omap_suspend() local 456 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_omap_resume() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ohci-hub.c | 47 static int ohci_rh_suspend (struct ohci_hcd *ohci, int autostop) 48 __releases(ohci->lock) 49 __acquires(ohci->lock) 53 ohci->hc_control = ohci_readl (ohci, &ohci->regs->control); 54 switch (ohci->hc_control & OHCI_CTRL_HCFS) { 56 ohci_dbg (ohci, "resume/suspend?\n"); 57 ohci->hc_control &= ~OHCI_CTRL_HCFS; 58 ohci 91 update_done_list(ohci); global() variable 92 ohci_work(ohci); global() variable 235 periodic_reinit (ohci); global() variable 306 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_bus_suspend() local 326 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_bus_resume() local 347 ohci_root_hub_state_changes(struct ohci_hcd *ohci, int changed, int any_connected, int rhsc_status) ohci_root_hub_state_changes() argument 435 ohci_rh_resume(struct ohci_hcd *ohci) ohci_rh_resume() argument 443 ohci_root_hub_state_changes(struct ohci_hcd *ohci, int changed, int any_connected, int rhsc_status) ohci_root_hub_state_changes() argument 470 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_hub_status_data() local 538 ohci_hub_descriptor( struct ohci_hcd *ohci, struct usb_hub_descriptor *desc ) ohci_hub_descriptor() argument 582 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_start_port_reset() local 620 root_port_reset(struct ohci_hcd *ohci, unsigned port) root_port_reset() argument 684 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_hub_control() local [all...] |
H A D | ohci-hcd.c | 11 * [ uhci code and gregs ohci fragments ] 80 #include "ohci.h" 83 static void ohci_dump(struct ohci_hcd *ohci); 87 #include "ohci-hub.c" 88 #include "ohci-dbg.c" 89 #include "ohci-mem.c" 90 #include "ohci-q.c" 152 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_enqueue() local 161 ed = ed_get(ohci, urb->ep, urb->dev, pipe, urb->interval); in ohci_urb_enqueue() 202 urb_priv->td [i] = td_alloc (ohci, mem_flag in ohci_urb_enqueue() 315 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_urb_dequeue() local 350 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_endpoint_disable() local 403 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_get_frame() local 408 ohci_usb_reset(struct ohci_hcd *ohci) ohci_usb_reset() argument 422 struct ohci_hcd *ohci; _ohci_shutdown() local 438 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_shutdown() local 452 ohci_init(struct ohci_hcd *ohci) ohci_init() argument 543 ohci_run(struct ohci_hcd *ohci) ohci_run() argument 713 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_setup() local 724 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_start() local 749 struct ohci_hcd *ohci = from_timer(ohci, t, io_watchdog); io_watchdog_func() local 878 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_irq() local 992 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_stop() local 1030 ohci_restart(struct ohci_hcd *ohci) ohci_restart() argument 1098 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_suspend() local 1126 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_resume() local [all...] |
H A D | ohci-q.c | 38 * PRECONDITION: ohci lock held, irqs blocked. 41 finish_urb(struct ohci_hcd *ohci, struct urb *urb, int status) 42 __releases(ohci->lock) 43 __acquires(ohci->lock) 45 struct device *dev = ohci_to_hcd(ohci)->self.controller; 52 urb_free_priv (ohci, urb->hcpriv); 59 ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs--; 60 if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0) { 61 if (quirk_amdiso(ohci)) 63 if (quirk_amdprefetch(ohci)) 109 balance(struct ohci_hcd *ohci, int interval, int load) balance() argument 143 periodic_link(struct ohci_hcd *ohci, struct ed *ed) periodic_link() argument 183 ed_schedule(struct ohci_hcd *ohci, struct ed *ed) ed_schedule() argument 270 periodic_unlink(struct ohci_hcd *ohci, struct ed *ed) periodic_unlink() argument 317 ed_deschedule(struct ohci_hcd *ohci, struct ed *ed) ed_deschedule() argument 400 ed_get( struct ohci_hcd *ohci, struct usb_host_endpoint *ep, struct usb_device *udev, unsigned int pipe, int interval ) ed_get() argument 484 start_ed_unlink(struct ohci_hcd *ohci, struct ed *ed) start_ed_unlink() argument 516 td_fill(struct ohci_hcd *ohci, u32 info, dma_addr_t data, int len, struct urb *urb, int index) td_fill() argument 591 td_submit_urb( struct ohci_hcd *ohci, struct urb *urb ) td_submit_urb() argument 756 td_done(struct ohci_hcd *ohci, struct urb *urb, struct td *td) td_done() argument 833 ed_halted(struct ohci_hcd *ohci, struct td *td, int cc) ed_halted() argument 899 add_to_done_list(struct ohci_hcd *ohci, struct td *td) add_to_done_list() argument 935 update_done_list(struct ohci_hcd *ohci) update_done_list() argument 975 finish_unlinks(struct ohci_hcd *ohci) finish_unlinks() argument 1150 takeback_td(struct ohci_hcd *ohci, struct td *td) takeback_td() argument 1198 process_done_list(struct ohci_hcd *ohci) process_done_list() argument 1217 ohci_work(struct ohci_hcd *ohci) ohci_work() argument [all...] |
H A D | ohci.h | 75 #define OKAY_TO_TAKEBACK(ohci, ed) \ 76 ((int) (ohci->wdh_cnt - ed->takeback_wdh_cnt) >= 0) 350 * This is the full ohci controller description 384 void (*start_hnp)(struct ohci_hcd *ohci); 443 static inline int quirk_nec(struct ohci_hcd *ohci) in quirk_nec() argument 445 return ohci->flags & OHCI_QUIRK_NEC; in quirk_nec() 447 static inline int quirk_zfmicro(struct ohci_hcd *ohci) in quirk_zfmicro() argument 449 return ohci->flags & OHCI_QUIRK_ZFMICRO; in quirk_zfmicro() 451 static inline int quirk_amdiso(struct ohci_hcd *ohci) in quirk_amdiso() argument 453 return ohci in quirk_amdiso() 455 quirk_amdprefetch(struct ohci_hcd *ohci) quirk_amdprefetch() argument 460 quirk_nec(struct ohci_hcd *ohci) quirk_nec() argument 464 quirk_zfmicro(struct ohci_hcd *ohci) quirk_zfmicro() argument 468 quirk_amdiso(struct ohci_hcd *ohci) quirk_amdiso() argument 472 quirk_amdprefetch(struct ohci_hcd *ohci) quirk_amdprefetch() argument 483 ohci_to_hcd(const struct ohci_hcd *ohci) ohci_to_hcd() argument 561 _ohci_readl(const struct ohci_hcd *ohci, __hc32 __iomem * regs) _ohci_readl() argument 573 _ohci_writel(const struct ohci_hcd *ohci, const unsigned int val, __hc32 __iomem *regs) _ohci_writel() argument 592 cpu_to_hc16(const struct ohci_hcd *ohci, const u16 x) cpu_to_hc16() argument 599 cpu_to_hc16p(const struct ohci_hcd *ohci, const u16 *x) cpu_to_hc16p() argument 606 cpu_to_hc32(const struct ohci_hcd *ohci, const u32 x) cpu_to_hc32() argument 613 cpu_to_hc32p(const struct ohci_hcd *ohci, const u32 *x) cpu_to_hc32p() argument 621 hc16_to_cpu(const struct ohci_hcd *ohci, const __hc16 x) hc16_to_cpu() argument 628 hc16_to_cpup(const struct ohci_hcd *ohci, const __hc16 *x) hc16_to_cpup() argument 635 hc32_to_cpu(const struct ohci_hcd *ohci, const __hc32 x) hc32_to_cpu() argument 642 hc32_to_cpup(const struct ohci_hcd *ohci, const __hc32 *x) hc32_to_cpup() argument 661 ohci_frame_no(const struct ohci_hcd *ohci) ohci_frame_no() argument 674 ohci_hwPSWp(const struct ohci_hcd *ohci, const struct td *td, int index) ohci_hwPSWp() argument 681 ohci_hwPSW(const struct ohci_hcd *ohci, const struct td *td, int index) ohci_hwPSW() argument 694 periodic_reinit(struct ohci_hcd *ohci) periodic_reinit() argument [all...] |
H A D | ohci-pci.c | 9 * [ uhci code and gregs ohci fragments ] 25 #include "ohci.h" 30 static const char hcd_name[] = "ohci-pci"; 46 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_amd756() local 48 ohci->flags = OHCI_QUIRK_AMD756; in ohci_quirk_amd756() 49 ohci_dbg (ohci, "AMD756 erratum 4 workaround\n"); in ohci_quirk_amd756() 61 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_opti() local 63 ohci_dbg (ohci, "WARNING: OPTi workarounds unavailable\n"); in ohci_quirk_opti() 80 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_ns() local 82 ohci in ohci_quirk_ns() 96 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_quirk_zfmicro() local 109 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_quirk_toshiba_scc() local 131 struct ohci_hcd *ohci = container_of(work, struct ohci_hcd, nec_work); ohci_quirk_nec_worker() local 142 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_quirk_nec() local 153 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_quirk_amd700() local 170 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_quirk_qemu() local 240 struct ohci_hcd *ohci = hcd_to_ohci (hcd); ohci_pci_reset() local [all...] |
H A D | ohci-dbg.c | 23 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ 30 ohci_dbg(ohci,format, ## arg ); \ 34 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ 43 struct ohci_hcd *ohci, in ohci_dump_intr_mask() 49 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n", in ohci_dump_intr_mask() 65 struct ohci_hcd *ohci, in maybe_print_eds() 72 ohci_dbg_sw (ohci, next, size, "%s %08x\n", label, value); in maybe_print_eds() 86 static const char *rh_state_string(struct ohci_hcd *ohci) in rh_state_string() argument 88 switch (ohci->rh_state) { in rh_state_string() 255 static void ohci_dump_td (const struct ohci_hcd *ohci, cons argument 42 ohci_dump_intr_mask( struct ohci_hcd *ohci, char *label, u32 mask, char **next, unsigned *size) ohci_dump_intr_mask() argument 64 maybe_print_eds( struct ohci_hcd *ohci, char *label, u32 value, char **next, unsigned *size) maybe_print_eds() argument 312 ohci_dump_ed(const struct ohci_hcd *ohci, const char *label, const struct ed *ed, int verbose) ohci_dump_ed() argument 393 struct ohci_hcd *ohci; global() member 400 show_list(struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed) show_list() argument 467 struct ohci_hcd *ohci; fill_async_buffer() local 488 struct ohci_hcd *ohci; fill_periodic_buffer() local 584 struct ohci_hcd *ohci; fill_registers_buffer() local 665 alloc_buffer(struct ohci_hcd *ohci, ssize_t (*fill_func)(struct debug_buffer *)) alloc_buffer() argument 762 create_debug_files(struct ohci_hcd *ohci) create_debug_files() argument 779 remove_debug_files(struct ohci_hcd *ohci) remove_debug_files() argument [all...] |
H A D | ohci-mem.c | 27 static void ohci_hcd_init (struct ohci_hcd *ohci) in ohci_hcd_init() argument 29 ohci->next_statechange = jiffies; in ohci_hcd_init() 30 spin_lock_init (&ohci->lock); in ohci_hcd_init() 31 INIT_LIST_HEAD (&ohci->pending); in ohci_hcd_init() 32 INIT_LIST_HEAD(&ohci->eds_in_use); in ohci_hcd_init() 37 static int ohci_mem_init (struct ohci_hcd *ohci) in ohci_mem_init() argument 43 if (ohci_to_hcd(ohci)->localmem_pool) in ohci_mem_init() 46 ohci->td_cache = dma_pool_create ("ohci_td", in ohci_mem_init() 47 ohci_to_hcd(ohci)->self.controller, in ohci_mem_init() 51 if (!ohci in ohci_mem_init() 65 ohci_mem_cleanup(struct ohci_hcd *ohci) ohci_mem_cleanup() argument [all...] |
H A D | ohci-ppc-of.c | 12 * Modified for of_platform bus from ohci-sa1111.c 26 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_ppc_of_start() local 29 if ((ret = ohci_init(ohci)) < 0) in ohci_ppc_of_start() 32 if ((ret = ohci_run(ohci)) < 0) { in ohci_ppc_of_start() 89 struct ohci_hcd *ohci; in ohci_hcd_ppc_of_probe() local 101 of_device_is_compatible(dn, "ohci-bigendian") || in ohci_hcd_ppc_of_probe() 102 of_device_is_compatible(dn, "ohci-be"); in ohci_hcd_ppc_of_probe() 131 ohci = hcd_to_ohci(hcd); in ohci_hcd_ppc_of_probe() 133 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in ohci_hcd_ppc_of_probe() 134 if (of_device_is_compatible(dn, "fsl,mpc5200-ohci")) in ohci_hcd_ppc_of_probe() [all...] |
H A D | Makefile | 53 obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o 54 obj-$(CONFIG_USB_OHCI_HCD_PCI) += ohci-pci.o 55 obj-$(CONFIG_USB_OHCI_HCD_PLATFORM) += ohci-platform.o 56 obj-$(CONFIG_USB_OHCI_EXYNOS) += ohci-exynos.o 57 obj-$(CONFIG_USB_OHCI_HCD_OMAP1) += ohci-omap.o 58 obj-$(CONFIG_USB_OHCI_HCD_SPEAR) += ohci-spear.o 59 obj-$(CONFIG_USB_OHCI_HCD_STI) += ohci-st.o 60 obj-$(CONFIG_USB_OHCI_HCD_AT91) += ohci-at91.o 61 obj-$(CONFIG_USB_OHCI_HCD_S3C2410) += ohci-s3c2410.o 62 obj-$(CONFIG_USB_OHCI_HCD_LPC32XX) += ohci [all...] |
H A D | ohci-omap.c | 13 * and on ohci-sa1111.c by Christopher Hoover <ch@hpl.hp.com> 37 #include "ohci.h" 51 static const char hcd_name[] = "ohci-omap"; 70 static void start_hnp(struct ohci_hcd *ohci) in start_hnp() argument 72 struct usb_hcd *hcd = ohci_to_hcd(ohci); in start_hnp() 81 writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); in start_hnp() 92 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_reset() local 114 &ohci_to_hcd(ohci)->self); in ohci_omap_reset() 125 ohci->start_hnp = start_hnp; in ohci_omap_reset() 138 ohci in ohci_omap_reset() 352 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_omap_suspend() local 372 struct ohci_hcd *ohci = hcd_to_ohci(hcd); ohci_omap_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/firewire/ |
H A D | init_ohci1394_dma.c | 32 #include "ohci.h" 36 struct ohci { struct 40 static inline void reg_write(const struct ohci *ohci, int offset, u32 data) in reg_write() argument 42 writel(data, ohci->registers + offset); in reg_write() 45 static inline u32 reg_read(const struct ohci *ohci, int offset) in reg_read() argument 47 return readl(ohci->registers + offset); in reg_read() 53 static inline u8 __init get_phy_reg(struct ohci *ohci, u argument 71 set_phy_reg(struct ohci *ohci, u8 addr, u8 data) set_phy_reg() argument 85 init_ohci1394_soft_reset(struct ohci *ohci) init_ohci1394_soft_reset() argument 104 init_ohci1394_initialize(struct ohci *ohci) init_ohci1394_initialize() argument 177 init_ohci1394_wait_for_busresets(struct ohci *ohci) init_ohci1394_wait_for_busresets() argument 195 init_ohci1394_enable_physical_dma(struct ohci *ohci) init_ohci1394_enable_physical_dma() argument 206 init_ohci1394_reset_and_init_dma(struct ohci *ohci) init_ohci1394_reset_and_init_dma() argument 238 struct ohci ohci; init_ohci1394_controller() local [all...] |
H A D | ohci.c | 42 #include "ohci.h" 44 #define ohci_info(ohci, f, args...) dev_info(ohci->card.device, f, ##args) 45 #define ohci_notice(ohci, f, args...) dev_notice(ohci->card.device, f, ##args) 46 #define ohci_err(ohci, f, args...) dev_err(ohci->card.device, f, ##args) 88 struct fw_ohci *ohci; member 118 struct fw_ohci *ohci; member 291 static bool has_reboot_by_cycle_timer_read_quirk(const struct fw_ohci *ohci) in has_reboot_by_cycle_timer_read_quirk() argument 411 log_irqs(struct fw_ohci *ohci, u32 evt) log_irqs() argument 460 log_selfids(struct fw_ohci *ohci, int generation, int self_id_count) log_selfids() argument 516 log_ar_at_event(struct fw_ohci *ohci, char dir, int speed, u32 *header, int evt) log_ar_at_event() argument 572 reg_write(const struct fw_ohci *ohci, int offset, u32 data) reg_write() argument 577 reg_read(const struct fw_ohci *ohci, int offset) reg_read() argument 582 flush_writes(const struct fw_ohci *ohci) flush_writes() argument 594 read_phy_reg(struct fw_ohci *ohci, int addr) read_phy_reg() argument 621 write_phy_reg(const struct fw_ohci *ohci, int addr, u32 val) write_phy_reg() argument 644 update_phy_reg(struct fw_ohci *ohci, int addr, int clear_bits, int set_bits) update_phy_reg() argument 661 read_paged_phy_reg(struct fw_ohci *ohci, int page, int addr) read_paged_phy_reg() argument 674 struct fw_ohci *ohci = fw_ohci(card); ohci_read_phy_reg() local 687 struct fw_ohci *ohci = fw_ohci(card); ohci_update_phy_reg() local 736 struct fw_ohci *ohci = ctx->ohci; ar_context_abort() local 844 struct fw_ohci *ohci = ctx->ohci; handle_ar_packet() local 1014 ar_context_init(struct ar_context *ctx, struct fw_ohci *ohci, unsigned int descriptors_offset, u32 regs) ar_context_init() argument 1175 context_init(struct context *ctx, struct fw_ohci *ohci, u32 regs, descriptor_callback_t callback) context_init() argument 1253 struct fw_ohci *ohci = ctx->ohci; context_run() local 1301 struct fw_ohci *ohci = ctx->ohci; context_stop() local 1332 struct fw_ohci *ohci = ctx->ohci; at_context_queue_packet() local 1476 struct fw_ohci *ohci = context->ohci; handle_at_packet() local 1557 handle_local_rom(struct fw_ohci *ohci, struct fw_packet *packet, u32 csr) handle_local_rom() argument 1584 handle_local_lock(struct fw_ohci *ohci, struct fw_packet *packet, u32 csr) handle_local_lock() argument 1693 detect_dead_context(struct fw_ohci *ohci, const char *name, unsigned int regs) detect_dead_context() argument 1704 handle_dead_contexts(struct fw_ohci *ohci) handle_dead_contexts() argument 1754 get_cycle_time(struct fw_ohci *ohci) get_cycle_time() argument 1793 update_bus_time(struct fw_ohci *ohci) update_bus_time() argument 1810 get_status_for_port(struct fw_ohci *ohci, int port_index) get_status_for_port() argument 1831 get_self_id_pos(struct fw_ohci *ohci, u32 self_id, int self_id_count) get_self_id_pos() argument 1847 initiated_reset(struct fw_ohci *ohci) initiated_reset() argument 1877 find_and_insert_self_id(struct fw_ohci *ohci, int self_id_count) find_and_insert_self_id() argument 1923 struct fw_ohci *ohci = bus_reset_work() local 2108 struct fw_ohci *ohci = data; irq_handler() local 2207 software_reset(struct fw_ohci *ohci) software_reset() argument 2236 configure_1394a_enhancements(struct fw_ohci *ohci) configure_1394a_enhancements() argument 2287 probe_tsb41ba3d(struct fw_ohci *ohci) probe_tsb41ba3d() argument 2312 struct fw_ohci *ohci = fw_ohci(card); ohci_enable() local 2490 struct fw_ohci *ohci; ohci_set_config_rom() local 2577 struct fw_ohci *ohci = fw_ohci(card); ohci_send_request() local 2584 struct fw_ohci *ohci = fw_ohci(card); ohci_send_response() local 2591 struct fw_ohci *ohci = fw_ohci(card); ohci_cancel_packet() local 2619 struct fw_ohci *ohci = fw_ohci(card); ohci_enable_phys_dma() local 2658 struct fw_ohci *ohci = fw_ohci(card); ohci_read_csr() local 2709 struct fw_ohci *ohci = fw_ohci(card); ohci_write_csr() local 2965 set_multichannel_mask(struct fw_ohci *ohci, u64 channels) set_multichannel_mask() argument 2979 struct fw_ohci *ohci = fw_ohci(card); ohci_allocate_iso_context() local 3078 struct fw_ohci *ohci = ctx->context.ohci; ohci_start_iso() local 3126 struct fw_ohci *ohci = fw_ohci(base->card); ohci_stop_iso() local 3151 struct fw_ohci *ohci = fw_ohci(base->card); ohci_free_iso_context() local 3188 struct fw_ohci *ohci = fw_ohci(base->card); ohci_set_iso_channels() local 3217 ohci_resume_iso_dma(struct fw_ohci *ohci) ohci_resume_iso_dma() argument 3598 struct fw_ohci *ohci; pci_probe() local 3798 struct fw_ohci *ohci = pci_get_drvdata(dev); pci_remove() local 3846 struct fw_ohci *ohci = pci_get_drvdata(dev); pci_suspend() local 3865 struct fw_ohci *ohci = pci_get_drvdata(dev); pci_resume() local [all...] |
/kernel/linux/linux-6.6/drivers/firewire/ |
H A D | init_ohci1394_dma.c | 32 #include "ohci.h" 36 struct ohci { struct 40 static inline void reg_write(const struct ohci *ohci, int offset, u32 data) in reg_write() argument 42 writel(data, ohci->registers + offset); in reg_write() 45 static inline u32 reg_read(const struct ohci *ohci, int offset) in reg_read() argument 47 return readl(ohci->registers + offset); in reg_read() 53 static inline u8 __init get_phy_reg(struct ohci *ohci, u argument 71 set_phy_reg(struct ohci *ohci, u8 addr, u8 data) set_phy_reg() argument 85 init_ohci1394_soft_reset(struct ohci *ohci) init_ohci1394_soft_reset() argument 104 init_ohci1394_initialize(struct ohci *ohci) init_ohci1394_initialize() argument 177 init_ohci1394_wait_for_busresets(struct ohci *ohci) init_ohci1394_wait_for_busresets() argument 195 init_ohci1394_enable_physical_dma(struct ohci *ohci) init_ohci1394_enable_physical_dma() argument 206 init_ohci1394_reset_and_init_dma(struct ohci *ohci) init_ohci1394_reset_and_init_dma() argument 238 struct ohci ohci; init_ohci1394_controller() local [all...] |
H A D | ohci.c | 42 #include "ohci.h" 44 #define ohci_info(ohci, f, args...) dev_info(ohci->card.device, f, ##args) 45 #define ohci_notice(ohci, f, args...) dev_notice(ohci->card.device, f, ##args) 46 #define ohci_err(ohci, f, args...) dev_err(ohci->card.device, f, ##args) 88 struct fw_ohci *ohci; member 118 struct fw_ohci *ohci; member 291 static bool has_reboot_by_cycle_timer_read_quirk(const struct fw_ohci *ohci) in has_reboot_by_cycle_timer_read_quirk() argument 411 log_irqs(struct fw_ohci *ohci, u32 evt) log_irqs() argument 460 log_selfids(struct fw_ohci *ohci, int generation, int self_id_count) log_selfids() argument 516 log_ar_at_event(struct fw_ohci *ohci, char dir, int speed, u32 *header, int evt) log_ar_at_event() argument 572 reg_write(const struct fw_ohci *ohci, int offset, u32 data) reg_write() argument 577 reg_read(const struct fw_ohci *ohci, int offset) reg_read() argument 582 flush_writes(const struct fw_ohci *ohci) flush_writes() argument 594 read_phy_reg(struct fw_ohci *ohci, int addr) read_phy_reg() argument 621 write_phy_reg(const struct fw_ohci *ohci, int addr, u32 val) write_phy_reg() argument 644 update_phy_reg(struct fw_ohci *ohci, int addr, int clear_bits, int set_bits) update_phy_reg() argument 661 read_paged_phy_reg(struct fw_ohci *ohci, int page, int addr) read_paged_phy_reg() argument 674 struct fw_ohci *ohci = fw_ohci(card); ohci_read_phy_reg() local 687 struct fw_ohci *ohci = fw_ohci(card); ohci_update_phy_reg() local 739 struct fw_ohci *ohci = ctx->ohci; ar_context_abort() local 847 struct fw_ohci *ohci = ctx->ohci; handle_ar_packet() local 1017 ar_context_init(struct ar_context *ctx, struct fw_ohci *ohci, unsigned int descriptors_offset, u32 regs) ar_context_init() argument 1177 context_init(struct context *ctx, struct fw_ohci *ohci, u32 regs, descriptor_callback_t callback) context_init() argument 1255 struct fw_ohci *ohci = ctx->ohci; context_run() local 1303 struct fw_ohci *ohci = ctx->ohci; context_stop() local 1334 struct fw_ohci *ohci = ctx->ohci; at_context_queue_packet() local 1478 struct fw_ohci *ohci = context->ohci; handle_at_packet() local 1559 handle_local_rom(struct fw_ohci *ohci, struct fw_packet *packet, u32 csr) handle_local_rom() argument 1586 handle_local_lock(struct fw_ohci *ohci, struct fw_packet *packet, u32 csr) handle_local_lock() argument 1704 detect_dead_context(struct fw_ohci *ohci, const char *name, unsigned int regs) detect_dead_context() argument 1715 handle_dead_contexts(struct fw_ohci *ohci) handle_dead_contexts() argument 1765 get_cycle_time(struct fw_ohci *ohci) get_cycle_time() argument 1804 update_bus_time(struct fw_ohci *ohci) update_bus_time() argument 1821 get_status_for_port(struct fw_ohci *ohci, int port_index) get_status_for_port() argument 1842 get_self_id_pos(struct fw_ohci *ohci, u32 self_id, int self_id_count) get_self_id_pos() argument 1858 initiated_reset(struct fw_ohci *ohci) initiated_reset() argument 1888 find_and_insert_self_id(struct fw_ohci *ohci, int self_id_count) find_and_insert_self_id() argument 1934 struct fw_ohci *ohci = bus_reset_work() local 2118 struct fw_ohci *ohci = data; irq_handler() local 2217 software_reset(struct fw_ohci *ohci) software_reset() argument 2246 configure_1394a_enhancements(struct fw_ohci *ohci) configure_1394a_enhancements() argument 2297 probe_tsb41ba3d(struct fw_ohci *ohci) probe_tsb41ba3d() argument 2322 struct fw_ohci *ohci = fw_ohci(card); ohci_enable() local 2498 struct fw_ohci *ohci; ohci_set_config_rom() local 2585 struct fw_ohci *ohci = fw_ohci(card); ohci_send_request() local 2592 struct fw_ohci *ohci = fw_ohci(card); ohci_send_response() local 2599 struct fw_ohci *ohci = fw_ohci(card); ohci_cancel_packet() local 2631 struct fw_ohci *ohci = fw_ohci(card); ohci_enable_phys_dma() local 2670 struct fw_ohci *ohci = fw_ohci(card); ohci_read_csr() local 2721 struct fw_ohci *ohci = fw_ohci(card); ohci_write_csr() local 2977 set_multichannel_mask(struct fw_ohci *ohci, u64 channels) set_multichannel_mask() argument 2991 struct fw_ohci *ohci = fw_ohci(card); ohci_allocate_iso_context() local 3090 struct fw_ohci *ohci = ctx->context.ohci; ohci_start_iso() local 3138 struct fw_ohci *ohci = fw_ohci(base->card); ohci_stop_iso() local 3163 struct fw_ohci *ohci = fw_ohci(base->card); ohci_free_iso_context() local 3200 struct fw_ohci *ohci = fw_ohci(base->card); ohci_set_iso_channels() local 3229 ohci_resume_iso_dma(struct fw_ohci *ohci) ohci_resume_iso_dma() argument 3610 struct fw_ohci *ohci = pci_get_drvdata(pdev); release_ohci() local 3623 struct fw_ohci *ohci; pci_probe() local 3783 struct fw_ohci *ohci = pci_get_drvdata(dev); pci_remove() local 3811 struct fw_ohci *ohci = pci_get_drvdata(dev); pci_suspend() local 3830 struct fw_ohci *ohci = pci_get_drvdata(dev); pci_resume() local [all...] |