• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/host/

Lines Matching defs:hcd

37 #include <linux/usb/hcd.h>
69 static inline struct oxu_hcd *hcd_to_oxu(struct usb_hcd *hcd)
71 return (struct oxu_hcd *) (hcd->hcd_priv);
242 static int oxu_hub_control(struct usb_hcd *hcd,
2414 static irqreturn_t oxu210_hcd_irq(struct usb_hcd *hcd)
2416 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2465 usb_hcd_resume_root_hub(hcd);
2482 mod_timer(&hcd->rh_timer, oxu->reset_done[i]);
2508 usb_hcd_poll_rh_status(hcd);
2512 static irqreturn_t oxu_irq(struct usb_hcd *hcd)
2514 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2517 u32 status = oxu_readl(hcd->regs, OXU_CHIPIRQSTATUS);
2518 u32 enable = oxu_readl(hcd->regs, OXU_CHIPIRQEN_SET);
2521 oxu_writel(hcd->regs, OXU_CHIPIRQEN_CLR, enable);
2525 oxu210_hcd_irq(hcd);
2530 oxu_writel(hcd->regs, OXU_CHIPIRQEN_SET, enable);
2564 static int oxu_hcd_init(struct usb_hcd *hcd)
2566 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2643 static int oxu_reset(struct usb_hcd *hcd)
2645 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2653 hcd->self.controller->dma_mask = NULL;
2656 oxu->caps = hcd->regs + OXU_OTG_CAP_OFFSET;
2657 oxu->regs = hcd->regs + OXU_OTG_CAP_OFFSET + \
2660 oxu->mem = hcd->regs + OXU_SPH_MEM;
2662 oxu->caps = hcd->regs + OXU_SPH_CAP_OFFSET;
2663 oxu->regs = hcd->regs + OXU_SPH_CAP_OFFSET + \
2666 oxu->mem = hcd->regs + OXU_OTG_MEM;
2672 ret = oxu_hcd_init(hcd);
2679 static int oxu_run(struct usb_hcd *hcd)
2681 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2685 hcd->uses_new_polling = 1;
2723 hcd->state = HC_STATE_RUNNING;
2738 static void oxu_stop(struct usb_hcd *hcd)
2740 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2749 if (HC_IS_RUNNING(hcd->state))
2773 static void oxu_shutdown(struct usb_hcd *hcd)
2775 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2790 * urb + dev is in hcd.self.controller.urb_list
2793 * hcd-specific init for hcpriv hasn't been done yet
2798 static int __oxu_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
2801 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2830 static int oxu_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
2833 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2842 return __oxu_urb_enqueue(hcd, urb, mem_flags);
2855 return __oxu_urb_enqueue(hcd, urb, mem_flags);
2884 ret = __oxu_urb_enqueue(hcd, murb, mem_flags);
2912 ret = __oxu_urb_enqueue(hcd, murb, mem_flags);
2923 static int oxu_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
2925 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
2959 && HC_IS_RUNNING(hcd->state)) {
2979 static void oxu_endpoint_disable(struct usb_hcd *hcd,
2982 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
3003 if (!HC_IS_RUNNING(hcd->state))
3043 static int oxu_get_frame(struct usb_hcd *hcd)
3045 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
3052 static int oxu_hub_status_data(struct usb_hcd *hcd, char *buf)
3054 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
3060 if (!HC_IS_RUNNING(hcd->state))
3127 static int oxu_hub_control(struct usb_hcd *hcd, u16 typeReq,
3130 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
3354 if (device_may_wakeup(&hcd->self.root_hub->dev))
3414 static int oxu_bus_suspend(struct usb_hcd *hcd)
3416 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
3429 if (HC_IS_RUNNING(hcd->state)) {
3431 hcd->state = HC_STATE_QUIESCING;
3457 if (device_may_wakeup(&hcd->self.root_hub->dev))
3472 hcd->state = HC_STATE_SUSPENDED;
3476 if (!device_may_wakeup(&hcd->self.root_hub->dev))
3487 static int oxu_bus_resume(struct usb_hcd *hcd)
3489 struct oxu_hcd *oxu = hcd_to_oxu(hcd);
3559 hcd->state = HC_STATE_RUNNING;
3570 static int oxu_bus_suspend(struct usb_hcd *hcd)
3575 static int oxu_bus_resume(struct usb_hcd *hcd)
3688 struct usb_hcd *hcd;
3697 hcd = usb_create_hcd(&oxu_hc_driver, dev,
3699 if (!hcd)
3702 hcd->rsrc_start = memstart;
3703 hcd->rsrc_len = memlen;
3704 hcd->regs = base;
3705 hcd->irq = irq;
3706 hcd->state = HC_STATE_HALT;
3708 oxu = hcd_to_oxu(hcd);
3711 ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
3715 return hcd;
3723 struct usb_hcd *hcd;
3736 hcd = oxu_create(pdev, memstart, memlen, base, irq, 1);
3737 if (IS_ERR(hcd)) {
3739 ret = PTR_ERR(hcd);
3742 info->hcd[0] = hcd;
3745 hcd = oxu_create(pdev, memstart, memlen, base, irq, 0);
3746 if (IS_ERR(hcd)) {
3748 ret = PTR_ERR(hcd);
3751 info->hcd[1] = hcd;
3759 usb_remove_hcd(info->hcd[0]);
3760 usb_put_hcd(info->hcd[0]);
3855 static void oxu_remove(struct platform_device *pdev, struct usb_hcd *hcd)
3857 usb_remove_hcd(hcd);
3858 usb_put_hcd(hcd);
3864 unsigned long memstart = info->hcd[0]->rsrc_start,
3865 memlen = info->hcd[0]->rsrc_len;
3866 void *base = info->hcd[0]->regs;
3868 oxu_remove(pdev, info->hcd[0]);
3869 oxu_remove(pdev, info->hcd[1]);
3895 .name = "oxu210hp-hcd",