Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/nvmem/core.c __nvmem_cell_read() -> nvmem_reg_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 1-u64max
DATA_SOURCE 0 nvmem $0
DATA_SOURCE 2 val $2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte
UNITS 3 bytes unit_byte

drivers/nvmem/core.c bin_attr_nvmem_read() -> nvmem_reg_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 0 nvmem->word_size 0-4096
PARAM_VALUE 2 val 1-u64max
PARAM_VALUE 3 bytes 0-4096
CAPPED_DATA 0 nvmem->word_size 1
CAPPED_DATA 3 bytes 1
CAPPED_DATA 3 bytes 1
DATA_SOURCE 1 offset $4
DATA_SOURCE 2 val $3
NOSPEC 1 offset
NOSPEC 1 offset
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 0-4095
USER_DATA 3 bytes 0-4096[c]
UNITS 0 nvmem unit_byte
UNITS 3 bytes unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvmem/core.c nvmem_cell_prepare_write_buffer() -> nvmem_reg_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 0 nvmem->read_only 0
PARAM_VALUE 2 val 6661726864567046144
PARAM_VALUE 3 bytes 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte

drivers/nvmem/core.c nvmem_cell_prepare_write_buffer() -> nvmem_reg_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 0 nvmem->read_only 0
PARAM_VALUE 2 val 6661726864567046144
PARAM_VALUE 3 bytes 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte

drivers/nvmem/core.c nvmem_device_read() -> nvmem_reg_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 1-u64max
BUF_SIZE 0 nvmem (-1),1928
BUF_SIZE 0 nvmem (-1),1928
BUF_SIZE 2 val (-1)-s32max
BUF_SIZE 2 val (-1)-s32max
DATA_SOURCE 0 nvmem $0
DATA_SOURCE 1 offset $1
DATA_SOURCE 2 val $3
DATA_SOURCE 3 bytes $2
NOSPEC 1 offset
NOSPEC 2 val
NOSPEC 2 val
NOSPEC 3 bytes
NOSPEC 3 bytes
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 0-512
USER_DATA 2 val 4096-ptr_max[u]
USER_DATA 3 bytes 0-u32max[c]
NO_OVERFLOW_SIMPLE 2 val->node.size
UNITS 2 val unit_byte
UNITS 3 bytes unit_byte
BYTE_COUNT 2 ==val3 8050
HALF_LOCKED2 &of->mutex