Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/platform/chrome/cros_ec_proto.c cros_ec_cmd_xfer() -> cros_ec_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 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.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ec_dev->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ec_dev->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ec_dev->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->insize | 0-u16max |
| PARAM_VALUE | 1 | msg->outsize | 0-u16max |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->dev | (-1),1616 |
| BUF_SIZE | 0 | ec_dev->ec | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->pd | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->phys_name | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->priv | (-1),32,48,152,200,800 |
| BUF_SIZE | 1 | msg | (-1),20-s32max |
| BUF_SIZE | 1 | msg | (-1),20-s32max |
| BUF_SIZE | 1 | msg->data | (-1),13-u16max |
| CAPPED_DATA | 0 | &ec_dev->lock | 1 |
| CAPPED_DATA | 1 | msg->insize | 1 |
| CAPPED_DATA | 1 | msg->outsize | 1 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | msg->command | 0-u32max |
| USER_DATA | 1 | msg->insize | 0-u16max[c] |
| USER_DATA | 1 | msg->outsize | 0-u16max[c] |
| USER_DATA | 1 | msg->result | 0-u32max |
| USER_DATA | 1 | msg->version | 0-u32max |
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->event_size | |
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->event_size->msg.outsize | |
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->irq | |
| NO_OVERFLOW_SIMPLE | 1 | msg->data->reboot_timeout_sec | |
| UNITS | 0 | ec_dev | unit_byte |
| USER_PTR | 1 | msg | |
| USER_PTR | 1 | msg->data | |
| LOCK2 | 0 | &ec_dev->lock | |
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct cros_ec_device)->lock |
drivers/platform/chrome/cros_ec_proto.c cros_ec_get_host_command_version_mask() -> cros_ec_send_command()
| 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->priv->high_pri_worker->lock.owner | (-1) |
| PARAM_VALUE | 0 | ec_dev->priv->high_pri_worker->lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->command | 8 |
| PARAM_VALUE | 1 | msg->data | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->data->cmd | 103,169 |
| PARAM_VALUE | 1 | msg->insize | 4 |
| PARAM_VALUE | 1 | msg->outsize | 1 |
| PARAM_VALUE | 1 | msg->version | 0 |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->dev | (-1),1616 |
| BUF_SIZE | 0 | ec_dev->ec | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->pd | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->phys_name | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->priv | (-1),32,48,152,200,800 |
| BUF_SIZE | 1 | msg | 24 |
| BUF_SIZE | 1 | msg | 24 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->event_size | |
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->event_size->msg.outsize | |
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->irq | |
| UNITS | 0 | ec_dev | unit_byte |
| HALF_LOCKED2 | 0 | &ec_dev->lock |
drivers/platform/chrome/cros_ec_proto.c cros_ec_get_host_event_wake_mask() -> cros_ec_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->dev->devres_head.prev | 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->din | 1-u64max |
| 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_protocol | 218 |
| 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->mkbp_event_supported | 0-32 |
| PARAM_VALUE | 0 | ec_dev->priv->adapter->bus_lock.dep_map->name | 0-255 |
| 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.dep_map->name | 0-255 |
| 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->se.avg.util_avg | 0-4294967295 |
| PARAM_VALUE | 0 | ec_dev->priv->xfer_ack.wait.lock.dep_map->name | 0-255 |
| 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 | 0 | ec_dev->proto_version | 0-3,u16max |
| PARAM_VALUE | 0 | *ec_dev->priv->high_pri_worker->task->delays->lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->command | 141 |
| PARAM_VALUE | 1 | msg->insize | 4 |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->dev | (-1),1616 |
| BUF_SIZE | 0 | ec_dev->ec | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->pd | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->phys_name | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->priv | (-1),32,48,152,200,800 |
| BUF_SIZE | 1 | msg | 24 |
| BUF_SIZE | 1 | msg | 24 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | r _kzalloc_noprof |
| FUZZY_MAX | 0 | ec_dev->mkbp_event_supported | 0 |
| MEM_ZERO | 0 | ec_dev->din | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->irq | |
| UNITS | 0 | ec_dev | unit_byte |
| HALF_LOCKED2 | 0 | &ec_dev->lock |
drivers/platform/chrome/cros_ec_proto.c cros_ec_get_proto_info() -> cros_ec_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->proto_version | 3 |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->command | 11-16395 |
| PARAM_VALUE | 1 | msg->insize | 12 |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->dev | (-1),1616 |
| BUF_SIZE | 0 | ec_dev->ec | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->pd | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->phys_name | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->priv | (-1),32,48,152,200,800 |
| BUF_SIZE | 1 | msg | 32 |
| BUF_SIZE | 1 | msg | 32 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | r _kzalloc_noprof |
| BIT_INFO | 1 | msg->command | 0xb,0x7fff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->irq | |
| UNITS | 0 | ec_dev | unit_byte |
| HALF_LOCKED2 | 0 | &ec_dev->lock |
drivers/platform/chrome/cros_ec_proto.c cros_ec_get_proto_info_legacy() -> cros_ec_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->proto_version | 2 |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->command | 1 |
| PARAM_VALUE | 1 | msg->data | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->data->in_data | 2695938256 |
| PARAM_VALUE | 1 | msg->insize | 4 |
| PARAM_VALUE | 1 | msg->outsize | 4 |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->dev | (-1),1616 |
| BUF_SIZE | 0 | ec_dev->ec | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->pd | (-1),1688 |
| BUF_SIZE | 0 | ec_dev->phys_name | s32min,(-10),(-1),1-s32max |
| BUF_SIZE | 0 | ec_dev->priv | (-1),32,48,152,200,800 |
| BUF_SIZE | 1 | msg | 24 |
| BUF_SIZE | 1 | msg | 24 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->irq | |
| UNITS | 0 | ec_dev | unit_byte |
| HALF_LOCKED2 | 0 | &ec_dev->lock |
drivers/platform/chrome/cros_ec_proto.c cros_ec_rwsig_continue() -> cros_ec_send_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->cmd_xfer | 0,3032014875863977984,7445685880939843584,7613030489632694272,8241043043917668352 |
| PARAM_VALUE | 0 | ec_dev->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->din | 1-u64max |
| PARAM_VALUE | 0 | ec_dev->din_size | 52 |
| PARAM_VALUE | 0 | ec_dev->dout_size | 16 |
| PARAM_VALUE | 0 | ec_dev->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ec_dev->lock.first_waiter | 0 |
| PARAM_VALUE | 0 | ec_dev->lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->lock.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | ec_dev->lock.owner.counter | 0 |
| PARAM_VALUE | 0 | ec_dev->lockdep_key.hash_entry.pprev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->max_request | 4 |
| PARAM_VALUE | 0 | ec_dev->max_response | 12 |
| PARAM_VALUE | 0 | ec_dev->pkt_xfer | 2952685917283229696,3085969460950216704,3089999660068601856,8052624657669505024,8664887773882155008,8826154117102714880 |
| PARAM_VALUE | 0 | ec_dev->priv | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->proto_version | 3 |
| PARAM_VALUE | 0 | ec_dev->suspend_timeout_ms | 0 |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->command | 285 |
| PARAM_VALUE | 1 | msg->data | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->data->action | 1 |
| PARAM_VALUE | 1 | msg->insize | 0 |
| PARAM_VALUE | 1 | msg->outsize | 4 |
| PARAM_VALUE | 1 | msg->version | 0 |
| BUF_SIZE | 0 | ec_dev | 704 |
| BUF_SIZE | 0 | ec_dev->dev | 1616 |
| BUF_SIZE | 0 | ec_dev->phys_name | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | ec_dev->priv | (-1),32,48,152,200,800 |
| BUF_SIZE | 1 | msg | 24 |
| BUF_SIZE | 1 | msg | 24 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->irq |