Lines Matching refs:ctrl_usb
131 struct am335x_control_usb *ctrl_usb; in am335x_get_phy_control() local
142 ctrl_usb = dev_get_drvdata(dev); in am335x_get_phy_control()
144 if (!ctrl_usb) in am335x_get_phy_control()
146 return &ctrl_usb->phy_ctrl; in am335x_get_phy_control()
152 struct am335x_control_usb *ctrl_usb; in am335x_control_usb_probe() local
162 ctrl_usb = devm_kzalloc(&pdev->dev, sizeof(*ctrl_usb), GFP_KERNEL); in am335x_control_usb_probe()
163 if (!ctrl_usb) in am335x_control_usb_probe()
166 ctrl_usb->dev = &pdev->dev; in am335x_control_usb_probe()
168 ctrl_usb->phy_reg = devm_platform_ioremap_resource_byname(pdev, "phy_ctrl"); in am335x_control_usb_probe()
169 if (IS_ERR(ctrl_usb->phy_reg)) in am335x_control_usb_probe()
170 return PTR_ERR(ctrl_usb->phy_reg); in am335x_control_usb_probe()
172 ctrl_usb->wkup = devm_platform_ioremap_resource_byname(pdev, "wakeup"); in am335x_control_usb_probe()
173 if (IS_ERR(ctrl_usb->wkup)) in am335x_control_usb_probe()
174 return PTR_ERR(ctrl_usb->wkup); in am335x_control_usb_probe()
176 spin_lock_init(&ctrl_usb->lock); in am335x_control_usb_probe()
177 ctrl_usb->phy_ctrl = *phy_ctrl; in am335x_control_usb_probe()
179 dev_set_drvdata(ctrl_usb->dev, ctrl_usb); in am335x_control_usb_probe()