/Linux-v5.4/drivers/usb/mtu3/ |
D | mtu3_dr.c | 267 extcon_get_state(edev, EXTCON_USB), in ssusb_extcon_register() 268 extcon_get_state(edev, EXTCON_USB_HOST)); in ssusb_extcon_register() 271 if (extcon_get_state(edev, EXTCON_USB_HOST) == false) in ssusb_extcon_register() 273 if (extcon_get_state(edev, EXTCON_USB) == true) in ssusb_extcon_register()
|
/Linux-v5.4/drivers/usb/phy/ |
D | phy-omap-otg.c | 124 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()
|
D | phy.c | 130 if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_SDP) > 0) { in __usb_phy_get_charger_type() 133 } else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_CDP) > 0) { in __usb_phy_get_charger_type() 136 } else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_DCP) > 0) { in __usb_phy_get_charger_type() 139 } else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_ACA) > 0) { in __usb_phy_get_charger_type()
|
/Linux-v5.4/include/linux/ |
D | extcon.h | 173 extern int extcon_get_state(struct extcon_dev *edev, unsigned int id); 233 static inline int extcon_get_state(struct extcon_dev *edev, unsigned int id) in extcon_get_state() function
|
/Linux-v5.4/drivers/usb/gadget/udc/ |
D | snps_udc_plat.c | 179 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()
|
/Linux-v5.4/drivers/usb/dwc3/ |
D | dwc3-omap.c | 438 if (extcon_get_state(edev, EXTCON_USB) == true) in dwc3_omap_extcon_register() 440 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()
|
D | dwc3-qcom.c | 184 if (extcon_get_state(qcom->edev, EXTCON_USB) || in dwc3_qcom_register_extcon() 185 !extcon_get_state(host_edev, EXTCON_USB_HOST)) in dwc3_qcom_register_extcon()
|
D | drd.c | 420 id = extcon_get_state(dwc->edev, EXTCON_USB_HOST); in dwc3_drd_update()
|
/Linux-v5.4/drivers/power/supply/ |
D | axp288_charger.c | 571 if (extcon_get_state(edev, EXTCON_CHG_USB_SDP) > 0) { in axp288_charger_extcon_evt_worker() 574 } else if (extcon_get_state(edev, EXTCON_CHG_USB_CDP) > 0) { in axp288_charger_extcon_evt_worker() 577 } else if (extcon_get_state(edev, EXTCON_CHG_USB_DCP) > 0) { in axp288_charger_extcon_evt_worker() 610 int ret, usb_host = extcon_get_state(edev, EXTCON_USB_HOST); in axp288_charger_otg_evt_worker()
|
/Linux-v5.4/drivers/phy/qualcomm/ |
D | phy-qcom-usb-hs.c | 157 state = extcon_get_state(uphy->vbus_edev, EXTCON_USB); in qcom_usb_hs_phy_power_on()
|
/Linux-v5.4/drivers/extcon/ |
D | extcon.c | 396 extcon_get_state(cable->edev, cable->edev->supported_cable[i])); in cable_state_show() 489 int extcon_get_state(struct extcon_dev *edev, const unsigned int id) in extcon_get_state() function 507 EXPORT_SYMBOL_GPL(extcon_get_state);
|
D | extcon-axp288.c | 170 return extcon_get_state(info->id_extcon, EXTCON_USB_HOST) <= 0; in axp288_get_id_pin()
|
D | extcon-arizona.c | 613 ret = extcon_get_state(info->edev, EXTCON_MECHANICAL); in arizona_hpdet_irq() 828 ret = extcon_get_state(info->edev, EXTCON_MECHANICAL); in arizona_micd_detect()
|
/Linux-v5.4/drivers/usb/typec/tcpm/ |
D | fusb302.c | 452 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()
|
/Linux-v5.4/drivers/gpu/drm/rockchip/ |
D | cdn-dp-core.c | 149 dptx = extcon_get_state(edev, EXTCON_DISP_DP); in cdn_dp_get_port_lanes() 212 if (!extcon_get_state(port->extcon, EXTCON_DISP_DP)) in cdn_dp_check_sink_connection()
|
/Linux-v5.4/drivers/phy/rockchip/ |
D | phy-rockchip-typec.c | 818 ufp = extcon_get_state(edev, EXTCON_USB); in tcphy_get_mode() 819 dp = extcon_get_state(edev, EXTCON_DISP_DP); in tcphy_get_mode()
|
D | phy-rockchip-inno-usb2.c | 551 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()
|
/Linux-v5.4/drivers/usb/chipidea/ |
D | core.c | 775 ret = extcon_get_state(cable->edev, EXTCON_USB); in ci_get_platdata() 787 ret = extcon_get_state(cable->edev, EXTCON_USB_HOST); in ci_get_platdata()
|
/Linux-v5.4/drivers/usb/renesas_usbhs/ |
D | common.c | 461 cable = extcon_get_state(priv->edev, EXTCON_USB_HOST); in usbhsc_hotplug()
|
/Linux-v5.4/drivers/gpu/drm/bridge/ |
D | sil-sii8620.c | 2137 int state = extcon_get_state(ctx->extcon, EXTCON_DISP_MHL); in sii8620_extcon_work()
|