Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/misc/keba/cp500.c cp500_nvmem() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 1 offset 367
PARAM_VALUE 2 bytes 1
PARAM_VALUE 3 buf 8887720288374427648
DATA_SOURCE 0 nvmem r nvmem_device_find
BIT_INFO 0 nvmem 0xfffffffffffffdfb,0xffffffffffffffff
BIT_INFO 0 nvmem 0xfffffffffffffdfb,0xffffffffffffffff
UNITS 2 bytes unit_byte

drivers/misc/keba/cp500.c cp500_nvmem_read() -> nvmem_device_read()

Type Parameter Key Value
BUF_SIZE 3 buf (-1)-s32max
BUF_SIZE 3 buf (-1)-s32max
DATA_SOURCE 2 bytes $3
DATA_SOURCE 3 buf $2
PARAM_COMPARE 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
BYTE_COUNT 3 ==buf2 8050
HALF_LOCKED2 &of->mutex

drivers/ptp/ptp_ocp.c disciplining_config_read() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 1 offset 0-144
PARAM_VALUE 2 bytes 0-144
PARAM_VALUE 3 buf 1-u64max
CAPPED_DATA 2 bytes 1
CAPPED_DATA 2 bytes 1
DATA_SOURCE 0 nvmem r ptp_ocp_nvmem_device_get
DATA_SOURCE 1 offset $4
DATA_SOURCE 2 bytes $5 [m]
DATA_SOURCE 3 buf $3
FUZZY_MAX 2 bytes 144
BIT_INFO 2 bytes 0x0,0x7fffffffffffffff
NOSPEC 1 offset
NOSPEC 1 offset
NOSPEC 2 bytes
NOSPEC 2 bytes
HARD_MAX 2 bytes 144
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 0-144
USER_DATA 2 bytes 1-144[c]
BYTE_COUNT 3 ==buf2 8050
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/ptp/ptp_ocp.c ptp_ocp_read_eeprom() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 2 bytes 6,13
RX_PATH
TASK_NOT_RUNNING
UNITS 3 buf unit_byte
HALF_LOCKED2 &of->mutex

drivers/ptp/ptp_ocp.c temperature_table_read() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 1 offset 144-512
PARAM_VALUE 2 bytes 0-368
PARAM_VALUE 3 buf 1-u64max
CAPPED_DATA 2 bytes 1
CAPPED_DATA 2 bytes 1
DATA_SOURCE 0 nvmem r ptp_ocp_nvmem_device_get
DATA_SOURCE 2 bytes $5 [m]
DATA_SOURCE 3 buf $3
FUZZY_MAX 2 bytes 368
BIT_INFO 2 bytes 0x0,0x7fffffffffffffff
NOSPEC 2 bytes
NOSPEC 2 bytes
HARD_MAX 2 bytes 368
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 144-512[c]
USER_DATA 2 bytes 1-368[c]
BYTE_COUNT 3 ==buf2 8050
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/power/supply/cpcap-battery.c cpcap_battery_detect_battery_type() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 1 offset 2
PARAM_VALUE 2 bytes 1
PARAM_VALUE 3 buf 4649515404701405184
PARAM_VALUE 3 *buf 0
DATA_SOURCE 0 nvmem r nvmem_device_find
RX_PATH
TASK_NOT_RUNNING

drivers/nvmem/layouts/u-boot-env.c u_boot_env_parse() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bytes 0-4000000
PARAM_VALUE 3 buf 16,4096-ptr_max
BUF_SIZE 0 nvmem (-1),1928
BUF_SIZE 0 nvmem (-1),1928
DATA_SOURCE 0 nvmem $1
DATA_SOURCE 3 buf r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
BYTE_COUNT 3 ==buf2 8050

drivers/nvmem/layouts/sl28vpd.c sl28vpd_add_cells() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bytes 2
PARAM_VALUE 3 buf 3840151147546914816
BUF_SIZE 3 buf 2
RX_PATH
TASK_NOT_RUNNING
UNITS 2 bytes unit_byte

drivers/nvmem/layouts/sl28vpd.c sl28vpd_v1_check_crc() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bytes 24
PARAM_VALUE 3 buf 4240130512203911168
BUF_SIZE 3 buf 24
DATA_SOURCE 0 nvmem $1
RX_PATH
TASK_NOT_RUNNING
UNITS 2 bytes unit_byte

drivers/soc/mediatek/mtk-socinfo.c mtk_socinfo_read_cell() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 2 bytes 4
PARAM_VALUE 3 buf 8405122327622885376
PARAM_VALUE 3 *buf 4294967295
BUF_SIZE 3 buf 4
DATA_SOURCE 0 nvmem r nvmem_device_find
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 bytes unit_byte

drivers/nvmem/layouts/onie-tlv.c onie_tlv_parse_table() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bytes 11
PARAM_VALUE 3 buf 6021446179194990592
BUF_SIZE 3 buf 11
RX_PATH
TASK_NOT_RUNNING
UNITS 2 bytes unit_byte

drivers/nvmem/layouts/onie-tlv.c onie_tlv_parse_table() -> nvmem_device_read()

Type Parameter Key Value
PARAM_VALUE 0 nvmem 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bytes 11-2048
PARAM_VALUE 3 buf 1-u64max
BUF_SIZE 3 buf 11-2048
DATA_SOURCE 3 buf r devm_kmalloc
FUZZY_MAX 2 bytes 2048
BIT_INFO 2 bytes 0x0,0x1ffff
HARD_MAX 2 bytes 2048
RX_PATH
TASK_NOT_RUNNING
UNITS 2 bytes unit_byte