/drivers/usb/host/ |
D | ohci-hub.c | 46 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 …]
|
D | ohci-hcd.c | 80 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); 141 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_enqueue() local 154 if (! (ed = ed_get (ohci, urb->ep, urb->dev, pipe, urb->interval))) in ohci_urb_enqueue() 200 urb_priv->td [i] = td_alloc (ohci, mem_flags); in ohci_urb_enqueue() 203 urb_free_priv (ohci, urb_priv); in ohci_urb_enqueue() 208 spin_lock_irqsave (&ohci->lock, flags); in ohci_urb_enqueue() 225 retval = ed_schedule (ohci, ed); in ohci_urb_enqueue() 231 u16 frame = ohci_frame_no(ohci); in ohci_urb_enqueue() [all …]
|
D | ohci-q.c | 39 finish_urb(struct ohci_hcd *ohci, struct urb *urb, int status) in finish_urb() argument 40 __releases(ohci->lock) in finish_urb() 41 __acquires(ohci->lock) in finish_urb() 45 urb_free_priv (ohci, urb->hcpriv); in finish_urb() 51 ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs--; in finish_urb() 52 if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0 in finish_urb() 53 && quirk_amdiso(ohci)) in finish_urb() 57 ohci_to_hcd(ohci)->self.bandwidth_int_reqs--; in finish_urb() 66 usb_hcd_unlink_urb_from_ep(ohci_to_hcd(ohci), urb); in finish_urb() 67 spin_unlock (&ohci->lock); in finish_urb() [all …]
|
D | ohci.h | 374 void (*start_hnp)(struct ohci_hcd *ohci); 424 static inline int quirk_nec(struct ohci_hcd *ohci) in quirk_nec() argument 426 return ohci->flags & OHCI_QUIRK_NEC; in quirk_nec() 428 static inline int quirk_zfmicro(struct ohci_hcd *ohci) in quirk_zfmicro() argument 430 return ohci->flags & OHCI_QUIRK_ZFMICRO; in quirk_zfmicro() 432 static inline int quirk_amdiso(struct ohci_hcd *ohci) in quirk_amdiso() argument 434 return ohci->flags & OHCI_QUIRK_AMD_ISO; in quirk_amdiso() 437 static inline int quirk_nec(struct ohci_hcd *ohci) in quirk_nec() argument 441 static inline int quirk_zfmicro(struct ohci_hcd *ohci) in quirk_zfmicro() argument 445 static inline int quirk_amdiso(struct ohci_hcd *ohci) in quirk_amdiso() argument [all …]
|
D | ohci-pxa27x.c | 102 struct ohci_hcd ohci; member 121 static int pxa27x_ohci_select_pmm(struct pxa27x_ohci *ohci, int mode) in pxa27x_ohci_select_pmm() argument 123 uint32_t uhcrhda = __raw_readl(ohci->mmio_base + UHCRHDA); in pxa27x_ohci_select_pmm() 124 uint32_t uhcrhdb = __raw_readl(ohci->mmio_base + UHCRHDB); in pxa27x_ohci_select_pmm() 148 __raw_writel(uhcrhda, ohci->mmio_base + UHCRHDA); in pxa27x_ohci_select_pmm() 149 __raw_writel(uhcrhdb, ohci->mmio_base + UHCRHDB); in pxa27x_ohci_select_pmm() 157 static inline void pxa27x_setup_hc(struct pxa27x_ohci *ohci, in pxa27x_setup_hc() argument 160 uint32_t uhchr = __raw_readl(ohci->mmio_base + UHCHR); in pxa27x_setup_hc() 161 uint32_t uhcrhda = __raw_readl(ohci->mmio_base + UHCRHDA); in pxa27x_setup_hc() 189 __raw_writel(uhchr, ohci->mmio_base + UHCHR); in pxa27x_setup_hc() [all …]
|
D | ohci-dbg.c | 75 #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 …]
|
D | ohci-pci.c | 56 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_amd756() local 58 ohci->flags = OHCI_QUIRK_AMD756; in ohci_quirk_amd756() 59 ohci_dbg (ohci, "AMD756 erratum 4 workaround\n"); in ohci_quirk_amd756() 71 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_opti() local 73 ohci_dbg (ohci, "WARNING: OPTi workarounds unavailable\n"); in ohci_quirk_opti() 90 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_ns() local 92 ohci->flags |= OHCI_QUIRK_SUPERIO; in ohci_quirk_ns() 93 ohci_dbg (ohci, "Using NSC SuperIO setup\n"); in ohci_quirk_ns() 106 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_zfmicro() local 108 ohci->flags |= OHCI_QUIRK_ZFMICRO; in ohci_quirk_zfmicro() [all …]
|
D | ohci-omap.c | 168 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 …]
|
D | ohci-mem.c | 26 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 …]
|
D | ohci-ppc-of.c | 25 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() 88 struct ohci_hcd *ohci; in ohci_hcd_ppc_of_probe() local 136 ohci = hcd_to_ohci(hcd); in ohci_hcd_ppc_of_probe() 138 ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; in ohci_hcd_ppc_of_probe() 140 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe() 142 ohci->flags |= OHCI_QUIRK_FRAME_NO; in ohci_hcd_ppc_of_probe() 145 ohci_hcd_init(ohci); in ohci_hcd_ppc_of_probe() [all …]
|
D | ohci-au1xxx.c | 114 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() 255 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_au1xxx_drv_suspend() local 269 spin_lock_irqsave(&ohci->lock, flags); in ohci_hcd_au1xxx_drv_suspend() 274 ohci_writel(ohci, OHCI_INTR_MIE, &ohci->regs->intrdisable); in ohci_hcd_au1xxx_drv_suspend() 275 (void)ohci_readl(ohci, &ohci->regs->intrdisable); in ohci_hcd_au1xxx_drv_suspend() 279 ohci_usb_reset(ohci); in ohci_hcd_au1xxx_drv_suspend() 285 spin_unlock_irqrestore(&ohci->lock, flags); in ohci_hcd_au1xxx_drv_suspend()
|
D | ohci-tmio.c | 96 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 …]
|
D | ohci-ppc-soc.c | 36 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()
|
D | ohci-ssb.c | 24 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()
|
D | ohci-ep93xx.c | 107 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_ep93xx_start() local 110 if ((ret = ohci_init(ohci)) < 0) in ohci_ep93xx_start() 113 if ((ret = ohci_run(ohci)) < 0) { in ohci_ep93xx_start() 170 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_ep93xx_drv_suspend() local 172 if (time_before(jiffies, ohci->next_statechange)) in ohci_hcd_ep93xx_drv_suspend() 174 ohci->next_statechange = jiffies; in ohci_hcd_ep93xx_drv_suspend() 185 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_ep93xx_drv_resume() local 188 if (time_before(jiffies, ohci->next_statechange)) in ohci_hcd_ep93xx_drv_resume() 190 ohci->next_statechange = jiffies; in ohci_hcd_ep93xx_drv_resume()
|
D | ohci-ps3.c | 26 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()
|
D | ohci-sm501.c | 219 struct ohci_hcd *ohci = hcd_to_ohci(platform_get_drvdata(pdev)); in ohci_sm501_suspend() local 221 if (time_before(jiffies, ohci->next_statechange)) in ohci_sm501_suspend() 223 ohci->next_statechange = jiffies; in ohci_sm501_suspend() 226 ohci_to_hcd(ohci)->state = HC_STATE_SUSPENDED; in ohci_sm501_suspend() 234 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sm501_resume() local 236 if (time_before(jiffies, ohci->next_statechange)) in ohci_sm501_resume() 238 ohci->next_statechange = jiffies; in ohci_sm501_resume()
|
D | ohci-lh7a404.c | 144 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_lh7a404_start() local 147 ohci_dbg (ohci, "ohci_lh7a404_start, ohci:%p", ohci); in ohci_lh7a404_start() 148 if ((ret = ohci_init(ohci)) < 0) in ohci_lh7a404_start() 151 if ((ret = ohci_run (ohci)) < 0) { in ohci_lh7a404_start()
|
D | ohci-pnx8550.c | 151 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()
|
/drivers/ieee1394/ |
D | ohci1394.c | 136 printk(KERN_INFO "%s: fw-host%d: " fmt "\n" , OHCI1394_DRIVER_NAME, ohci->host->id , ## args) 147 printk(level "%s: fw-host%d: " fmt "\n" , OHCI1394_DRIVER_NAME, ohci->host->id , ## args) 157 static int alloc_dma_rcv_ctx(struct ti_ohci *ohci, struct dma_rcv_ctx *d, 162 static int alloc_dma_trm_ctx(struct ti_ohci *ohci, struct dma_trm_ctx *d, 204 static u8 get_phy_reg(struct ti_ohci *ohci, u8 addr) in get_phy_reg() argument 210 spin_lock_irqsave (&ohci->phy_reg_lock, flags); in get_phy_reg() 212 reg_write(ohci, OHCI1394_PhyControl, (addr << 8) | 0x00008000); in get_phy_reg() 215 if (reg_read(ohci, OHCI1394_PhyControl) & 0x80000000) in get_phy_reg() 221 r = reg_read(ohci, OHCI1394_PhyControl); in get_phy_reg() 227 spin_unlock_irqrestore (&ohci->phy_reg_lock, flags); in get_phy_reg() [all …]
|
D | init_ohci1394_dma.c | 48 static inline u8 __init get_phy_reg(struct ti_ohci *ohci, u8 addr) in get_phy_reg() argument 53 reg_write(ohci, OHCI1394_PhyControl, (addr << 8) | 0x00008000); in get_phy_reg() 56 if (reg_read(ohci, OHCI1394_PhyControl) & 0x80000000) in get_phy_reg() 60 r = reg_read(ohci, OHCI1394_PhyControl); in get_phy_reg() 66 static inline void __init set_phy_reg(struct ti_ohci *ohci, u8 addr, u8 data) in set_phy_reg() argument 70 reg_write(ohci, OHCI1394_PhyControl, (addr << 8) | data | 0x00004000); in set_phy_reg() 73 u32 r = reg_read(ohci, OHCI1394_PhyControl); in set_phy_reg() 81 static inline void __init init_ohci1394_soft_reset(struct ti_ohci *ohci) { in init_ohci1394_soft_reset() argument 84 reg_write(ohci, OHCI1394_HCControlSet, OHCI1394_HCControl_softReset); in init_ohci1394_soft_reset() 87 if (!(reg_read(ohci, OHCI1394_HCControlSet) in init_ohci1394_soft_reset() [all …]
|
D | video1394.c | 72 struct ti_ohci *ohci; member 114 struct ti_ohci *ohci; member 151 DBGMSG(d->ohci->host->id, "Freeing dma_iso_ctx %d", d->ctx); in free_dma_iso_ctx() 153 ohci1394_stop_context(d->ohci, d->ctrlClear, NULL); in free_dma_iso_ctx() 155 ohci1394_unregister_iso_tasklet(d->ohci, &d->iso_tasklet); in free_dma_iso_ctx() 179 alloc_dma_iso_ctx(struct ti_ohci *ohci, int type, int num_desc, in alloc_dma_iso_ctx() argument 187 PRINT(KERN_ERR, ohci->host->id, "Failed to allocate dma_iso_ctx"); in alloc_dma_iso_ctx() 191 d->ohci = ohci; in alloc_dma_iso_ctx() 204 if (dma_region_alloc(&d->dma, (d->num_desc - 1) * d->buf_size, ohci->dev, in alloc_dma_iso_ctx() 206 PRINT(KERN_ERR, ohci->host->id, "Failed to allocate dma buffer"); in alloc_dma_iso_ctx() [all …]
|
D | dv1394.c | 151 static inline void flush_pci_write(struct ti_ohci *ohci) in flush_pci_write() argument 154 reg_read(ohci, OHCI1394_IsochronousCycleTimer); in flush_pci_write() 203 f->header_pool = pci_alloc_consistent(f->video->ohci->dev, PAGE_SIZE, &f->header_pool_dma); in frame_new() 217 f->descriptor_pool = pci_alloc_consistent(f->video->ohci->dev, in frame_new() 221 pci_free_consistent(f->video->ohci->dev, PAGE_SIZE, f->header_pool, f->header_pool_dma); in frame_new() 237 pci_free_consistent(f->video->ohci->dev, PAGE_SIZE, f->header_pool, f->header_pool_dma); in frame_delete() 238 …pci_free_consistent(f->video->ohci->dev, f->descriptor_pool_size, f->descriptor_pool, f->descripto… in frame_delete() 392 reg_read(video->ohci, OHCI1394_NodeID) & 0x3F, in frame_prepare() 593 flush_pci_write(video->ohci); in frame_prepare() 619 reg_write(video->ohci, video->ohci_IsoXmitCommandPtr, in frame_prepare() [all …]
|
D | ohci1394.h | 85 struct ti_ohci *ohci; member 115 struct ti_ohci *ohci; member 240 static inline void reg_write(const struct ti_ohci *ohci, int offset, u32 data) in reg_write() argument 242 writel(data, ohci->registers + offset); in reg_write() 245 static inline u32 reg_read(const struct ti_ohci *ohci, int offset) in reg_read() argument 247 return readl(ohci->registers + offset); in reg_read() 446 int ohci1394_register_iso_tasklet(struct ti_ohci *ohci, 448 void ohci1394_unregister_iso_tasklet(struct ti_ohci *ohci, 450 int ohci1394_stop_context(struct ti_ohci *ohci, int reg, char *msg);
|
/drivers/firewire/ |
D | fw-ohci.c | 93 struct fw_ohci *ohci; member 120 struct fw_ohci *ohci; member 428 static inline void reg_write(const struct fw_ohci *ohci, int offset, u32 data) in reg_write() argument 430 writel(data, ohci->registers + offset); in reg_write() 433 static inline u32 reg_read(const struct fw_ohci *ohci, int offset) in reg_read() argument 435 return readl(ohci->registers + offset); in reg_read() 438 static inline void flush_writes(const struct fw_ohci *ohci) in flush_writes() argument 441 reg_read(ohci, OHCI1394_Version); in flush_writes() 448 struct fw_ohci *ohci = fw_ohci(card); in ohci_update_phy_reg() local 451 reg_write(ohci, OHCI1394_PhyControl, OHCI1394_PhyControl_Read(addr)); in ohci_update_phy_reg() [all …]
|