Lines Matching refs:read_pos
1136 unsigned int read_pos, write_pos, available, i, read_bytes = 0; in amdgpu_debugfs_vcn_fwlog_read() local
1149 read_pos = plog->rptr; in amdgpu_debugfs_vcn_fwlog_read()
1152 if (read_pos > AMDGPU_VCNFW_LOG_SIZE || write_pos > AMDGPU_VCNFW_LOG_SIZE) in amdgpu_debugfs_vcn_fwlog_read()
1155 if (!size || (read_pos == write_pos)) in amdgpu_debugfs_vcn_fwlog_read()
1158 if (write_pos > read_pos) { in amdgpu_debugfs_vcn_fwlog_read()
1159 available = write_pos - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1162 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1174 if (read_pos == AMDGPU_VCNFW_LOG_SIZE) in amdgpu_debugfs_vcn_fwlog_read()
1175 read_pos = plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1177 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1181 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
1185 plog->rptr = read_pos; in amdgpu_debugfs_vcn_fwlog_read()