Lines Matching refs:cable
609 struct ci_hdrc_cable *cable = NULL; in ci_usb_role_switch_set() local
622 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
624 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
626 if (cable) { in ci_usb_role_switch_set()
627 cable->changed = true; in ci_usb_role_switch_set()
628 cable->connected = false; in ci_usb_role_switch_set()
636 cable = NULL; in ci_usb_role_switch_set()
640 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set()
642 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set()
644 if (cable) { in ci_usb_role_switch_set()
645 cable->changed = true; in ci_usb_role_switch_set()
646 cable->connected = true; in ci_usb_role_switch_set()
665 struct ci_hdrc_cable *cable; in ci_get_platdata() local
763 cable = &platdata->vbus_extcon; in ci_get_platdata()
764 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
765 cable->edev = ext_vbus; in ci_get_platdata()
768 ret = extcon_get_state(cable->edev, EXTCON_USB); in ci_get_platdata()
770 cable->connected = true; in ci_get_platdata()
772 cable->connected = false; in ci_get_platdata()
775 cable = &platdata->id_extcon; in ci_get_platdata()
776 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
777 cable->edev = ext_id; in ci_get_platdata()
780 ret = extcon_get_state(cable->edev, EXTCON_USB_HOST); in ci_get_platdata()
782 cable->connected = true; in ci_get_platdata()
784 cable->connected = false; in ci_get_platdata()