Home
last modified time | relevance | path

Searched refs:extcon_get_state (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dmax8997_charger.c105 if (extcon_get_state(edev, EXTCON_CHG_USB_SDP) > 0) { in max8997_battery_extcon_evt_worker()
108 } else if (extcon_get_state(edev, EXTCON_CHG_USB_DCP) > 0) { in max8997_battery_extcon_evt_worker()
111 } else if (extcon_get_state(edev, EXTCON_CHG_USB_FAST) > 0) { in max8997_battery_extcon_evt_worker()
114 } else if (extcon_get_state(edev, EXTCON_CHG_USB_SLOW) > 0) { in max8997_battery_extcon_evt_worker()
117 } else if (extcon_get_state(edev, EXTCON_CHG_USB_CDP) > 0) { in max8997_battery_extcon_evt_worker()
H A Daxp288_charger.c647 } else if (extcon_get_state(edev, EXTCON_CHG_USB_SDP) > 0) { in axp288_charger_extcon_evt_worker()
650 } else if (extcon_get_state(edev, EXTCON_CHG_USB_CDP) > 0) { in axp288_charger_extcon_evt_worker()
653 } else if (extcon_get_state(edev, EXTCON_CHG_USB_DCP) > 0) { in axp288_charger_extcon_evt_worker()
689 int ret, usb_host = extcon_get_state(edev, EXTCON_USB_HOST); in axp288_charger_otg_evt_worker()
H A Dcharger-manager.c1061 event = extcon_get_state(cable->extcon_dev, in charger_manager_register_extcon()
/openbmc/linux/drivers/usb/phy/
H A Dphy-omap-otg.c124 otg_dev->id = extcon_get_state(extcon, EXTCON_USB_HOST); in omap_otg_probe()
125 otg_dev->vbus = extcon_get_state(extcon, EXTCON_USB); in omap_otg_probe()
H A Dphy.c179 if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_SDP) > 0) { in __usb_phy_get_charger_type()
182 } else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_CDP) > 0) { in __usb_phy_get_charger_type()
185 } else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_DCP) > 0) { in __usb_phy_get_charger_type()
188 } else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_ACA) > 0) { in __usb_phy_get_charger_type()
/openbmc/linux/include/linux/
H A Dextcon.h175 int extcon_get_state(struct extcon_dev *edev, unsigned int id);
235 static inline int extcon_get_state(struct extcon_dev *edev, unsigned int id) in extcon_get_state() function
/openbmc/linux/drivers/usb/gadget/udc/
H A Dsnps_udc_plat.c178 ret = extcon_get_state(udc->edev, EXTCON_USB); in udc_plat_probe()
260 if (extcon_get_state(udc->edev, EXTCON_USB) > 0) { in udc_plat_suspend()
290 if (extcon_get_state(udc->edev, EXTCON_USB) > 0) { in udc_plat_resume()
/openbmc/linux/drivers/usb/dwc3/
H A Ddwc3-omap.c438 if (extcon_get_state(edev, EXTCON_USB) == true) in dwc3_omap_extcon_register()
443 if (extcon_get_state(edev, EXTCON_USB_HOST) == true) in dwc3_omap_extcon_register()
590 if (extcon_get_state(omap->edev, EXTCON_USB)) in dwc3_omap_complete()
595 if (extcon_get_state(omap->edev, EXTCON_USB_HOST)) in dwc3_omap_complete()
H A Ddwc3-qcom.c200 if (extcon_get_state(qcom->edev, EXTCON_USB) || in dwc3_qcom_register_extcon()
201 !extcon_get_state(host_edev, EXTCON_USB_HOST)) in dwc3_qcom_register_extcon()
H A Ddrd.c420 id = extcon_get_state(dwc->edev, EXTCON_USB_HOST); in dwc3_drd_update()
/openbmc/linux/drivers/phy/qualcomm/
H A Dphy-qcom-usb-hs.c158 state = extcon_get_state(uphy->vbus_edev, EXTCON_USB); in qcom_usb_hs_phy_power_on()
/openbmc/linux/drivers/phy/
H A Dphy-lgm-usb.c150 connected = extcon_get_state(ta->phy.edev, EXTCON_USB_HOST); in tca_work()
/openbmc/linux/drivers/extcon/
H A Dextcon.c416 extcon_get_state(cable->edev, cable->edev->supported_cable[i])); in cable_state_show()
510 int extcon_get_state(struct extcon_dev *edev, const unsigned int id) in extcon_get_state() function
528 EXPORT_SYMBOL_GPL(extcon_get_state);
H A Dextcon-axp288.c171 return extcon_get_state(info->id_extcon, EXTCON_USB_HOST) <= 0; in axp288_get_id_pin()
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dfusb302.c452 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_SDP) == 1) in tcpm_get_current_limit()
455 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_CDP) == 1 || in tcpm_get_current_limit()
456 extcon_get_state(chip->extcon, EXTCON_CHG_USB_ACA) == 1) in tcpm_get_current_limit()
459 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_DCP) == 1) in tcpm_get_current_limit()
/openbmc/linux/drivers/usb/mtu3/
H A Dmtu3_dr.c214 ret = extcon_get_state(edev, EXTCON_USB_HOST); in ssusb_extcon_register()
/openbmc/linux/drivers/phy/rockchip/
H A Dphy-rockchip-typec.c817 ufp = extcon_get_state(edev, EXTCON_USB); in tcphy_get_mode()
818 dp = extcon_get_state(edev, EXTCON_DISP_DP); in tcphy_get_mode()
H A Dphy-rockchip-inno-usb2.c653 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) > 0) { in rockchip_usb2phy_otg_sm_work()
727 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) == 0) { in rockchip_usb2phy_otg_sm_work()
/openbmc/linux/drivers/gpu/drm/rockchip/
H A Dcdn-dp-core.c158 dptx = extcon_get_state(edev, EXTCON_DISP_DP); in cdn_dp_get_port_lanes()
221 if (!extcon_get_state(port->extcon, EXTCON_DISP_DP)) in cdn_dp_check_sink_connection()
/openbmc/linux/sound/soc/samsung/
H A Daries_wm8994.c356 if (extcon_get_state(priv->usb_extcon, in aries_late_probe()
/openbmc/linux/drivers/usb/chipidea/
H A Dcore.c784 ret = extcon_get_state(cable->edev, EXTCON_USB); in ci_get_platdata()
796 ret = extcon_get_state(cable->edev, EXTCON_USB_HOST); in ci_get_platdata()
/openbmc/linux/drivers/usb/renesas_usbhs/
H A Dcommon.c460 cable = extcon_get_state(priv->edev, EXTCON_USB_HOST); in usbhsc_hotplug()
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dsil-sii8620.c2139 int state = extcon_get_state(ctx->extcon, EXTCON_DISP_MHL); in sii8620_extcon_work()
H A Dite-it6505.c2734 state = extcon_get_state(it6505->extcon, EXTCON_DISP_DP); in it6505_extcon_work()