Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/thermal/thermal_helpers.c thermal_cdev_set_cur_state() -> (struct thermal_cooling_device_ops)->set_cur_state()

Type Parameter Key Value
PARAM_VALUE 0 cdev 4096-ptr_max
PARAM_VALUE 0 cdev->lock.dep_map->name 0-255
PARAM_VALUE 0 cdev->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 cdev->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 cdev->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 cdev->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 cdev->ops 4096-ptr_max
PARAM_VALUE 1 state 0-s32max,18446744071562067968-u64max
CAPPED_DATA 1 state 1
DATA_SOURCE 0 cdev $0
DATA_SOURCE 1 state $1
CONTAINER 0 -16-1656+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &cdev->lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &tz->lock
TYPE_LOCK (struct thermal_cooling_device)->lock

drivers/thermal/thermal_sysfs.c cur_state_store() -> (struct thermal_cooling_device_ops)->set_cur_state()

Type Parameter Key Value
PARAM_VALUE 0 cdev 4096-ptr_max
PARAM_VALUE 0 cdev->lock.dep_map->name 0-255
PARAM_VALUE 0 cdev->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 cdev->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 cdev->lock.first_waiter->task->blocked_on 0
PARAM_VALUE 0 cdev->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 cdev->ops 4096-ptr_max
CAPPED_DATA 1 state 1
CAPPED_DATA 1 state 1
CONTAINER 0 -16-1656+0 $(-1)
PARAM_COMPARE 0 cdev->max_state >= $1
PARAM_COMPARE 1 state <= $0->max_state
NOSPEC 1 state
NOSPEC 1 state
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 state 0-s32max[c]
NO_OVERFLOW_SIMPLE 1 state
LOCK2 &of->mutex
LOCK2 0 &cdev->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct thermal_cooling_device)->lock