Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/usb/mtu3/
Dmtu3_dr.c124 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus() argument
127 container_of(otg_sx, struct ssusb_mtk, otg_switch); in ssusb_set_vbus()
128 struct regulator *vbus = otg_sx->vbus; in ssusb_set_vbus()
154 static void ssusb_set_mailbox(struct otg_switch_mtk *otg_sx, in ssusb_set_mailbox() argument
158 container_of(otg_sx, struct ssusb_mtk, otg_switch); in ssusb_set_mailbox()
167 ssusb_set_vbus(otg_sx, 1); in ssusb_set_mailbox()
172 ssusb_set_vbus(otg_sx, 0); in ssusb_set_mailbox()
191 struct otg_switch_mtk *otg_sx = in ssusb_id_work() local
194 if (otg_sx->id_event) in ssusb_id_work()
195 ssusb_set_mailbox(otg_sx, MTU3_ID_GROUND); in ssusb_id_work()
[all …]
Dmtu3_plat.c217 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in get_ssusb_rscs() local
289 otg_sx->vbus = devm_regulator_get(dev, "vbus"); in get_ssusb_rscs()
290 if (IS_ERR(otg_sx->vbus)) { in get_ssusb_rscs()
292 return PTR_ERR(otg_sx->vbus); in get_ssusb_rscs()
299 otg_sx->is_u3_drd = of_property_read_bool(node, "mediatek,usb3-drd"); in get_ssusb_rscs()
300 otg_sx->manual_drd_enabled = in get_ssusb_rscs()
302 otg_sx->role_sw_used = of_property_read_bool(node, "usb-role-switch"); in get_ssusb_rscs()
304 if (!otg_sx->role_sw_used && of_property_read_bool(node, "extcon")) { in get_ssusb_rscs()
305 otg_sx->edev = extcon_get_edev_by_phandle(ssusb->dev, 0); in get_ssusb_rscs()
306 if (IS_ERR(otg_sx->edev)) { in get_ssusb_rscs()
[all …]
Dmtu3_dr.h75 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on);
92 static inline int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus() argument
Dmtu3_host.c194 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_host_setup() local
204 if (otg_sx->manual_drd_enabled) in ssusb_host_setup()
Dmtu3_debugfs.c478 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_show() local
481 regulator_is_enabled(otg_sx->vbus) ? "on" : "off"); in ssusb_vbus_show()
496 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_write() local
508 ssusb_set_vbus(otg_sx, enable); in ssusb_vbus_write()