Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 27 files:
- drivers/extcon/extcon-axp288.c, line 171
- drivers/extcon/extcon.c
- drivers/gpu/drm/bridge/ite-it6505.c, line 2898
- drivers/gpu/drm/bridge/sil-sii8620.c, line 2140
- drivers/gpu/drm/rockchip/cdn-dp-core.c
- drivers/phy/phy-lgm-usb.c, line 150
- drivers/phy/qualcomm/phy-qcom-usb-hs.c, line 158
- drivers/phy/rockchip/phy-rockchip-inno-usb2.c
- drivers/phy/rockchip/phy-rockchip-typec.c
- drivers/platform/x86/lenovo/yoga-tab2-pro-1380-fastcharger.c
- drivers/power/supply/axp288_charger.c
- drivers/power/supply/charger-manager.c, line 1074
- drivers/power/supply/max8971_charger.c
- drivers/power/supply/max8997_charger.c
- drivers/power/supply/rt5033_charger.c, line 584
- drivers/power/supply/s2m-charger.c
- drivers/usb/chipidea/core.c
- drivers/usb/dwc3/drd.c, line 425
- drivers/usb/dwc3/dwc3-omap.c
- drivers/usb/dwc3/dwc3-qcom-legacy.c
- drivers/usb/gadget/udc/snps_udc_plat.c
- drivers/usb/mtu3/mtu3_dr.c, line 215
- drivers/usb/phy/phy-omap-otg.c
- drivers/usb/phy/phy.c
- drivers/usb/renesas_usbhs/common.c, line 462
- drivers/usb/typec/tcpm/fusb302.c
- sound/soc/samsung/aries_wm8994.c, line 355
Smatch caller information:
drivers/usb/phy/phy.c __usb_phy_get_charger_type() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 5 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/phy/phy.c __usb_phy_get_charger_type() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 7 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/phy/phy.c __usb_phy_get_charger_type() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/phy/phy.c __usb_phy_get_charger_type() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/rockchip/cdn-dp-core.c cdn_dp_check_sink_connection() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 44 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dp->lock | ||
| TYPE_LOCK | (struct cdn_dp_device)->lock |
drivers/gpu/drm/rockchip/cdn-dp-core.c cdn_dp_get_port_lanes() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 44 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dp->lock |
drivers/usb/chipidea/core.c ci_get_platdata() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 1 | id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/chipidea/core.c ci_get_platdata() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 1 | id | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/mtu3/mtu3_dr.c ssusb_extcon_register() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 0 | edev->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | edev->max_supported | 1-s32max |
| PARAM_VALUE | 1 | id | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/udc/snps_udc_plat.c udc_plat_probe() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 0 | edev->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | edev->max_supported | 1-s32max |
| PARAM_VALUE | 1 | id | 1 |
| CAPPED_DATA | 0 | edev->dev.parent->of_node | 1 |
| CAPPED_DATA | 0 | edev->max_supported | 1 |
| DATA_SOURCE | 0 | edev | r extcon_get_edev_by_phandle |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/udc/snps_udc_plat.c udc_plat_resume() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/udc/snps_udc_plat.c udc_plat_suspend() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/extcon/extcon-axp288.c axp288_get_id_pin() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 1-u64max |
| PARAM_VALUE | 1 | id | 2 |
| HALF_LOCKED2 | &pool->lock |
drivers/phy/phy-lgm-usb.c tca_work() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 0 | edev->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | edev->max_supported | 1-s32max |
| PARAM_VALUE | 1 | id | 2 |
| CAPPED_DATA | 0 | edev->max_supported | 1 |
| HALF_LOCKED2 | &pool->lock |
sound/soc/samsung/aries_wm8994.c aries_late_probe() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 0 | edev->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | edev->max_supported | 1-s32max |
| PARAM_VALUE | 1 | id | 23 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &card->mutex | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct snd_soc_card)->mutex |
drivers/phy/qualcomm/phy-qcom-usb-hs.c qcom_usb_hs_phy_power_on() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 1-u64max |
| PARAM_VALUE | 1 | id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &phy->mutex | ||
| HALF_LOCKED2 | &dp->lock | ||
| HALF_LOCKED2 | &dw_hdmi->mutex | ||
| HALF_LOCKED2 | &phydev->lock | ||
| HALF_LOCKED2 | &state->lock | ||
| TYPE_LOCK | (struct phy)->mutex |
drivers/gpu/drm/bridge/sil-sii8620.c sii8620_extcon_work() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 41 |
| HALF_LOCKED2 | &pool->lock |
drivers/gpu/drm/bridge/ite-it6505.c it6505_extcon_work() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 44 |
| LOCK2 | &it6505->extcon_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct it6505)->extcon_lock |
drivers/extcon/extcon.c cable_state_show() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 0 | edev->supported_cable | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_otg_sm_work() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/phy/rockchip/phy-rockchip-inno-usb2.c rockchip_usb2phy_otg_sm_work() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/power/supply/max8997_charger.c max8997_battery_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 5 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8997_charger.c max8997_battery_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 6 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8997_charger.c max8997_battery_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 9 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8997_charger.c max8997_battery_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 10 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8997_charger.c max8997_battery_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 7 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/rt5033_charger.c rt5033_charger_extcon_work() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 2-12 |
| HALF_LOCKED2 | &pool->lock |
drivers/platform/x86/lenovo/yoga-tab2-pro-1380-fastcharger.c yt2_1380_fc_dedicated_charger_connected() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | edev->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | id | 6 |
| HALF_LOCKED2 | &pool->lock |
drivers/platform/x86/lenovo/yoga-tab2-pro-1380-fastcharger.c yt2_1380_fc_fast_charger_connected() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 9 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/axp288_charger.c axp288_charger_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 5 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/axp288_charger.c axp288_charger_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 7 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/axp288_charger.c axp288_charger_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 6 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/axp288_charger.c axp288_charger_otg_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 2 |
| HALF_LOCKED2 | &pool->lock |
drivers/usb/renesas_usbhs/common.c usbhsc_hotplug() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 1-u64max |
| PARAM_VALUE | 1 | id | 2 |
| HALF_LOCKED2 | &pool->lock |
drivers/usb/dwc3/dwc3-qcom-legacy.c dwc3_qcom_register_extcon() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | edev->max_supported | 1-s32max |
| PARAM_VALUE | 1 | id | 1 |
| DATA_SOURCE | 0 | edev | r extcon_get_edev_by_phandle |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/dwc3/dwc3-qcom-legacy.c dwc3_qcom_register_extcon() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | edev->max_supported | 1-s32max |
| PARAM_VALUE | 1 | id | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/dwc3/dwc3-omap.c dwc3_omap_complete() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | global &system_transition_mutex |
drivers/usb/dwc3/dwc3-omap.c dwc3_omap_complete() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | global &system_transition_mutex |
drivers/usb/dwc3/dwc3-omap.c dwc3_omap_extcon_register() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 1 | id | 1 |
| CAPPED_DATA | 0 | edev->dev.parent->of_node | 1 |
| DATA_SOURCE | 0 | edev | r extcon_get_edev_by_phandle |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/dwc3/dwc3-omap.c dwc3_omap_extcon_register() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 1 | id | 2 |
| CAPPED_DATA | 0 | edev->dev.parent->of_node | 1 |
| CAPPED_DATA | 0 | edev->max_supported | 1 |
| DATA_SOURCE | 0 | edev | r extcon_get_edev_by_phandle |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/power/supply/charger-manager.c charger_manager_register_extcon() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 0 | edev->lock.rlock.dep_map->name | 0-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/power/supply/max8971_charger.c max8971_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | id | 5 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8971_charger.c max8971_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 1 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8971_charger.c max8971_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 41 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8971_charger.c max8971_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 6 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8971_charger.c max8971_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 9 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8971_charger.c max8971_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 10 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/max8971_charger.c max8971_extcon_evt_worker() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | id | 7 |
| HALF_LOCKED2 | &pool->lock |
drivers/usb/dwc3/drd.c dwc3_drd_update() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 0 | edev->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | edev->max_supported | 1-s32max |
| PARAM_VALUE | 1 | id | 2 |
| CAPPED_DATA | 0 | edev->max_supported | 1 |
drivers/phy/rockchip/phy-rockchip-typec.c tcphy_get_mode() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 1-u64max |
| PARAM_VALUE | 1 | id | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tcphy->lock | ||
| HALF_LOCKED2 | &dp->lock | ||
| HALF_LOCKED2 | &dw_hdmi->mutex | ||
| HALF_LOCKED2 | &phy->mutex | ||
| HALF_LOCKED2 | &phydev->lock | ||
| HALF_LOCKED2 | &state->lock | ||
| TYPE_LOCK | (struct phy)->mutex | ||
| TYPE_LOCK | (struct rockchip_typec_phy)->lock |
drivers/phy/rockchip/phy-rockchip-typec.c tcphy_get_mode() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 1 | id | 44 |
| CAPPED_DATA | 0 | edev->max_supported | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tcphy->lock | ||
| HALF_LOCKED2 | &dp->lock | ||
| HALF_LOCKED2 | &dw_hdmi->mutex | ||
| HALF_LOCKED2 | &phy->mutex | ||
| HALF_LOCKED2 | &phydev->lock | ||
| HALF_LOCKED2 | &state->lock | ||
| TYPE_LOCK | (struct phy)->mutex | ||
| TYPE_LOCK | (struct rockchip_typec_phy)->lock |
drivers/usb/typec/tcpm/fusb302.c tcpm_get_current_limit() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 1-u64max |
| PARAM_VALUE | 1 | id | 5 |
drivers/usb/typec/tcpm/fusb302.c tcpm_get_current_limit() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 1 | id | 7 |
drivers/usb/typec/tcpm/fusb302.c tcpm_get_current_limit() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 1 | id | 8 |
drivers/usb/typec/tcpm/fusb302.c tcpm_get_current_limit() -> extcon_get_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | edev | 4096-ptr_max |
| PARAM_VALUE | 1 | id | 6 |