Lines Matching refs:read_num
1041 unsigned int read_num[2] = {0}; in amdgpu_debugfs_vcn_fwlog_read() local
1064 read_num[0] = min(size, (size_t)available); in amdgpu_debugfs_vcn_fwlog_read()
1066 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1067 available = read_num[0] + write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1069 read_num[1] = write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1070 else if (size > read_num[0]) in amdgpu_debugfs_vcn_fwlog_read()
1071 read_num[1] = size - read_num[0]; in amdgpu_debugfs_vcn_fwlog_read()
1073 read_num[0] = size; in amdgpu_debugfs_vcn_fwlog_read()
1077 if (read_num[i]) { in amdgpu_debugfs_vcn_fwlog_read()
1080 if (read_num[i] == copy_to_user((buf + read_bytes), in amdgpu_debugfs_vcn_fwlog_read()
1081 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1084 read_bytes += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
1085 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()