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()
153 struct am335x_control_usb *ctrl_usb; in am335x_control_usb_probe() local
163 ctrl_usb = devm_kzalloc(&pdev->dev, sizeof(*ctrl_usb), GFP_KERNEL); in am335x_control_usb_probe()
164 if (!ctrl_usb) in am335x_control_usb_probe()
167 ctrl_usb->dev = &pdev->dev; in am335x_control_usb_probe()
170 ctrl_usb->phy_reg = devm_ioremap_resource(&pdev->dev, res); in am335x_control_usb_probe()
171 if (IS_ERR(ctrl_usb->phy_reg)) in am335x_control_usb_probe()
172 return PTR_ERR(ctrl_usb->phy_reg); in am335x_control_usb_probe()
175 ctrl_usb->wkup = devm_ioremap_resource(&pdev->dev, res); in am335x_control_usb_probe()
176 if (IS_ERR(ctrl_usb->wkup)) in am335x_control_usb_probe()
177 return PTR_ERR(ctrl_usb->wkup); in am335x_control_usb_probe()
179 spin_lock_init(&ctrl_usb->lock); in am335x_control_usb_probe()
180 ctrl_usb->phy_ctrl = *phy_ctrl; in am335x_control_usb_probe()
182 dev_set_drvdata(ctrl_usb->dev, ctrl_usb); in am335x_control_usb_probe()