Lines Matching refs:hcd
205 ehci->hcd.state = USB_STATE_HALT; in ehci_reset()
215 if (!HCD_IS_RUNNING (ehci->hcd.state)) in ehci_ready()
227 ehci->hcd.state = USB_STATE_HALT; in ehci_ready()
239 ehci->hcd.state = USB_STATE_HALT; in ehci_ready()
242 ehci->hcd.state = USB_STATE_READY; in ehci_ready()
295 pci_write_config_dword (ehci->hcd.pdev, where, cap); in bios_handoff()
301 pci_read_config_dword (ehci->hcd.pdev, where, &cap); in bios_handoff()
306 pci_write_config_dword (ehci->hcd.pdev, where, 0); in bios_handoff()
329 static int ehci_start (struct usb_hcd *hcd) in ehci_start() argument
331 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_start()
341 ehci->caps = (struct ehci_caps *) hcd->regs; in ehci_start()
342 ehci->regs = (struct ehci_regs *) (hcd->regs + in ehci_start()
354 pci_read_config_dword (ehci->hcd.pdev, temp, &cap); in ehci_start()
435 if (!pci_set_dma_mask (ehci->hcd.pdev, 0xffffffffffffffffULL)) in ehci_start()
440 pci_set_mwi (ehci->hcd.pdev); in ehci_start()
473 bus = hcd_to_bus (hcd); in ehci_start()
489 ehci->hcd.state = USB_STATE_READY; in ehci_start()
494 pci_read_config_byte (hcd->pdev, 0x60, &tempbyte); in ehci_start()
510 if (hcd_register_root (hcd) != 0) { in ehci_start()
511 if (hcd->state == USB_STATE_RUNNING) in ehci_start()
527 static void ehci_stop (struct usb_hcd *hcd) in ehci_stop() argument
529 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_stop()
534 if (hcd->state == USB_STATE_RUNNING) in ehci_stop()
567 static int ehci_get_frame (struct usb_hcd *hcd) in ehci_get_frame() argument
569 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_get_frame()
579 static int ehci_suspend (struct usb_hcd *hcd, u32 state) in ehci_suspend() argument
581 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_suspend()
607 if (hcd->state == USB_STATE_RUNNING) in ehci_suspend()
618 static int ehci_resume (struct usb_hcd *hcd) in ehci_resume() argument
620 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_resume()
635 hcd->state = USB_STATE_READY; in ehci_resume()
683 static void ehci_irq (struct usb_hcd *hcd, struct pt_regs *regs) in ehci_irq() argument
685 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_irq()
763 struct usb_hcd *hcd, in ehci_urb_enqueue() argument
767 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_urb_enqueue()
804 && HCD_IS_RUNNING (ehci->hcd.state)) { in unlink_async()
815 } else if (!HCD_IS_RUNNING (ehci->hcd.state) && ehci->reclaim) in unlink_async()
827 static int ehci_urb_dequeue (struct usb_hcd *hcd, struct urb *urb) in ehci_urb_dequeue() argument
829 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_urb_dequeue()
857 && HCD_IS_RUNNING (ehci->hcd.state)) { in ehci_urb_dequeue()
889 static void ehci_free_config (struct usb_hcd *hcd, struct usb_device *udev) in ehci_free_config() argument
892 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_free_config()
929 hcd_to_bus (hcd)->bus_name, in ehci_free_config()
948 && HCD_IS_RUNNING (ehci->hcd.state) in ehci_free_config()
960 && ehci->hcd.state != USB_STATE_HALT) { in ehci_free_config()