Lines Matching refs:dwc
51 int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() argument
58 dev_err(dwc->dev, "couldn't allocate xHCI device\n"); in dwc3_host_init()
63 dma_set_coherent_mask(&xhci->dev, dwc->dev->coherent_dma_mask); in dwc3_host_init()
65 xhci->dev.parent = dwc->dev; in dwc3_host_init()
66 xhci->dev.dma_mask = dwc->dev->dma_mask; in dwc3_host_init()
67 xhci->dev.dma_parms = dwc->dev->dma_parms; in dwc3_host_init()
69 dwc->xhci = xhci; in dwc3_host_init()
72 generic_resources[0].start = dwc->irq; in dwc3_host_init()
74 generic_resources[1].start = dwc->res->start; in dwc3_host_init()
75 generic_resources[1].end = dwc->res->start + 0x7fff; in dwc3_host_init()
80 dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); in dwc3_host_init()
86 dev_err(dwc->dev, "failed to register xHCI device\n"); in dwc3_host_init()
99 void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit() argument
101 platform_device_unregister(dwc->xhci); in dwc3_host_exit()