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()
102 int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) in ssusb_set_vbus()
129 struct otg_switch_mtk *otg_sx = in ssusb_mode_sw_work()
130 container_of(work, struct otg_switch_mtk, dr_work); in ssusb_mode_sw_work()
174 static void ssusb_set_mode(struct otg_switch_mtk *otg_sx, enum usb_role role) in ssusb_set_mode()
188 struct otg_switch_mtk *otg_sx = in ssusb_id_notifier()
189 container_of(nb, struct otg_switch_mtk, id_nb); in ssusb_id_notifier()
196 static int ssusb_extcon_register(struct otg_switch_mtk *otg_sx) in ssusb_extcon_register()
232 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_mode_switch()
263 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_role_sw_set()
277 static int ssusb_role_sw_register(struct otg_switch_mtk *otg_sx) in ssusb_role_sw_register()
309 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_otg_switch_init()
326 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_otg_switch_exit()