Lines Matching refs:cable
595 struct ci_hdrc_cable *cable = NULL; in ci_usb_role_switch_set() local
608 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
610 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
612 if (cable) { in ci_usb_role_switch_set()
613 cable->changed = true; in ci_usb_role_switch_set()
614 cable->connected = false; in ci_usb_role_switch_set()
622 cable = NULL; in ci_usb_role_switch_set()
626 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
628 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
630 if (cable) { in ci_usb_role_switch_set()
631 cable->changed = true; in ci_usb_role_switch_set()
632 cable->connected = true; in ci_usb_role_switch_set()
651 struct ci_hdrc_cable *cable; in ci_get_platdata() local
749 cable = &platdata->vbus_extcon; in ci_get_platdata()
750 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
751 cable->edev = ext_vbus; in ci_get_platdata()
754 ret = extcon_get_state(cable->edev, EXTCON_USB); in ci_get_platdata()
756 cable->connected = true; in ci_get_platdata()
758 cable->connected = false; in ci_get_platdata()
761 cable = &platdata->id_extcon; in ci_get_platdata()
762 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
763 cable->edev = ext_id; in ci_get_platdata()
766 ret = extcon_get_state(cable->edev, EXTCON_USB_HOST); in ci_get_platdata()
768 cable->connected = true; in ci_get_platdata()
770 cable->connected = false; in ci_get_platdata()