Lines Matching refs:usb_dev
157 struct ssb_hcd_device *usb_dev; in ssb_hcd_probe() local
169 usb_dev = devm_kzalloc(dev->dev, sizeof(struct ssb_hcd_device), in ssb_hcd_probe()
171 if (!usb_dev) in ssb_hcd_probe()
178 usb_dev->enable_flags = ssb_hcd_init_chip(dev); in ssb_hcd_probe()
184 usb_dev->ohci_dev = ssb_hcd_create_pdev(dev, true, start, len); in ssb_hcd_probe()
185 if (IS_ERR(usb_dev->ohci_dev)) in ssb_hcd_probe()
186 return PTR_ERR(usb_dev->ohci_dev); in ssb_hcd_probe()
190 usb_dev->ehci_dev = ssb_hcd_create_pdev(dev, false, start, len); in ssb_hcd_probe()
191 if (IS_ERR(usb_dev->ehci_dev)) { in ssb_hcd_probe()
192 err = PTR_ERR(usb_dev->ehci_dev); in ssb_hcd_probe()
197 ssb_set_drvdata(dev, usb_dev); in ssb_hcd_probe()
201 platform_device_unregister(usb_dev->ohci_dev); in ssb_hcd_probe()
207 struct ssb_hcd_device *usb_dev = ssb_get_drvdata(dev); in ssb_hcd_remove() local
208 struct platform_device *ohci_dev = usb_dev->ohci_dev; in ssb_hcd_remove()
209 struct platform_device *ehci_dev = usb_dev->ehci_dev; in ssb_hcd_remove()
235 struct ssb_hcd_device *usb_dev = ssb_get_drvdata(dev); in ssb_hcd_resume() local
237 ssb_device_enable(dev, usb_dev->enable_flags); in ssb_hcd_resume()