Home
last modified time | relevance | path

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

123

/linux-2.6.39/drivers/usb/host/
Dohci-hub.c46 static int ohci_rh_suspend (struct ohci_hcd *ohci, int autostop) in ohci_rh_suspend() argument
47 __releases(ohci->lock) in ohci_rh_suspend()
48 __acquires(ohci->lock) in ohci_rh_suspend()
52 ohci->hc_control = ohci_readl (ohci, &ohci->regs->control); in ohci_rh_suspend()
53 switch (ohci->hc_control & OHCI_CTRL_HCFS) { in ohci_rh_suspend()
55 ohci_dbg (ohci, "resume/suspend?\n"); in ohci_rh_suspend()
56 ohci->hc_control &= ~OHCI_CTRL_HCFS; in ohci_rh_suspend()
57 ohci->hc_control |= OHCI_USB_RESET; in ohci_rh_suspend()
58 ohci_writel (ohci, ohci->hc_control, &ohci->regs->control); in ohci_rh_suspend()
59 (void) ohci_readl (ohci, &ohci->regs->control); in ohci_rh_suspend()
[all …]
Dohci-hcd.c80 static void ohci_dump (struct ohci_hcd *ohci, int verbose);
81 static int ohci_init (struct ohci_hcd *ohci);
85 static int ohci_restart (struct ohci_hcd *ohci);
89 static void sb800_prefetch(struct ohci_hcd *ohci, int on);
91 static inline void sb800_prefetch(struct ohci_hcd *ohci, int on) in sb800_prefetch() argument
136 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_enqueue() local
149 if (! (ed = ed_get (ohci, urb->ep, urb->dev, pipe, urb->interval))) in ohci_urb_enqueue()
195 urb_priv->td [i] = td_alloc (ohci, mem_flags); in ohci_urb_enqueue()
198 urb_free_priv (ohci, urb_priv); in ohci_urb_enqueue()
203 spin_lock_irqsave (&ohci->lock, flags); in ohci_urb_enqueue()
[all …]
Dohci-q.c40 finish_urb(struct ohci_hcd *ohci, struct urb *urb, int status) in finish_urb() argument
41 __releases(ohci->lock) in finish_urb()
42 __acquires(ohci->lock) in finish_urb()
46 urb_free_priv (ohci, urb->hcpriv); in finish_urb()
52 ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs--; in finish_urb()
53 if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0) { in finish_urb()
54 if (quirk_amdiso(ohci)) in finish_urb()
56 if (quirk_amdprefetch(ohci)) in finish_urb()
57 sb800_prefetch(ohci, 0); in finish_urb()
61 ohci_to_hcd(ohci)->self.bandwidth_int_reqs--; in finish_urb()
[all …]
Dohci.h374 void (*start_hnp)(struct ohci_hcd *ohci);
426 static inline int quirk_nec(struct ohci_hcd *ohci) in quirk_nec() argument
428 return ohci->flags & OHCI_QUIRK_NEC; in quirk_nec()
430 static inline int quirk_zfmicro(struct ohci_hcd *ohci) in quirk_zfmicro() argument
432 return ohci->flags & OHCI_QUIRK_ZFMICRO; in quirk_zfmicro()
434 static inline int quirk_amdiso(struct ohci_hcd *ohci) in quirk_amdiso() argument
436 return ohci->flags & OHCI_QUIRK_AMD_PLL; in quirk_amdiso()
438 static inline int quirk_amdprefetch(struct ohci_hcd *ohci) in quirk_amdprefetch() argument
440 return ohci->flags & OHCI_QUIRK_AMD_PREFETCH; in quirk_amdprefetch()
443 static inline int quirk_nec(struct ohci_hcd *ohci) in quirk_nec() argument
[all …]
Dohci-pci.c38 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_amd756() local
40 ohci->flags = OHCI_QUIRK_AMD756; in ohci_quirk_amd756()
41 ohci_dbg (ohci, "AMD756 erratum 4 workaround\n"); in ohci_quirk_amd756()
53 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_opti() local
55 ohci_dbg (ohci, "WARNING: OPTi workarounds unavailable\n"); in ohci_quirk_opti()
72 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_ns() local
74 ohci->flags |= OHCI_QUIRK_SUPERIO; in ohci_quirk_ns()
75 ohci_dbg (ohci, "Using NSC SuperIO setup\n"); in ohci_quirk_ns()
88 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_zfmicro() local
90 ohci->flags |= OHCI_QUIRK_ZFMICRO; in ohci_quirk_zfmicro()
[all …]
Dohci-pxa27x.c103 struct ohci_hcd ohci; member
122 static int pxa27x_ohci_select_pmm(struct pxa27x_ohci *ohci, int mode) in pxa27x_ohci_select_pmm() argument
124 uint32_t uhcrhda = __raw_readl(ohci->mmio_base + UHCRHDA); in pxa27x_ohci_select_pmm()
125 uint32_t uhcrhdb = __raw_readl(ohci->mmio_base + UHCRHDB); in pxa27x_ohci_select_pmm()
149 __raw_writel(uhcrhda, ohci->mmio_base + UHCRHDA); in pxa27x_ohci_select_pmm()
150 __raw_writel(uhcrhdb, ohci->mmio_base + UHCRHDB); in pxa27x_ohci_select_pmm()
158 static inline void pxa27x_setup_hc(struct pxa27x_ohci *ohci, in pxa27x_setup_hc() argument
161 uint32_t uhchr = __raw_readl(ohci->mmio_base + UHCHR); in pxa27x_setup_hc()
162 uint32_t uhcrhda = __raw_readl(ohci->mmio_base + UHCRHDA); in pxa27x_setup_hc()
194 __raw_writel(uhchr, ohci->mmio_base + UHCHR); in pxa27x_setup_hc()
[all …]
Dohci-dbg.c75 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ argument
82 ohci_dbg(ohci,format, ## arg ); \
87 struct ohci_hcd *ohci, in ohci_dump_intr_mask() argument
93 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n", in ohci_dump_intr_mask()
109 struct ohci_hcd *ohci, in maybe_print_eds() argument
116 ohci_dbg_sw (ohci, next, size, "%s %08x\n", label, value); in maybe_print_eds()
285 static void ohci_dump_td (const struct ohci_hcd *ohci, const char *label, in ohci_dump_td() argument
288 u32 tmp = hc32_to_cpup (ohci, &td->hwINFO); in ohci_dump_td()
290 ohci_dbg (ohci, "%s td %p%s; urb %p index %d; hw next td %08x\n", in ohci_dump_td()
294 hc32_to_cpup (ohci, &td->hwNextTD)); in ohci_dump_td()
[all …]
Dohci-omap.c168 static void start_hnp(struct ohci_hcd *ohci) in start_hnp() argument
170 const unsigned port = ohci_to_hcd(ohci)->self.otg_port - 1; in start_hnp()
174 otg_start_hnp(ohci->transceiver); in start_hnp()
177 ohci->transceiver->state = OTG_STATE_A_SUSPEND; in start_hnp()
178 writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); in start_hnp()
191 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_init() local
199 ohci_to_hcd(ohci)->self.otg_port = config->otg; in ohci_omap_init()
201 ohci_to_hcd(ohci)->power_budget = 8; in ohci_omap_init()
213 ohci->transceiver = otg_get_transceiver(); in ohci_omap_init()
214 if (ohci->transceiver) { in ohci_omap_init()
[all …]
Dohci-mem.c26 static void ohci_hcd_init (struct ohci_hcd *ohci) in ohci_hcd_init() argument
28 ohci->next_statechange = jiffies; in ohci_hcd_init()
29 spin_lock_init (&ohci->lock); in ohci_hcd_init()
30 INIT_LIST_HEAD (&ohci->pending); in ohci_hcd_init()
35 static int ohci_mem_init (struct ohci_hcd *ohci) in ohci_mem_init() argument
37 ohci->td_cache = dma_pool_create ("ohci_td", in ohci_mem_init()
38 ohci_to_hcd(ohci)->self.controller, in ohci_mem_init()
42 if (!ohci->td_cache) in ohci_mem_init()
44 ohci->ed_cache = dma_pool_create ("ohci_ed", in ohci_mem_init()
45 ohci_to_hcd(ohci)->self.controller, in ohci_mem_init()
[all …]
Dohci-spear.c19 struct ohci_hcd ohci; member
25 static void spear_start_ohci(struct spear_ohci *ohci) in spear_start_ohci() argument
27 clk_enable(ohci->clk); in spear_start_ohci()
30 static void spear_stop_ohci(struct spear_ohci *ohci) in spear_stop_ohci() argument
32 clk_disable(ohci->clk); in spear_stop_ohci()
37 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_spear_start() local
40 ret = ohci_init(ohci); in ohci_spear_start()
43 ohci->regs = hcd->regs; in ohci_spear_start()
45 ret = ohci_run(ohci); in ohci_spear_start()
52 create_debug_files(ohci); in ohci_spear_start()
[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()
32 err("can't start %s", ohci_to_hcd(ohci)->self.bus_name); in ohci_ppc_of_start()
87 struct ohci_hcd *ohci; in ohci_hcd_ppc_of_probe() local
135 ohci = hcd_to_ohci(hcd); in ohci_hcd_ppc_of_probe()
137 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in ohci_hcd_ppc_of_probe()
139 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe()
141 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe()
144 ohci_hcd_init(ohci); in ohci_hcd_ppc_of_probe()
[all …]
Dohci-au1xxx.c114 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_au1xxx_start() local
117 ohci_dbg(ohci, "ohci_au1xxx_start, ohci:%p", ohci); in ohci_au1xxx_start()
119 if ((ret = ohci_init(ohci)) < 0) in ohci_au1xxx_start()
122 if ((ret = ohci_run(ohci)) < 0) { in ohci_au1xxx_start()
254 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_au1xxx_drv_suspend() local
268 spin_lock_irqsave(&ohci->lock, flags); in ohci_hcd_au1xxx_drv_suspend()
273 ohci_writel(ohci, OHCI_INTR_MIE, &ohci->regs->intrdisable); in ohci_hcd_au1xxx_drv_suspend()
274 (void)ohci_readl(ohci, &ohci->regs->intrdisable); in ohci_hcd_au1xxx_drv_suspend()
280 spin_unlock_irqrestore(&ohci->lock, flags); in ohci_hcd_au1xxx_drv_suspend()
Dohci-ppc-soc.c36 struct ohci_hcd *ohci; in usb_hcd_ppc_soc_probe() local
74 ohci = hcd_to_ohci(hcd); in usb_hcd_ppc_soc_probe()
75 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in usb_hcd_ppc_soc_probe()
79 ohci->flags |= OHCI_QUIRK_FRAME_NO; in usb_hcd_ppc_soc_probe()
81 ohci_hcd_init(ohci); in usb_hcd_ppc_soc_probe()
126 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_ppc_soc_start() local
129 if ((ret = ohci_init(ohci)) < 0) in ohci_ppc_soc_start()
132 if ((ret = ohci_run(ohci)) < 0) { in ohci_ppc_soc_start()
133 err("can't start %s", ohci_to_hcd(ohci)->self.bus_name); in ohci_ppc_soc_start()
Dohci-da8xx.c89 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_init() local
101 ohci->num_ports = 1; in ohci_da8xx_init()
103 result = ohci_init(ohci); in ohci_da8xx_init()
113 rh_a = ohci_readl(ohci, &ohci->regs->roothub.a); in ohci_da8xx_init()
124 ohci_writel(ohci, rh_a, &ohci->regs->roothub.a); in ohci_da8xx_init()
137 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_start() local
140 result = ohci_run(ohci); in ohci_da8xx_start()
413 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_suspend() local
415 if (time_before(jiffies, ohci->next_statechange)) in ohci_da8xx_suspend()
417 ohci->next_statechange = jiffies; in ohci_da8xx_suspend()
[all …]
Dohci-tmio.c96 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in tmio_stop_hc() local
101 switch (ohci->num_ports) { in tmio_stop_hc()
103 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()
194 struct ohci_hcd *ohci; in ohci_hcd_tmio_drv_probe() local
244 ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_probe()
245 ohci_hcd_init(ohci); in ohci_hcd_tmio_drv_probe()
298 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_tmio_drv_suspend() local
[all …]
Dohci-ep93xx.c112 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_ep93xx_start() local
115 if ((ret = ohci_init(ohci)) < 0) in ohci_ep93xx_start()
118 if ((ret = ohci_run(ohci)) < 0) { in ohci_ep93xx_start()
175 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_ep93xx_drv_suspend() local
177 if (time_before(jiffies, ohci->next_statechange)) in ohci_hcd_ep93xx_drv_suspend()
179 ohci->next_statechange = jiffies; in ohci_hcd_ep93xx_drv_suspend()
190 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_ep93xx_drv_resume() local
192 if (time_before(jiffies, ohci->next_statechange)) in ohci_hcd_ep93xx_drv_resume()
194 ohci->next_statechange = jiffies; in ohci_hcd_ep93xx_drv_resume()
Dohci-octeon.c47 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_octeon_start() local
50 ret = ohci_init(ohci); in ohci_octeon_start()
55 ret = ohci_run(ohci); in ohci_octeon_start()
58 ohci_err(ohci, "can't start %s", hcd->self.bus_name); in ohci_octeon_start()
108 struct ohci_hcd *ohci; in ohci_octeon_drv_probe() local
158 ohci = hcd_to_ohci(hcd); in ohci_octeon_drv_probe()
162 ohci->flags |= OHCI_QUIRK_BE_MMIO; in ohci_octeon_drv_probe()
165 ohci_hcd_init(ohci); in ohci_octeon_drv_probe()
Dohci-ps3.c26 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_reset() local
28 ohci->flags |= OHCI_QUIRK_BE_MMIO; in ps3_ohci_hc_reset()
29 ohci_hcd_init(ohci); in ps3_ohci_hc_reset()
30 return ohci_init(ohci); in ps3_ohci_hc_reset()
36 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_start() local
41 ohci_writel(ohci, 0x7f000000 | RH_A_PSM | RH_A_OCPM, in ps3_ohci_hc_start()
42 &ohci->regs->roothub.a); in ps3_ohci_hc_start()
43 ohci_writel(ohci, 0x00060000, &ohci->regs->roothub.b); in ps3_ohci_hc_start()
45 result = ohci_run(ohci); in ps3_ohci_hc_start()
Dohci-ssb.c24 struct ohci_hcd ohci; /* _must_ be at the beginning. */ member
39 struct ohci_hcd *ohci = &ohcidev->ohci; in ssb_ohci_reset() local
42 ohci_hcd_init(ohci); in ssb_ohci_reset()
43 err = ohci_init(ohci); in ssb_ohci_reset()
51 struct ohci_hcd *ohci = &ohcidev->ohci; in ssb_ohci_start() local
54 err = ohci_run(ohci); in ssb_ohci_start()
56 ohci_err(ohci, "can't start\n"); in ssb_ohci_start()
Dohci-at91.c210 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_at91_start() local
213 if ((ret = ohci_init(ohci)) < 0) in ohci_at91_start()
216 ohci->num_ports = board->ports; in ohci_at91_start()
218 if ((ret = ohci_run(ohci)) < 0) { in ohci_at91_start()
320 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_at91_drv_suspend() local
333 ohci_usb_reset (ohci); in ohci_hcd_at91_drv_suspend()
335 (void) ohci_readl (ohci, &ohci->regs->control); in ohci_hcd_at91_drv_suspend()
Dohci-sm501.c221 struct ohci_hcd *ohci = hcd_to_ohci(platform_get_drvdata(pdev)); in ohci_sm501_suspend() local
223 if (time_before(jiffies, ohci->next_statechange)) in ohci_sm501_suspend()
225 ohci->next_statechange = jiffies; in ohci_sm501_suspend()
228 ohci_to_hcd(ohci)->state = HC_STATE_SUSPENDED; 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-pnx8550.c151 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_pnx8550_start() local
154 ohci_dbg (ohci, "ohci_pnx8550_start, ohci:%p", ohci); in ohci_pnx8550_start()
156 if ((ret = ohci_init(ohci)) < 0) in ohci_pnx8550_start()
159 if ((ret = ohci_run (ohci)) < 0) { in ohci_pnx8550_start()
/linux-2.6.39/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.c95 struct fw_ohci *ohci; member
125 struct fw_ohci *ohci; member
500 static inline void reg_write(const struct fw_ohci *ohci, int offset, u32 data) in reg_write() argument
502 writel(data, ohci->registers + offset); in reg_write()
505 static inline u32 reg_read(const struct fw_ohci *ohci, int offset) in reg_read() argument
507 return readl(ohci->registers + offset); in reg_read()
510 static inline void flush_writes(const struct fw_ohci *ohci) in flush_writes() argument
513 reg_read(ohci, OHCI1394_Version); in flush_writes()
516 static int read_phy_reg(struct fw_ohci *ohci, int addr) in read_phy_reg() argument
521 reg_write(ohci, OHCI1394_PhyControl, OHCI1394_PhyControl_Read(addr)); in read_phy_reg()
[all …]
/linux-2.6.39/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

123