Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/platform/wmi/core.c
- drivers/platform/x86/dell/dell-wmi-sysman/biosattr-interface.c, line 27
- drivers/platform/x86/dell/dell-wmi-sysman/passwordattr-interface.c, line 21
- drivers/platform/x86/gigabyte-wmi.c, line 38
- drivers/platform/x86/inspur_platform_profile.c, line 49
- drivers/platform/x86/lenovo/wmi-helpers.c, line 58
- drivers/platform/x86/lenovo/wmi-hotkey-utilities.c
- drivers/platform/x86/msi-wmi-platform.c, line 164
- drivers/platform/x86/nvidia-wmi-ec-backlight.c, line 49
- drivers/platform/x86/tuxedo/nb04/wmi_util.c, line 28
Smatch caller information:
drivers/platform/x86/lenovo/wmi-helpers.c lwmi_dev_evaluate_int() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 17-18,43-45 |
| PARAM_VALUE | 3 | in | 4878758772203302912 |
| PARAM_VALUE | 3 | in->length | 0,8 |
| PARAM_VALUE | 3 | in->pointer | 0,453453980286783488,890042195704745984,3526666518964486144,6021323291122642944,6127579164371259392,7059615722033455104,8142255664343527424 |
| PARAM_VALUE | 4 | out | 2222481141384101888 |
| PARAM_VALUE | 4 | out->length | u64max |
| PARAM_VALUE | 4 | out->pointer | 0 |
| DATA_SOURCE | 0 | wdev | $0 |
| DATA_SOURCE | 1 | instance | $1 |
| DATA_SOURCE | 2 | method_id | $2 |
| FUZZY_MAX | 2 | method_id | 18 |
| HARD_MAX | 2 | method_id | 45 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &component_mutex |
drivers/platform/x86/inspur_platform_profile.c inspur_wmi_perform_query() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 2-3 |
| PARAM_VALUE | 3 | in | 2908170087673454592 |
| PARAM_VALUE | 3 | in->length | 4 |
| PARAM_VALUE | 3 | in->pointer | 4096-ptr_max |
| PARAM_VALUE | 4 | out | 8350138547617624064 |
| PARAM_VALUE | 4 | out->length | u64max |
| PARAM_VALUE | 4 | out->pointer | 0 |
| DATA_SOURCE | 0 | wdev | $0 |
| DATA_SOURCE | 2 | method_id | $1 |
| HARD_MAX | 2 | method_id | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/platform/x86/gigabyte-wmi.c gigabyte_wmi_perform_query() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 293 |
| PARAM_VALUE | 3 | in | 3069660013421195264 |
| PARAM_VALUE | 3 | in->length | 4 |
| PARAM_VALUE | 3 | in->pointer | 8827667863594889216 |
| PARAM_VALUE | 4 | out | 8743005421449392128 |
| PARAM_VALUE | 4 | out->length | u64max |
| PARAM_VALUE | 4 | out->pointer | 0 |
| BUF_SIZE | 0 | wdev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | wdev | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | wdev | $0 |
| DATA_SOURCE | 2 | method_id | $1 |
| DATA_SOURCE | 4 | out | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | wdev | unit_byte |
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/tuxedo/nb04/wmi_util.c __wmi_method_acpi_object_out() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 2,6 |
| PARAM_VALUE | 3 | in | 9060520063511744512 |
| PARAM_VALUE | 3 | in->length | 8,496 |
| PARAM_VALUE | 4 | out | 8472758237662814208 |
| PARAM_VALUE | 4 | out->length | u64max |
| PARAM_VALUE | 4 | out->pointer | 0 |
| DATA_SOURCE | 0 | wdev | $0 |
| DATA_SOURCE | 2 | method_id | $1 |
| HARD_MAX | 2 | method_id | 6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &hdev->driver_input_lock |
drivers/platform/x86/lenovo/wmi-hotkey-utilities.c lenovo_super_hotkey_wmi_led_init() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 1 |
| PARAM_VALUE | 3 | in | 7761423922946678784 |
| PARAM_VALUE | 3 | in->length | 4 |
| PARAM_VALUE | 3 | in->pointer | 6437174823358361600 |
| PARAM_VALUE | 4 | out | 8444411128263843840 |
| PARAM_VALUE | 4 | out->length | u64max |
| PARAM_VALUE | 4 | out->pointer | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/lenovo/wmi-hotkey-utilities.c lsh_wmi_mute_led_set() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 2 |
| PARAM_VALUE | 3 | in | 4333766561313533952 |
| PARAM_VALUE | 3 | in->length | 4 |
| PARAM_VALUE | 3 | in->pointer | 5993093978897842176 |
| PARAM_VALUE | 4 | out | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/x86/dell/dell-wmi-sysman/biosattr-interface.c call_biosattributes_interface() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | wdev | 1-u64max |
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 3-4 |
| PARAM_VALUE | 3 | in | 5340053637676228608 |
| PARAM_VALUE | 3 | in->length | 9,12-4000000 |
| PARAM_VALUE | 3 | in->pointer | 4096-ptr_max |
| PARAM_VALUE | 4 | out | 725821905188560896 |
| PARAM_VALUE | 4 | out->length | u64max |
| PARAM_VALUE | 4 | out->pointer | 0 |
| DATA_SOURCE | 0 | wdev | $0 |
| DATA_SOURCE | 2 | method_id | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &wmi_priv.mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct wmi_sysman_priv)->mutex |
drivers/platform/x86/nvidia-wmi-ec-backlight.c wmi_brightness_notify() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 1 |
| PARAM_VALUE | 3 | in | 4088033539256283136 |
| PARAM_VALUE | 3 | in->length | 24 |
| PARAM_VALUE | 3 | in->pointer | 1981111857137373184 |
| PARAM_VALUE | 4 | out | 4088033539256283136 |
| PARAM_VALUE | 4 | out->length | 24 |
| PARAM_VALUE | 4 | out->pointer | 1981111857137373184 |
| BUF_SIZE | 0 | wdev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | wdev | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | wdev | $0 |
| DATA_SOURCE | 2 | method_id | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | wdev | unit_byte |
drivers/platform/x86/msi-wmi-platform.c msi_wmi_platform_query() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 3 | in | 4735903033195331584 |
| PARAM_VALUE | 3 | in->length | 1-1000000000,2147479552 |
| PARAM_VALUE | 3 | in->pointer | 4096-ptr_max |
| PARAM_VALUE | 4 | out | 2408833662659620864 |
| PARAM_VALUE | 4 | out->length | u64max |
| PARAM_VALUE | 4 | out->pointer | 0 |
| DATA_SOURCE | 2 | method_id | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &data->buffer_lock |
drivers/platform/wmi/core.c wmi_evaluate_method() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | wdev | 0-ptr_max |
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 3 | in | 4096-ptr_max |
| PARAM_VALUE | 3 | in->length | 0-4000000,u32max |
| PARAM_VALUE | 4 | out | 0,4096-ptr_max |
| PARAM_VALUE | 4 | out->pointer | 0,4096-ptr_max |
| DATA_SOURCE | 0 | wdev | r wmi_find_device_by_guid |
| DATA_SOURCE | 1 | instance | $1 |
| DATA_SOURCE | 2 | method_id | $2 |
| DATA_SOURCE | 3 | in | $3 |
| DATA_SOURCE | 4 | out | $4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &huawei->wmi_lock | ||
| HALF_LOCKED2 | &init_mutex | ||
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &bioscfg_drv.mutex | ||
| HALF_LOCKED2 | global &vgasr_mutex | ||
| HALF_LOCKED2 | global &vgasr_priv.mux_hw_lock |
drivers/platform/wmi/core.c wmidev_invoke_method() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 1-2,4-7,10,12-13,18-21,32-34,37 |
| PARAM_VALUE | 3 | in | 6129920859974508544 |
| PARAM_VALUE | 3 | in->length | 0-u32max |
| PARAM_VALUE | 3 | in->pointer | 8,4096-ptr_max |
| PARAM_VALUE | 4 | out | 6493025853517570048 |
| PARAM_VALUE | 4 | out->length | u64max |
| PARAM_VALUE | 4 | out->pointer | 0 |
| BUF_SIZE | 0 | wdev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | wdev | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | wdev | $0 |
| DATA_SOURCE | 1 | instance | $1 |
| DATA_SOURCE | 2 | method_id | $2 |
| HARD_MAX | 2 | method_id | 37 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | wdev | unit_array_size |
| HALF_LOCKED2 | _T->lock |
drivers/platform/wmi/core.c wmidev_invoke_procedure() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 1-4,11 |
| PARAM_VALUE | 3 | in | 7252472081129250816 |
| PARAM_VALUE | 3 | in->length | 0-s16max |
| PARAM_VALUE | 3 | in->pointer | 4096-ptr_max |
| PARAM_VALUE | 4 | out | 0 |
| DATA_SOURCE | 0 | wdev | $0 |
| DATA_SOURCE | 1 | instance | $1 |
| DATA_SOURCE | 2 | method_id | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/platform/x86/dell/dell-wmi-sysman/passwordattr-interface.c call_password_interface() -> wmidev_evaluate_method()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | wdev | 1-u64max |
| PARAM_VALUE | 1 | instance | 0 |
| PARAM_VALUE | 2 | method_id | 1 |
| PARAM_VALUE | 3 | in | 971869868516786176 |
| PARAM_VALUE | 3 | in->length | 14-4000000 |
| PARAM_VALUE | 3 | in->pointer | 4096-ptr_max |
| PARAM_VALUE | 4 | out | 2636376653890043904 |
| PARAM_VALUE | 4 | out->length | u64max |
| PARAM_VALUE | 4 | out->pointer | 0 |
| DATA_SOURCE | 0 | wdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &wmi_priv.mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct wmi_sysman_priv)->mutex |