Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/power/supply/huawei-gaokun-battery.c gaokun_psy_get_bat_present() -> gaokun_ec_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| BUF_SIZE | 0 | ec | 1-s32max |
| BUF_SIZE | 0 | ec | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_psy_set_smart_charge() -> gaokun_ec_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 4096-ptr_max |
| PARAM_VALUE | 0 | ec->client | 4096-ptr_max |
| PARAM_VALUE | 0 | ec->client->adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | ec->client->adapter->bus_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ec->client->adapter->bus_lock.rtmutex.owner | 0-1 |
| PARAM_VALUE | 0 | ec->client->adapter->dev.driver_data->adev->pm.bus_locked | 0-1 |
| PARAM_VALUE | 0 | ec->client->adapter->dev.driver_data->mutex->wait_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | ec->client->adapter->lock_ops | 4096-ptr_max |
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| BUF_SIZE | 1 | req | 8 |
| DATA_SOURCE | 0 | ec | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_psy_set_smart_charge_enable() -> gaokun_ec_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| BUF_SIZE | 1 | req | 5 |
| DATA_SOURCE | 0 | ec | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_resume() -> gaokun_ec_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 4096-ptr_max |
| PARAM_VALUE | 0 | ec->suspended | 1 |
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | req | 5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ec | unit_byte |
drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_set_fn_lock() -> gaokun_ec_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | req | 5 |
| DATA_SOURCE | 0 | ec | $0 |
| 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/arm64/huawei-gaokun-ec.c gaokun_ec_suspend() -> gaokun_ec_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ec | 4096-ptr_max |
| PARAM_VALUE | 0 | ec->suspended | 0 |
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ec | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | req | 5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ec | unit_byte |
drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_ucsi_pan_ack() -> gaokun_ec_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| BUF_SIZE | 1 | req | 5 |
| DATA_SOURCE | 0 | ec | $0 |
drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_ucsi_write() -> gaokun_ec_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | req | 4096-ptr_max |
| BUF_SIZE | 1 | req | 28 |
| DATA_SOURCE | 0 | ec | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ucsi->ppm_lock |