Lines Matching refs:read_pos
1040 unsigned int read_pos, write_pos, available, i, read_bytes = 0; in amdgpu_debugfs_vcn_fwlog_read() local
1053 read_pos = plog->rptr; in amdgpu_debugfs_vcn_fwlog_read()
1056 if (read_pos > AMDGPU_VCNFW_LOG_SIZE || write_pos > AMDGPU_VCNFW_LOG_SIZE) in amdgpu_debugfs_vcn_fwlog_read()
1059 if (!size || (read_pos == write_pos)) in amdgpu_debugfs_vcn_fwlog_read()
1062 if (write_pos > read_pos) { in amdgpu_debugfs_vcn_fwlog_read()
1063 available = write_pos - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1066 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1078 if (read_pos == AMDGPU_VCNFW_LOG_SIZE) in amdgpu_debugfs_vcn_fwlog_read()
1079 read_pos = plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1081 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1085 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
1089 plog->rptr = read_pos; in amdgpu_debugfs_vcn_fwlog_read()