Home
last modified time | relevance | path

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

/linux/drivers/usb/chipidea/
H A Dotg.c39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
57 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
88 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_write_otgsc()
102 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_write_otgsc()
H A Dcore.c1198 ci->role_switch = usb_role_switch_register(dev, in ci_hdrc_probe()
1200 if (IS_ERR(ci->role_switch)) { in ci_hdrc_probe()
1201 ret = PTR_ERR(ci->role_switch); in ci_hdrc_probe()
1249 if (ci->role_switch) in ci_hdrc_probe()
1250 usb_role_switch_unregister(ci->role_switch); in ci_hdrc_probe()
1270 if (ci->role_switch) in ci_hdrc_remove()
1271 usb_role_switch_unregister(ci->role_switch); in ci_hdrc_remove()
1340 if ((!IS_ERR(cable_id->edev) || ci->role_switch) in ci_extcon_wakeup_int()
1345 if ((!IS_ERR(cable_vbus->edev) || ci->role_switch) in ci_extcon_wakeup_int()
/linux/net/bluetooth/rfcomm/
H A Dsock.c251 pi->role_switch = rfcomm_pi(parent)->role_switch; in rfcomm_sock_init()
258 pi->role_switch = 0; in rfcomm_sock_init()
262 pi->dlc->role_switch = pi->role_switch; in rfcomm_sock_init()
406 d->role_switch = rfcomm_pi(sk)->role_switch; in rfcomm_sock_connect()
649 rfcomm_pi(sk)->role_switch = (opt & RFCOMM_LM_MASTER); in rfcomm_sock_setsockopt_old()
765 if (rfcomm_pi(sk)->role_switch) in rfcomm_sock_getsockopt_old()
H A Dcore.c1336 if (d->role_switch) in rfcomm_dlc_accept()
/linux/include/net/bluetooth/
H A Drfcomm.h187 u8 role_switch; member
310 u8 role_switch; member
H A Dhci.h794 __u8 role_switch; member
/linux/drivers/usb/dwc3/
H A Ddwc3-meson-g12a.c262 struct usb_role_switch *role_switch; member
619 priv->role_switch = usb_role_switch_register(dev, &priv->switch_desc); in dwc3_meson_g12a_otg_init()
620 if (IS_ERR(priv->role_switch)) in dwc3_meson_g12a_otg_init()
838 usb_role_switch_unregister(priv->role_switch); in dwc3_meson_g12a_remove()
/linux/net/bluetooth/
H A Dhci_sync.c6919 cp.role_switch = 0x01; in hci_acl_create_conn_sync()
6921 cp.role_switch = 0x00; in hci_acl_create_conn_sync()