Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c, line 506
- drivers/hid/hid-appletb-kbd.c
- drivers/thermal/intel/int340x_thermal/int3406_thermal.c, line 64
- drivers/video/backlight/backlight.c
- drivers/video/backlight/max25014.c, line 348
Smatch caller information:
drivers/hid/hid-appletb-kbd.c appletb_inactivity_work() -> backlight_device_set_brightness()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bd | 1-u64max |
| PARAM_VALUE | 1 | brightness | 1 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/hid/hid-appletb-kbd.c appletb_inactivity_work() -> backlight_device_set_brightness()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bd | 1-u64max |
| PARAM_VALUE | 1 | brightness | 0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/hid/hid-appletb-kbd.c appletb_kbd_probe() -> backlight_device_set_brightness()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bd | 4096-ptr_max |
| PARAM_VALUE | 1 | brightness | 2 |
| DATA_SOURCE | 0 | bd | r backlight_device_get_by_name |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &hdev->driver_input_lock | ||
| TYPE_LOCK | (struct hid_device)->driver_input_lock |
drivers/hid/hid-appletb-kbd.c appletb_restore_brightness_work() -> backlight_device_set_brightness()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bd | 1-u64max |
| PARAM_VALUE | 1 | brightness | 2 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/thermal/intel/int340x_thermal/int3406_thermal.c int3406_thermal_set_cur_state() -> backlight_device_set_brightness()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bd | 4096-ptr_max |
| PARAM_VALUE | 1 | brightness | 0-s32max,18446744071562067968-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &cooling_dev->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct thermal_cooling_device)->lock |
drivers/video/backlight/backlight.c brightness_store() -> backlight_device_set_brightness()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | brightness | 0-u64max |
| NO_OVERFLOW_SIMPLE | 1 | brightness | |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c amdgpu_atif_handler() -> backlight_device_set_brightness()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bd | 1-u64max |
| NOCHECK_CALL |
drivers/video/backlight/max25014.c max25014_remove() -> backlight_device_set_brightness()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | brightness | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |