Lines Matching full:cable
31 struct ci_hdrc_cable *cable; in hw_read_otgsc() local
38 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
40 if (cable->changed) in hw_read_otgsc()
45 if (cable->connected) in hw_read_otgsc()
50 if (cable->enabled) in hw_read_otgsc()
56 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
57 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
58 if (cable->changed) in hw_read_otgsc()
63 if (cable->connected) in hw_read_otgsc()
68 if (cable->enabled) in hw_read_otgsc()
85 struct ci_hdrc_cable *cable; in hw_write_otgsc() local
87 cable = &ci->platdata->vbus_extcon; in hw_write_otgsc()
88 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_write_otgsc()
90 cable->changed = false; in hw_write_otgsc()
94 cable->enabled = true; in hw_write_otgsc()
97 cable->enabled = false; in hw_write_otgsc()
101 cable = &ci->platdata->id_extcon; in hw_write_otgsc()
102 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_write_otgsc()
104 cable->changed = false; in hw_write_otgsc()
108 cable->enabled = true; in hw_write_otgsc()
111 cable->enabled = false; in hw_write_otgsc()