Home
last modified time | relevance | path

Searched refs:ssusb_mtk (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/usb/mtu3/
H A Dmtu3_dr.h16 void ssusb_host_exit(struct ssusb_mtk *ssusb);
17 int ssusb_wakeup_of_property_parse(struct ssusb_mtk *ssusb,
20 int ssusb_host_suspend(struct ssusb_mtk *ssusb);
25 static inline int ssusb_host_init(struct ssusb_mtk *ssusb, in ssusb_host_init()
32 static inline void ssusb_host_exit(struct ssusb_mtk *ssusb) in ssusb_host_exit()
36 struct ssusb_mtk *ssusb, struct device_node *dn) in ssusb_wakeup_of_property_parse()
58 int ssusb_gadget_init(struct ssusb_mtk *ssusb);
59 void ssusb_gadget_exit(struct ssusb_mtk *ssusb);
94 int ssusb_otg_switch_init(struct ssusb_mtk *ssusb);
95 void ssusb_otg_switch_exit(struct ssusb_mtk *ssusb);
[all …]
H A Dmtu3_debug.h15 struct ssusb_mtk;
30 void ssusb_dev_debugfs_init(struct ssusb_mtk *ssusb);
31 void ssusb_dr_debugfs_init(struct ssusb_mtk *ssusb);
32 void ssusb_debugfs_create_root(struct ssusb_mtk *ssusb);
33 void ssusb_debugfs_remove_root(struct ssusb_mtk *ssusb);
36 static inline void ssusb_dev_debugfs_init(struct ssusb_mtk *ssusb) {} in ssusb_dev_debugfs_init()
37 static inline void ssusb_dr_debugfs_init(struct ssusb_mtk *ssusb) {} in ssusb_dr_debugfs_init()
38 static inline void ssusb_debugfs_create_root(struct ssusb_mtk *ssusb) {} in ssusb_debugfs_create_root()
39 static inline void ssusb_debugfs_remove_root(struct ssusb_mtk *ssusb) {} in ssusb_debugfs_remove_root()
H A Dmtu3_dr.c19 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()
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()
237 void ssusb_set_force_mode(struct ssusb_mtk *ssusb, in ssusb_set_force_mode()
280 struct ssusb_mtk *ssusb = otg_sx_to_ssusb(otg_sx); in ssusb_role_sw_register()
307 int ssusb_otg_switch_init(struct ssusb_mtk *ssusb) in ssusb_otg_switch_init()
[all …]
H A Dmtu3_host.c53 static void ssusb_wakeup_ip_sleep_set(struct ssusb_mtk *ssusb, bool enable) in ssusb_wakeup_ip_sleep_set()
84 int ssusb_wakeup_of_property_parse(struct ssusb_mtk *ssusb, in ssusb_wakeup_of_property_parse()
110 void ssusb_wakeup_set(struct ssusb_mtk *ssusb, bool enable) in ssusb_wakeup_set()
116 static void host_ports_num_get(struct ssusb_mtk *ssusb) in host_ports_num_get()
129 static int ssusb_host_enable(struct ssusb_mtk *ssusb) in ssusb_host_enable()
174 static int ssusb_host_disable(struct ssusb_mtk *ssusb) in ssusb_host_disable()
208 int ssusb_host_resume(struct ssusb_mtk *ssusb, bool p0_skipped) in ssusb_host_resume()
251 int ssusb_host_suspend(struct ssusb_mtk *ssusb) in ssusb_host_suspend()
285 static void ssusb_host_setup(struct ssusb_mtk *ssusb) in ssusb_host_setup()
300 static void ssusb_host_cleanup(struct ssusb_mtk *ssusb) in ssusb_host_cleanup()
[all …]
H A Dmtu3_plat.c23 int ssusb_check_clocks(struct ssusb_mtk *ssusb, u32 ex_clks) in ssusb_check_clocks()
49 static int wait_for_ip_sleep(struct ssusb_mtk *ssusb) in wait_for_ip_sleep()
75 static int ssusb_phy_init(struct ssusb_mtk *ssusb) in ssusb_phy_init()
94 static int ssusb_phy_exit(struct ssusb_mtk *ssusb) in ssusb_phy_exit()
104 static int ssusb_phy_power_on(struct ssusb_mtk *ssusb) in ssusb_phy_power_on()
131 static int ssusb_rscs_init(struct ssusb_mtk *ssusb) in ssusb_rscs_init()
169 static void ssusb_rscs_exit(struct ssusb_mtk *ssusb) in ssusb_rscs_exit()
177 static void ssusb_ip_sw_reset(struct ssusb_mtk *ssusb) in ssusb_ip_sw_reset()
331 struct ssusb_mtk *ssusb; in mtu3_probe()
509 struct ssusb_mtk *ssusb = dev_get_drvdata(dev); in mtu3_suspend_common()
[all …]
H A Dmtu3_debugfs.c352 struct ssusb_mtk *ssusb = mtu->ssusb; in mtu3_debugfs_create_prb_files()
389 struct ssusb_mtk *ssusb = mtu->ssusb; in mtu3_debugfs_create_ep_dirs()
401 void ssusb_dev_debugfs_init(struct ssusb_mtk *ssusb) in ssusb_dev_debugfs_init()
432 struct ssusb_mtk *ssusb = sf->private; in ssusb_mode_show()
450 struct ssusb_mtk *ssusb = sf->private; in ssusb_mode_write()
478 struct ssusb_mtk *ssusb = sf->private; in ssusb_vbus_show()
496 struct ssusb_mtk *ssusb = sf->private; in ssusb_vbus_write()
522 void ssusb_dr_debugfs_init(struct ssusb_mtk *ssusb) in ssusb_dr_debugfs_init()
530 void ssusb_debugfs_create_root(struct ssusb_mtk *ssusb) in ssusb_debugfs_create_root()
536 void ssusb_debugfs_remove_root(struct ssusb_mtk *ssusb) in ssusb_debugfs_remove_root()
H A Dmtu3.h243 struct ssusb_mtk { struct
305 static inline struct ssusb_mtk *dev_to_ssusb(struct device *dev) in dev_to_ssusb()
325 struct ssusb_mtk *ssusb;
417 int ssusb_check_clocks(struct ssusb_mtk *ssusb, u32 ex_clks);
H A Dmtu3_core.c922 int ssusb_gadget_init(struct ssusb_mtk *ssusb) in ssusb_gadget_init()
1008 void ssusb_gadget_exit(struct ssusb_mtk *ssusb) in ssusb_gadget_exit()
1017 bool ssusb_gadget_ip_sleep_check(struct ssusb_mtk *ssusb) in ssusb_gadget_ip_sleep_check()
1033 int ssusb_gadget_suspend(struct ssusb_mtk *ssusb, pm_message_t msg) in ssusb_gadget_suspend()
1049 int ssusb_gadget_resume(struct ssusb_mtk *ssusb, pm_message_t msg) in ssusb_gadget_resume()