Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/gpio/gpio-cgbc.c, line 33
- drivers/hwmon/cgbc-hwmon.c, line 93
- drivers/i2c/busses/i2c-cgbc.c
- drivers/mfd/cgbc-core.c
- drivers/video/backlight/cgbc_bl.c
- drivers/watchdog/cgbc_wdt.c
Smatch caller information:
drivers/video/backlight/cgbc_bl.c cgbc_bl_read_brightness() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 2 | cmd_size | 4 |
| PARAM_VALUE | 3 | data | 6995399084818546688 |
| PARAM_VALUE | 4 | data_size | 3 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 0 | cgbc | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | cgbc | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | cmd | 4 |
| BUF_SIZE | 3 | data | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
| UNITS | 4 | data_size | unit_byte |
drivers/video/backlight/cgbc_bl.c cgbc_bl_update_status() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 2 | cmd_size | 4 |
| PARAM_VALUE | 3 | data | 5116004352512577536 |
| PARAM_VALUE | 4 | data_size | 3 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 4 |
| BUF_SIZE | 3 | data | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
| UNITS | 4 | data_size | unit_byte |
| HALF_LOCKED2 | &bl->update_lock | ||
| HALF_LOCKED2 | &connector->mutex | ||
| HALF_LOCKED2 | &panel->follower_lock | ||
| HALF_LOCKED2 | global &drm_unplug_srcu |
drivers/video/backlight/cgbc_bl.c cgbc_bl_update_status() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cgbc | 4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->io_cmd | 65537-ptr_max |
| PARAM_VALUE | 0 | cgbc->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | cgbc->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 2 | cmd_size | 4 |
| PARAM_VALUE | 3 | data | 5116004352512577536 |
| PARAM_VALUE | 4 | data_size | 3 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 4 |
| BUF_SIZE | 3 | data | 3 |
| CAPPED_DATA | 0 | cgbc->session | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
| UNITS | 4 | data_size | unit_byte |
| HALF_LOCKED2 | &bl->update_lock | ||
| HALF_LOCKED2 | &connector->mutex | ||
| HALF_LOCKED2 | &panel->follower_lock | ||
| HALF_LOCKED2 | global &drm_unplug_srcu |
drivers/gpio/gpio-cgbc.c cgbc_gpio_cmd() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 2 | cmd_size | 3 |
| PARAM_VALUE | 3 | data | 929087549532352512,3528138401393680384,4042356777783463936,5222452613227208704 |
| PARAM_VALUE | 4 | data_size | 1 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 3 |
| DATA_SOURCE | 0 | cgbc | $0 |
| DATA_SOURCE | 3 | data | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
| LOCK2 | _T->lock |
drivers/i2c/busses/i2c-cgbc.c cgbc_i2c_get_status() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 8726839237643890688 |
| PARAM_VALUE | 1 | *cmd | 0-255 |
| PARAM_VALUE | 2 | cmd_size | 1 |
| PARAM_VALUE | 3 | data | 0 |
| PARAM_VALUE | 4 | data_size | 0 |
| PARAM_VALUE | 5 | status | 4258301305467265024 |
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
drivers/i2c/busses/i2c-cgbc.c cgbc_i2c_set_frequency() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 847075824936747008 |
| PARAM_VALUE | 2 | cmd_size | 2 |
| PARAM_VALUE | 3 | data | 4917551912925110272 |
| PARAM_VALUE | 4 | data_size | 1 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
drivers/i2c/busses/i2c-cgbc.c cgbc_i2c_set_frequency() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cgbc | 4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->io_cmd | 65537-ptr_max |
| PARAM_VALUE | 0 | cgbc->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | cgbc->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | cmd | 847075824936747008 |
| PARAM_VALUE | 2 | cmd_size | 2 |
| PARAM_VALUE | 3 | data | 4917551912925110272 |
| PARAM_VALUE | 4 | data_size | 1 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 2 |
| CAPPED_DATA | 0 | cgbc->session | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
drivers/i2c/busses/i2c-cgbc.c cgbc_i2c_xfer_msg() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 5662977130797215744 |
| PARAM_VALUE | 2 | cmd_size | 3-259 |
| PARAM_VALUE | 3 | data | 0 |
| PARAM_VALUE | 4 | data_size | 0 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 36 |
| DATA_SOURCE | 2 | cmd_size | r cgbc_i2c_xfer_to_cmd |
| UNITS | 0 | cgbc | unit_byte |
drivers/i2c/busses/i2c-cgbc.c cgbc_i2c_xfer_msg() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 5662977130797215744 |
| PARAM_VALUE | 2 | cmd_size | 3-259 |
| PARAM_VALUE | 3 | data | 0 |
| PARAM_VALUE | 4 | data_size | 0 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 36 |
| DATA_SOURCE | 2 | cmd_size | r cgbc_i2c_xfer_to_cmd |
| UNITS | 0 | cgbc | unit_byte |
drivers/i2c/busses/i2c-cgbc.c cgbc_i2c_xfer_msg() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cgbc | 4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->io_cmd | 65537-ptr_max |
| PARAM_VALUE | 0 | cgbc->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | cgbc->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | cmd | 4288241741522509824 |
| PARAM_VALUE | 1 | *cmd | 0-255 |
| PARAM_VALUE | 2 | cmd_size | 1 |
| PARAM_VALUE | 3 | data | 4096-ptr_max |
| PARAM_VALUE | 3 | *data | 0-255 |
| PARAM_VALUE | 4 | data_size | 0-32,2147483648-u32max |
| PARAM_VALUE | 5 | status | 0 |
| CAPPED_DATA | 0 | cgbc->session | 1 |
| CAPPED_DATA | 4 | data_size | 1 |
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
| UNITS | 3 | data | unit_byte |
| UNITS | 4 | data_size | unit_byte |
drivers/mfd/cgbc-core.c cgbc_get_version() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cgbc | 4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->io_cmd | 65536-131071 |
| PARAM_VALUE | 0 | cgbc->io_session | 65536-131071 |
| PARAM_VALUE | 0 | cgbc->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | cgbc->lock.first_waiter | 0 |
| PARAM_VALUE | 0 | cgbc->lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | cgbc->lock.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | cgbc->lock.owner.counter | 0 |
| PARAM_VALUE | 0 | cgbc->session | 2-254 |
| PARAM_VALUE | 1 | cmd | 3719578143287029760 |
| PARAM_VALUE | 1 | *cmd | 33 |
| PARAM_VALUE | 2 | cmd_size | 1 |
| PARAM_VALUE | 3 | data | 7140866969718906880 |
| PARAM_VALUE | 4 | data_size | 4 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 0 | cgbc | 192 |
| BUF_SIZE | 0 | cgbc->dev | 1616 |
| BUF_SIZE | 3 | data | 4 |
| DATA_SOURCE | 0 | cgbc | $0 |
| MEM_ZERO | 0 | cgbc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | data_size | unit_byte |
drivers/watchdog/cgbc_wdt.c cgbc_wdt_keepalive() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 1256100662899138560 |
| PARAM_VALUE | 1 | *cmd | 39 |
| PARAM_VALUE | 2 | cmd_size | 1 |
| PARAM_VALUE | 3 | data | 0 |
| PARAM_VALUE | 4 | data_size | 0 |
| PARAM_VALUE | 5 | status | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
| HALF_LOCKED2 | &wd_data->lock |
drivers/watchdog/cgbc_wdt.c cgbc_wdt_start() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 6097958202623422464 |
| PARAM_VALUE | 2 | cmd_size | 15 |
| PARAM_VALUE | 3 | data | 0 |
| PARAM_VALUE | 4 | data_size | 0 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 15 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
| HALF_LOCKED2 | &wd_data->lock |
drivers/watchdog/cgbc_wdt.c cgbc_wdt_stop() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 1852371657250406400 |
| PARAM_VALUE | 2 | cmd_size | 15 |
| PARAM_VALUE | 3 | data | 0 |
| PARAM_VALUE | 4 | data_size | 0 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 15 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
drivers/hwmon/cgbc-hwmon.c cgbc_hwmon_cmd() -> cgbc_command()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd | 4096-ptr_max |
| PARAM_VALUE | 2 | cmd_size | 2 |
| PARAM_VALUE | 3 | data | 5004754999788486656,8919108566616174592 |
| PARAM_VALUE | 4 | data_size | 5 |
| PARAM_VALUE | 5 | status | 0 |
| BUF_SIZE | 1 | cmd | 2 |
| BUF_SIZE | 3 | data | 5 |
| DATA_SOURCE | 0 | cgbc | $0 |
| DATA_SOURCE | 3 | data | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | cgbc | unit_byte |
| UNITS | 2 | cmd_size | unit_byte |
| HALF_LOCKED2 | _T->lock |