• Home
  • Raw
  • Download

Lines Matching refs:dwc

23 int dwc3_host_init(struct dwc3 *dwc)  in dwc3_host_init()  argument
31 dev_err(dwc->dev, "couldn't allocate xHCI device\n"); in dwc3_host_init()
35 dma_set_coherent_mask(&xhci->dev, dwc->dev->coherent_dma_mask); in dwc3_host_init()
37 xhci->dev.parent = dwc->dev; in dwc3_host_init()
38 xhci->dev.dma_mask = dwc->dev->dma_mask; in dwc3_host_init()
39 xhci->dev.dma_parms = dwc->dev->dma_parms; in dwc3_host_init()
41 dwc->xhci = xhci; in dwc3_host_init()
43 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init()
46 dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); in dwc3_host_init()
52 pdata.usb3_lpm_capable = dwc->usb3_lpm_capable; in dwc3_host_init()
56 dev_err(dwc->dev, "couldn't add platform data to xHCI device\n"); in dwc3_host_init()
60 phy_create_lookup(dwc->usb2_generic_phy, "usb2-phy", in dwc3_host_init()
62 phy_create_lookup(dwc->usb3_generic_phy, "usb3-phy", in dwc3_host_init()
67 dev_err(dwc->dev, "failed to register xHCI device\n"); in dwc3_host_init()
73 phy_remove_lookup(dwc->usb2_generic_phy, "usb2-phy", in dwc3_host_init()
75 phy_remove_lookup(dwc->usb3_generic_phy, "usb3-phy", in dwc3_host_init()
82 void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit() argument
84 phy_remove_lookup(dwc->usb2_generic_phy, "usb2-phy", in dwc3_host_exit()
85 dev_name(&dwc->xhci->dev)); in dwc3_host_exit()
86 phy_remove_lookup(dwc->usb3_generic_phy, "usb3-phy", in dwc3_host_exit()
87 dev_name(&dwc->xhci->dev)); in dwc3_host_exit()
88 platform_device_unregister(dwc->xhci); in dwc3_host_exit()