/kernel/linux/linux-5.10/drivers/usb/host/ |
D | ohci-hub.c | 47 static int ohci_rh_suspend (struct ohci_hcd *ohci, int autostop) in ohci_rh_suspend() argument 48 __releases(ohci->lock) in ohci_rh_suspend() 49 __acquires(ohci->lock) in ohci_rh_suspend() 53 ohci->hc_control = ohci_readl (ohci, &ohci->regs->control); in ohci_rh_suspend() 54 switch (ohci->hc_control & OHCI_CTRL_HCFS) { in ohci_rh_suspend() 56 ohci_dbg (ohci, "resume/suspend?\n"); in ohci_rh_suspend() 57 ohci->hc_control &= ~OHCI_CTRL_HCFS; in ohci_rh_suspend() 58 ohci->hc_control |= OHCI_USB_RESET; in ohci_rh_suspend() 59 ohci_writel (ohci, ohci->hc_control, &ohci->regs->control); in ohci_rh_suspend() 60 (void) ohci_readl (ohci, &ohci->regs->control); in ohci_rh_suspend() [all …]
|
D | ohci-hcd.c | 83 static void ohci_dump(struct ohci_hcd *ohci); 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_flags); in ohci_urb_enqueue() 207 urb_free_priv (ohci, urb_priv); in ohci_urb_enqueue() 212 spin_lock_irqsave (&ohci->lock, flags); in ohci_urb_enqueue() 219 if (ohci->rh_state != OHCI_RH_RUNNING) { in ohci_urb_enqueue() 229 retval = ed_schedule (ohci, ed); in ohci_urb_enqueue() 236 if (ohci->prev_frame_no == IO_WATCHDOG_OFF && in ohci_urb_enqueue() 237 list_empty(&ohci->eds_in_use) && in ohci_urb_enqueue() [all …]
|
D | ohci-q.c | 41 finish_urb(struct ohci_hcd *ohci, struct urb *urb, int status) in finish_urb() argument 42 __releases(ohci->lock) in finish_urb() 43 __acquires(ohci->lock) in finish_urb() 45 struct device *dev = ohci_to_hcd(ohci)->self.controller; in finish_urb() 52 urb_free_priv (ohci, urb->hcpriv); in finish_urb() 59 ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs--; in finish_urb() 60 if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0) { in finish_urb() 61 if (quirk_amdiso(ohci)) in finish_urb() 63 if (quirk_amdprefetch(ohci)) in finish_urb() 68 ohci_to_hcd(ohci)->self.bandwidth_int_reqs--; in finish_urb() [all …]
|
D | ohci.h | 75 #define OKAY_TO_TAKEBACK(ohci, ed) \ argument 76 ((int) (ohci->wdh_cnt - ed->takeback_wdh_cnt) >= 0) 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->flags & OHCI_QUIRK_AMD_PLL; in quirk_amdiso() 455 static inline int quirk_amdprefetch(struct ohci_hcd *ohci) in quirk_amdprefetch() argument [all …]
|
D | ohci-pci.c | 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->flags |= OHCI_QUIRK_SUPERIO; in ohci_quirk_ns() 83 ohci_dbg (ohci, "Using NSC SuperIO setup\n"); in ohci_quirk_ns() 96 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_zfmicro() local 98 ohci->flags |= OHCI_QUIRK_ZFMICRO; in ohci_quirk_zfmicro() [all …]
|
D | ohci-dbg.c | 23 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ argument 30 ohci_dbg(ohci,format, ## arg ); \ 34 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ argument 43 struct ohci_hcd *ohci, in ohci_dump_intr_mask() argument 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() argument 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, const char *label, in ohci_dump_td() argument [all …]
|
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->td_cache) in ohci_mem_init() [all …]
|
D | ohci-ppc-of.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 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() 137 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe() 139 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe() 142 ohci_hcd_init(ohci); in ohci_hcd_ppc_of_probe() 165 writel_be((readl_be(&ohci->regs->control) | in ohci_hcd_ppc_of_probe() [all …]
|
D | ohci-omap.c | 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->hc_control = OHCI_CTRL_RWC; in ohci_omap_reset() 243 writel(OHCI_CTRL_RWC, &ohci->regs->control); in ohci_omap_reset() 248 u32 rh = roothub_a (ohci); in ohci_omap_reset() 255 ohci_to_hcd(ohci)->power_budget = 250; in ohci_omap_reset() [all …]
|
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-nxp.o [all …]
|
D | ohci-tmio.c | 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); in ohci_hcd_tmio_drv_suspend() local [all …]
|
D | ohci-platform.c | 96 struct ohci_hcd *ohci; in ohci_platform_probe() local 125 ohci = hcd_to_ohci(hcd); in ohci_platform_probe() 129 ohci->flags |= OHCI_QUIRK_BE_MMIO; in ohci_platform_probe() 132 ohci->flags |= OHCI_QUIRK_BE_DESC; in ohci_platform_probe() 135 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in ohci_platform_probe() 138 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_platform_probe() 142 ohci->hc_control = OHCI_CTRL_RWC; in ohci_platform_probe() 145 &ohci->num_ports); in ohci_platform_probe() 171 ohci->flags |= OHCI_QUIRK_BE_DESC; in ohci_platform_probe() 173 ohci->flags |= OHCI_QUIRK_BE_MMIO; in ohci_platform_probe() [all …]
|
D | ohci-ps3.c | 14 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_reset() local 16 ohci->flags |= OHCI_QUIRK_BE_MMIO; in ps3_ohci_hc_reset() 17 ohci_hcd_init(ohci); in ps3_ohci_hc_reset() 18 return ohci_init(ohci); in ps3_ohci_hc_reset() 24 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_start() local 29 ohci_writel(ohci, 0x7f000000 | RH_A_PSM | RH_A_OCPM, in ps3_ohci_hc_start() 30 &ohci->regs->roothub.a); in ps3_ohci_hc_start() 31 ohci_writel(ohci, 0x00060000, &ohci->regs->roothub.b); in ps3_ohci_hc_start() 33 result = ohci_run(ohci); in ps3_ohci_hc_start()
|
D | ohci-da8xx.c | 231 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_reset() local 245 ohci->num_ports = 1; in ohci_da8xx_reset() 259 rh_a = ohci_readl(ohci, &ohci->regs->roothub.a); in ohci_da8xx_reset() 272 ohci_writel(ohci, rh_a, &ohci->regs->roothub.a); in ohci_da8xx_reset() 487 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_suspend() local 492 if (time_before(jiffies, ohci->next_statechange)) in ohci_da8xx_suspend() 494 ohci->next_statechange = jiffies; in ohci_da8xx_suspend() 509 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_resume() local 512 if (time_before(jiffies, ohci->next_statechange)) in ohci_da8xx_resume() 514 ohci->next_statechange = jiffies; in ohci_da8xx_resume()
|
D | ohci-spear.c | 120 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_suspend() local 125 if (time_before(jiffies, ohci->next_statechange)) in spear_ohci_hcd_drv_suspend() 127 ohci->next_statechange = jiffies; in spear_ohci_hcd_drv_suspend() 141 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_resume() local 144 if (time_before(jiffies, ohci->next_statechange)) in spear_ohci_hcd_drv_resume() 146 ohci->next_statechange = jiffies; in spear_ohci_hcd_drv_resume()
|
D | ohci-sa1111.c | 59 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_reset() local 61 ohci_hcd_init(ohci); in ohci_sa1111_reset() 62 return ohci_init(ohci); in ohci_sa1111_reset() 67 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_start() local 70 ret = ohci_run(ohci); in ohci_sa1111_start() 72 ohci_err(ohci, "can't start\n"); in ohci_sa1111_start()
|
/kernel/linux/linux-5.10/drivers/firewire/ |
D | init_ohci1394_dma.c | 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, u8 addr) in get_phy_reg() argument 58 reg_write(ohci, OHCI1394_PhyControl, (addr << 8) | 0x00008000); in get_phy_reg() 61 if (reg_read(ohci, OHCI1394_PhyControl) & 0x80000000) in get_phy_reg() 65 r = reg_read(ohci, OHCI1394_PhyControl); in get_phy_reg() 71 static inline void __init set_phy_reg(struct ohci *ohci, u8 addr, u8 data) in set_phy_reg() argument [all …]
|
D | ohci.c | 44 #define ohci_info(ohci, f, args...) dev_info(ohci->card.device, f, ##args) argument 45 #define ohci_notice(ohci, f, args...) dev_notice(ohci->card.device, f, ##args) argument 46 #define ohci_err(ohci, f, args...) dev_err(ohci->card.device, f, ##args) argument 88 struct fw_ohci *ohci; member 118 struct fw_ohci *ohci; member 366 static void log_irqs(struct fw_ohci *ohci, u32 evt) in log_irqs() argument 376 ohci_notice(ohci, "IRQ %08x%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", evt, in log_irqs() 415 static void log_selfids(struct fw_ohci *ohci, int generation, int self_id_count) in log_selfids() argument 422 ohci_notice(ohci, "%d selfIDs, generation %d, local node ID %04x\n", in log_selfids() 423 self_id_count, generation, ohci->node_id); in log_selfids() [all …]
|
D | Makefile | 8 firewire-ohci-y += ohci.o 13 obj-$(CONFIG_FIREWIRE_OHCI) += firewire-ohci.o
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
D | omap-usb-host.txt | 21 "ohci-phy-6pin-datse0", 22 "ohci-phy-6pin-dpdm", 23 "ohci-phy-3pin-datse0", 24 "ohci-phy-4pin-dpdm", 25 "ohci-tll-6pin-datse0", 26 "ohci-tll-6pin-dpdm", 27 "ohci-tll-3pin-datse0", 28 "ohci-tll-4pin-dpdm", 29 "ohci-tll-2pin-datse0", 30 "ohci-tll-2pin-dpdm", [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/ |
D | spear-usb.txt | 25 - compatible: "st,spear600-ohci" 30 ohci@e1900000 { 31 compatible = "st,spear600-ohci", "usb-ohci";
|
D | ohci-nxp.txt | 1 * OHCI controller, NXP ohci-nxp variant 4 - compatible: must be "nxp,ohci-nxp" 18 ohci@31020000 { 19 compatible = "nxp,ohci-nxp";
|
D | ohci-omap3.txt | 5 - compatible: should be "ti,ohci-omap3" 11 usbhsohci: ohci@4a064800 { 12 compatible = "ti,ohci-omap3";
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | spear3xx.dtsi | 83 ohci@e1900000 { 84 compatible = "st,spear600-ohci", "usb-ohci"; 90 ohci@e2100000 { 91 compatible = "st,spear600-ohci", "usb-ohci";
|
/kernel/linux/linux-5.10/Documentation/usb/ |
D | ohci.rst | 7 The "ohci-hcd" driver is a USB Host Controller Driver (HCD) that is derived 8 from the "usb-ohci" driver from the 2.4 kernel series. The "usb-ohci" code 27 The "ohci-hcd" driver handles all USB 1.1 transfer types. Transfers of all 28 types can be queued. That was also true in "usb-ohci", except for interrupt
|