Lines Matching refs:ci
22 struct platform_device *ci; member
58 struct ci_hdrc_pci *ci; in ci_hdrc_pci_probe() local
67 ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); in ci_hdrc_pci_probe()
68 if (!ci) in ci_hdrc_pci_probe()
84 ci->phy = usb_phy_generic_register(); in ci_hdrc_pci_probe()
85 if (IS_ERR(ci->phy)) in ci_hdrc_pci_probe()
86 return PTR_ERR(ci->phy); in ci_hdrc_pci_probe()
95 ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata); in ci_hdrc_pci_probe()
96 if (IS_ERR(ci->ci)) { in ci_hdrc_pci_probe()
98 usb_phy_generic_unregister(ci->phy); in ci_hdrc_pci_probe()
99 return PTR_ERR(ci->ci); in ci_hdrc_pci_probe()
102 pci_set_drvdata(pdev, ci); in ci_hdrc_pci_probe()
117 struct ci_hdrc_pci *ci = pci_get_drvdata(pdev); in ci_hdrc_pci_remove() local
119 ci_hdrc_remove_device(ci->ci); in ci_hdrc_pci_remove()
120 usb_phy_generic_unregister(ci->phy); in ci_hdrc_pci_remove()