Lines Matching refs:cable
600 struct ci_hdrc_cable *cable = NULL; in ci_usb_role_switch_set() local
613 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
615 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
617 if (cable) { in ci_usb_role_switch_set()
618 cable->changed = true; in ci_usb_role_switch_set()
619 cable->connected = false; in ci_usb_role_switch_set()
627 cable = NULL; in ci_usb_role_switch_set()
631 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
633 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
635 if (cable) { in ci_usb_role_switch_set()
636 cable->changed = true; in ci_usb_role_switch_set()
637 cable->connected = true; in ci_usb_role_switch_set()
656 struct ci_hdrc_cable *cable; in ci_get_platdata() local
754 cable = &platdata->vbus_extcon; in ci_get_platdata()
755 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
756 cable->edev = ext_vbus; in ci_get_platdata()
759 ret = extcon_get_state(cable->edev, EXTCON_USB); in ci_get_platdata()
761 cable->connected = true; in ci_get_platdata()
763 cable->connected = false; in ci_get_platdata()
766 cable = &platdata->id_extcon; in ci_get_platdata()
767 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
768 cable->edev = ext_id; in ci_get_platdata()
771 ret = extcon_get_state(cable->edev, EXTCON_USB_HOST); in ci_get_platdata()
773 cable->connected = true; in ci_get_platdata()
775 cable->connected = false; in ci_get_platdata()