Searched refs:otg_switch (Results 1 – 6 of 6) sorted by relevance
35 struct gpio_desc *otg_switch; member77 if (!hisi_hikey_usb->otg_switch) in usb_switch_ctrl()80 gpiod_set_value_cansleep(hisi_hikey_usb->otg_switch, switch_to); in usb_switch_ctrl()155 hisi_hikey_usb->otg_switch = devm_gpiod_get(dev, "otg-switch", in hisi_hikey_usb_of_role_switch()157 if (IS_ERR(hisi_hikey_usb->otg_switch)) { in hisi_hikey_usb_of_role_switch()159 PTR_ERR(hisi_hikey_usb->otg_switch)); in hisi_hikey_usb_of_role_switch()160 return PTR_ERR(hisi_hikey_usb->otg_switch); in hisi_hikey_usb_of_role_switch()
19 return container_of(otg_sx, struct ssusb_mtk, otg_switch); in otg_sx_to_ssusb()75 if (ssusb->otg_switch.is_u3_drd) { in switch_port_to_host()94 if (ssusb->otg_switch.is_u3_drd) { in switch_port_to_device()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()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()
220 if (ssusb->otg_switch.is_u3_drd) in ssusb_host_resume()297 ssusb_set_vbus(&ssusb->otg_switch, 1); in ssusb_host_setup()303 ssusb_set_vbus(&ssusb->otg_switch, 0); in ssusb_host_cleanup()
436 ssusb->otg_switch.manual_drd_enabled ? "manual" : "auto"); in ssusb_mode_show()479 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_show()497 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_write()
195 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_u3_drd_check()221 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in get_ssusb_rscs()
255 struct otg_switch_mtk otg_switch; member