Lines Matching refs:msm_otg
75 static int msm_hsusb_init_vddcx(struct msm_otg *motg, int init) in msm_hsusb_init_vddcx()
104 static int msm_hsusb_ldo_init(struct msm_otg *motg, int init) in msm_hsusb_ldo_init()
142 static int msm_hsusb_ldo_set_mode(struct msm_otg *motg, int on) in msm_hsusb_ldo_set_mode()
173 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in ulpi_read()
198 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in ulpi_write()
226 static void ulpi_init(struct msm_otg *motg) in ulpi_init()
245 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in msm_phy_notify_disconnect()
265 static int msm_otg_link_clk_reset(struct msm_otg *motg, bool assert) in msm_otg_link_clk_reset()
281 static int msm_otg_phy_clk_reset(struct msm_otg *motg) in msm_otg_phy_clk_reset()
294 static int msm_link_reset(struct msm_otg *motg) in msm_link_reset()
322 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in msm_otg_reset()
346 static void msm_phy_reset(struct msm_otg *motg) in msm_phy_reset()
375 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in msm_usb_reset()
406 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in msm_phy_init()
462 static int msm_hsusb_config_vddcx(struct msm_otg *motg, int high) in msm_hsusb_config_vddcx()
484 static int msm_otg_suspend(struct msm_otg *motg) in msm_otg_suspend()
581 static int msm_otg_resume(struct msm_otg *motg) in msm_otg_resume()
659 static void msm_otg_notify_charger(struct msm_otg *motg, unsigned mA) in msm_otg_notify_charger()
671 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in msm_otg_set_power()
688 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in msm_otg_start_host()
728 struct msm_otg *motg = container_of(otg->usb_phy, struct msm_otg, phy); in msm_otg_set_host()
774 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in msm_otg_start_peripheral()
802 struct msm_otg *motg = container_of(otg->usb_phy, struct msm_otg, phy); in msm_otg_set_peripheral()
842 static bool msm_chg_check_secondary_det(struct msm_otg *motg) in msm_chg_check_secondary_det()
863 static void msm_chg_enable_secondary_det(struct msm_otg *motg) in msm_chg_enable_secondary_det()
903 static bool msm_chg_check_primary_det(struct msm_otg *motg) in msm_chg_check_primary_det()
924 static void msm_chg_enable_primary_det(struct msm_otg *motg) in msm_chg_enable_primary_det()
949 static bool msm_chg_check_dcd(struct msm_otg *motg) in msm_chg_check_dcd()
970 static void msm_chg_disable_dcd(struct msm_otg *motg) in msm_chg_disable_dcd()
989 static void msm_chg_enable_dcd(struct msm_otg *motg) in msm_chg_enable_dcd()
1010 static void msm_chg_block_on(struct msm_otg *motg) in msm_chg_block_on()
1045 static void msm_chg_block_off(struct msm_otg *motg) in msm_chg_block_off()
1081 struct msm_otg *motg = container_of(w, struct msm_otg, chg_work.work); in msm_chg_detect_work()
1149 static void msm_otg_init_sm(struct msm_otg *motg) in msm_otg_init_sm()
1188 struct msm_otg *motg = container_of(w, struct msm_otg, sm_work); in msm_otg_sm_work()
1285 struct msm_otg *motg = data; in msm_otg_irq()
1323 struct msm_otg *motg = s->private; in msm_otg_mode_show()
1350 struct msm_otg *motg = s->private; in msm_otg_mode_write()
1428 static int msm_otg_debugfs_init(struct msm_otg *motg) in msm_otg_debugfs_init()
1469 struct msm_otg *motg = container_of(vbus, struct msm_otg, vbus); in msm_otg_vbus_notifier()
1493 struct msm_otg *motg = container_of(id, struct msm_otg, id); in msm_otg_id_notifier()
1505 static int msm_otg_read_dt(struct platform_device *pdev, struct msm_otg *motg) in msm_otg_read_dt()
1640 struct msm_otg *motg = container_of(this, struct msm_otg, reboot); in msm_otg_reboot_notify()
1657 struct msm_otg *motg; in msm_otg_probe()
1661 motg = devm_kzalloc(&pdev->dev, sizeof(struct msm_otg), GFP_KERNEL); in msm_otg_probe()
1853 struct msm_otg *motg = platform_get_drvdata(pdev); in msm_otg_remove()
1913 struct msm_otg *motg = dev_get_drvdata(dev); in msm_otg_runtime_idle()
1932 struct msm_otg *motg = dev_get_drvdata(dev); in msm_otg_runtime_suspend()
1940 struct msm_otg *motg = dev_get_drvdata(dev); in msm_otg_runtime_resume()
1950 struct msm_otg *motg = dev_get_drvdata(dev); in msm_otg_pm_suspend()
1958 struct msm_otg *motg = dev_get_drvdata(dev); in msm_otg_pm_resume()