Lines Matching refs:read_num
1090 unsigned int read_num[2] = {0}; in amdgpu_debugfs_vcn_fwlog_read() local
1113 read_num[0] = min_t(size_t, size, available); in amdgpu_debugfs_vcn_fwlog_read()
1115 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1116 available = read_num[0] + write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1118 read_num[1] = write_pos - plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1119 else if (size > read_num[0]) in amdgpu_debugfs_vcn_fwlog_read()
1120 read_num[1] = size - read_num[0]; in amdgpu_debugfs_vcn_fwlog_read()
1122 read_num[0] = size; in amdgpu_debugfs_vcn_fwlog_read()
1126 if (read_num[i]) { in amdgpu_debugfs_vcn_fwlog_read()
1129 if (read_num[i] == copy_to_user((buf + read_bytes), in amdgpu_debugfs_vcn_fwlog_read()
1130 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1133 read_bytes += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
1134 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()