Lines Matching refs:read_num
1136 unsigned int read_num[2] = {0}; in amdgpu_debugfs_vcn_fwlog_read() local
1159 read_num[0] = min_t(size_t, size, available); in amdgpu_debugfs_vcn_fwlog_read()
1161 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1162 available = read_num[0] + write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1164 read_num[1] = write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1165 else if (size > read_num[0]) in amdgpu_debugfs_vcn_fwlog_read()
1166 read_num[1] = size - read_num[0]; in amdgpu_debugfs_vcn_fwlog_read()
1168 read_num[0] = size; in amdgpu_debugfs_vcn_fwlog_read()
1172 if (read_num[i]) { in amdgpu_debugfs_vcn_fwlog_read()
1175 if (read_num[i] == copy_to_user((buf + read_bytes), in amdgpu_debugfs_vcn_fwlog_read()
1176 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1179 read_bytes += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
1180 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()