Defined in 1 files as a member:

Defined in 9 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/hwmon/pwm-fan.c pwm_fan_probe() -> set_pwm()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->dev 4096-ptr_max
PARAM_VALUE 0 dev->dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 dev->enable_mode 1
PARAM_VALUE 0 dev->lock.dep_map->name 0-255
PARAM_VALUE 0 dev->lock.first_waiter 0
PARAM_VALUE 0 dev->lock.magic 4096-ptr_max
PARAM_VALUE 0 dev->lock.osq.tail.counter 0
PARAM_VALUE 0 dev->lock.owner.counter 0
PARAM_VALUE 0 dev->pwm 4096-ptr_max
PARAM_VALUE 0 dev->pwm->chip->ops->sizeof_wfhw 0-2,5,12,16
PARAM_VALUE 0 dev->pwm_fan_cooling_levels 0,4096-ptr_max
PARAM_VALUE 0 dev->pwm_state.duty_cycle 0
PARAM_VALUE 0 dev->pwm_state.enabled 0
PARAM_VALUE 0 dev->pwm_state.usage_power 1
PARAM_VALUE 0 dev->reg_en 0,4096-ptr_max
BUF_SIZE 0 dev 408
BUF_SIZE 0 dev->dev 1616
BUF_SIZE 0 dev->pwm s32min-(-1),1-s32max
BUF_SIZE 0 dev->reg_en s32min,(-1)-s32max
DATA_SOURCE 0 dev r devm_kzalloc
MEM_ZERO 0 dev
RX_PATH
TASK_NOT_RUNNING

drivers/hwmon/pwm-fan.c pwm_fan_resume() -> set_pwm()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte

drivers/hwmon/pwm-fan.c pwm_fan_set_cur_state() -> set_pwm()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->pwm_fan_cooling_levels 4096-ptr_max
PARAM_VALUE 1 attr 0-u32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 &cdev->lock
HALF_LOCKED2 &of->mutex
TYPE_LOCK (struct thermal_cooling_device)->lock

drivers/hwmon/pwm-fan.c pwm_fan_write() -> set_pwm()

Type Parameter Key Value
PARAM_VALUE 1 attr 0-255
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
DATA_SOURCE 1 attr $4
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 attr 0-255
UNITS 0 dev unit_byte
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/hwmon/corsair-cpro.c ccp_write() -> set_pwm()

Type Parameter Key Value
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
DATA_SOURCE 1 attr $3
DATA_SOURCE 2 buf $4
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 buf s64min-s64max
UNITS 0 dev unit_byte
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/hwmon/nzxt-smart2.c nzxt_smart2_hwmon_write() -> set_pwm()

Type Parameter Key Value
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
DATA_SOURCE 1 attr $3
DATA_SOURCE 2 buf $4
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 buf s64min-s64max
UNITS 0 dev unit_byte
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/platform/x86/compal-laptop.c pwm_enable_store() -> set_pwm()

Type Parameter Key Value
PARAM_VALUE 0 dev 255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/platform/x86/compal-laptop.c pwm_enable_store() -> set_pwm()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/platform/x86/compal-laptop.c pwm_store() -> set_pwm()

Type Parameter Key Value
PARAM_VALUE 0 dev 0-255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 dev 0-255
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/base/core.c dev_attr_store() -> (struct device_attribute)->store()

Type Parameter Key Value
PARAM_VALUE 1 attr 4096-ptr_max
PARAM_VALUE 1 attr->store 1-u64max
PARAM_VALUE 2 buf 4096-ptr_max
PARAM_VALUE 3 count 1-1000000000
CAPPED_DATA 3 count 1
CAPPED_DATA 3 count 1
DATA_SOURCE 2 buf $2
DATA_SOURCE 3 count $3
CONTAINER 1 -48+0 $(-1)
NOSPEC 3 count
TERMINATED 2 buf 1
RX_PATH
TASK_NOT_RUNNING
ELEM_LAST 2 ==buf3 8052
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

Smatch assignments to (struct omap_dm_timer_ops)->set_pwm:

drivers/clocksource/timer-ti-dm.c (null)() -> (struct omap_dm_timer_ops)->set_pwm [3706120444486803456]