Documented in 2 files:
- drivers/platform/chrome/cros_ec_lpc_mec.c, line 111
- drivers/platform/chrome/cros_ec_lpc_mec.h, line 70
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/platform/chrome/cros_ec_lpc.c
- drivers/platform/chrome/cros_ec_lpc_mec.c, line 199
- drivers/platform/chrome/wilco_ec/mailbox.c
Smatch caller information:
drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_mec_read_bytes() -> cros_ec_lpc_io_bytes_mec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io_type | 0 |
| PARAM_VALUE | 1 | offset | 0-63486,4294965249-u32max |
| BUF_SIZE | 3 | buf | (-1),2,4,8,13-u16max |
| BUF_SIZE | 3 | buf | (-1),2,4,8,13-u16max |
| CAPPED_DATA | 1 | offset | 1 |
| CAPPED_DATA | 2 | length | 1 |
| DATA_SOURCE | 2 | length | $2 |
| DATA_SOURCE | 3 | buf | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | offset | 0-63486,4294965249-u32max |
| USER_DATA | 2 | length | 1-255[c] |
| USER_DATA | 3 | *buf | 0-255 |
| USER_PTR | 3 | buf | |
| HALF_LOCKED2 | _T->lock |
drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_mec_write_bytes() -> cros_ec_lpc_io_bytes_mec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io_type | 1 |
| PARAM_VALUE | 1 | offset | 0,4,4294965764 |
| PARAM_VALUE | 2 | length | 0-s32max |
| BUF_SIZE | 3 | buf | s32min-(-1),1-s32max |
| BUF_SIZE | 3 | buf | s32min-(-1),1-s32max |
| CAPPED_DATA | 1 | offset | 1 |
| CAPPED_DATA | 2 | length | 1 |
| DATA_SOURCE | 2 | length | $2 |
| DATA_SOURCE | 3 | buf | $3 |
| FUZZY_MAX | 2 | length | 252 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | length | 0-65543[c] |
| USER_DATA | 3 | *buf | 0-255 |
| USER_PTR | 3 | buf | |
| HALF_LOCKED2 | &ec->lock |
drivers/platform/chrome/wilco_ec/mailbox.c wilco_ec_transfer() -> cros_ec_lpc_io_bytes_mec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io_type | 1 |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | length | 8 |
| PARAM_VALUE | 3 | buf | 4096-ptr_max |
| BUF_SIZE | 3 | buf | (-1),40 |
| BUF_SIZE | 3 | buf | (-1),40 |
| DATA_SOURCE | 3 | buf | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | length | unit_byte |
| LOCK2 | &ec->mailbox_lock | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct wilco_ec_device)->mailbox_lock |
drivers/platform/chrome/wilco_ec/mailbox.c wilco_ec_transfer() -> cros_ec_lpc_io_bytes_mec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io_type | 1 |
| PARAM_VALUE | 1 | offset | 8 |
| PARAM_VALUE | 2 | length | 1-32 |
| PARAM_VALUE | 3 | buf | 4096-ptr_max |
| BUF_SIZE | 3 | buf | 3,8,11,32 |
| CAPPED_DATA | 2 | length | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | length | unit_byte |
| LOCK2 | &ec->mailbox_lock | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct wilco_ec_device)->mailbox_lock |
drivers/platform/chrome/wilco_ec/mailbox.c wilco_ec_transfer() -> cros_ec_lpc_io_bytes_mec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | io_type | 0 |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | length | 40 |
| PARAM_VALUE | 3 | buf | 4096-ptr_max |
| BUF_SIZE | 3 | buf | (-1),40 |
| BUF_SIZE | 3 | buf | (-1),40 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | length | unit_byte |
| LOCK2 | &ec->mailbox_lock | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct wilco_ec_device)->mailbox_lock |