Home
last modified time | relevance | path

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

12345678

/Linux-v4.19/drivers/usb/host/
Dohci-hcd.c82 static void ohci_dump(struct ohci_hcd *ohci);
151 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_enqueue() local
160 ed = ed_get(ohci, urb->ep, urb->dev, pipe, urb->interval); in ohci_urb_enqueue()
203 urb_priv->td [i] = td_alloc (ohci, mem_flags); in ohci_urb_enqueue()
206 urb_free_priv (ohci, urb_priv); in ohci_urb_enqueue()
211 spin_lock_irqsave (&ohci->lock, flags); in ohci_urb_enqueue()
218 if (ohci->rh_state != OHCI_RH_RUNNING) { in ohci_urb_enqueue()
228 retval = ed_schedule (ohci, ed); in ohci_urb_enqueue()
235 if (ohci->prev_frame_no == IO_WATCHDOG_OFF && in ohci_urb_enqueue()
236 list_empty(&ohci->eds_in_use) && in ohci_urb_enqueue()
[all …]
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-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);
441 static inline int quirk_nec(struct ohci_hcd *ohci) in quirk_nec() argument
443 return ohci->flags & OHCI_QUIRK_NEC; in quirk_nec()
445 static inline int quirk_zfmicro(struct ohci_hcd *ohci) in quirk_zfmicro() argument
447 return ohci->flags & OHCI_QUIRK_ZFMICRO; in quirk_zfmicro()
449 static inline int quirk_amdiso(struct ohci_hcd *ohci) in quirk_amdiso() argument
451 return ohci->flags & OHCI_QUIRK_AMD_PLL; in quirk_amdiso()
453 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
39 ohci->td_cache = dma_pool_create ("ohci_td", in ohci_mem_init()
40 ohci_to_hcd(ohci)->self.controller, in ohci_mem_init()
44 if (!ohci->td_cache) in ohci_mem_init()
46 ohci->ed_cache = dma_pool_create ("ohci_ed", in ohci_mem_init()
[all …]
Dohci-omap.c173 static void start_hnp(struct ohci_hcd *ohci) in start_hnp() argument
175 struct usb_hcd *hcd = ohci_to_hcd(ohci); in start_hnp()
184 writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); in start_hnp()
197 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_reset() local
223 &ohci_to_hcd(ohci)->self); in ohci_omap_reset()
234 ohci->start_hnp = start_hnp; in ohci_omap_reset()
250 ohci->hc_control = OHCI_CTRL_RWC; in ohci_omap_reset()
251 writel(OHCI_CTRL_RWC, &ohci->regs->control); in ohci_omap_reset()
256 u32 rh = roothub_a (ohci); in ohci_omap_reset()
263 ohci_to_hcd(ohci)->power_budget = 250; in ohci_omap_reset()
[all …]
Dohci-ppc-of.c28 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 …]
DMakefile60 obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o
61 obj-$(CONFIG_USB_OHCI_HCD_PCI) += ohci-pci.o
62 obj-$(CONFIG_USB_OHCI_HCD_PLATFORM) += ohci-platform.o
63 obj-$(CONFIG_USB_OHCI_EXYNOS) += ohci-exynos.o
64 obj-$(CONFIG_USB_OHCI_HCD_OMAP1) += ohci-omap.o
65 obj-$(CONFIG_USB_OHCI_HCD_SPEAR) += ohci-spear.o
66 obj-$(CONFIG_USB_OHCI_HCD_STI) += ohci-st.o
67 obj-$(CONFIG_USB_OHCI_HCD_AT91) += ohci-at91.o
68 obj-$(CONFIG_USB_OHCI_HCD_S3C2410) += ohci-s3c2410.o
69 obj-$(CONFIG_USB_OHCI_HCD_LPC32XX) += ohci-nxp.o
[all …]
Dohci-tmio.c92 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()
133 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_tmio_start() local
136 if ((ret = ohci_init(ohci)) < 0) in ohci_tmio_start()
139 if ((ret = ohci_run(ohci)) < 0) { in ohci_tmio_start()
192 struct ohci_hcd *ohci; in ohci_hcd_tmio_drv_probe() local
239 ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_probe()
240 ohci_hcd_init(ohci); in ohci_hcd_tmio_drv_probe()
292 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_suspend() local
[all …]
Dohci-platform.c96 struct ohci_hcd *ohci; in ohci_platform_probe() local
127 ohci = hcd_to_ohci(hcd); in ohci_platform_probe()
131 ohci->flags |= OHCI_QUIRK_BE_MMIO; in ohci_platform_probe()
134 ohci->flags |= OHCI_QUIRK_BE_DESC; in ohci_platform_probe()
137 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in ohci_platform_probe()
140 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_platform_probe()
144 ohci->hc_control = OHCI_CTRL_RWC; in ohci_platform_probe()
147 &ohci->num_ports); in ohci_platform_probe()
173 ohci->flags |= OHCI_QUIRK_BE_DESC; in ohci_platform_probe()
175 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-spear.c38 struct ohci_hcd *ohci; in spear_ohci_hcd_drv_probe() local
88 ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_probe()
123 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_suspend() local
128 if (time_before(jiffies, ohci->next_statechange)) in spear_ohci_hcd_drv_suspend()
130 ohci->next_statechange = jiffies; in spear_ohci_hcd_drv_suspend()
144 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in spear_ohci_hcd_drv_resume() local
147 if (time_before(jiffies, ohci->next_statechange)) in spear_ohci_hcd_drv_resume()
149 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()
Dohci-da8xx.c260 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_reset() local
274 ohci->num_ports = 1; in ohci_da8xx_reset()
288 rh_a = ohci_readl(ohci, &ohci->regs->roothub.a); in ohci_da8xx_reset()
301 ohci_writel(ohci, rh_a, &ohci->regs->roothub.a); in ohci_da8xx_reset()
495 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_suspend() local
500 if (time_before(jiffies, ohci->next_statechange)) in ohci_da8xx_suspend()
502 ohci->next_statechange = jiffies; in ohci_da8xx_suspend()
517 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_resume() local
520 if (time_before(jiffies, ohci->next_statechange)) in ohci_da8xx_resume()
522 ohci->next_statechange = jiffies; in ohci_da8xx_resume()
/Linux-v4.19/drivers/firewire/
Dinit_ohci1394_dma.c49 struct ohci { struct
53 static inline void reg_write(const struct ohci *ohci, int offset, u32 data) in reg_write() argument
55 writel(data, ohci->registers + offset); in reg_write()
58 static inline u32 reg_read(const struct ohci *ohci, int offset) in reg_read() argument
60 return readl(ohci->registers + offset); in reg_read()
66 static inline u8 __init get_phy_reg(struct ohci *ohci, u8 addr) in get_phy_reg() argument
71 reg_write(ohci, OHCI1394_PhyControl, (addr << 8) | 0x00008000); in get_phy_reg()
74 if (reg_read(ohci, OHCI1394_PhyControl) & 0x80000000) in get_phy_reg()
78 r = reg_read(ohci, OHCI1394_PhyControl); in get_phy_reg()
84 static inline void __init set_phy_reg(struct ohci *ohci, u8 addr, u8 data) in set_phy_reg() argument
[all …]
Dohci.c57 #define ohci_info(ohci, f, args...) dev_info(ohci->card.device, f, ##args) argument
58 #define ohci_notice(ohci, f, args...) dev_notice(ohci->card.device, f, ##args) argument
59 #define ohci_err(ohci, f, args...) dev_err(ohci->card.device, f, ##args) argument
101 struct fw_ohci *ohci; member
131 struct fw_ohci *ohci; member
379 static void log_irqs(struct fw_ohci *ohci, u32 evt) in log_irqs() argument
389 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()
428 static void log_selfids(struct fw_ohci *ohci, int generation, int self_id_count) in log_selfids() argument
435 ohci_notice(ohci, "%d selfIDs, generation %d, local node ID %04x\n", in log_selfids()
436 self_id_count, generation, ohci->node_id); in log_selfids()
[all …]
/Linux-v4.19/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-v4.19/Documentation/devicetree/bindings/usb/
Dspear-usb.txt25 - compatible: "st,spear600-ohci"
30 ohci@e1900000 {
31 compatible = "st,spear600-ohci", "usb-ohci";
Dusb-ohci.txt4 - compatible : "generic-ohci"
5 - reg : ohci controller register range (address and length)
6 - interrupts : ohci controller interrupt
25 compatible = "allwinner,sun4i-a10-ohci", "generic-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-v4.19/Documentation/usb/
Dohci.txt3 The "ohci-hcd" driver is a USB Host Controller Driver (HCD) that is derived
4 from the "usb-ohci" driver from the 2.4 kernel series. The "usb-ohci" code
23 The "ohci-hcd" driver handles all USB 1.1 transfer types. Transfers of all
24 types can be queued. That was also true in "usb-ohci", except for interrupt
/Linux-v4.19/arch/arm/boot/dts/
Dspear3xx.dtsi89 ohci@e1900000 {
90 compatible = "st,spear600-ohci", "usb-ohci";
96 ohci@e2100000 {
97 compatible = "st,spear600-ohci", "usb-ohci";

12345678