Lines Matching refs:usb_phy

169 static int ulpi_read(struct usb_phy *phy, u32 reg)  in ulpi_read()
194 static int ulpi_write(struct usb_phy *phy, u32 val, u32 reg) in ulpi_write()
240 static int msm_phy_notify_disconnect(struct usb_phy *phy, in msm_phy_notify_disconnect()
312 static int msm_otg_reset(struct usb_phy *phy) in msm_otg_reset()
365 static int msm_usb_reset(struct usb_phy *phy) in msm_usb_reset()
396 static int msm_phy_init(struct usb_phy *phy) in msm_phy_init()
460 struct usb_phy *phy = &motg->phy; in msm_otg_suspend()
557 struct usb_phy *phy = &motg->phy; in msm_otg_resume()
643 static int msm_otg_set_power(struct usb_phy *phy, unsigned mA) in msm_otg_set_power()
660 static void msm_otg_start_host(struct usb_phy *phy, int on) in msm_otg_start_host()
702 struct msm_otg *motg = container_of(otg->usb_phy, struct msm_otg, phy); in msm_otg_set_host()
710 dev_info(otg->usb_phy->dev, "Host mode is not supported\n"); in msm_otg_set_host()
716 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_set_host()
717 msm_otg_start_host(otg->usb_phy, 0); in msm_otg_set_host()
732 dev_dbg(otg->usb_phy->dev, "host driver registered w/ tranceiver\n"); in msm_otg_set_host()
739 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_set_host()
746 static void msm_otg_start_peripheral(struct usb_phy *phy, int on) in msm_otg_start_peripheral()
776 struct msm_otg *motg = container_of(otg->usb_phy, struct msm_otg, phy); in msm_otg_set_peripheral()
783 dev_info(otg->usb_phy->dev, "Peripheral mode is not supported\n"); in msm_otg_set_peripheral()
789 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_set_peripheral()
790 msm_otg_start_peripheral(otg->usb_phy, 0); in msm_otg_set_peripheral()
801 dev_dbg(otg->usb_phy->dev, in msm_otg_set_peripheral()
809 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_set_peripheral()
818 struct usb_phy *phy = &motg->phy; in msm_chg_check_secondary_det()
839 struct usb_phy *phy = &motg->phy; in msm_chg_enable_secondary_det()
879 struct usb_phy *phy = &motg->phy; in msm_chg_check_primary_det()
900 struct usb_phy *phy = &motg->phy; in msm_chg_enable_primary_det()
925 struct usb_phy *phy = &motg->phy; in msm_chg_check_dcd()
946 struct usb_phy *phy = &motg->phy; in msm_chg_disable_dcd()
965 struct usb_phy *phy = &motg->phy; in msm_chg_enable_dcd()
986 struct usb_phy *phy = &motg->phy; in msm_chg_block_on()
1021 struct usb_phy *phy = &motg->phy; in msm_chg_block_off()
1056 struct usb_phy *phy = &motg->phy; in msm_chg_detect_work()
1167 dev_dbg(otg->usb_phy->dev, "OTG_STATE_UNDEFINED state\n"); in msm_otg_sm_work()
1168 msm_otg_reset(otg->usb_phy); in msm_otg_sm_work()
1173 dev_dbg(otg->usb_phy->dev, "OTG_STATE_B_IDLE state\n"); in msm_otg_sm_work()
1177 msm_otg_start_host(otg->usb_phy, 1); in msm_otg_sm_work()
1193 msm_otg_start_peripheral(otg->usb_phy, in msm_otg_sm_work()
1200 msm_otg_start_peripheral(otg->usb_phy, in msm_otg_sm_work()
1219 pm_runtime_put_sync(otg->usb_phy->dev); in msm_otg_sm_work()
1220 msm_otg_reset(otg->usb_phy); in msm_otg_sm_work()
1228 pm_runtime_put_sync(otg->usb_phy->dev); in msm_otg_sm_work()
1231 dev_dbg(otg->usb_phy->dev, "OTG_STATE_B_PERIPHERAL state\n"); in msm_otg_sm_work()
1235 msm_otg_start_peripheral(otg->usb_phy, 0); in msm_otg_sm_work()
1239 msm_otg_reset(otg->usb_phy); in msm_otg_sm_work()
1244 dev_dbg(otg->usb_phy->dev, "OTG_STATE_A_HOST state\n"); in msm_otg_sm_work()
1246 msm_otg_start_host(otg->usb_phy, 0); in msm_otg_sm_work()
1248 msm_otg_reset(otg->usb_phy); in msm_otg_sm_work()
1260 struct usb_phy *phy = &motg->phy; in msm_otg_irq()
1385 pm_runtime_get_sync(otg->usb_phy->dev); in msm_otg_mode_write()
1521 struct usb_phy *phy; in msm_otg_probe()
1655 phy->otg->usb_phy = &motg->phy; in msm_otg_probe()
1697 struct usb_phy *phy = &motg->phy; in msm_otg_remove()