Lines Matching refs:read_pos
1072 unsigned int read_pos, write_pos, available, i, read_bytes = 0; in amdgpu_debugfs_vcn_fwlog_read() local
1085 read_pos = plog->rptr; in amdgpu_debugfs_vcn_fwlog_read()
1088 if (read_pos > AMDGPU_VCNFW_LOG_SIZE || write_pos > AMDGPU_VCNFW_LOG_SIZE) in amdgpu_debugfs_vcn_fwlog_read()
1091 if (!size || (read_pos == write_pos)) in amdgpu_debugfs_vcn_fwlog_read()
1094 if (write_pos > read_pos) { in amdgpu_debugfs_vcn_fwlog_read()
1095 available = write_pos - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1098 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1110 if (read_pos == AMDGPU_VCNFW_LOG_SIZE) in amdgpu_debugfs_vcn_fwlog_read()
1111 read_pos = plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1113 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1117 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
1121 plog->rptr = read_pos; in amdgpu_debugfs_vcn_fwlog_read()