Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/power/supply/bq25890_charger.c bq25890_chip_reset() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 1 field_id 70
BUF_SIZE 0 bq s32min-(-2),1-s32max
BUF_SIZE 0 bq s32min-(-2),1-s32max
BUF_SIZE 0 bq->dev (-1),1616
DATA_SOURCE 0 bq $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bq->client->irq
UNITS 0 bq unit_byte
HALF_LOCKED2 &dev->mutex

drivers/power/supply/bq25890_charger.c bq25890_get_chip_state() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bq->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bq->lock.osq.tail.counter 0-s32max
BUF_SIZE 0 bq s32min-(-1),1-s32max
BUF_SIZE 0 bq s32min-(-1),1-s32max
BUF_SIZE 0 bq->dev (-1),1616
DATA_SOURCE 0 bq $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 bq->force_hiz 0-1
NO_OVERFLOW_SIMPLE 0 bq->client->irq
UNITS 0 bq unit_byte
HALF_LOCKED2 0 &bq->lock

drivers/power/supply/bq25890_charger.c bq25890_get_chip_version() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->client 4096-ptr_max
PARAM_VALUE 0 bq->client->adapter 4096-ptr_max
PARAM_VALUE 0 bq->client->debugfs 4096-u64max
PARAM_VALUE 0 bq->client->dev.devres_head.prev 4096-ptr_max
PARAM_VALUE 0 bq->client->devres_group_id 4096-ptr_max
PARAM_VALUE 0 bq->dev 4096-ptr_max
PARAM_VALUE 0 bq->dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 bq->id (-1)
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0
PARAM_VALUE 0 bq->lock.magic 4096-ptr_max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0
PARAM_VALUE 0 bq->lock.owner.counter 0
PARAM_VALUE 0 bq->rmap 0-ptr_max
PARAM_VALUE 0 bq->rmap_fields 0
PARAM_VALUE 1 field_id 72
BUF_SIZE 0 bq 1256
BUF_SIZE 0 bq->dev 1616
CAPPED_DATA 0 bq->client->irq 1
DATA_SOURCE 0 bq $0
MEM_ZERO 0 bq
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bq->client->irq

drivers/power/supply/bq25890_charger.c bq25890_get_chip_version() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->client 4096-ptr_max
PARAM_VALUE 0 bq->client->adapter 4096-ptr_max
PARAM_VALUE 0 bq->client->debugfs 4096-u64max
PARAM_VALUE 0 bq->client->dev.devres_head.prev 4096-ptr_max
PARAM_VALUE 0 bq->client->devres_group_id 4096-ptr_max
PARAM_VALUE 0 bq->dev 4096-ptr_max
PARAM_VALUE 0 bq->dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 bq->id (-1)
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0
PARAM_VALUE 0 bq->lock.magic 4096-ptr_max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0
PARAM_VALUE 0 bq->lock.owner.counter 0
PARAM_VALUE 0 bq->rmap 0-ptr_max
PARAM_VALUE 0 bq->rmap_fields 0
PARAM_VALUE 1 field_id 74
BUF_SIZE 0 bq 1256
BUF_SIZE 0 bq->dev 1616
CAPPED_DATA 0 bq->client->irq 1
DATA_SOURCE 0 bq $0
MEM_ZERO 0 bq
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bq->client->irq

drivers/power/supply/bq25890_charger.c bq25890_get_vbus_voltage() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 1 field_id 65
BUF_SIZE 0 bq s32min-(-1),1-s32max
BUF_SIZE 0 bq s32min-(-1),1-s32max
DATA_SOURCE 0 bq $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte

drivers/power/supply/bq25890_charger.c bq25890_power_supply_get_property() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->charger->changed 1
PARAM_VALUE 0 bq->charger->changed_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bq->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bq->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 field_id 2
BUF_SIZE 0 bq s32min-(-2),1-s32max
BUF_SIZE 0 bq s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/bq25890_charger.c bq25890_power_supply_get_property() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->charger->changed 1
PARAM_VALUE 0 bq->charger->changed_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bq->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bq->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 field_id 66
BUF_SIZE 0 bq s32min-(-2),1-s32max
BUF_SIZE 0 bq s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/bq25890_charger.c bq25890_power_supply_get_property() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->charger->changed 1
PARAM_VALUE 0 bq->charger->changed_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bq->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bq->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 field_id 21
BUF_SIZE 0 bq s32min-(-2),1-s32max
BUF_SIZE 0 bq s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/bq25890_charger.c bq25890_power_supply_get_property() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->charger->changed 1
PARAM_VALUE 0 bq->charger->changed_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bq->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bq->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bq->state.ntc_fault 3
PARAM_VALUE 1 field_id 32
BUF_SIZE 0 bq s32min-(-2),1-s32max
BUF_SIZE 0 bq s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/bq25890_charger.c bq25890_power_supply_get_property() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->charger->changed 1
PARAM_VALUE 0 bq->charger->changed_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bq->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bq->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 field_id 61
BUF_SIZE 0 bq s32min-(-2),1-s32max
BUF_SIZE 0 bq s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/bq25890_charger.c bq25890_power_supply_get_property() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->charger->changed 1
PARAM_VALUE 0 bq->charger->changed_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bq->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bq->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 field_id 24
BUF_SIZE 0 bq s32min-(-2),1-s32max
BUF_SIZE 0 bq s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/bq25890_charger.c bq25890_power_supply_get_property() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->charger->changed 1
PARAM_VALUE 0 bq->charger->changed_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bq->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bq->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bq->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 field_id 63
BUF_SIZE 0 bq s32min-(-2),1-s32max
BUF_SIZE 0 bq s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/bq25890_charger.c bq25890_rw_init_data() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 0 bq 4096-ptr_max
PARAM_VALUE 0 bq->chip_version 0-3
PARAM_VALUE 0 bq->client 4096-ptr_max
PARAM_VALUE 0 bq->client->adapter 4096-ptr_max
PARAM_VALUE 0 bq->client->debugfs 4096-u64max
PARAM_VALUE 0 bq->client->dev.devres_head.prev 4096-ptr_max
PARAM_VALUE 0 bq->client->devres_group_id 4096-ptr_max
PARAM_VALUE 0 bq->dev 4096-ptr_max
PARAM_VALUE 0 bq->dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 bq->id (-1)
PARAM_VALUE 0 bq->iinlim_percentage 0-100
PARAM_VALUE 0 bq->init_data.boostf 0-1
PARAM_VALUE 0 bq->init_data.ilim_en 0-1
PARAM_VALUE 0 bq->init_data.rbatcomp 0
PARAM_VALUE 0 bq->init_data.treg 0,3
PARAM_VALUE 0 bq->init_data.vclamp 0
PARAM_VALUE 0 bq->lock.dep_map->name 0-255
PARAM_VALUE 0 bq->lock.first_waiter 0
PARAM_VALUE 0 bq->lock.magic 4096-ptr_max
PARAM_VALUE 0 bq->lock.osq.tail.counter 0
PARAM_VALUE 0 bq->lock.owner.counter 0
PARAM_VALUE 0 bq->rmap 0-ptr_max
PARAM_VALUE 0 bq->rmap_fields 0
PARAM_VALUE 0 bq->secondary_chrg 0
PARAM_VALUE 0 bq->skip_reset 0
BUF_SIZE 0 bq 1256
BUF_SIZE 0 bq->dev 1616
DATA_SOURCE 0 bq $0
FUZZY_MAX 0 bq->init_data.boostf 0
FUZZY_MAX 0 bq->init_data.ilim_en 0
FUZZY_MAX 0 bq->init_data.treg 0
MEM_ZERO 0 bq
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bq->client->irq

drivers/power/supply/bq25890_charger.c bq25890_vbus_is_enabled() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 1 field_id 16
BUF_SIZE 0 bq s32min-(-1),1-s32max
BUF_SIZE 0 bq s32min-(-1),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte

drivers/power/supply/bq25890_charger.c bq25890_vsys_get_voltage() -> bq25890_field_read()

Type Parameter Key Value
PARAM_VALUE 1 field_id 62
BUF_SIZE 0 bq s32min-(-1),1-s32max
BUF_SIZE 0 bq s32min-(-1),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bq unit_byte