Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/thermal/thermal_helpers.c, line 234 (as a function)
- include/linux/thermal.h, line 365 (as a function)
Referenced in 5 files:
- drivers/thermal/broadcom/bcm2711_thermal.c, line 38
- drivers/thermal/broadcom/bcm2835_thermal.c
- drivers/thermal/broadcom/ns-thermal.c, line 20
- drivers/thermal/thermal_helpers.c, line 240
- drivers/thermal/ti-soc-thermal/ti-thermal-common.c, line 91
Smatch caller information:
drivers/thermal/ti-soc-thermal/ti-thermal-common.c __ti_thermal_get_temp() -> thermal_zone_get_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 4096-ptr_max |
| BUF_SIZE | 0 | tz | s32min,(-1)-s32max |
| BUF_SIZE | 0 | tz | s32min,(-1)-s32max |
| BUF_SIZE | 0 | tz->devdata | (-1),8,16,24,32,40,48,96,104,112,136,200,216,232,256,320,376,392,1232,1616 |
| DATA_SOURCE | 0 | tz | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | tz->num_trips | |
| LOCK2 | 0 | &tz->lock | |
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct thermal_zone_device)->lock |
drivers/thermal/broadcom/ns-thermal.c ns_thermal_get_temp() -> thermal_zone_get_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 4096-ptr_max |
| BUF_SIZE | 0 | tz | s32min,(-1)-s32max |
| BUF_SIZE | 0 | tz | s32min,(-1)-s32max |
| BUF_SIZE | 0 | tz->devdata | (-1),8,16,24,32,40,48,96,104,112,136,200,216,232,256,320,376,392,1232,1616 |
| DATA_SOURCE | 0 | tz | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | tz->num_trips | |
| LOCK2 | 0 | &tz->lock | |
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct thermal_zone_device)->lock |
drivers/thermal/broadcom/bcm2711_thermal.c bcm2711_get_temp() -> thermal_zone_get_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 4096-ptr_max |
| BUF_SIZE | 0 | tz | s32min,(-1)-s32max |
| BUF_SIZE | 0 | tz | s32min,(-1)-s32max |
| BUF_SIZE | 0 | tz->devdata | (-1),8,16,24,32,40,48,96,104,112,136,200,216,232,256,320,376,392,1232,1616 |
| DATA_SOURCE | 0 | tz | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | tz->num_trips | |
| LOCK2 | 0 | &tz->lock | |
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct thermal_zone_device)->lock |
drivers/thermal/broadcom/bcm2835_thermal.c bcm2835_thermal_get_temp() -> thermal_zone_get_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tz->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct thermal_zone_device)->lock |
drivers/thermal/broadcom/bcm2835_thermal.c bcm2835_thermal_probe() -> thermal_zone_get_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tz | 4096-ptr_max |
| BUF_SIZE | 0 | tz | 2576-s32max |
| BUF_SIZE | 0 | tz | 2576-s32max |
| CAPPED_DATA | 0 | tz->num_trips | 1 |
| DATA_SOURCE | 0 | tz | r devm_thermal_of_zone_register |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | tz->governor->bind_to_tz | |
| NO_OVERFLOW_SIMPLE | 0 | tz->num_trips |