Lines Matching refs:read_pos
1138 unsigned int read_pos, write_pos, available, i, read_bytes = 0; in amdgpu_debugfs_vcn_fwlog_read() local
1151 read_pos = plog->rptr; in amdgpu_debugfs_vcn_fwlog_read()
1154 if (read_pos > AMDGPU_VCNFW_LOG_SIZE || write_pos > AMDGPU_VCNFW_LOG_SIZE) in amdgpu_debugfs_vcn_fwlog_read()
1157 if (!size || (read_pos == write_pos)) in amdgpu_debugfs_vcn_fwlog_read()
1160 if (write_pos > read_pos) { in amdgpu_debugfs_vcn_fwlog_read()
1161 available = write_pos - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1164 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1176 if (read_pos == AMDGPU_VCNFW_LOG_SIZE) in amdgpu_debugfs_vcn_fwlog_read()
1177 read_pos = plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1179 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1183 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
1187 plog->rptr = read_pos; in amdgpu_debugfs_vcn_fwlog_read()