Lines Matching refs:usb_phy

171 static int ulpi_read(struct usb_phy *phy, u32 reg)  in ulpi_read()
196 static int ulpi_write(struct usb_phy *phy, u32 val, u32 reg) in ulpi_write()
242 static int msm_phy_notify_disconnect(struct usb_phy *phy, in msm_phy_notify_disconnect()
320 static int msm_otg_reset(struct usb_phy *phy) in msm_otg_reset()
373 static int msm_usb_reset(struct usb_phy *phy) in msm_usb_reset()
404 static int msm_phy_init(struct usb_phy *phy) in msm_phy_init()
486 struct usb_phy *phy = &motg->phy; in msm_otg_suspend()
583 struct usb_phy *phy = &motg->phy; in msm_otg_resume()
669 static int msm_otg_set_power(struct usb_phy *phy, unsigned mA) in msm_otg_set_power()
686 static void msm_otg_start_host(struct usb_phy *phy, int on) in msm_otg_start_host()
728 struct msm_otg *motg = container_of(otg->usb_phy, struct msm_otg, phy); in msm_otg_set_host()
736 dev_info(otg->usb_phy->dev, "Host mode is not supported\n"); in msm_otg_set_host()
742 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_set_host()
743 msm_otg_start_host(otg->usb_phy, 0); in msm_otg_set_host()
758 dev_dbg(otg->usb_phy->dev, "host driver registered w/ tranceiver\n"); in msm_otg_set_host()
765 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_set_host()
772 static void msm_otg_start_peripheral(struct usb_phy *phy, int on) in msm_otg_start_peripheral()
802 struct msm_otg *motg = container_of(otg->usb_phy, struct msm_otg, phy); in msm_otg_set_peripheral()
809 dev_info(otg->usb_phy->dev, "Peripheral mode is not supported\n"); in msm_otg_set_peripheral()
815 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_set_peripheral()
816 msm_otg_start_peripheral(otg->usb_phy, 0); in msm_otg_set_peripheral()
827 dev_dbg(otg->usb_phy->dev, in msm_otg_set_peripheral()
835 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_set_peripheral()
844 struct usb_phy *phy = &motg->phy; in msm_chg_check_secondary_det()
865 struct usb_phy *phy = &motg->phy; in msm_chg_enable_secondary_det()
905 struct usb_phy *phy = &motg->phy; in msm_chg_check_primary_det()
926 struct usb_phy *phy = &motg->phy; in msm_chg_enable_primary_det()
951 struct usb_phy *phy = &motg->phy; in msm_chg_check_dcd()
972 struct usb_phy *phy = &motg->phy; in msm_chg_disable_dcd()
991 struct usb_phy *phy = &motg->phy; in msm_chg_enable_dcd()
1012 struct usb_phy *phy = &motg->phy; in msm_chg_block_on()
1047 struct usb_phy *phy = &motg->phy; in msm_chg_block_off()
1082 struct usb_phy *phy = &motg->phy; in msm_chg_detect_work()
1193 dev_dbg(otg->usb_phy->dev, "OTG_STATE_UNDEFINED state\n"); in msm_otg_sm_work()
1194 msm_otg_reset(otg->usb_phy); in msm_otg_sm_work()
1199 dev_dbg(otg->usb_phy->dev, "OTG_STATE_B_IDLE state\n"); in msm_otg_sm_work()
1203 msm_otg_start_host(otg->usb_phy, 1); in msm_otg_sm_work()
1219 msm_otg_start_peripheral(otg->usb_phy, in msm_otg_sm_work()
1226 msm_otg_start_peripheral(otg->usb_phy, in msm_otg_sm_work()
1245 pm_runtime_put_sync(otg->usb_phy->dev); in msm_otg_sm_work()
1246 msm_otg_reset(otg->usb_phy); in msm_otg_sm_work()
1254 pm_runtime_put_sync(otg->usb_phy->dev); in msm_otg_sm_work()
1257 dev_dbg(otg->usb_phy->dev, "OTG_STATE_B_PERIPHERAL state\n"); in msm_otg_sm_work()
1261 msm_otg_start_peripheral(otg->usb_phy, 0); in msm_otg_sm_work()
1265 msm_otg_reset(otg->usb_phy); in msm_otg_sm_work()
1270 dev_dbg(otg->usb_phy->dev, "OTG_STATE_A_HOST state\n"); in msm_otg_sm_work()
1272 msm_otg_start_host(otg->usb_phy, 0); in msm_otg_sm_work()
1274 msm_otg_reset(otg->usb_phy); in msm_otg_sm_work()
1286 struct usb_phy *phy = &motg->phy; in msm_otg_irq()
1411 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_mode_write()
1658 struct usb_phy *phy; in msm_otg_probe()
1795 phy->otg->usb_phy = &motg->phy; in msm_otg_probe()
1854 struct usb_phy *phy = &motg->phy; in msm_otg_remove()