Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 8 files:
- drivers/platform/chrome/cros_ec_i2c.c, line 97
- drivers/platform/chrome/cros_ec_ishtp.c, line 499
- drivers/platform/chrome/cros_ec_lpc.c, line 237
- drivers/platform/chrome/cros_ec_proto.c, line 211
- drivers/platform/chrome/cros_ec_proto_test.c
- drivers/platform/chrome/cros_ec_rpmsg.c, line 91
- drivers/platform/chrome/cros_ec_spi.c
- drivers/platform/chrome/cros_ec_uart.c, line 140
Smatch caller information:
drivers/platform/chrome/cros_ec_uart.c cros_ec_uart_pkt_xfer() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->priv | 4096-ptr_max |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->insize | 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 | 1 | msg->insize | 1 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *ec_dev->dout | 0-255 |
| 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->irq | |
| NO_OVERFLOW_SIMPLE | 1 | msg->data->reboot_timeout_sec | |
| USER_PTR | 1 | msg | |
| USER_PTR | 1 | msg->data | |
| HALF_LOCKED2 | 0 | &ec_dev->lock |
drivers/platform/chrome/cros_ec_lpc.c cros_ec_pkt_xfer_lpc() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->insize | 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 | 1 | msg->insize | 1 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *ec_dev->dout | 0-255 |
| 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->irq | |
| NO_OVERFLOW_SIMPLE | 1 | msg->data->reboot_timeout_sec | |
| USER_PTR | 1 | msg | |
| USER_PTR | 1 | msg->data | |
| HALF_LOCKED2 | 0 | &ec_dev->lock |
drivers/platform/chrome/cros_ec_rpmsg.c cros_ec_pkt_xfer_rpmsg() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->insize | 0-u16max |
| PARAM_VALUE | 1 | msg->result | 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 | (-1),20-s32max |
| BUF_SIZE | 1 | msg | (-1),20-s32max |
| BUF_SIZE | 1 | msg->data | (-1),13-u16max |
| CAPPED_DATA | 1 | msg->insize | 1 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *ec_dev->dout | 0-255 |
| 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->version | 0-u32max |
| NO_OVERFLOW_SIMPLE | 0 | ec_dev->irq | |
| NO_OVERFLOW_SIMPLE | 1 | msg->data->reboot_timeout_sec | |
| USER_PTR | 1 | msg | |
| USER_PTR | 1 | msg->data | |
| HALF_LOCKED2 | 0 | &ec_dev->lock |
drivers/platform/chrome/cros_ec_spi.c do_cros_ec_cmd_xfer_spi() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | $1 |
drivers/platform/chrome/cros_ec_spi.c do_cros_ec_pkt_xfer_spi() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | $1 |
drivers/platform/chrome/cros_ec_ishtp.c cros_ec_pkt_xfer_ish() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->din_size | s32min-(-1),12-s32max |
| PARAM_VALUE | 0 | ec_dev->dout->hdr.channel | 1 |
| PARAM_VALUE | 0 | ec_dev->dout->hdr.status | 0 |
| PARAM_VALUE | 0 | ec_dev->dout_size | s32min-(-1),12-s32max |
| PARAM_VALUE | 0 | ec_dev->priv | 4096-ptr_max |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->insize | 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 | 1 | msg->insize | 1 |
| DATA_SOURCE | 0 | ec_dev | $0 |
| DATA_SOURCE | 1 | msg | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *ec_dev->dout | 0-255 |
| 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->irq | |
| NO_OVERFLOW_SIMPLE | 1 | msg->data->reboot_timeout_sec | |
| USER_PTR | 1 | msg | |
| USER_PTR | 1 | msg->data | |
| LOCK2 | global &init_lock | ||
| HALF_LOCKED2 | 0 | &ec_dev->lock |
drivers/platform/chrome/cros_ec_i2c.c cros_ec_pkt_xfer_i2c() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->din_size | 10-s32max |
| PARAM_VALUE | 0 | ec_dev->dout | 4097-18446744073709547521 |
| PARAM_VALUE | 0 | ec_dev->priv | 4096-ptr_max |
| PARAM_VALUE | 1 | msg | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->insize | 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 | 1 | msg->insize | 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->irq | |
| NO_OVERFLOW_SIMPLE | 1 | msg->data->reboot_timeout_sec | |
| USER_PTR | 1 | msg | |
| USER_PTR | 1 | msg->data | |
| HALF_LOCKED2 | 0 | &ec_dev->lock |
drivers/platform/chrome/cros_ec_proto_test.c cros_ec_proto_test_prepare_tx_bad_msg_outsize() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| BUF_SIZE | 0 | ec_dev | 704 |
drivers/platform/chrome/cros_ec_proto_test.c cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->proto_version | 2 |
| PARAM_VALUE | 1 | msg->outsize | 253 |
| BUF_SIZE | 0 | ec_dev | 704 |
drivers/platform/chrome/cros_ec_proto_test.c cros_ec_proto_test_prepare_tx_legacy_normal() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | ec_dev->proto_version | 2 |
| PARAM_VALUE | 1 | msg->command | 1 |
| PARAM_VALUE | 1 | msg->data | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->outsize | 252 |
| BUF_SIZE | 0 | ec_dev | 704 |
drivers/platform/chrome/cros_ec_proto_test.c cros_ec_proto_test_prepare_tx_normal() -> cros_ec_prepare_tx()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->command | 1 |
| PARAM_VALUE | 1 | msg->data | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->outsize | 136 |
| BUF_SIZE | 0 | ec_dev | 704 |