Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/power/supply/ds2780_battery.c ds2780_set_control_register() -> ds2780_write()

Type Parameter Key Value
PARAM_VALUE 0 dev_info 4096-ptr_max
PARAM_VALUE 0 dev_info->w1_dev 1-u64max
PARAM_VALUE 2 addr 96
PARAM_VALUE 3 count 1
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
DATA_SOURCE 0 dev_info $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev_info unit_byte
UNITS 3 count unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/ds2780_battery.c ds2780_set_pio_pin() -> ds2780_write()

Type Parameter Key Value
PARAM_VALUE 1 val 3808097596955328512
PARAM_VALUE 1 *val 0-1
PARAM_VALUE 2 addr 21
PARAM_VALUE 3 count 1
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *val 0
NO_OVERFLOW_SIMPLE 1 *val
UNITS 0 dev_info unit_byte
UNITS 3 count unit_byte
USER_PTR 1 val
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/ds2780_battery.c ds2780_set_rsgain_register() -> ds2780_write()

Type Parameter Key Value
PARAM_VALUE 1 val 4096-ptr_max
PARAM_VALUE 2 addr 120
PARAM_VALUE 3 count 2
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
BUF_SIZE 1 val 2
DATA_SOURCE 0 dev_info $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev_info unit_byte
UNITS 3 count unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/ds2780_battery.c ds2780_set_sense_register() -> ds2780_write()

Type Parameter Key Value
PARAM_VALUE 2 addr 105
PARAM_VALUE 3 count 1
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
DATA_SOURCE 0 dev_info $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *val 0-255
UNITS 0 dev_info unit_byte
UNITS 3 count unit_byte
USER_PTR 1 val
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/ds2780_battery.c ds2780_write_param_eeprom_bin() -> ds2780_write()

Type Parameter Key Value
PARAM_VALUE 1 val 4096-ptr_max
PARAM_VALUE 3 count 1-4096
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
CAPPED_DATA 3 count 1
CAPPED_DATA 3 count 1
DATA_SOURCE 1 val $3
DATA_SOURCE 3 count $5
BIT_INFO 3 count 0x0,0x3fffffff
NOSPEC 3 count
NOSPEC 3 count
TERMINATED 1 val 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 addr 96-4191[c]
USER_DATA 3 count 1-4096[c]
UNITS 0 dev_info unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/ds2780_battery.c ds2780_write_user_eeprom_bin() -> ds2780_write()

Type Parameter Key Value
PARAM_VALUE 1 val 4096-ptr_max
PARAM_VALUE 3 count 1-4096
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
BUF_SIZE 0 dev_info s32min-(-2),1-s32max
CAPPED_DATA 3 count 1
CAPPED_DATA 3 count 1
DATA_SOURCE 1 val $3
DATA_SOURCE 3 count $5
BIT_INFO 3 count 0x0,0x3fffffff
NOSPEC 3 count
NOSPEC 3 count
TERMINATED 1 val 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 addr 32-4127[c]
USER_DATA 3 count 1-4096[c]
UNITS 0 dev_info unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex