/openbmc/linux/drivers/usb/host/ |
H A D | ohci-hub.c | 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() 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 …]
|
H A D | ohci-hcd.c | 83 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 …]
|
H A D | ohci-q.c | 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() 63 if (quirk_amdprefetch(ohci)) in finish_urb() 68 ohci_to_hcd(ohci)->self.bandwidth_int_reqs--; in finish_urb() [all …]
|
H A D | ohci.h | 75 #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 …]
|
H A D | ohci-pci.c | 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() 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 …]
|
H A D | ohci-dbg.c | 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() 255 static void ohci_dump_td (const struct ohci_hcd *ohci, const char *label, in ohci_dump_td() argument [all …]
|
H A D | ohci-mem.c | 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() 47 ohci_to_hcd(ohci)->self.controller, in ohci_mem_init() 51 if (!ohci->td_cache) in ohci_mem_init() [all …]
|
H A D | ohci-omap.c | 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 114 &ohci_to_hcd(ohci)->self); in ohci_omap_reset() 125 ohci->start_hnp = start_hnp; in ohci_omap_reset() 138 ohci->hc_control = OHCI_CTRL_RWC; in ohci_omap_reset() 139 writel(OHCI_CTRL_RWC, &ohci->regs->control); in ohci_omap_reset() 144 u32 rh = roothub_a (ohci); in ohci_omap_reset() 151 ohci_to_hcd(ohci)->power_budget = 250; in ohci_omap_reset() [all …]
|
H A D | ohci-ppc-of.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() 89 struct ohci_hcd *ohci; in ohci_hcd_ppc_of_probe() local 131 ohci = hcd_to_ohci(hcd); in ohci_hcd_ppc_of_probe() 133 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in ohci_hcd_ppc_of_probe() 135 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe() 137 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe() 140 ohci_hcd_init(ohci); in ohci_hcd_ppc_of_probe() 163 writel_be((readl_be(&ohci->regs->control) | in ohci_hcd_ppc_of_probe() [all …]
|
H A D | Makefile | 53 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 …]
|
H A D | ohci-platform.c | 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() 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 …]
|
H A D | ohci-ps3.c | 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()
|
H A D | ohci-da8xx.c | 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() 485 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_suspend() local 490 if (time_before(jiffies, ohci->next_statechange)) in ohci_da8xx_suspend() 492 ohci->next_statechange = jiffies; in ohci_da8xx_suspend() 507 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_resume() local 510 if (time_before(jiffies, ohci->next_statechange)) in ohci_da8xx_resume() 512 ohci->next_statechange = jiffies; in ohci_da8xx_resume()
|
H A D | ohci-spear.c | 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()
|
H A D | ohci-sa1111.c | 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()
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-ohci.c | 256 static void ohci_die(OHCIState *ohci) in ohci_die() argument 258 ohci->ohci_die(ohci); in ohci_die() 262 static inline void ohci_intr_update(OHCIState *ohci) in ohci_intr_update() argument 266 if ((ohci->intr & OHCI_INTR_MIE) && in ohci_intr_update() 267 (ohci->intr_status & ohci->intr)) in ohci_intr_update() 270 qemu_set_irq(ohci->irq, level); in ohci_intr_update() 274 static inline void ohci_set_interrupt(OHCIState *ohci, uint32_t intr) in ohci_set_interrupt() argument 276 ohci->intr_status |= intr; in ohci_set_interrupt() 277 ohci_intr_update(ohci); in ohci_set_interrupt() 280 static USBDevice *ohci_find_device(OHCIState *ohci, uint8_t addr) in ohci_find_device() argument [all …]
|
H A D | hcd-ohci-pci.c | 52 static void ohci_pci_die(struct OHCIState *ohci) in ohci_pci_die() argument 54 OHCIPCIState *dev = container_of(ohci, OHCIPCIState, state); in ohci_pci_die() 56 ohci_sysbus_die(ohci); in ohci_pci_die() 65 OHCIPCIState *ohci = PCI_OHCI(dev); in usb_ohci_realize_pci() local 70 usb_ohci_init(&ohci->state, DEVICE(dev), ohci->num_ports, 0, in usb_ohci_realize_pci() 71 ohci->masterbus, ohci->firstport, in usb_ohci_realize_pci() 78 ohci->state.irq = pci_allocate_irq(dev); in usb_ohci_realize_pci() 79 pci_register_bar(dev, 0, 0, &ohci->state.mem); in usb_ohci_realize_pci() 84 OHCIPCIState *ohci = PCI_OHCI(dev); in usb_ohci_exit() local 85 OHCIState *s = &ohci->state; in usb_ohci_exit() [all …]
|
H A D | hcd-ohci.h | 95 void (*ohci_die)(OHCIState *ohci); 106 OHCIState ohci; member 115 void usb_ohci_init(OHCIState *ohci, DeviceState *dev, uint32_t num_ports, 119 void ohci_bus_stop(OHCIState *ohci); 120 void ohci_stop_endpoints(OHCIState *ohci); 121 void ohci_hard_reset(OHCIState *ohci); 122 void ohci_sysbus_die(struct OHCIState *ohci);
|
H A D | hcd-ohci-sysbus.c | 41 usb_ohci_init(&s->ohci, dev, s->num_ports, s->dma_offset, in ohci_sysbus_realize() 48 sysbus_init_irq(sbd, &s->ohci.irq); in ohci_sysbus_realize() 49 sysbus_init_mmio(sbd, &s->ohci.mem); in ohci_sysbus_realize() 55 OHCIState *ohci = &s->ohci; in ohci_sysbus_reset() local 57 ohci_hard_reset(ohci); in ohci_sysbus_reset()
|
/openbmc/linux/drivers/firewire/ |
H A D | init_ohci1394_dma.c | 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() 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 …]
|
H A D | ohci.c | 44 #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 …]
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ohci-hcd.c | 196 static inline u32 roothub_a(struct ohci *hc) in roothub_a() 198 static inline u32 roothub_b(struct ohci *hc) in roothub_b() 200 static inline u32 roothub_status(struct ohci *hc) in roothub_status() 202 static inline u32 roothub_portstatus(struct ohci *hc, int i) in roothub_portstatus() 206 static int hc_interrupt(ohci_t *ohci); 207 static void td_submit_job(ohci_t *ohci, struct usb_device *dev, 211 static int ep_link(ohci_t * ohci, ed_t * ed); 212 static int ep_unlink(ohci_t * ohci, ed_t * ed); 271 static int sohci_get_current_frame_number(ohci_t *ohci); 276 static void pkt_print(ohci_t *ohci, urb_priv_t *purb, struct usb_device *dev, in pkt_print() argument [all …]
|
H A D | Makefile | 12 obj-$(CONFIG_USB_OHCI_NEW) += ohci-hcd.o 13 obj-$(CONFIG_USB_ATMEL) += ohci-at91.o 14 obj-$(CONFIG_USB_OHCI_DA8XX) += ohci-da8xx.o 17 obj-$(CONFIG_USB_OHCI_EP93XX) += ohci-ep93xx.o 18 obj-$(CONFIG_USB_OHCI_LPC32XX) += ohci-lpc32xx.o 19 obj-$(CONFIG_USB_OHCI_GENERIC) += ohci-generic.o
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | omap-usb-host.txt | 21 "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 …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | spear3xx.dtsi | 83 ohci@e1900000 { 84 compatible = "st,spear600-ohci", "usb-ohci"; 90 ohci@e2100000 { 91 compatible = "st,spear600-ohci", "usb-ohci";
|