Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 7 files:

Smatch caller information:

drivers/platform/x86/xo1-rfkill.c rfkill_set_block() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 37,53
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 0
PARAM_VALUE 4 outlen 0
FUZZY_MAX 0 cmd 53
BIT_INFO 0 cmd 0x25,0x35
HARD_MAX 0 cmd 53
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &rfkill_global_mutex

drivers/platform/olpc/olpc-ec.c ec_dbgfs_cmd_write() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 inbuf 0,9062796442818195457
PARAM_VALUE 2 inlen 0-2147483646,18446744071562067968-u64max
PARAM_VALUE 3 outbuf 6388142495567900672
PARAM_VALUE 4 outlen 0-8
BUF_SIZE 1 inbuf 0,5
BUF_SIZE 3 outbuf 8
CAPPED_DATA 2 inlen 1
FUZZY_MAX 4 outlen 8
BIT_INFO 1 inbuf 0x0,0x7dc5855915da3001
HARD_MAX 4 outlen 8
NOCHECK_CALL
LOCK2 global &ec_dbgfs_lock

drivers/platform/olpc/olpc-ec.c olpc_ec_mask_write() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 56
PARAM_VALUE 1 inbuf 4653266647474982912
PARAM_VALUE 2 inlen 2
PARAM_VALUE 3 outbuf 0
PARAM_VALUE 4 outlen 0
BUF_SIZE 1 inbuf 2
RX_PATH
TASK_NOT_RUNNING

drivers/platform/olpc/olpc-ec.c olpc_ec_mask_write() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 27
PARAM_VALUE 1 inbuf 1334281144548556800
PARAM_VALUE 2 inlen 1
PARAM_VALUE 3 outbuf 0
PARAM_VALUE 4 outlen 0
RX_PATH
TASK_NOT_RUNNING

drivers/platform/olpc/olpc-ec.c olpc_ec_probe() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 8
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 4096-ptr_max
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING

drivers/platform/olpc/olpc-ec.c olpc_ec_sci_query() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 133
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 610371892300292096
PARAM_VALUE 4 outlen 2
BUF_SIZE 3 outbuf 2

drivers/platform/olpc/olpc-ec.c olpc_ec_sci_query() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 132
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 853420490154024960
PARAM_VALUE 4 outlen 1

drivers/platform/olpc/olpc-ec.c olpc_ec_set_dcon_power() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 38
PARAM_VALUE 1 inbuf 2479782778490679296
PARAM_VALUE 1 *inbuf 0-1
PARAM_VALUE 2 inlen 1
PARAM_VALUE 3 outbuf 0
PARAM_VALUE 4 outlen 0
RX_PATH
TASK_NOT_RUNNING

drivers/power/supply/olpc_battery.c olpc_ac_get_prop() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 21
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 8302311296815091712
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock

drivers/power/supply/olpc_battery.c olpc_bat_eeprom_read() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 24
PARAM_VALUE 1 inbuf 4403881807133155328
PARAM_VALUE 2 inlen 1
PARAM_VALUE 3 outbuf 4096-ptr_max
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *inbuf 0-255[c]
USER_PTR 1 inbuf
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/olpc_battery.c olpc_bat_error_read() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 31
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 6971778852843331584
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/olpc_battery.c olpc_bat_get_charge_full_design() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 24
PARAM_VALUE 1 inbuf 5402156541508403200
PARAM_VALUE 1 *inbuf 95
PARAM_VALUE 2 inlen 1
PARAM_VALUE 3 outbuf 5402156541508403200
PARAM_VALUE 3 *outbuf 95
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_charge_now() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 22
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 7613169213176471552
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_health() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 31
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 6276670916607909888
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_mfr() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 24
PARAM_VALUE 1 inbuf 2819398875896340480
PARAM_VALUE 1 *inbuf 95
PARAM_VALUE 2 inlen 1
PARAM_VALUE 3 outbuf 2819398875896340480
PARAM_VALUE 3 *outbuf 95
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_property() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 21
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 722529789537742848
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_property() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 16
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 8376122271870545920
PARAM_VALUE 4 outlen 2
BUF_SIZE 3 outbuf 2
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_property() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 17
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 8376122271870545920
PARAM_VALUE 4 outlen 2
BUF_SIZE 3 outbuf 2
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_property() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 22
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 722529789537742848
PARAM_VALUE 3 *outbuf 1-255
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_property() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 19
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 8376122271870545920
PARAM_VALUE 4 outlen 2
BUF_SIZE 3 outbuf 2
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_property() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 20
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 8376122271870545920
PARAM_VALUE 4 outlen 2
BUF_SIZE 3 outbuf 2
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_property() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 18
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 8376122271870545920
PARAM_VALUE 4 outlen 2
BUF_SIZE 3 outbuf 2
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_property() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 23
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 1865646227804733440
PARAM_VALUE 4 outlen 8
BUF_SIZE 3 outbuf 8
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_tech() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 24
PARAM_VALUE 1 inbuf 7768147530811305984
PARAM_VALUE 1 *inbuf 95
PARAM_VALUE 2 inlen 1
PARAM_VALUE 3 outbuf 7768147530811305984
PARAM_VALUE 3 *outbuf 95
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock

drivers/power/supply/olpc_battery.c olpc_bat_get_voltage_max_design() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 24
PARAM_VALUE 1 inbuf 305602499884855296
PARAM_VALUE 1 *inbuf 95
PARAM_VALUE 2 inlen 1
PARAM_VALUE 3 outbuf 305602499884855296
PARAM_VALUE 3 *outbuf 95
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock

drivers/power/supply/olpc_battery.c olpc_battery_probe() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 8
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 7389997008235261952
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING

drivers/power/supply/olpc_battery.c olpc_battery_probe() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 21
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 4910783379512147968
PARAM_VALUE 4 outlen 1
RX_PATH
TASK_NOT_RUNNING

drivers/platform/olpc/olpc-xo175-ec.c olpc_xo175_ec_power_off() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 76
PARAM_VALUE 1 inbuf 0
PARAM_VALUE 2 inlen 0
PARAM_VALUE 3 outbuf 0
PARAM_VALUE 4 outlen 0
NOCHECK_CALL

drivers/platform/olpc/olpc-xo175-ec.c olpc_xo175_ec_resume() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 101
PARAM_VALUE 1 inbuf 1477472297402105856
PARAM_VALUE 1 *inbuf 0
PARAM_VALUE 2 inlen 1
PARAM_VALUE 3 outbuf 0
PARAM_VALUE 4 outlen 0
NOCHECK_CALL

drivers/platform/olpc/olpc-xo175-ec.c olpc_xo175_ec_set_event_mask() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 56
PARAM_VALUE 1 inbuf 4096-ptr_max
PARAM_VALUE 2 inlen 2
PARAM_VALUE 3 outbuf 0
PARAM_VALUE 4 outlen 0
BUF_SIZE 1 inbuf 2
RX_PATH
TASK_NOT_RUNNING

drivers/platform/olpc/olpc-xo175-ec.c olpc_xo175_ec_suspend() -> olpc_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 cmd 101
PARAM_VALUE 1 inbuf 2115679009616273408
PARAM_VALUE 2 inlen 5
PARAM_VALUE 3 outbuf 0
PARAM_VALUE 4 outlen 0
BUF_SIZE 1 inbuf 5
NOCHECK_CALL
UNITS 2 inlen unit_byte