Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/thermal/thermal_helpers.c, line 127 (as a function)
- include/linux/thermal.h, line 359 (as a function)
Referenced in 11 files:
- drivers/gpu/drm/tiny/repaper.c, line 486
- drivers/mmc/host/sdhci-omap.c, line 349
- drivers/platform/x86/gpd-pocket-fan.c
- drivers/power/supply/ab8500_btemp.c, line 287
- drivers/power/supply/charger-manager.c, line 515
- drivers/soc/mediatek/mtk-svs.c
- drivers/thermal/thermal_helpers.c, line 145
- drivers/thermal/thermal_hwmon.c, line 62
- drivers/thermal/thermal_netlink.c, line 578
- drivers/thermal/thermal_sysfs.c, line 42
- drivers/thermal/ti-soc-thermal/ti-thermal-common.c, line 96
Smatch caller information:
drivers/thermal/ti-soc-thermal/ti-thermal-common.c __ti_thermal_get_temp() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 0-ptr_max |
| PARAM_VALUE | 1 | temp | 6923089842084966400 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tz->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct thermal_zone_device)->lock |
drivers/thermal/thermal_netlink.c thermal_genl_cmd_tz_get_temp() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 4096-ptr_max |
| PARAM_VALUE | 1 | temp | 3262454783511670784 |
| CAPPED_DATA | 0 | tz->id | 1 |
| DATA_SOURCE | 0 | tz | r class_thermal_zone_get_by_id_constructor |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/thermal/thermal_hwmon.c temp_input_show() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | temp | 3225676546466193408 |
| 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/mmc/host/sdhci-omap.c sdhci_omap_execute_tuning() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 4096-ptr_max |
| PARAM_VALUE | 1 | temp | 3889155852649422848 |
| DATA_SOURCE | 0 | tz | r thermal_zone_get_zone_by_name |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/tiny/repaper.c repaper_get_temperature() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 1-u64max |
| PARAM_VALUE | 1 | temp | 4859691548285788160 |
| PARAM_VALUE | 1 | *temp | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &drm_unplug_srcu | ||
| HALF_LOCKED2 | irq |
drivers/thermal/thermal_sysfs.c temp_show() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 4096-ptr_max |
| PARAM_VALUE | 1 | temp | 1912561731174985728 |
| 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/platform/x86/gpd-pocket-fan.c gpd_pocket_fan_worker() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | temp | 6989069392963383296 |
| HALF_LOCKED2 | &pool->lock |
drivers/platform/x86/gpd-pocket-fan.c gpd_pocket_fan_worker() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | temp | 3564097618421153792 |
| HALF_LOCKED2 | &pool->lock |
drivers/power/supply/charger-manager.c cm_get_battery_temperature() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 1-u64max |
| DATA_SOURCE | 1 | temp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock |
drivers/soc/mediatek/mtk-svs.c svs_adjust_pm_opp_volts() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 1-ptr_max |
| PARAM_VALUE | 1 | temp | 7765863724504428544 |
| PARAM_VALUE | 1 | *temp | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &svsb->lock | ||
| TYPE_LOCK | (struct svs_bank)->lock |
drivers/soc/mediatek/mtk-svs.c svs_status_debug_show() -> thermal_zone_get_temp()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | temp | 8172001121921830912 |
| PARAM_VALUE | 1 | *temp | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |