Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 16 files:

Smatch caller information:

drivers/gpio/gpio-cros-ec.c cros_ec_gpio_get() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 147
PARAM_VALUE 3 outdata 4470005315849187328
PARAM_VALUE 4 outsize 32
PARAM_VALUE 5 indata 7241584671722229760
PARAM_VALUE 6 insize 1
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 3 outdata 32
DATA_SOURCE 0 ec_dev r gpiochip_get_data
RX_PATH
TASK_NOT_RUNNING
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/gpio/gpio-cros-ec.c cros_ec_gpio_get_direction() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 147
PARAM_VALUE 3 outdata 423925452784713728
PARAM_VALUE 4 outsize 33
PARAM_VALUE 5 indata 161568172769914880
PARAM_VALUE 6 insize 40
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 3 outdata 33
BUF_SIZE 5 indata 40
DATA_SOURCE 0 ec_dev r gpiochip_get_data
RX_PATH
TASK_NOT_RUNNING
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte
HALF_LOCKED2 _T->lock

drivers/gpio/gpio-cros-ec.c cros_ec_gpio_init_names() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 147
PARAM_VALUE 3 outdata 4260771630390059008
PARAM_VALUE 4 outsize 33
PARAM_VALUE 5 indata 8180630154787209216
PARAM_VALUE 6 insize 40
BUF_SIZE 3 outdata 33
BUF_SIZE 5 indata 40
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/gpio/gpio-cros-ec.c cros_ec_gpio_ngpios() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 147
PARAM_VALUE 3 outdata 6935538152582438912
PARAM_VALUE 4 outsize 33
PARAM_VALUE 5 indata 8249692363591372800
PARAM_VALUE 6 insize 40
BUF_SIZE 3 outdata 33
BUF_SIZE 5 indata 40
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/gpio/gpio-cros-ec.c cros_ec_gpio_set() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 146
PARAM_VALUE 3 outdata 4855221353591418880
PARAM_VALUE 4 outsize 33
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 3 outdata 33
DATA_SOURCE 0 ec_dev r gpiochip_get_data
RX_PATH
TASK_NOT_RUNNING
UNITS 4 outsize unit_byte

drivers/media/cec/platform/cros-ec/cros-ec-cec.c cros_ec_cec_adap_enable() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 186
PARAM_VALUE 3 outdata 3152022395604639744
PARAM_VALUE 4 outsize 2
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
LOCK2 &adap->devnode.lock
LOCK2 &adap->lock
TYPE_LOCK (struct cec_adapter)->lock
TYPE_LOCK (struct cec_devnode)->lock

drivers/media/cec/platform/cros-ec/cros-ec-cec.c cros_ec_cec_get_num_ports() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 193
PARAM_VALUE 3 outdata 0
PARAM_VALUE 4 outsize 0
PARAM_VALUE 5 indata 9095648941208080384
PARAM_VALUE 6 insize 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 6 insize unit_byte

drivers/media/cec/platform/cros-ec/cros-ec-cec.c cros_ec_cec_get_write_cmd_version() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 0
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 8
PARAM_VALUE 3 outdata 1530094268411428864
PARAM_VALUE 4 outsize 2
PARAM_VALUE 5 indata 4097392858421047296
PARAM_VALUE 6 insize 4
BUF_SIZE 0 ec_dev 0
BUF_SIZE 3 outdata 2
BUF_SIZE 5 indata 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/media/cec/platform/cros-ec/cros-ec-cec.c cros_ec_cec_read_message() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 185
PARAM_VALUE 3 outdata 5785739836417626112
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 5335479220532449280
PARAM_VALUE 6 insize 17
BUF_SIZE 5 indata 17
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/media/cec/platform/cros-ec/cros-ec-cec.c cros_ec_cec_set_log_addr() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 186
PARAM_VALUE 3 outdata 4810573450222841856
PARAM_VALUE 4 outsize 2
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
LOCK2 &adap->lock
TYPE_LOCK (struct cec_adapter)->lock

drivers/media/cec/platform/cros-ec/cros-ec-cec.c cros_ec_cec_transmit() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 184
PARAM_VALUE 3 outdata 6552033267226329088
PARAM_VALUE 4 outsize 0-u32max
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 16
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
LOCK2 &adap->lock
TYPE_LOCK (struct cec_adapter)->lock

drivers/media/cec/platform/cros-ec/cros-ec-cec.c cros_ec_cec_transmit() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 184
PARAM_VALUE 3 outdata 5591432436958756864
PARAM_VALUE 4 outsize 18
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 18
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
LOCK2 &adap->lock
TYPE_LOCK (struct cec_adapter)->lock

drivers/platform/chrome/cros_ec_typec.c cros_typec_configure_mux() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 282
PARAM_VALUE 3 outdata 1719450032729559040
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 2710321460883693568
PARAM_VALUE 6 insize 1
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_ec_typec.c cros_typec_configure_mux() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 1539
PARAM_VALUE 3 outdata 3091210040569008128
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte

drivers/platform/chrome/cros_ec_typec.c cros_typec_enter_usb_mode() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 306
PARAM_VALUE 3 outdata 6404474234510159872
PARAM_VALUE 4 outsize 132
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 132
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/platform/chrome/cros_ec_typec.c cros_typec_get_cmd_version() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 0 ec_dev->ec 1-u64max
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 8
PARAM_VALUE 3 outdata 3086160877491769344
PARAM_VALUE 4 outsize 2
PARAM_VALUE 5 indata 3499650867577372672
PARAM_VALUE 6 insize 4
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 3 outdata 2
BUF_SIZE 5 indata 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_ec_typec.c cros_typec_handle_sop_disc() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 305
PARAM_VALUE 3 outdata 1901341657751851008
PARAM_VALUE 4 outsize 2
PARAM_VALUE 6 insize 255
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 3 outdata 2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte

drivers/platform/chrome/cros_ec_typec.c cros_typec_handle_sop_prime_disc() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 305
PARAM_VALUE 3 outdata 7571613712772734976
PARAM_VALUE 4 outsize 2
PARAM_VALUE 6 insize 255
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 3 outdata 2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte

drivers/platform/chrome/cros_ec_typec.c cros_typec_handle_status() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 307
PARAM_VALUE 3 outdata 3029426757052784640
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 7083857253860163584
PARAM_VALUE 6 insize 108
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 5 indata 108
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_ec_typec.c cros_typec_perform_role_swap() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 1-2
PARAM_VALUE 2 command 257
PARAM_VALUE 3 outdata 6378214356744847360
PARAM_VALUE 4 outsize 4
PARAM_VALUE 5 indata 4262339839612080128
PARAM_VALUE 6 insize 41
BUF_SIZE 3 outdata 4
BUF_SIZE 5 indata 41
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte
LOCK2 &of->mutex
LOCK2 &tc_port->port_type_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct typec_port)->port_type_lock

drivers/platform/chrome/cros_ec_typec.c cros_typec_perform_role_swap() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 1-2
PARAM_VALUE 2 command 257
PARAM_VALUE 3 outdata 6378214356744847360
PARAM_VALUE 4 outsize 4
PARAM_VALUE 5 indata 4262339839612080128
PARAM_VALUE 6 insize 41
BUF_SIZE 3 outdata 4
BUF_SIZE 5 indata 41
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte
LOCK2 &of->mutex
LOCK2 &tc_port->port_type_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct typec_port)->port_type_lock

drivers/platform/chrome/cros_ec_typec.c cros_typec_port_update() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 2 command 257
PARAM_VALUE 3 outdata 1542536439227486208
PARAM_VALUE 4 outsize 4
PARAM_VALUE 5 indata 2194761560463859712
PARAM_VALUE 6 insize 41
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 3 outdata 4
BUF_SIZE 5 indata 41
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_ec_typec.c cros_typec_probe() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 0 ec_dev->ec 4096-ptr_max
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 258
PARAM_VALUE 3 outdata 0
PARAM_VALUE 4 outsize 0
PARAM_VALUE 5 indata 7889242957356187648
PARAM_VALUE 6 insize 1
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_ec_typec.c cros_typec_send_clear_event() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 306
PARAM_VALUE 3 outdata 8783562921086509056
PARAM_VALUE 4 outsize 132
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 3 outdata 132
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte

drivers/platform/chrome/cros_usbpd_notify.c cros_usbpd_get_event_and_notify() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 1-u64max
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 260
PARAM_VALUE 3 outdata 0
PARAM_VALUE 4 outsize 0
PARAM_VALUE 5 indata 4177869882967719936
PARAM_VALUE 6 insize 4
BUF_SIZE 5 indata 4
DATA_SOURCE 0 ec_dev $1
UNITS 0 ec_dev unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_typec_altmode.c cros_typec_altmode_enter() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 306
PARAM_VALUE 3 outdata 3749612725934862336
PARAM_VALUE 4 outsize 132
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 132
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
HALF_LOCKED2 &dp->lock

drivers/platform/chrome/cros_typec_altmode.c cros_typec_altmode_exit() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 306
PARAM_VALUE 3 outdata 5156157867106144256
PARAM_VALUE 4 outsize 132
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 132
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
HALF_LOCKED2 &dp->lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &tbt->lock

drivers/platform/chrome/cros_ec_proto.c cros_ec_cmd_readmem() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 0 ec_dev->cmd_readmem 0
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 7
PARAM_VALUE 3 outdata 5806290668918812672
PARAM_VALUE 4 outsize 2
PARAM_VALUE 5 indata 315166177883709440,557561932118904832,6164139119630356480,7937538225700249600
PARAM_VALUE 6 insize 1-2
BUF_SIZE 3 outdata 2
BUF_SIZE 5 indata (-1),2
BUF_SIZE 5 indata (-1),2
DATA_SOURCE 0 ec_dev $0
DATA_SOURCE 5 indata $3
DATA_SOURCE 6 insize $2
HARD_MAX 6 insize 2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte

drivers/platform/chrome/cros_ec_proto.c cros_ec_get_cmd_versions() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 8
PARAM_VALUE 3 outdata 869985473974571008
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 7168428116304146432
PARAM_VALUE 6 insize 4
BUF_SIZE 5 indata 4
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_ec_proto.c cros_ec_get_cmd_versions() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 8
PARAM_VALUE 3 outdata 3156630568882728960
PARAM_VALUE 4 outsize 2
PARAM_VALUE 5 indata 7168428116304146432
PARAM_VALUE 6 insize 4
BUF_SIZE 3 outdata 2
BUF_SIZE 5 indata 4
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_ec_proto.c cros_ec_read_features() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 3 outdata 0
PARAM_VALUE 4 outsize 0
PARAM_VALUE 5 indata 4096-ptr_max
PARAM_VALUE 6 insize 8
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 5 indata 8
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 6 insize unit_byte

drivers/leds/leds-cros_ec.c cros_ec_led_send_cmd() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 41
PARAM_VALUE 4 outsize 8
PARAM_VALUE 6 insize 6
BUF_SIZE 3 outdata 8
BUF_SIZE 5 indata 6
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte
HALF_LOCKED2 &led_cdev->trigger_lock

drivers/regulator/cros-ec-regulator.c cros_ec_regulator_disable() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 301
PARAM_VALUE 3 outdata 4531940830996029440
PARAM_VALUE 4 outsize 5
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 5
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte

drivers/regulator/cros-ec-regulator.c cros_ec_regulator_enable() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 301
PARAM_VALUE 3 outdata 2720145935720177664
PARAM_VALUE 4 outsize 5
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 5
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte

drivers/regulator/cros-ec-regulator.c cros_ec_regulator_get_voltage() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 304
PARAM_VALUE 3 outdata 2935592678735798272
PARAM_VALUE 4 outsize 4
PARAM_VALUE 5 indata 3545470014111526912
PARAM_VALUE 6 insize 4
BUF_SIZE 3 outdata 4
BUF_SIZE 5 indata 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/regulator/cros-ec-regulator.c cros_ec_regulator_init_info() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 300
PARAM_VALUE 3 outdata 1256864538945646592
PARAM_VALUE 4 outsize 4
PARAM_VALUE 5 indata 3077200510892556288
PARAM_VALUE 6 insize 50
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 3 outdata 4
BUF_SIZE 5 indata 50
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/regulator/cros-ec-regulator.c cros_ec_regulator_is_enabled() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 302
PARAM_VALUE 3 outdata 5754089617398501376
PARAM_VALUE 4 outsize 4
PARAM_VALUE 5 indata 1761143121851637760
PARAM_VALUE 6 insize 1
BUF_SIZE 3 outdata 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/regulator/cros-ec-regulator.c cros_ec_regulator_set_voltage() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 303
PARAM_VALUE 3 outdata 7995663028230926336
PARAM_VALUE 4 outsize 12
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 12
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte

drivers/usb/typec/ucsi/cros_ec_ucsi.c cros_ucsi_async_control() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 320
PARAM_VALUE 3 outdata 5004777174387425280
PARAM_VALUE 4 outsize 10
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 10
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
HALF_LOCKED2 &ucsi->ppm_lock

drivers/usb/typec/ucsi/cros_ec_ucsi.c cros_ucsi_read() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 321
PARAM_VALUE 3 outdata 2427396339068223488
PARAM_VALUE 4 outsize 3
PARAM_VALUE 5 indata 1-u64max
PARAM_VALUE 6 insize 0-2,4-6,8,12-16,24,28
BUF_SIZE 3 outdata 3
BUF_SIZE 5 indata (-1),2,4-6,8,12,16,24
BUF_SIZE 5 indata (-1),2,4-6,8,12,16,24
CAPPED_DATA 6 insize 1
CAPPED_DATA 6 insize 1
DATA_SOURCE 5 indata $2
DATA_SOURCE 6 insize $3
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/mfd/cros_ec_dev.c ec_device_probe() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev->dev 4096-ptr_max
PARAM_VALUE 0 ec_dev->dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 ec_dev->dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 ec_dev->dout->hdr.channel 1
PARAM_VALUE 0 ec_dev->dout->token 0-255
PARAM_VALUE 0 ec_dev->lock.dep_map->name 0-255
PARAM_VALUE 0 ec_dev->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ec_dev->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ec_dev->priv->high_pri_worker->lock.owner (-1)
PARAM_VALUE 0 ec_dev->priv->high_pri_worker->lock.owner_cpu 4294967295
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 308
PARAM_VALUE 3 outdata 0
PARAM_VALUE 4 outsize 0
PARAM_VALUE 5 indata 2044523049248710656
PARAM_VALUE 6 insize 1
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
BUF_SIZE 0 ec_dev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_typec_switch.c cros_typec_check_event() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 307
PARAM_VALUE 3 outdata 6547927900846845952
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 3887820669223354368
PARAM_VALUE 6 insize 108
BUF_SIZE 5 indata 108
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte
HALF_LOCKED2 &pool->lock

drivers/platform/chrome/cros_typec_switch.c cros_typec_cmd_mux_set() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 306
PARAM_VALUE 3 outdata 5860749923215425536
PARAM_VALUE 4 outsize 132
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 132
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
HALF_LOCKED2 &pool->lock

drivers/platform/chrome/cros_typec_switch.c cros_typec_send_clear_event() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 306
PARAM_VALUE 3 outdata 4896579225775923200
PARAM_VALUE 4 outsize 132
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 132
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
HALF_LOCKED2 &pool->lock

drivers/hwmon/cros_ec_hwmon.c cros_ec_hwmon_probe_temp_sensors() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev->cmd_readmem 1-u64max
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 112
PARAM_VALUE 3 outdata 8622893665684307968
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 6701642955519741952
PARAM_VALUE 6 insize 33
BUF_SIZE 5 indata 33
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/hwmon/cros_ec_hwmon.c cros_ec_hwmon_read_fan_target() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 32
PARAM_VALUE 3 outdata 0
PARAM_VALUE 4 outsize 0
PARAM_VALUE 5 indata 4008178463945269248
PARAM_VALUE 6 insize 4
BUF_SIZE 5 indata 4
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 6 insize unit_byte
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/hwmon/cros_ec_hwmon.c cros_ec_hwmon_read_pwm_enable() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 2
PARAM_VALUE 2 command 82
PARAM_VALUE 3 outdata 1024733355531857920
PARAM_VALUE 4 outsize 3
PARAM_VALUE 5 indata 6360889036149342208
PARAM_VALUE 6 insize 1
BUF_SIZE 3 outdata 3
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/hwmon/cros_ec_hwmon.c cros_ec_hwmon_read_pwm_value() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 39
PARAM_VALUE 3 outdata 65247895029551104
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 365035480942292992
PARAM_VALUE 6 insize 4
BUF_SIZE 5 indata 4
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte
HALF_LOCKED2 &hwdev->lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/hwmon/cros_ec_hwmon.c cros_ec_hwmon_read_temp_threshold() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 81
PARAM_VALUE 3 outdata 907327500155637760
PARAM_VALUE 4 outsize 4
PARAM_VALUE 5 indata 5419935792037515264
PARAM_VALUE 6 insize 32
BUF_SIZE 3 outdata 4
BUF_SIZE 5 indata 32
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/hwmon/cros_ec_hwmon.c cros_ec_hwmon_set_fan_pwm_val() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 1
PARAM_VALUE 2 command 36
PARAM_VALUE 3 outdata 6680054983083425792
PARAM_VALUE 4 outsize 5
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 5
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte

