Home
last modified time | relevance | path

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

12

/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()
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 …]
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-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-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-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.c164 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 …]
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 …]
DMakefile56 obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o
57 obj-$(CONFIG_USB_OHCI_HCD_PCI) += ohci-pci.o
58 obj-$(CONFIG_USB_OHCI_HCD_PLATFORM) += ohci-platform.o
59 obj-$(CONFIG_USB_OHCI_EXYNOS) += ohci-exynos.o
60 obj-$(CONFIG_USB_OHCI_HCD_OMAP1) += ohci-omap.o
61 obj-$(CONFIG_USB_OHCI_HCD_SPEAR) += ohci-spear.o
62 obj-$(CONFIG_USB_OHCI_HCD_STI) += ohci-st.o
63 obj-$(CONFIG_USB_OHCI_HCD_AT91) += ohci-at91.o
64 obj-$(CONFIG_USB_OHCI_HCD_S3C2410) += ohci-s3c2410.o
65 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()
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 …]
Dohci-platform.c96 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 …]
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.c120 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()
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-sm501.c216 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sm501_suspend() local
220 if (time_before(jiffies, ohci->next_statechange)) in ohci_sm501_suspend()
222 ohci->next_statechange = jiffies; in ohci_sm501_suspend()
236 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sm501_resume() local
238 if (time_before(jiffies, ohci->next_statechange)) in ohci_sm501_resume()
240 ohci->next_statechange = jiffies; in ohci_sm501_resume()
Dohci-pxa27x.c426 struct ohci_hcd *ohci; in ohci_hcd_pxa27x_probe() local
491 ohci = hcd_to_ohci(hcd); in ohci_hcd_pxa27x_probe()
492 ohci->num_ports = 3; in ohci_hcd_pxa27x_probe()
543 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_pxa27x_drv_suspend() local
548 if (time_before(jiffies, ohci->next_statechange)) in ohci_hcd_pxa27x_drv_suspend()
550 ohci->next_statechange = jiffies; in ohci_hcd_pxa27x_drv_suspend()
565 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_pxa27x_drv_resume() local
568 if (time_before(jiffies, ohci->next_statechange)) in ohci_hcd_pxa27x_drv_resume()
570 ohci->next_statechange = jiffies; in ohci_hcd_pxa27x_drv_resume()
Dohci-at91.c168 struct ohci_hcd *ohci; in usb_hcd_at91_probe() local
220 ohci = hcd_to_ohci(hcd); in usb_hcd_at91_probe()
221 ohci->num_ports = board->ports; in usb_hcd_at91_probe()
228 ohci->hc_control = OHCI_CTRL_RWC; in usb_hcd_at91_probe()
595 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_at91_drv_suspend() local
623 ohci->rh_state = OHCI_RH_HALTED; in ohci_hcd_at91_drv_suspend()
626 (void) ohci_readl (ohci, &ohci->regs->control); in ohci_hcd_at91_drv_suspend()
Dssb-hcd.c103 static struct platform_device *ssb_hcd_create_pdev(struct ssb_device *dev, bool ohci, u32 addr, u32… in ssb_hcd_create_pdev() argument
118 hci_dev = platform_device_alloc(ohci ? "ohci-platform" : in ssb_hcd_create_pdev()
130 if (ohci) in ssb_hcd_create_pdev()
/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
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
411 static void log_irqs(struct fw_ohci *ohci, u32 evt) in log_irqs() argument
421 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()
[all …]
DMakefile8 firewire-ohci-y += ohci.o
13 obj-$(CONFIG_FIREWIRE_OHCI) += firewire-ohci.o
/drivers/phy/samsung/
Dphy-exynos5250-usb2.c203 u32 ohci; in exynos5250_power_on() local
311 ohci = readl(drv->reg_phy + EXYNOS_5250_HOSTOHCICTRL); in exynos5250_power_on()
313 ohci |= 0x1 << 3; in exynos5250_power_on()
314 writel(ohci, drv->reg_phy + EXYNOS_5250_HOSTOHCICTRL); in exynos5250_power_on()
/drivers/mfd/
Domap-usb-host.c195 struct platform_device *ohci; in omap_usbhs_alloc_children() local
241 ohci = omap_usbhs_alloc_child(OMAP_OHCI_DEVICE, resources, 2, pdata, in omap_usbhs_alloc_children()
243 if (!ohci) { in omap_usbhs_alloc_children()

12