Lines Matching refs:ctrl_phy
154 static void omap_control_usb_host_mode(struct omap_control_phy *ctrl_phy) in omap_control_usb_host_mode() argument
158 val = readl(ctrl_phy->otghs_control); in omap_control_usb_host_mode()
161 writel(val, ctrl_phy->otghs_control); in omap_control_usb_host_mode()
172 static void omap_control_usb_device_mode(struct omap_control_phy *ctrl_phy) in omap_control_usb_device_mode() argument
176 val = readl(ctrl_phy->otghs_control); in omap_control_usb_device_mode()
180 writel(val, ctrl_phy->otghs_control); in omap_control_usb_device_mode()
191 static void omap_control_usb_set_sessionend(struct omap_control_phy *ctrl_phy) in omap_control_usb_set_sessionend() argument
195 val = readl(ctrl_phy->otghs_control); in omap_control_usb_set_sessionend()
198 writel(val, ctrl_phy->otghs_control); in omap_control_usb_set_sessionend()
213 struct omap_control_phy *ctrl_phy; in omap_control_usb_set_mode() local
218 ctrl_phy = dev_get_drvdata(dev); in omap_control_usb_set_mode()
219 if (!ctrl_phy) { in omap_control_usb_set_mode()
224 if (ctrl_phy->type != OMAP_CTRL_TYPE_OTGHS) in omap_control_usb_set_mode()
229 omap_control_usb_host_mode(ctrl_phy); in omap_control_usb_set_mode()
232 omap_control_usb_device_mode(ctrl_phy); in omap_control_usb_set_mode()
235 omap_control_usb_set_sessionend(ctrl_phy); in omap_control_usb_set_mode()