Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/acpi/battery.c acpi_battery_get_state() -> extract_package()

Type Parameter Key Value
PARAM_VALUE 0 battery 4096-ptr_max
PARAM_VALUE 0 battery->device 4096-ptr_max
PARAM_VALUE 0 battery->device->handle 0,4096-ptr_max,(-1)
PARAM_VALUE 0 battery->device->handle->common.descriptor_type 15
PARAM_VALUE 0 battery->device->status.battery_present 1
PARAM_VALUE 1 package 0,4096-ptr_max
PARAM_VALUE 2 offsets 3267284154770407424
PARAM_VALUE 3 num 4
BUF_SIZE 0 battery s32min-(-1),1-s32max
BUF_SIZE 0 battery s32min-(-1),1-s32max
BUF_SIZE 0 battery->phys_dev (-1),1616
BUF_SIZE 2 offsets 64
DATA_SOURCE 0 battery $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 battery unit_byte
UNITS 1 package unit_byte
UNITS 3 num unit_array_size
HALF_LOCKED2 _T->lock

drivers/acpi/battery.c extract_battery_info() -> extract_package()

Type Parameter Key Value
PARAM_VALUE 0 battery 4096-ptr_max
PARAM_VALUE 0 battery->device 4096-ptr_max
PARAM_VALUE 0 battery->device->handle 0,4096-ptr_max,(-1)
PARAM_VALUE 0 battery->device->handle->common.descriptor_type 15
PARAM_VALUE 0 battery->device->status.battery_present 1
PARAM_VALUE 1 package 0,4096-ptr_max
PARAM_VALUE 2 offsets 4082940816985673736
PARAM_VALUE 3 num 19
BUF_SIZE 0 battery (-1),16,24,40,56,108-1096,1384,1600,1616,1752,2072,2480,2576,8064
BUF_SIZE 0 battery (-1),16,24,40,56,108-1096,1384,1600,1616,1752,2072,2480,2576,8064
BUF_SIZE 0 battery->phys_dev (-1),1616
BUF_SIZE 1 package s32min,(-10),1-s32max
BUF_SIZE 2 offsets 304
DATA_SOURCE 0 battery $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 package unit_byte
LOCK2 _T->lock

drivers/acpi/battery.c extract_battery_info() -> extract_package()

Type Parameter Key Value
PARAM_VALUE 0 battery 4096-ptr_max
PARAM_VALUE 0 battery->device 4096-ptr_max
PARAM_VALUE 0 battery->device->handle 0,4096-ptr_max,(-1)
PARAM_VALUE 0 battery->device->handle->common.descriptor_type 15
PARAM_VALUE 0 battery->device->status.battery_present 1
PARAM_VALUE 1 package 0,4096-ptr_max
PARAM_VALUE 2 offsets 4082940816985673728
PARAM_VALUE 3 num 20
BUF_SIZE 0 battery (-1),16,24,40,56,108-1096,1384,1600,1616,1752,2072,2480,2576,8064
BUF_SIZE 0 battery (-1),16,24,40,56,108-1096,1384,1600,1616,1752,2072,2480,2576,8064
BUF_SIZE 0 battery->phys_dev (-1),1616
BUF_SIZE 1 package s32min,(-10),1-s32max
BUF_SIZE 2 offsets 320
DATA_SOURCE 0 battery $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 package unit_byte
UNITS 3 num unit_array_size
LOCK2 _T->lock

drivers/acpi/battery.c extract_battery_info() -> extract_package()

Type Parameter Key Value
PARAM_VALUE 0 battery 4096-ptr_max
PARAM_VALUE 0 battery->device 4096-ptr_max
PARAM_VALUE 0 battery->device->handle 0,4096-ptr_max,(-1)
PARAM_VALUE 0 battery->device->handle->common.descriptor_type 15
PARAM_VALUE 0 battery->device->status.battery_present 1
PARAM_VALUE 1 package 0,4096-ptr_max
PARAM_VALUE 2 offsets 2075720838209843200
PARAM_VALUE 3 num 13
BUF_SIZE 0 battery (-1),16,24,40,56,108-1096,1384,1600,1616,1752,2072,2480,2576,8064
BUF_SIZE 0 battery (-1),16,24,40,56,108-1096,1384,1600,1616,1752,2072,2480,2576,8064
BUF_SIZE 0 battery->phys_dev (-1),1616
BUF_SIZE 1 package s32min,(-10),1-s32max
BUF_SIZE 2 offsets 208
DATA_SOURCE 0 battery $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 package unit_byte
UNITS 3 num unit_array_size
LOCK2 _T->lock