Lines Matching refs:hcd

34  *     + for 2.6.N, for N > ~10, needs API changes for hcd framework.
73 struct musb *hcd_to_musb(struct usb_hcd *hcd)
75 return *(struct musb **) hcd->hcd_priv;
283 usb_hcd_unlink_urb_from_ep(musb->hcd, urb);
285 usb_hcd_giveback_urb(musb->hcd, urb, status);
1433 usb_hcd_unmap_urb_for_dma(musb->hcd, urb);
1935 usb_hcd_unmap_urb_for_dma(musb->hcd, urb);
2114 struct usb_hcd *hcd,
2119 struct musb *musb = hcd_to_musb(hcd);
2134 ret = usb_hcd_link_urb_to_ep(hcd, urb);
2160 usb_hcd_unlink_urb_from_ep(hcd, urb);
2253 if (parent != hcd->self.root_hub) {
2295 usb_hcd_unlink_urb_from_ep(hcd, urb);
2363 static int musb_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
2365 struct musb *musb = hcd_to_musb(hcd);
2374 ret = usb_hcd_check_unlink_urb(hcd, urb, status);
2421 musb_h_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep)
2425 struct musb *musb = hcd_to_musb(hcd);
2473 static int musb_h_get_frame_number(struct usb_hcd *hcd)
2475 struct musb *musb = hcd_to_musb(hcd);
2480 static int musb_h_start(struct usb_hcd *hcd)
2482 struct musb *musb = hcd_to_musb(hcd);
2487 hcd->state = HC_STATE_RUNNING;
2492 static void musb_h_stop(struct usb_hcd *hcd)
2494 musb_stop(hcd_to_musb(hcd));
2495 hcd->state = HC_STATE_HALT;
2498 static int musb_bus_suspend(struct usb_hcd *hcd)
2500 struct musb *musb = hcd_to_musb(hcd);
2535 static int musb_bus_resume(struct usb_hcd *hcd)
2537 struct musb *musb = hcd_to_musb(hcd);
2622 static int musb_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
2625 struct musb *musb = hcd_to_musb(hcd);
2635 return usb_hcd_map_urb_for_dma(hcd, urb, mem_flags);
2641 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags);
2648 static void musb_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb)
2650 struct musb *musb = hcd_to_musb(hcd);
2652 usb_hcd_unmap_urb_for_dma(hcd, urb);
2663 .description = "musb-hcd",
2698 /* usbcore sets dev->driver_data to hcd, and sometimes uses that... */
2699 musb->hcd = usb_create_hcd(&musb_hc_driver, dev, dev_name(dev));
2700 if (!musb->hcd)
2703 *musb->hcd->hcd_priv = (unsigned long) musb;
2704 musb->hcd->self.uses_pio_for_control = 1;
2705 musb->hcd->uses_new_polling = 1;
2706 musb->hcd->has_tt = 1;
2715 usb_remove_hcd(musb->hcd);
2720 usb_put_hcd(musb->hcd);
2726 struct usb_hcd *hcd = musb->hcd;
2734 otg_set_host(musb->xceiv->otg, &hcd->self);
2735 musb->xceiv->otg->host = &hcd->self;
2741 hcd->self.otg_port = 0;
2742 hcd->power_budget = 2 * (power_budget ? : 250);
2743 hcd->skip_phy_initialization = 1;
2745 ret = usb_add_hcd(hcd, 0, 0);
2749 device_wakeup_enable(hcd->self.controller);
2755 usb_hcd_resume_root_hub(musb->hcd);
2761 if (musb->hcd->status_urb)
2762 usb_hcd_poll_rh_status(musb->hcd);
2764 usb_hcd_resume_root_hub(musb->hcd);