Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/platform/x86/system76_acpi.c charge_control_end_threshold_store() -> battery_set_threshold()

Type Parameter Key Value
PARAM_VALUE 0 which 1
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 2 count 1-1000000000
CAPPED_DATA 2 count 1
CAPPED_DATA 2 count 1
DATA_SOURCE 1 buf $2
DATA_SOURCE 2 count $3
NOSPEC 2 count
RX_PATH
TASK_NOT_RUNNING
ELEM_LAST 1 ==buf2 8052
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/platform/x86/system76_acpi.c charge_control_start_threshold_store() -> battery_set_threshold()

Type Parameter Key Value
PARAM_VALUE 0 which 0
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 2 count 1-1000000000
CAPPED_DATA 2 count 1
CAPPED_DATA 2 count 1
DATA_SOURCE 1 buf $2
DATA_SOURCE 2 count $3
NOSPEC 2 count
RX_PATH
TASK_NOT_RUNNING
ELEM_LAST 1 ==buf2 8052
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex