Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/power/supply/surface_battery.c alarm_store() -> spwr_battery_present()

Type Parameter Key Value
PARAM_VALUE 0 bat->lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bat->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bat->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.wait_lock.owner (-1)
PARAM_VALUE 0 bat->lock.wait_lock.owner_cpu u32max
BUF_SIZE 0 bat s32min-(-2),1-s32max
BUF_SIZE 0 bat s32min-(-2),1-s32max
CAPPED_DATA 0 &bat->lock 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bat unit_byte
LOCK2 &of->mutex
LOCK2 0 &bat->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct spwr_battery_device)->lock

drivers/power/supply/surface_battery.c spwr_battery_get_property() -> spwr_battery_present()

Type Parameter Key Value
PARAM_VALUE 0 bat 4096-ptr_max
PARAM_VALUE 0 bat->lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bat->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bat->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.wait_lock.owner (-1)
PARAM_VALUE 0 bat->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 bat->timestamp 1-u64max
BUF_SIZE 0 bat s32min-(-2),1-s32max
BUF_SIZE 0 bat s32min-(-2),1-s32max
CAPPED_DATA 0 &bat->lock 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bat unit_byte
LOCK2 0 &bat->lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct spwr_battery_device)->lock

drivers/power/supply/surface_battery.c spwr_battery_get_property() -> spwr_battery_present()

Type Parameter Key Value
PARAM_VALUE 0 bat 4096-ptr_max
PARAM_VALUE 0 bat->lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bat->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bat->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.wait_lock.owner (-1)
PARAM_VALUE 0 bat->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 bat->timestamp 1-u64max
BUF_SIZE 0 bat s32min-(-2),1-s32max
BUF_SIZE 0 bat s32min-(-2),1-s32max
CAPPED_DATA 0 &bat->lock 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bat unit_byte
LOCK2 _T->lock
LOCK2 0 &bat->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct spwr_battery_device)->lock

drivers/power/supply/surface_battery.c spwr_battery_load_bix() -> spwr_battery_present()

Type Parameter Key Value
PARAM_VALUE 0 bat 4096-ptr_max
PARAM_VALUE 0 bat->lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 bat->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bat->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.wait_lock.owner (-1)
PARAM_VALUE 0 bat->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 bat->sdev 4096-ptr_max
PARAM_VALUE 0 bat->sdev->ctrl->counter.rqid.value 0-u16max
PARAM_VALUE 0 bat->sdev->ctrl->counter.seq.value 0-255
BUF_SIZE 0 bat s32min-(-1),1-s32max
BUF_SIZE 0 bat s32min-(-1),1-s32max
DATA_SOURCE 0 bat $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &bat->lock
TYPE_LOCK (struct spwr_battery_device)->lock

drivers/power/supply/surface_battery.c spwr_battery_load_bst() -> spwr_battery_present()

Type Parameter Key Value
PARAM_VALUE 0 bat 4096-ptr_max
PARAM_VALUE 0 bat->lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 bat->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bat->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.wait_lock.owner (-1)
PARAM_VALUE 0 bat->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 bat->sdev 4096-ptr_max
PARAM_VALUE 0 bat->sdev->ctrl->counter.rqid.value 0-u16max
PARAM_VALUE 0 bat->sdev->ctrl->counter.seq.value 0-255
BUF_SIZE 0 bat s32min-(-1),1-s32max
BUF_SIZE 0 bat s32min-(-1),1-s32max
DATA_SOURCE 0 bat $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bat unit_byte
LOCK2 0 &bat->lock
TYPE_LOCK (struct spwr_battery_device)->lock

drivers/power/supply/surface_battery.c spwr_battery_recheck_full() -> spwr_battery_present()

Type Parameter Key Value
PARAM_VALUE 0 bat->lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bat->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bat->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.wait_lock.owner (-1)
PARAM_VALUE 0 bat->lock.wait_lock.owner_cpu u32max
BUF_SIZE 0 bat s32min-(-1),1-s32max
BUF_SIZE 0 bat s32min-(-1),1-s32max
CAPPED_DATA 0 &bat->lock 1
DATA_SOURCE 0 bat $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &bat->lock
HALF_LOCKED2 &nh->srcu
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct spwr_battery_device)->lock

drivers/power/supply/surface_battery.c spwr_battery_recheck_full() -> spwr_battery_present()

Type Parameter Key Value
PARAM_VALUE 0 bat 4096-ptr_max
PARAM_VALUE 0 bat->lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bat->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bat->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.wait_lock.owner (-1)
PARAM_VALUE 0 bat->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 bat->sdev 4096-ptr_max
PARAM_VALUE 0 bat->sdev->ctrl->counter.rqid.value 0-u16max
PARAM_VALUE 0 bat->sdev->ctrl->counter.seq.value 0-255
BUF_SIZE 0 bat s32min-(-1),1-s32max
BUF_SIZE 0 bat s32min-(-1),1-s32max
CAPPED_DATA 0 &bat->lock 1
DATA_SOURCE 0 bat $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &bat->lock
HALF_LOCKED2 &nh->srcu
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct spwr_battery_device)->lock

drivers/power/supply/surface_battery.c spwr_battery_register() -> spwr_battery_present()

Type Parameter Key Value
PARAM_VALUE 0 bat 4096-ptr_max
PARAM_VALUE 0 bat->lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bat->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bat->lock.magic 4096-ptr_max
PARAM_VALUE 0 bat->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bat->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 bat->lock.wait_lock.owner (-1)
PARAM_VALUE 0 bat->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 bat->notif.base.fn 488412602709209088
PARAM_VALUE 0 bat->notif.base.priority 1
PARAM_VALUE 0 bat->notif.event.flags 1
PARAM_VALUE 0 bat->notif.event.id.instance 0
PARAM_VALUE 0 bat->notif.event.mask 1
PARAM_VALUE 0 bat->notif.event.reg.cid_disable 0
PARAM_VALUE 0 bat->notif.event.reg.cid_enable 0
PARAM_VALUE 0 bat->notif.event.reg.target_category 0
PARAM_VALUE 0 bat->notif.event.reg.target_id 0
PARAM_VALUE 0 bat->psy_desc.get_property 2537640779533750272
PARAM_VALUE 0 bat->psy_desc.name 0
PARAM_VALUE 0 bat->psy_desc.type 1
PARAM_VALUE 0 bat->sdev 4096-ptr_max
PARAM_VALUE 0 bat->sdev->ctrl->counter.rqid.value 0-u16max
PARAM_VALUE 0 bat->sdev->ctrl->counter.seq.value 0-255
PARAM_VALUE 0 bat->sdev->dev.devres_head.prev 4096-ptr_max
BUF_SIZE 0 bat 680
CAPPED_DATA 0 &bat->lock 1
DATA_SOURCE 0 bat $0
MEM_ZERO 0 bat
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &bat->lock
TYPE_LOCK (struct spwr_battery_device)->lock