Lines Matching refs:cable
619 struct ci_hdrc_cable *cable = NULL; in ci_usb_role_switch_set() local
630 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
632 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
634 if (cable) { in ci_usb_role_switch_set()
635 cable->changed = true; in ci_usb_role_switch_set()
636 cable->connected = false; in ci_usb_role_switch_set()
644 cable = NULL; in ci_usb_role_switch_set()
648 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
650 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
652 if (cable) { in ci_usb_role_switch_set()
653 cable->changed = true; in ci_usb_role_switch_set()
654 cable->connected = true; in ci_usb_role_switch_set()
672 struct ci_hdrc_cable *cable; in ci_get_platdata() local
770 cable = &platdata->vbus_extcon; in ci_get_platdata()
771 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
772 cable->edev = ext_vbus; in ci_get_platdata()
775 ret = extcon_get_state(cable->edev, EXTCON_USB); in ci_get_platdata()
777 cable->connected = true; in ci_get_platdata()
779 cable->connected = false; in ci_get_platdata()
782 cable = &platdata->id_extcon; in ci_get_platdata()
783 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
784 cable->edev = ext_id; in ci_get_platdata()
787 ret = extcon_get_state(cable->edev, EXTCON_USB_HOST); in ci_get_platdata()
789 cable->connected = true; in ci_get_platdata()
791 cable->connected = false; in ci_get_platdata()