Lines Matching refs:read_num
1067 unsigned int read_num[2] = {0}; in amdgpu_debugfs_vcn_fwlog_read() local
1090 read_num[0] = min(size, (size_t)available); in amdgpu_debugfs_vcn_fwlog_read()
1092 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1093 available = read_num[0] + write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1095 read_num[1] = write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1096 else if (size > read_num[0]) in amdgpu_debugfs_vcn_fwlog_read()
1097 read_num[1] = size - read_num[0]; in amdgpu_debugfs_vcn_fwlog_read()
1099 read_num[0] = size; in amdgpu_debugfs_vcn_fwlog_read()
1103 if (read_num[i]) { in amdgpu_debugfs_vcn_fwlog_read()
1106 if (read_num[i] == copy_to_user((buf + read_bytes), in amdgpu_debugfs_vcn_fwlog_read()
1107 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1110 read_bytes += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
1111 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()