Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/iio/adc/qcom-spmi-adc5-gen3.c
- drivers/iio/adc/qcom-spmi-adc5.c, line 452
- drivers/iio/adc/qcom-vadc-common.c, line 707
Smatch caller information:
drivers/iio/adc/qcom-spmi-adc5-gen3.c adc5_gen3_get_scaled_reading() -> qcom_adc5_hw_scale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | adc_code | 0-s16max,32769-u16max |
| DATA_SOURCE | 4 | result | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tz->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct thermal_zone_device)->lock |
drivers/iio/adc/qcom-spmi-adc5-gen3.c adc5_gen3_read_raw() -> qcom_adc5_hw_scale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | adc_code | 0-s16max,32769-u16max |
| BUF_SIZE | 4 | result | (-1),16 |
| BUF_SIZE | 4 | result | (-1),16 |
| DATA_SOURCE | 4 | result | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/iio/adc/qcom-spmi-adc5-gen3.c adc5_gen3_therm_code_to_temp() -> qcom_adc5_hw_scale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 3 | adc_code | $2 |
| DATA_SOURCE | 4 | result | $3 |
drivers/iio/adc/qcom-spmi-adc5.c adc_read_raw_common() -> qcom_adc5_hw_scale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | adc_code | 0-s16max,32769-u16max |
| BUF_SIZE | 4 | result | (-1),16 |
| BUF_SIZE | 4 | result | (-1),16 |
| DATA_SOURCE | 4 | result | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock |