Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/usb/mtu3/
Dmtu3_dr.c17 static inline struct ssusb_mtk *otg_sx_to_ssusb(struct otg_switch_mtk *otg_sx) in otg_sx_to_ssusb() argument
19 return container_of(otg_sx, struct ssusb_mtk, otg_switch); in otg_sx_to_ssusb()
102 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus() argument
104 struct ssusb_mtk *ssusb = otg_sx_to_ssusb(otg_sx); in ssusb_set_vbus()
105 struct regulator *vbus = otg_sx->vbus; in ssusb_set_vbus()
129 struct otg_switch_mtk *otg_sx = in ssusb_mode_sw_work() local
131 struct ssusb_mtk *ssusb = otg_sx_to_ssusb(otg_sx); in ssusb_mode_sw_work()
133 enum usb_role desired_role = otg_sx->desired_role; in ssusb_mode_sw_work()
141 if (otg_sx->default_role == USB_ROLE_DEVICE) in ssusb_mode_sw_work()
157 ssusb_set_vbus(otg_sx, 1); in ssusb_mode_sw_work()
[all …]
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()
272 otg_sx->is_u3_drd = of_property_read_bool(node, "mediatek,usb3-drd"); in get_ssusb_rscs()
273 otg_sx->manual_drd_enabled = in get_ssusb_rscs()
275 otg_sx->role_sw_used = of_property_read_bool(node, "usb-role-switch"); 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()
[all …]
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
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()