Lines Matching refs:cable
611 struct ci_hdrc_cable *cable = NULL; in ci_usb_role_switch_set() local
624 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
626 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
628 if (cable) { in ci_usb_role_switch_set()
629 cable->changed = true; in ci_usb_role_switch_set()
630 cable->connected = false; in ci_usb_role_switch_set()
638 cable = NULL; in ci_usb_role_switch_set()
642 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
644 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
646 if (cable) { in ci_usb_role_switch_set()
647 cable->changed = true; in ci_usb_role_switch_set()
648 cable->connected = true; in ci_usb_role_switch_set()
667 struct ci_hdrc_cable *cable; in ci_get_platdata() local
765 cable = &platdata->vbus_extcon; in ci_get_platdata()
766 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
767 cable->edev = ext_vbus; in ci_get_platdata()
770 ret = extcon_get_state(cable->edev, EXTCON_USB); in ci_get_platdata()
772 cable->connected = true; in ci_get_platdata()
774 cable->connected = false; in ci_get_platdata()
777 cable = &platdata->id_extcon; in ci_get_platdata()
778 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
779 cable->edev = ext_id; in ci_get_platdata()
782 ret = extcon_get_state(cable->edev, EXTCON_USB_HOST); in ci_get_platdata()
784 cable->connected = true; in ci_get_platdata()
786 cable->connected = false; in ci_get_platdata()