Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

drivers/platform/chrome/cros_usbpd_notify.c cros_usbpd_notify_plat() -> cros_ec_get_host_event()

Type Parameter Key Value
DATA_SOURCE 0 ec_dev $2

drivers/rtc/rtc-cros-ec.c cros_ec_rtc_event() -> cros_ec_get_host_event()

Type Parameter Key Value
UNITS 0 ec_dev unit_byte

drivers/platform/chrome/cros_ec_proto.c cros_ec_get_next_event() -> cros_ec_get_host_event()

Type Parameter Key Value
PARAM_VALUE 0 ec_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->checksum 0-255
PARAM_VALUE 0 ec_dev->dout->command 0-u16max
PARAM_VALUE 0 ec_dev->dout->command_version 0-255
PARAM_VALUE 0 ec_dev->dout->data_len 0-u16max
PARAM_VALUE 0 ec_dev->dout->reserved 0
PARAM_VALUE 0 ec_dev->dout->struct_version 3
PARAM_VALUE 0 ec_dev->event_data.event_type 0-127
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->suspended 0
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
BUF_SIZE 0 ec_dev s32min-(-1),1-s32max
DATA_SOURCE 0 ec_dev $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec_dev unit_byte

drivers/extcon/extcon-usbc-cros-ec.c extcon_cros_ec_event() -> cros_ec_get_host_event()

Type Parameter Key Value
UNITS 0 ec_dev unit_byte

sound/soc/codecs/cros_ec_codec.c wov_host_event() -> cros_ec_get_host_event()

Type Parameter Key Value
UNITS 0 ec_dev unit_byte

drivers/platform/chrome/cros_ec.c cros_ec_ready_event() -> cros_ec_get_host_event()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max

drivers/platform/chrome/cros_ec_proto_test.c cros_ec_proto_test_get_host_event_no_mkbp_event() -> cros_ec_get_host_event()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 0 ec_dev->mkbp_event_supported 0
BUF_SIZE 0 ec_dev 704

drivers/platform/chrome/cros_ec_proto_test.c cros_ec_proto_test_get_host_event_normal() -> cros_ec_get_host_event()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 0 ec_dev->event_data.data.host_event 33554432
PARAM_VALUE 0 ec_dev->event_data.event_type 1
PARAM_VALUE 0 ec_dev->event_size 4
PARAM_VALUE 0 ec_dev->mkbp_event_supported 1
BUF_SIZE 0 ec_dev 704

drivers/platform/chrome/cros_ec_proto_test.c cros_ec_proto_test_get_host_event_not_host_event() -> cros_ec_get_host_event()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 0 ec_dev->event_data.event_type 5
PARAM_VALUE 0 ec_dev->mkbp_event_supported 1
BUF_SIZE 0 ec_dev 704

drivers/platform/chrome/cros_ec_proto_test.c cros_ec_proto_test_get_host_event_wrong_event_size() -> cros_ec_get_host_event()

Type Parameter Key Value
PARAM_VALUE 0 ec_dev 4096-ptr_max
PARAM_VALUE 0 ec_dev->event_data.event_type 1
PARAM_VALUE 0 ec_dev->event_size 255
PARAM_VALUE 0 ec_dev->mkbp_event_supported 1
BUF_SIZE 0 ec_dev 704