Defined in 2 files as a function:
- drivers/acpi/ec.c, line 864 (as a function)
- drivers/platform/x86/lenovo/thinkpad_acpi.c, line 698 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/platform/x86/lenovo/thinkpad_acpi.c fan2_get_speed() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 132 |
| PARAM_VALUE | 1 | address | 926335508383887360 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c fan2_get_speed() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 133 |
| PARAM_VALUE | 1 | address | 8113895866010013696 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c fan2_get_speed() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 150 |
| PARAM_VALUE | 1 | address | 8067409405336403968 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c fan2_get_speed() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 152 |
| PARAM_VALUE | 1 | address | 926335508383887360 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c fan_get_speed() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 132 |
| PARAM_VALUE | 1 | address | 6931823747894259712 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c fan_get_speed() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 133 |
| PARAM_VALUE | 1 | address | 8345254061775187968 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c fan_get_speed() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 149 |
| PARAM_VALUE | 1 | address | 6931823747894259712 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c fan_get_status() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 47 |
| PARAM_VALUE | 1 | address | 7563914235596304384 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &fan_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c fan_get_status() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 147 |
| PARAM_VALUE | 1 | address | 7563914235596304384 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &fan_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c fan_init() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 47 |
| PARAM_VALUE | 1 | address | 4626479889004163072 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/lenovo/thinkpad_acpi.c thermal_get_sensor() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | (-2147483528)-199 |
| PARAM_VALUE | 1 | address | 7117205691368992768 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/platform/x86/lenovo/thinkpad_acpi.c thermal_get_sensor() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | (-2147483480)-175,184-187 |
| PARAM_VALUE | 1 | address | 7117205691368992768 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/platform/x86/lenovo/thinkpad_acpi.c thermal_read_mode_check() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 239 |
| PARAM_VALUE | 1 | address | 5958672381282263040 |
| PARAM_VALUE | 1 | *address | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/lenovo/thinkpad_acpi.c thermal_read_mode_check() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 120-127 |
| PARAM_VALUE | 1 | address | 2962748036056293376 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/lenovo/thinkpad_acpi.c thermal_read_mode_check() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 192-199 |
| PARAM_VALUE | 1 | address | 2962748036056293376 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/lenovo/thinkpad_acpi.c tpacpi_brightness_checkpoint_nvram() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 49 |
| PARAM_VALUE | 1 | address | 8265764827872325632 |
| PARAM_VALUE | 1 | *address | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &brightness_mutex | ||
| HALF_LOCKED2 | &_dev->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c tpacpi_brightness_get_raw() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 49 |
| PARAM_VALUE | 1 | address | 6067834946062823424 |
| PARAM_VALUE | 1 | *address | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &brightness_mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c tpacpi_brightness_set_ec() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 49 |
| PARAM_VALUE | 1 | address | 5527047291081699328 |
| PARAM_VALUE | 1 | *address | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &brightness_mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c tpacpi_volume_checkpoint_nvram() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 48 |
| PARAM_VALUE | 1 | address | 2278026974600523776 |
| PARAM_VALUE | 1 | *address | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &volume_mutex | ||
| HALF_LOCKED2 | &_dev->mutex |
drivers/platform/x86/lenovo/thinkpad_acpi.c volume_get_status_ec() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 48 |
| PARAM_VALUE | 1 | address | 7564554717844213760 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &volume_mutex |
drivers/acpi/ec.c ec_read() -> acpi_ec_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 4096-ptr_max |
| PARAM_VALUE | 2 | data | 1898598537439031296 |
| DATA_SOURCE | 1 | address | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | address | 0-255 |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &spic_dev.lock |