Home
last modified time | relevance | path

Searched refs:otg_sx (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/usb/mtu3/
A Dmtu3_dr.c131 struct otg_switch_mtk *otg_sx = in ssusb_mode_sw_work() local
159 ssusb_set_vbus(otg_sx, 1); in ssusb_mode_sw_work()
165 ssusb_set_vbus(otg_sx, 0); in ssusb_mode_sw_work()
183 otg_sx->desired_role = role; in ssusb_set_mode()
190 struct otg_switch_mtk *otg_sx = in ssusb_id_notifier() local
210 &otg_sx->id_nb); in ssusb_extcon_register()
267 ssusb_set_mode(otg_sx, role); in ssusb_role_sw_set()
286 if (!otg_sx->role_sw_used) in ssusb_role_sw_register()
300 if (IS_ERR(otg_sx->role_sw)) in ssusb_role_sw_register()
303 ssusb_set_mode(otg_sx, otg_sx->default_role); in ssusb_role_sw_register()
[all …]
A Dmtu3_plat.c195 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in get_ssusb_rscs() local
262 otg_sx->vbus = devm_regulator_get(dev, "vbus"); in get_ssusb_rscs()
263 if (IS_ERR(otg_sx->vbus)) { in get_ssusb_rscs()
265 return PTR_ERR(otg_sx->vbus); in get_ssusb_rscs()
273 otg_sx->manual_drd_enabled = in get_ssusb_rscs()
280 if (otg_sx->role_sw_used || otg_sx->manual_drd_enabled) in get_ssusb_rscs()
284 otg_sx->edev = extcon_get_edev_by_phandle(ssusb->dev, 0); in get_ssusb_rscs()
285 if (IS_ERR(otg_sx->edev)) { in get_ssusb_rscs()
286 return dev_err_probe(dev, PTR_ERR(otg_sx->edev), in get_ssusb_rscs()
293 ssusb->dr_mode, otg_sx->is_u3_drd, in get_ssusb_rscs()
[all …]
A Dmtu3_dr.h97 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on);
114 static inline int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus() argument
A Dmtu3_debugfs.c479 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_show() local
482 regulator_is_enabled(otg_sx->vbus) ? "on" : "off"); in ssusb_vbus_show()
497 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_write() local
509 ssusb_set_vbus(otg_sx, enable); in ssusb_vbus_write()

Completed in 9 milliseconds