Defined in 1 files as a member:
Defined in 9 files as a function:
- drivers/hwmon/corsair-cpro.c, line 192 (as a function)
- drivers/hwmon/dme1737.c, line 1259 (as a function)
- drivers/hwmon/f71805f.c, line 688 (as a function)
- drivers/hwmon/f75375s.c, line 304 (as a function)
- drivers/hwmon/it87.c, line 1604 (as a function)
- drivers/hwmon/nzxt-smart2.c, line 464 (as a function)
- drivers/hwmon/pwm-fan.c, line 242 (as a function)
- drivers/hwmon/vt1211.c, line 638 (as a function)
- drivers/platform/x86/compal-laptop.c, line 296 (as a function)
Referenced in 11 files:
- drivers/clocksource/timer-ti-dm.c, line 1571
- drivers/hwmon/corsair-cpro.c, line 326
- drivers/hwmon/dme1737.c
- drivers/hwmon/f71805f.c
- drivers/hwmon/f75375s.c
- drivers/hwmon/it87.c
- drivers/hwmon/nzxt-smart2.c, line 613
- drivers/hwmon/pwm-fan.c
- drivers/hwmon/vt1211.c
- drivers/platform/x86/compal-laptop.c
- drivers/pwm/pwm-omap-dmtimer.c
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 |