drivers/hwmon/cros_ec_hwmon.c cros_ec_hwmon_write_pwm_enable() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 2
PARAM_VALUE 2 command 82
PARAM_VALUE 3 outdata 6218060040687538176
PARAM_VALUE 4 outsize 3
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 3
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/cros_charge-control.c cros_chctl_send_charge_control_cmd() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 2 command 150
PARAM_VALUE 3 outdata 419315685555843072
PARAM_VALUE 4 outsize 0-255
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
DATA_SOURCE 0 ec_dev $0
DATA_SOURCE 1 version $1
DATA_SOURCE 3 outdata $2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
LOCK2 _T->lock

drivers/platform/chrome/cros_ec_sysfs.c usbpdmuxinfo_show() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 258
PARAM_VALUE 3 outdata 0
PARAM_VALUE 4 outsize 0
PARAM_VALUE 5 indata 4779700105945616384
PARAM_VALUE 6 insize 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 6 insize unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/platform/chrome/cros_ec_sysfs.c usbpdmuxinfo_show() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev->dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 ec_dev->dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 ec_dev->lock.dep_map->name 0-255
PARAM_VALUE 0 ec_dev->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ec_dev->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ec_dev->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->blocked_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 ec_dev->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ec_dev->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ec_dev->priv->adapter->dev.driver_data->mutex->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 ec_dev->priv->high_pri_worker->lock.owner (-1)
PARAM_VALUE 0 ec_dev->priv->high_pri_worker->lock.owner_cpu 4294967295
PARAM_VALUE 0 ec_dev->priv->high_pri_worker->task->delays->lock.owner (-1)
PARAM_VALUE 0 ec_dev->priv->xfer_ack.wait.lock.owner (-1)
PARAM_VALUE 0 ec_dev->priv->xfer_ack.wait.lock.owner_cpu 4294967295
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 282
PARAM_VALUE 3 outdata 4153437847392882688
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 3902487290517569536
PARAM_VALUE 6 insize 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/platform/chrome/cros_ec_proto_test.c cros_ec_proto_test_ec_cmd() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 0 ec_dev->max_request 255
PARAM_VALUE 0 ec_dev->max_response 238
PARAM_VALUE 1 version 136
PARAM_VALUE 2 command 119
PARAM_VALUE 3 outdata 4096-ptr_max
PARAM_VALUE 4 outsize 3
PARAM_VALUE 5 indata 1088991482042179584
PARAM_VALUE 6 insize 2
BUF_SIZE 0 ec_dev 704
BUF_SIZE 3 outdata 3
BUF_SIZE 5 indata 2
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_typec_vdm.c cros_typec_handle_vdm_attention() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 316
PARAM_VALUE 3 outdata 7647398034655793152
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 4020714908366188544
PARAM_VALUE 6 insize 44
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 5 indata 44
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_typec_vdm.c cros_typec_handle_vdm_response() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 316
PARAM_VALUE 3 outdata 5074401970401894400
PARAM_VALUE 4 outsize 1
PARAM_VALUE 5 indata 3279006244732653568
PARAM_VALUE 6 insize 44
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 5 indata 44
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
UNITS 6 insize unit_byte

drivers/platform/chrome/cros_typec_vdm.c cros_typec_port_amode_enter() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 306
PARAM_VALUE 3 outdata 1812163806025461760
PARAM_VALUE 4 outsize 132
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 132
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
HALF_LOCKED2 &dp->lock

drivers/platform/chrome/cros_typec_vdm.c cros_typec_port_amode_vdm() -> cros_ec_cmd()

Type Parameter Key Value
PARAM_VALUE 1 version 0
PARAM_VALUE 2 command 306
PARAM_VALUE 3 outdata 8545321092808998912
PARAM_VALUE 4 outsize 132
PARAM_VALUE 5 indata 0
PARAM_VALUE 6 insize 0
BUF_SIZE 3 outdata 132
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte
UNITS 4 outsize unit_byte
HALF_LOCKED2 &data->lock
HALF_LOCKED2 &dp->lock