Home
last modified time | relevance | path

Searched refs:ohci (Results 1 – 25 of 208) sorted by relevance

123456789

/linux-6.1.9/drivers/usb/host/
Dohci-hub.c47 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 …]
Dohci-hcd.c83 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()
202 urb_priv->td [i] = td_alloc (ohci, mem_flags); in ohci_urb_enqueue()
205 urb_free_priv (ohci, urb_priv); in ohci_urb_enqueue()
210 spin_lock_irqsave (&ohci->lock, flags); in ohci_urb_enqueue()
217 if (ohci->rh_state != OHCI_RH_RUNNING) { in ohci_urb_enqueue()
227 retval = ed_schedule (ohci, ed); in ohci_urb_enqueue()
234 if (ohci->prev_frame_no == IO_WATCHDOG_OFF && in ohci_urb_enqueue()
235 list_empty(&ohci->eds_in_use) && in ohci_urb_enqueue()
[all …]
Dohci-q.c41 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 …]
Dohci.h75 #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 …]
Dohci-pci.c46 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 …]
Dohci-dbg.c23 #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 …]
Dohci-mem.c27 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 …]
Dohci-omap.c72 static void start_hnp(struct ohci_hcd *ohci) in start_hnp() argument
74 struct usb_hcd *hcd = ohci_to_hcd(ohci); in start_hnp()
83 writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); in start_hnp()
96 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_reset() local
123 &ohci_to_hcd(ohci)->self); in ohci_omap_reset()
134 ohci->start_hnp = start_hnp; in ohci_omap_reset()
148 ohci->hc_control = OHCI_CTRL_RWC; in ohci_omap_reset()
149 writel(OHCI_CTRL_RWC, &ohci->regs->control); in ohci_omap_reset()
154 u32 rh = roothub_a (ohci); in ohci_omap_reset()
161 ohci_to_hcd(ohci)->power_budget = 250; in ohci_omap_reset()
[all …]
Dohci-ppc-of.c25 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_ppc_of_start() local
28 if ((ret = ohci_init(ohci)) < 0) in ohci_ppc_of_start()
31 if ((ret = ohci_run(ohci)) < 0) { in ohci_ppc_of_start()
88 struct ohci_hcd *ohci; in ohci_hcd_ppc_of_probe() local
130 ohci = hcd_to_ohci(hcd); in ohci_hcd_ppc_of_probe()
132 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in ohci_hcd_ppc_of_probe()
134 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe()
136 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe()
139 ohci_hcd_init(ohci); in ohci_hcd_ppc_of_probe()
162 writel_be((readl_be(&ohci->regs->control) | in ohci_hcd_ppc_of_probe()
[all …]
DMakefile54 obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o
55 obj-$(CONFIG_USB_OHCI_HCD_PCI) += ohci-pci.o
56 obj-$(CONFIG_USB_OHCI_HCD_PLATFORM) += ohci-platform.o
57 obj-$(CONFIG_USB_OHCI_EXYNOS) += ohci-exynos.o
58 obj-$(CONFIG_USB_OHCI_HCD_OMAP1) += ohci-omap.o
59 obj-$(CONFIG_USB_OHCI_HCD_SPEAR) += ohci-spear.o
60 obj-$(CONFIG_USB_OHCI_HCD_STI) += ohci-st.o
61 obj-$(CONFIG_USB_OHCI_HCD_AT91) += ohci-at91.o
62 obj-$(CONFIG_USB_OHCI_HCD_S3C2410) += ohci-s3c2410.o
63 obj-$(CONFIG_USB_OHCI_HCD_LPC32XX) += ohci-nxp.o
[all …]
Dohci-tmio.c87 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in tmio_stop_hc() local
92 switch (ohci->num_ports) { in tmio_stop_hc()
94 dev_err(&dev->dev, "Unsupported amount of ports: %d\n", ohci->num_ports); in tmio_stop_hc()
131 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_tmio_start() local
134 if ((ret = ohci_init(ohci)) < 0) in ohci_tmio_start()
137 if ((ret = ohci_run(ohci)) < 0) { in ohci_tmio_start()
190 struct ohci_hcd *ohci; in ohci_hcd_tmio_drv_probe() local
235 ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_probe()
236 ohci_hcd_init(ohci); in ohci_hcd_tmio_drv_probe()
290 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_suspend() local
[all …]
Dohci-platform.c95 struct ohci_hcd *ohci; in ohci_platform_probe() local
124 ohci = hcd_to_ohci(hcd); in ohci_platform_probe()
128 ohci->flags |= OHCI_QUIRK_BE_MMIO; in ohci_platform_probe()
131 ohci->flags |= OHCI_QUIRK_BE_DESC; in ohci_platform_probe()
134 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in ohci_platform_probe()
137 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_platform_probe()
141 ohci->hc_control = OHCI_CTRL_RWC; in ohci_platform_probe()
144 &ohci->num_ports); in ohci_platform_probe()
170 ohci->flags |= OHCI_QUIRK_BE_DESC; in ohci_platform_probe()
172 ohci->flags |= OHCI_QUIRK_BE_MMIO; in ohci_platform_probe()
[all …]
Dohci-ps3.c14 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()
Dohci-da8xx.c231 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()
Dohci-spear.c119 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_suspend() local
124 if (time_before(jiffies, ohci->next_statechange)) in spear_ohci_hcd_drv_suspend()
126 ohci->next_statechange = jiffies; in spear_ohci_hcd_drv_suspend()
140 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_resume() local
143 if (time_before(jiffies, ohci->next_statechange)) in spear_ohci_hcd_drv_resume()
145 ohci->next_statechange = jiffies; in spear_ohci_hcd_drv_resume()
Dohci-sa1111.c59 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()
/linux-6.1.9/drivers/firewire/
Dinit_ohci1394_dma.c36 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 …]
Dohci.c44 #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 …]
/linux-6.1.9/Documentation/devicetree/bindings/usb/
Dgeneric-ohci.yaml4 $id: http://devicetree.org/schemas/usb/generic-ohci.yaml#
20 - allwinner,sun4i-a10-ohci
21 - allwinner,sun50i-a64-ohci
22 - allwinner,sun50i-h6-ohci
23 - allwinner,sun5i-a13-ohci
24 - allwinner,sun6i-a31-ohci
25 - allwinner,sun7i-a20-ohci
26 - allwinner,sun8i-a23-ohci
27 - allwinner,sun8i-a83t-ohci
28 - allwinner,sun8i-h3-ohci
[all …]
Dspear-usb.txt25 - compatible: "st,spear600-ohci"
30 ohci@e1900000 {
31 compatible = "st,spear600-ohci", "usb-ohci";
Dohci-nxp.txt1 * OHCI controller, NXP ohci-nxp variant
4 - compatible: must be "nxp,ohci-nxp"
18 ohci@31020000 {
19 compatible = "nxp,ohci-nxp";
Dohci-omap3.txt5 - compatible: should be "ti,ohci-omap3"
11 usbhsohci: ohci@4a064800 {
12 compatible = "ti,ohci-omap3";
/linux-6.1.9/Documentation/devicetree/bindings/mfd/
Domap-usb-host.txt21 "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 …]
/linux-6.1.9/arch/arm/boot/dts/
Dspear3xx.dtsi83 ohci@e1900000 {
84 compatible = "st,spear600-ohci", "usb-ohci";
90 ohci@e2100000 {
91 compatible = "st,spear600-ohci", "usb-ohci";
/linux-6.1.9/Documentation/usb/
Dohci.rst7 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

123456789