Lines Matching refs:read_num
1074 unsigned int read_num[2] = {0}; in amdgpu_debugfs_vcn_fwlog_read() local
1097 read_num[0] = min(size, (size_t)available); in amdgpu_debugfs_vcn_fwlog_read()
1099 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1100 available = read_num[0] + write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1102 read_num[1] = write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1103 else if (size > read_num[0]) in amdgpu_debugfs_vcn_fwlog_read()
1104 read_num[1] = size - read_num[0]; in amdgpu_debugfs_vcn_fwlog_read()
1106 read_num[0] = size; in amdgpu_debugfs_vcn_fwlog_read()
1110 if (read_num[i]) { in amdgpu_debugfs_vcn_fwlog_read()
1113 if (read_num[i] == copy_to_user((buf + read_bytes), in amdgpu_debugfs_vcn_fwlog_read()
1114 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1117 read_bytes += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
1118 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()