Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_dr.c265 extcon_get_state(edev, EXTCON_USB), in ssusb_extcon_register()
266 extcon_get_state(edev, EXTCON_USB_HOST)); in ssusb_extcon_register()
269 if (extcon_get_state(edev, EXTCON_USB_HOST) == false) in ssusb_extcon_register()
271 if (extcon_get_state(edev, EXTCON_USB) == true) in ssusb_extcon_register()
/kernel/linux/linux-5.10/drivers/usb/phy/
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()
Dphy.c141 if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_SDP) > 0) { in __usb_phy_get_charger_type()
144 } else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_CDP) > 0) { in __usb_phy_get_charger_type()
147 } else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_DCP) > 0) { in __usb_phy_get_charger_type()
150 } else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_ACA) > 0) { in __usb_phy_get_charger_type()
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
Dsnps_udc_plat.c179 ret = extcon_get_state(udc->edev, EXTCON_USB); in udc_plat_probe()
268 if (extcon_get_state(udc->edev, EXTCON_USB) > 0) { in udc_plat_suspend()
298 if (extcon_get_state(udc->edev, EXTCON_USB) > 0) { in udc_plat_resume()
/kernel/linux/linux-5.10/include/linux/
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
/kernel/linux/linux-5.10/drivers/usb/dwc3/
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()
Ddwc3-qcom.c197 if (extcon_get_state(qcom->edev, EXTCON_USB) || in dwc3_qcom_register_extcon()
198 !extcon_get_state(host_edev, EXTCON_USB_HOST)) in dwc3_qcom_register_extcon()
Ddrd.c420 id = extcon_get_state(dwc->edev, EXTCON_USB_HOST); in dwc3_drd_update()
/kernel/linux/linux-5.10/drivers/power/supply/
Daxp288_charger.c625 } else if (extcon_get_state(edev, EXTCON_CHG_USB_SDP) > 0) { in axp288_charger_extcon_evt_worker()
628 } else if (extcon_get_state(edev, EXTCON_CHG_USB_CDP) > 0) { in axp288_charger_extcon_evt_worker()
631 } else if (extcon_get_state(edev, EXTCON_CHG_USB_DCP) > 0) { in axp288_charger_extcon_evt_worker()
664 int ret, usb_host = extcon_get_state(edev, EXTCON_USB_HOST); in axp288_charger_otg_evt_worker()
Dcharger-manager.c1064 event = extcon_get_state(cable->extcon_dev, in charger_manager_register_extcon()
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon.c406 extcon_get_state(cable->edev, cable->edev->supported_cable[i])); in cable_state_show()
499 int extcon_get_state(struct extcon_dev *edev, const unsigned int id) in extcon_get_state() function
517 EXPORT_SYMBOL_GPL(extcon_get_state);
Dextcon-axp288.c170 return extcon_get_state(info->id_extcon, EXTCON_USB_HOST) <= 0; in axp288_get_id_pin()
Dextcon-arizona.c617 state = extcon_get_state(info->edev, EXTCON_MECHANICAL); in arizona_hpdet_irq()
1031 ret = extcon_get_state(info->edev, EXTCON_MECHANICAL); in arizona_micd_detect()
/kernel/linux/linux-5.10/drivers/phy/
Dphy-lgm-usb.c150 connected = extcon_get_state(ta->phy.edev, EXTCON_USB_HOST); in tca_work()
/kernel/linux/linux-5.10/drivers/phy/qualcomm/
Dphy-qcom-usb-hs.c157 state = extcon_get_state(uphy->vbus_edev, EXTCON_USB); in qcom_usb_hs_phy_power_on()
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/
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()
/kernel/linux/linux-5.10/drivers/phy/rockchip/
Dphy-rockchip-typec.c818 ufp = extcon_get_state(edev, EXTCON_USB); in tcphy_get_mode()
819 dp = extcon_get_state(edev, EXTCON_DISP_DP); in tcphy_get_mode()
Dphy-rockchip-inno-usb2.c551 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) > 0) { in rockchip_usb2phy_otg_sm_work()
625 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) == 0) { in rockchip_usb2phy_otg_sm_work()
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
Dcdn-dp-core.c151 dptx = extcon_get_state(edev, EXTCON_DISP_DP); in cdn_dp_get_port_lanes()
214 if (!extcon_get_state(port->extcon, EXTCON_DISP_DP)) in cdn_dp_check_sink_connection()
/kernel/linux/linux-5.10/sound/soc/samsung/
Daries_wm8994.c357 if (extcon_get_state(priv->usb_extcon, in aries_late_probe()
/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dcore.c763 ret = extcon_get_state(cable->edev, EXTCON_USB); in ci_get_platdata()
775 ret = extcon_get_state(cable->edev, EXTCON_USB_HOST); in ci_get_platdata()
/kernel/linux/linux-5.10/drivers/usb/renesas_usbhs/
Dcommon.c460 cable = extcon_get_state(priv->edev, EXTCON_USB_HOST); in usbhsc_hotplug()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/
Dsil-sii8620.c2139 int state = extcon_get_state(ctx->extcon, EXTCON_DISP_MHL); in sii8620_extcon_work()
/kernel/linux/patches/linux-5.10/yangfan_patch/
Ddrivers.patch17389 - dptx = extcon_get_state(edev, EXTCON_DISP_DP);
17427 - if (!extcon_get_state(port->extcon, EXTCON_DISP_DP))
47561 - if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) > 0) {
47562 + if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) > 0 ||
47563 + extcon_get_state(rphy->edev, EXTCON_USB_VBUS_EN) > 0) {
47647 + if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) > 0 ||
47648 + extcon_get_state(rphy->edev,
47671 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) == 0) {
47687 + if (extcon_get_state(rphy->edev, cable) != rport->vbus_attached) {
47694 + extcon_get_state(rphy->edev, cable)) {
[all …]