Home
last modified time | relevance | path

Searched full:ohci (Results 1 – 25 of 355) sorted by relevance

12345678910>>...15

/linux-6.12.1/drivers/usb/host/
Dohci-hub.c3 * OHCI HCD (Host Controller Driver) for USB.
14 * OHCI Root Hub ... the nonsharable stuff
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()
[all …]
Dohci-hcd.c3 * Open Host Controller Interface (OHCI) driver for USB.
11 * [ uhci code and gregs ohci fragments ]
16 * OHCI is the main "non-Intel/VIA" standard for USB 1.1 host controller
52 #define DRIVER_DESC "USB 1.1 'Open' Host Controller (OHCI) Driver"
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"
[all …]
Dohci-q.c3 * OHCI HCD (Host Controller Driver) for USB.
38 * PRECONDITION: ohci lock held, irqs blocked.
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()
[all …]
Dohci-pci.c3 * OHCI HCD (Host Controller Driver) for USB.
9 * [ uhci code and gregs ohci fragments ]
25 #include "ohci.h"
28 #define DRIVER_DESC "OHCI PCI platform driver"
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()
55 /* Apple's OHCI driver has a lot of bizarre workarounds
61 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_opti() local
[all …]
Dohci-dbg.c3 * OHCI HCD (Host Controller Driver) for USB.
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()
[all …]
Dohci.h3 * OHCI HCD (Host Controller Driver) for USB.
20 * OHCI Endpoint Descriptor (ED) ... holds TD queue
21 * See OHCI spec, section 4.2
75 #define OKAY_TO_TAKEBACK(ohci, ed) \ argument
76 ((int) (ohci->wdh_cnt - ed->takeback_wdh_cnt) >= 0)
84 * OHCI Transfer Descriptor (TD) ... one per transfer segment
85 * See OHCI spec, sections 4.3.1 (general = control/bulk/interrupt)
164 /* map OHCI TD status codes (CC) to errno values */
187 * structure defined section 4.4.1 of the OHCI spec. The HC is
195 * OHCI defines u16 frame_no, followed by u16 zero pad.
[all …]
Dohci-ppc-of.c3 * OHCI HCD (Host Controller Driver) for USB.
10 * Bus glue for OHCI HC on the of_platform bus
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()
44 .product_desc = "OF OHCI",
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()
[all …]
Dohci-mem.c3 * OHCI HCD (Host Controller Driver) for USB.
14 * OHCI deals with three types of memory:
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()
[all …]
DKconfig128 Enables support for XHCI, EHCI and OHCI host controllers
132 modules will be called ohci-platform.ko, ehci-brcm.ko and
147 EHCI controllers are packaged with "companion" host controllers (OHCI
151 probably configure the OHCI (for NEC and some other vendors) USB Host
165 transaction translators, so that no OHCI or UHCI companion
401 tristate "OHCI HCD (USB 1.1) support"
404 The Open Host Controller Interface (OHCI) is a standard for accessing
406 UHCI specification. If your USB host controller follows the OHCI spec,
411 right "prog-if" for your USB controller(s): EHCI, OHCI, or UHCI.
414 module will be called ohci-hcd.
[all …]
Dohci-omap.c3 * OHCI HCD (Host Controller Driver) for USB.
12 * Based on the 2.4 OMAP OHCI driver originally done by MontaVista Software Inc.
13 * and on ohci-sa1111.c by Christopher Hoover <ch@hpl.hp.com>
37 #include "ohci.h"
42 #define DRIVER_DESC "OHCI OMAP driver"
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
[all …]
Dohci-platform.c3 * Generic platform ohci driver
10 * Derived from the OHCI-PCI driver
33 #include "ohci.h"
35 #define DRIVER_DESC "OHCI generic platform driver"
79 .product_desc = "Generic Platform OHCI controller",
95 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()
[all …]
Dohci-spear.c3 * OHCI HCD (Host Controller Driver) for USB.
8 * Based on various ohci-*.c drivers
22 #include "ohci.h"
24 #define DRIVER_DESC "OHCI SPEAr driver"
117 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_suspend() local
122 if (time_before(jiffies, ohci->next_statechange)) in spear_ohci_hcd_drv_suspend()
124 ohci->next_statechange = jiffies; in spear_ohci_hcd_drv_suspend()
138 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_resume() local
141 if (time_before(jiffies, ohci->next_statechange)) in spear_ohci_hcd_drv_resume()
143 ohci->next_statechange = jiffies; in spear_ohci_hcd_drv_resume()
[all …]
DMakefile53 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-nxp.o
[all …]
Dohci-ps3.c3 * PS3 OHCI Host Controller driver
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()
[all …]
Dohci-da8xx.c3 * OHCI HCD (Host Controller Driver) for USB.
7 * Derived from: ohci-omap.c and ohci-s3c2410.c
27 #include "ohci.h"
30 #define DRV_NAME "ohci-da8xx"
232 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_reset() local
246 ohci->num_ports = 1; in ohci_da8xx_reset()
260 rh_a = ohci_readl(ohci, &ohci->regs->roothub.a); in ohci_da8xx_reset()
273 ohci_writel(ohci, rh_a, &ohci->regs->roothub.a); in ohci_da8xx_reset()
368 { .compatible = "ti,da830-ohci" },
434 "OHCI over-current indicator", da8xx_ohci); in ohci_da8xx_probe()
[all …]
Dohci-sa1111.c3 * OHCI HCD (Host Controller Driver) for USB.
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()
80 .product_desc = "SA-1111 OHCI",
126 dev_dbg(&dev->dev, "starting SA-1111 OHCI USB Controller\n"); in sa1111_start_hc()
155 dev_dbg(&dev->dev, "stopping SA-1111 OHCI USB Controller\n"); in sa1111_stop_hc()
[all …]
Dehci-ppc-of.c11 * and "ohci-ppc-of.c" by Sylvain Munaut <tnt@246tNt.com>
136 np = of_find_compatible_node(NULL, NULL, "ibm,usb-ohci-440epx"); in ehci_hcd_ppc_of_probe()
145 pr_debug("%s: no ohci offset in fdt\n", __FILE__); in ehci_hcd_ppc_of_probe()
147 pr_debug("%s: ioremap for ohci hcctrl failed\n", __FILE__); in ehci_hcd_ppc_of_probe()
201 /* use request_mem_region to test if the ohci driver is loaded. if so in ehci_hcd_ppc_of_remove()
202 * ensure the ohci core is operational. in ehci_hcd_ppc_of_remove()
205 np = of_find_compatible_node(NULL, NULL, "ibm,usb-ohci-440epx"); in ehci_hcd_ppc_of_remove()
214 pr_debug("%s: no ohci offset in fdt\n", __FILE__); in ehci_hcd_ppc_of_remove()
/linux-6.12.1/Documentation/devicetree/bindings/usb/
Dgeneric-ohci.yaml4 $id: http://devicetree.org/schemas/usb/generic-ohci.yaml#
7 title: USB OHCI Controller
17 - allwinner,sun4i-a10-ohci
18 - allwinner,sun50i-a64-ohci
19 - allwinner,sun50i-h6-ohci
20 - allwinner,sun50i-h616-ohci
21 - allwinner,sun5i-a13-ohci
22 - allwinner,sun6i-a31-ohci
23 - allwinner,sun7i-a20-ohci
24 - allwinner,sun8i-a23-ohci
[all …]
Ds3c2410-usb.txt3 OHCI
6 - compatible: should be "samsung,s3c2410-ohci" for USB host controller
8 - interrupts: interrupt number for the USB OHCI controller
16 usb0: ohci@49000000 {
17 compatible = "samsung,s3c2410-ohci";
/linux-6.12.1/drivers/firewire/
Dinit_ohci1394_dma.c3 * init_ohci1394_dma.c - Initializes physical DMA on all OHCI 1394 controllers
9 * - scan the PCI very early on boot for all OHCI 1394-compliant controllers
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()
52 /* Reads a PHY register of an OHCI-1394 controller */
53 static inline u8 __init get_phy_reg(struct ohci *ohci, u8 addr) in get_phy_reg() argument
[all …]
Dohci.c3 * Driver for OHCI 1394 controllers
42 #include "ohci.h"
53 #define ohci_notice(ohci, f, args...) dev_notice(ohci->card.device, f, ##args) argument
54 #define ohci_err(ohci, f, args...) dev_err(ohci->card.device, f, ##args) argument
96 struct fw_ohci *ohci; member
126 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
293 return !!(ohci->quirks & QUIRK_REBOOT_BY_CYCLE_TIMER_READ); in has_reboot_by_cycle_timer_read_quirk()
323 #define has_reboot_by_cycle_timer_read_quirk(ohci) false argument
409 static void log_irqs(struct fw_ohci *ohci, u32 evt) in log_irqs() argument
[all …]
/linux-6.12.1/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.12.1/Documentation/usb/
Dohci.rst2 OHCI title
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
12 It supports the "Open Host Controller Interface" (OHCI), which standardizes
16 from vendors other than Intel and VIA generally use OHCI.
24 - supports some non-PCI implementations of OHCI
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
/linux-6.12.1/Documentation/core-api/
Ddebugging-via-ohci1394.rst2 Using physical DMA provided by OHCI-1394 FireWire controllers for debugging
9 to the OHCI-1394 specification which defines the controller to be a PCI
12 PCI-Bus master DMA after applying filters defined by the OHCI-1394 driver.
15 ask the OHCI-1394 controller to perform read and write requests on
34 Together with a early initialization of the OHCI-1394 controller for debugging,
43 The firewire-ohci driver in drivers/firewire uses filtered physical
47 Because the firewire-ohci driver depends on the PCI enumeration to be
80 The OHCI-1394 specification regulates that the OHCI-1394 controller must
84 interrupts are disabled and where no polling of the OHCI-1394 controller
89 Step-by-step instructions for using firescope with early OHCI initialization:
[all …]
/linux-6.12.1/drivers/mfd/
Domap-usb-host.c3 * omap-usb-host.c - The USBHS core driver for OMAP EHCI & OHCI
27 #define OMAP_OHCI_DEVICE "ohci-omap3"
132 [OMAP_OHCI_PORT_MODE_PHY_6PIN_DATSE0] = "ohci-phy-6pin-datse0",
133 [OMAP_OHCI_PORT_MODE_PHY_6PIN_DPDM] = "ohci-phy-6pin-dpdm",
134 [OMAP_OHCI_PORT_MODE_PHY_3PIN_DATSE0] = "ohci-phy-3pin-datse0",
135 [OMAP_OHCI_PORT_MODE_PHY_4PIN_DPDM] = "ohci-phy-4pin-dpdm",
136 [OMAP_OHCI_PORT_MODE_TLL_6PIN_DATSE0] = "ohci-tll-6pin-datse0",
137 [OMAP_OHCI_PORT_MODE_TLL_6PIN_DPDM] = "ohci-tll-6pin-dpdm",
138 [OMAP_OHCI_PORT_MODE_TLL_3PIN_DATSE0] = "ohci-tll-3pin-datse0",
139 [OMAP_OHCI_PORT_MODE_TLL_4PIN_DPDM] = "ohci-tll-4pin-dpdm",
[all …]

12345678910>>...15