Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/nvmem/core.c, line 2073 (as a function)
- include/linux/nvmem-consumer.h, line 211 (as a function)
Referenced in 5 files:
- drivers/leds/rgb/leds-qcom-lpg.c
- drivers/misc/keba/cp500.c, line 599
- drivers/nvmem/core.c, line 2090
- drivers/ptp/ptp_ocp.c
- drivers/soc/ti/pm33xx.c
Smatch caller information:
drivers/misc/keba/cp500.c cp500_nvmem_write() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 3 | buf | (-1),1-s32max |
| BUF_SIZE | 3 | buf | (-1),1-s32max |
| DATA_SOURCE | 2 | bytes | $3 |
| DATA_SOURCE | 3 | buf | $2 |
| NOSPEC | 2 | bytes | |
| NOSPEC | 2 | bytes | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | bytes | 0-u32max[c] |
| USER_DATA | 3 | buf | 4096-ptr_max[u] |
| NO_OVERFLOW_SIMPLE | 3 | buf->node.size | |
| HALF_LOCKED2 | &of->mutex |
drivers/ptp/ptp_ocp.c disciplining_config_write() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | bytes | 144 |
| PARAM_VALUE | 3 | buf | 4096-ptr_max |
| DATA_SOURCE | 0 | nvmem | r ptp_ocp_nvmem_device_get |
| DATA_SOURCE | 2 | bytes | $5 |
| DATA_SOURCE | 3 | buf | $3 |
| NOSPEC | 2 | bytes | |
| TERMINATED | 3 | buf | 1 |
| 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/ptp/ptp_ocp.c temperature_table_write() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 144 |
| PARAM_VALUE | 2 | bytes | 368 |
| PARAM_VALUE | 3 | buf | 4096-ptr_max |
| DATA_SOURCE | 0 | nvmem | r ptp_ocp_nvmem_device_get |
| DATA_SOURCE | 2 | bytes | $5 |
| DATA_SOURCE | 3 | buf | $3 |
| NOSPEC | 2 | bytes | |
| TERMINATED | 3 | buf | 1 |
| 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/leds/rgb/leds-qcom-lpg.c lpg_clear_pbs_trigger() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 1-u64max |
| PARAM_VALUE | 1 | offset | 66 |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 6264250780012703744 |
| PARAM_VALUE | 3 | *buf | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_clear_pbs_trigger() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 230 |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 6264250780012703744 |
| PARAM_VALUE | 3 | *buf | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_init_sdam() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 8256319735167422464 |
| PARAM_VALUE | 3 | *buf | 0-255 |
| DATA_SOURCE | 0 | nvmem | r devm_nvmem_device_get |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/leds/rgb/leds-qcom-lpg.c lpg_lut_store_sdam() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 1-u64max |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 5596977072786513920 |
| PARAM_VALUE | 3 | *buf | 0-255 |
| CAPPED_DATA | 1 | offset | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &data->lock | ||
| LOCK2 | &lpg->lock | ||
| HALF_LOCKED2 | &cdev->led_access | ||
| HALF_LOCKED2 | &cdev->trigger_lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct lpg)->lock | ||
| TYPE_LOCK | (struct pattern_trig_data)->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_lut_store_sdam() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 5596977072786513920 |
| PARAM_VALUE | 3 | *buf | 0-255 |
| CAPPED_DATA | 1 | offset | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &data->lock | ||
| LOCK2 | &lpg->lock | ||
| HALF_LOCKED2 | &cdev->led_access | ||
| HALF_LOCKED2 | &cdev->trigger_lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct lpg)->lock | ||
| TYPE_LOCK | (struct pattern_trig_data)->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_sdam_apply_lut_control() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 1-u64max |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 6790214115178020864 |
| PARAM_VALUE | 3 | *buf | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &led->lpg->lock | ||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_sdam_apply_lut_control() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 8154998651446419456 |
| PARAM_VALUE | 3 | *buf | 0-3,8-11 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &led->lpg->lock | ||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_sdam_apply_lut_control() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 3385355775398420480 |
| BUF_SIZE | 3 | buf | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &led->lpg->lock | ||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_sdam_apply_lut_control() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 812069210513481728 |
| BUF_SIZE | 3 | buf | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &led->lpg->lock | ||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_sdam_apply_lut_control() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 71 |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 6790214115178020864 |
| PARAM_VALUE | 3 | *buf | 0-65 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &led->lpg->lock | ||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_sdam_apply_lut_control() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 4271054808797323264 |
| BUF_SIZE | 3 | buf | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &led->lpg->lock | ||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_sdam_apply_lut_control() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 5161127649812996096 |
| BUF_SIZE | 3 | buf | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &led->lpg->lock | ||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_sdam_configure_triggers() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 1-u64max |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | *buf | 0-1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_set_pbs_trigger() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 1-u64max |
| PARAM_VALUE | 1 | offset | 66 |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 6930984528038031360 |
| PARAM_VALUE | 3 | *buf | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &data->lock | ||
| HALF_LOCKED2 | &led->lpg->lock |
drivers/leds/rgb/leds-qcom-lpg.c lpg_set_pbs_trigger() -> nvmem_device_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvmem | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 229 |
| PARAM_VALUE | 2 | bytes | 1 |
| PARAM_VALUE | 3 | buf | 6930984528038031360 |
| PARAM_VALUE | 3 | *buf | 0-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &data->lock | ||
| HALF_LOCKED2 | &led->lpg->lock |