Defined in 1 files as a member:

Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/mtd/devices/mtd_dataflash.c dataflash_read_fact_otp() -> otp_read()

Type Parameter Key Value
PARAM_VALUE 1 base 64
PARAM_VALUE 4 len 1-u64max
BUF_SIZE 2 buf (-1)-s32max
BUF_SIZE 2 buf (-1)-s32max
DATA_SOURCE 2 buf $4
DATA_SOURCE 3 off $1
DATA_SOURCE 4 len $2
PARAM_COMPARE 2 buf == $4
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 3 off 0-1007999998[c]
HOST_DATA 4 len 2-3999999[c]
USER_DATA 3 off 0-4294967294
USER_DATA 4 len 1-u32max[c]
BYTE_COUNT 2 ==buf4 8050
LOCK2 &priv->lock
TYPE_LOCK (struct dataflash)->lock

drivers/mtd/devices/mtd_dataflash.c dataflash_read_user_otp() -> otp_read()

Type Parameter Key Value
PARAM_VALUE 1 base 0
PARAM_VALUE 4 len 1-u64max
BUF_SIZE 2 buf (-1)-s32max
BUF_SIZE 2 buf (-1)-s32max
DATA_SOURCE 2 buf $4
DATA_SOURCE 3 off $1
DATA_SOURCE 4 len $2
PARAM_COMPARE 2 buf == $4
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 3 off 0-1007999998[c]
HOST_DATA 4 len 2-3999999[c]
USER_DATA 3 off 0-4294967294
USER_DATA 4 len 1-u32max[c]
BYTE_COUNT 2 ==buf4 8050
LOCK2 &priv->lock
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct dataflash)->lock

fs/sysfs/file.c sysfs_kf_bin_read() -> (struct bin_attribute)->read()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 2 buf 4096-ptr_max
PARAM_VALUE 2 buf->read 1-u64max
PARAM_VALUE 3 off 1-u64max
PARAM_VALUE 5 count 1-4096
BUF_SIZE 1 base 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 1 base 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 2 buf 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 2 buf 40,136,480,696,928,1128,1160,1392,1624,1848,8192
CAPPED_DATA 5 count 1
CAPPED_DATA 5 count 1
DATA_SOURCE 1 base r sysfs_file_kobj
DATA_SOURCE 3 off $1
DATA_SOURCE 4 len $3
DATA_SOURCE 5 count $2 [m]
CONTAINER 2 -64+0 $(-1)
PARAM_COMPARE 3 off >= $5
BIT_INFO 5 count 0x0,0x7fffffffffffffff
BIT_INFO 5 count 0x0,0x7fffffffffffffff
NOSPEC 4 len
NOSPEC 4 len
NOSPEC 5 count
NOSPEC 5 count
RX_PATH
TASK_NOT_RUNNING
USER_DATA 4 len 0-4095
USER_DATA 5 count 1-4096
BYTE_COUNT 3 ==off5 8050
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex