Lines Matching refs:ssusb_mtk
17 static inline struct ssusb_mtk *otg_sx_to_ssusb(struct otg_switch_mtk *otg_sx) in otg_sx_to_ssusb()
19 return container_of(otg_sx, struct ssusb_mtk, otg_switch); in otg_sx_to_ssusb()
22 static void toggle_opstate(struct ssusb_mtk *ssusb) in toggle_opstate()
29 static int ssusb_port0_switch(struct ssusb_mtk *ssusb, in ssusb_port0_switch()
67 static void switch_port_to_host(struct ssusb_mtk *ssusb) in switch_port_to_host()
86 static void switch_port_to_device(struct ssusb_mtk *ssusb) in switch_port_to_device()
104 struct ssusb_mtk *ssusb = otg_sx_to_ssusb(otg_sx); in ssusb_set_vbus()
131 struct ssusb_mtk *ssusb = otg_sx_to_ssusb(otg_sx); in ssusb_mode_sw_work()
176 struct ssusb_mtk *ssusb = otg_sx_to_ssusb(otg_sx); in ssusb_set_mode()
198 struct ssusb_mtk *ssusb = otg_sx_to_ssusb(otg_sx); in ssusb_extcon_register()
230 void ssusb_mode_switch(struct ssusb_mtk *ssusb, int to_host) in ssusb_mode_switch()
237 void ssusb_set_force_mode(struct ssusb_mtk *ssusb, in ssusb_set_force_mode()
262 struct ssusb_mtk *ssusb = usb_role_switch_get_drvdata(sw); in ssusb_role_sw_set()
272 struct ssusb_mtk *ssusb = usb_role_switch_get_drvdata(sw); in ssusb_role_sw_get()
280 struct ssusb_mtk *ssusb = otg_sx_to_ssusb(otg_sx); in ssusb_role_sw_register()
306 int ssusb_otg_switch_init(struct ssusb_mtk *ssusb) in ssusb_otg_switch_init()
323 void ssusb_otg_switch_exit(struct ssusb_mtk *ssusb) in ssusb_otg_switch_exit()