Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_hdcp_test.c dm_test_srm_data_write_uninitialized_ta_keeps_srm() -> srm_data_write()

Type Parameter Key Value
PARAM_VALUE 0 filp 0
PARAM_VALUE 1 kobj 0
PARAM_VALUE 2 bin_attr 4096-ptr_max
PARAM_VALUE 3 buffer 4096-ptr_max
PARAM_VALUE 4 pos 0
PARAM_VALUE 5 count 4
BUF_SIZE 3 buffer 4
MEM_ZERO 2 bin_attr
UNITS 5 count unit_byte

fs/sysfs/file.c sysfs_kf_bin_write() -> (struct bin_attribute)->write()

Type Parameter Key Value
PARAM_VALUE 0 filp 4096-ptr_max
PARAM_VALUE 2 bin_attr 4096-ptr_max
PARAM_VALUE 2 bin_attr->write 1-u64max
PARAM_VALUE 3 buffer 4096-ptr_max
PARAM_VALUE 5 count 1-4096
BUF_SIZE 1 kobj 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 1 kobj 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 2 bin_attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 2 bin_attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
CAPPED_DATA 5 count 1
CAPPED_DATA 5 count 1
DATA_SOURCE 1 kobj r sysfs_file_kobj
DATA_SOURCE 3 buffer $1
DATA_SOURCE 4 pos $3
DATA_SOURCE 5 count $2 [m]
CONTAINER 2 -72+0 $(-1)
BIT_INFO 5 count 0x0,0x3fffffff
BIT_INFO 5 count 0x0,0x3fffffff
NOSPEC 5 count
NOSPEC 5 count
TERMINATED 3 buffer 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 4 pos 0-4095
USER_DATA 5 count 1-4096
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex