Documented in 2 files:
- drivers/platform/chrome/wilco_ec/mailbox.c, line 188
- include/linux/platform_data/wilco-ec.h, line 120
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- drivers/platform/chrome/wilco_ec/debugfs.c
- drivers/platform/chrome/wilco_ec/keyboard_leds.c, line 69
- drivers/platform/chrome/wilco_ec/mailbox.c, line 221
- drivers/platform/chrome/wilco_ec/properties.c, line 48
- drivers/platform/chrome/wilco_ec/sysfs.c
- drivers/platform/chrome/wilco_ec/telemetry.c, line 287
- drivers/rtc/rtc-wilco-ec.c
Smatch caller information:
drivers/rtc/rtc-wilco-ec.c wilco_ec_rtc_read() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 8382122489295622144 |
| PARAM_VALUE | 1 | msg->request_data | 5873976600342429696 |
| PARAM_VALUE | 1 | msg->request_size | 3 |
| PARAM_VALUE | 1 | msg->response_data | 8767218496996405248 |
| PARAM_VALUE | 1 | msg->response_size | 8 |
| PARAM_VALUE | 1 | msg->type | 240 |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| MEM_ZERO | 1 | msg | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ec | unit_byte |
| HALF_LOCKED2 | &rtc->ops_lock |
drivers/rtc/rtc-wilco-ec.c wilco_ec_rtc_write() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 4009563189790564352 |
| PARAM_VALUE | 1 | msg->request_data | 2387319320482660352 |
| PARAM_VALUE | 1 | msg->request_size | 11 |
| PARAM_VALUE | 1 | msg->type | 240 |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| MEM_ZERO | 1 | msg | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ec | unit_byte |
| HALF_LOCKED2 | &rtc->ops_lock |
drivers/platform/chrome/wilco_ec/telemetry.c telem_write() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 2750418151366856704 |
| PARAM_VALUE | 1 | msg->flags | 0 |
| PARAM_VALUE | 1 | msg->request_data | 4096-ptr_max |
| PARAM_VALUE | 1 | msg->request_size | 32 |
| PARAM_VALUE | 1 | msg->response_size | 32 |
| PARAM_VALUE | 1 | msg->type | 245 |
drivers/platform/chrome/wilco_ec/debugfs.c raw_write() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 24940657651863552 |
| PARAM_VALUE | 1 | msg->flags | 0 |
| PARAM_VALUE | 1 | msg->request_data | 1685628693539770370 |
| PARAM_VALUE | 1 | msg->request_size | 1-32 |
| PARAM_VALUE | 1 | msg->response_size | 32 |
| PARAM_VALUE | 1 | msg->type | 0-u16max |
| UNITS | 0 | ec | unit_byte |
drivers/platform/chrome/wilco_ec/debugfs.c send_ec_cmd() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 8558428302572929024 |
| PARAM_VALUE | 1 | msg->request_data | 1379509799715098624 |
| PARAM_VALUE | 1 | msg->request_size | 3 |
| PARAM_VALUE | 1 | msg->response_data | 1660658925321023488 |
| PARAM_VALUE | 1 | msg->response_size | 2 |
| PARAM_VALUE | 1 | msg->type | 240 |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ec | $0 |
| MEM_ZERO | 1 | msg | |
| LOCK2 | &attr->mutex | ||
| TYPE_LOCK | (struct simple_attr)->mutex |
drivers/platform/chrome/wilco_ec/sysfs.c boot_on_ac_store() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 7546835198304194560 |
| PARAM_VALUE | 1 | msg->request_data | 2268570314180198400 |
| PARAM_VALUE | 1 | msg->request_size | 8 |
| PARAM_VALUE | 1 | msg->type | 240 |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| MEM_ZERO | 1 | msg | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ec | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/platform/chrome/wilco_ec/sysfs.c get_info() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 6057238108143755264 |
| PARAM_VALUE | 1 | msg->flags | 0 |
| PARAM_VALUE | 1 | msg->request_data | 3051554202421821440 |
| PARAM_VALUE | 1 | msg->request_size | 3 |
| PARAM_VALUE | 1 | msg->response_data | 8099664280424968192 |
| PARAM_VALUE | 1 | msg->response_size | 11 |
| PARAM_VALUE | 1 | msg->type | 240 |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ec | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/platform/chrome/wilco_ec/sysfs.c send_usb_charge() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 364984591969996800 |
| PARAM_VALUE | 1 | msg->request_data | 3027711281489379328,5298385811463917568 |
| PARAM_VALUE | 1 | msg->request_size | 4 |
| PARAM_VALUE | 1 | msg->response_data | 7963183454782849024,8298074183930273792 |
| PARAM_VALUE | 1 | msg->response_size | 3 |
| PARAM_VALUE | 1 | msg->type | 240 |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ec | $0 |
| MEM_ZERO | 1 | msg | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ec | unit_byte |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/platform/chrome/wilco_ec/keyboard_leds.c send_kbbl_msg() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 2961533239877005312 |
| PARAM_VALUE | 1 | msg->request_data | 328062126999805952,3355788238175379456,7540024036863807488 |
| PARAM_VALUE | 1 | msg->request_size | 16 |
| PARAM_VALUE | 1 | msg->response_data | 1356715540088512512,2770102580854697984,5111728585201819648 |
| PARAM_VALUE | 1 | msg->response_size | 16 |
| PARAM_VALUE | 1 | msg->type | 240 |
| BUF_SIZE | 0 | ec->data_buffer | (-1),40 |
| BUF_SIZE | 0 | ec->debugfs_pdev | (-1),8-s32max |
| BUF_SIZE | 0 | ec->dev | (-1),1616 |
| BUF_SIZE | 0 | ec->io_command | (-1),64 |
| BUF_SIZE | 0 | ec->io_data | (-1),64 |
| BUF_SIZE | 0 | ec->io_packet | (-1),64 |
| BUF_SIZE | 0 | ec->rtc_pdev | (-1),9-s32max |
| DATA_SOURCE | 0 | ec | $0 |
| MEM_ZERO | 1 | msg | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/platform/chrome/wilco_ec/properties.c send_property_msg() -> wilco_ec_mailbox()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | msg | 2906012427018752000 |
| PARAM_VALUE | 1 | msg->request_data | 933468285346955264,7563484033830723584 |
| PARAM_VALUE | 1 | msg->request_size | 10 |
| PARAM_VALUE | 1 | msg->response_data | 2005364981571178496,2843777988351250432 |
| PARAM_VALUE | 1 | msg->response_size | 12 |
| PARAM_VALUE | 1 | msg->type | 242 |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ec | $0 |
| MEM_ZERO | 1 | msg | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ec | unit_byte |
| HALF_LOCKED2 | _T->lock |