Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/hwmon/nzxt-smart2.c nzxt_smart2_hwmon_read() -> scale_pwm_value()

Type Parameter Key Value
PARAM_VALUE 0 val 0-255
PARAM_VALUE 1 orig_max 100
PARAM_VALUE 2 new_max 255
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &drvdata->wq.lock
LOCK2 &of->mutex
LOCK2 _T->lock
LOCK2 irq
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct wait_queue_head)->lock

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

Type Parameter Key Value
PARAM_VALUE 1 orig_max 255
PARAM_VALUE 2 new_max 100
DATA_SOURCE 0 val $2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 val s64min-s64max
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex