Lines Matching refs:otg_switch_mtk
17 static inline struct ssusb_mtk *otg_sx_to_ssusb(struct otg_switch_mtk *otg_sx) in otg_sx_to_ssusb()
104 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus()
131 struct otg_switch_mtk *otg_sx = in ssusb_mode_sw_work()
132 container_of(work, struct otg_switch_mtk, dr_work); in ssusb_mode_sw_work()
176 static void ssusb_set_mode(struct otg_switch_mtk *otg_sx, enum usb_role role) in ssusb_set_mode()
190 struct otg_switch_mtk *otg_sx = in ssusb_id_notifier()
191 container_of(nb, struct otg_switch_mtk, id_nb); in ssusb_id_notifier()
198 static int ssusb_extcon_register(struct otg_switch_mtk *otg_sx) in ssusb_extcon_register()
234 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_mode_switch()
265 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_role_sw_set()
279 static int ssusb_role_sw_register(struct otg_switch_mtk *otg_sx) in ssusb_role_sw_register()
310 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_otg_switch_init()
327 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_otg_switch_exit()