Lines Matching refs:ra

147 	RESTART_AREA *ra;  in ntfs_check_restart_area()  local
153 ra = (RESTART_AREA*)((u8*)rp + ra_ofs); in ntfs_check_restart_area()
172 ca_ofs = le16_to_cpu(ra->client_array_offset); in ntfs_check_restart_area()
184 ra_len = ca_ofs + le16_to_cpu(ra->log_clients) * in ntfs_check_restart_area()
187 ra_ofs + le16_to_cpu(ra->restart_area_length) > in ntfs_check_restart_area()
189 ra_len > le16_to_cpu(ra->restart_area_length)) { in ntfs_check_restart_area()
201 if ((ra->client_free_list != LOGFILE_NO_CLIENT && in ntfs_check_restart_area()
202 le16_to_cpu(ra->client_free_list) >= in ntfs_check_restart_area()
203 le16_to_cpu(ra->log_clients)) || in ntfs_check_restart_area()
204 (ra->client_in_use_list != LOGFILE_NO_CLIENT && in ntfs_check_restart_area()
205 le16_to_cpu(ra->client_in_use_list) >= in ntfs_check_restart_area()
206 le16_to_cpu(ra->log_clients))) { in ntfs_check_restart_area()
215 file_size = (u64)sle64_to_cpu(ra->file_size); in ntfs_check_restart_area()
221 if (le32_to_cpu(ra->seq_number_bits) != 67 - fs_bits) { in ntfs_check_restart_area()
227 if (((le16_to_cpu(ra->log_record_header_length) + 7) & ~7) != in ntfs_check_restart_area()
228 le16_to_cpu(ra->log_record_header_length)) { in ntfs_check_restart_area()
234 if (((le16_to_cpu(ra->log_page_data_offset) + 7) & ~7) != in ntfs_check_restart_area()
235 le16_to_cpu(ra->log_page_data_offset)) { in ntfs_check_restart_area()
262 RESTART_AREA *ra; in ntfs_check_log_client_array() local
268 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset)); in ntfs_check_log_client_array()
269 ca = (LOG_CLIENT_RECORD*)((u8*)ra + in ntfs_check_log_client_array()
270 le16_to_cpu(ra->client_array_offset)); in ntfs_check_log_client_array()
279 nr_clients = le16_to_cpu(ra->log_clients); in ntfs_check_log_client_array()
280 idx = le16_to_cpu(ra->client_free_list); in ntfs_check_log_client_array()
285 if (!nr_clients || idx >= le16_to_cpu(ra->log_clients)) in ntfs_check_log_client_array()
299 idx = le16_to_cpu(ra->client_in_use_list); in ntfs_check_log_client_array()
340 RESTART_AREA *ra; in ntfs_check_and_load_restart_page() local
355 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset)); in ntfs_check_and_load_restart_page()
417 le16_to_cpu(ra->restart_area_length) > in ntfs_check_and_load_restart_page()
432 ra->client_in_use_list != LOGFILE_NO_CLIENT) { in ntfs_check_and_load_restart_page()
440 *lsn = sle64_to_cpu(ra->current_lsn); in ntfs_check_and_load_restart_page()
668 RESTART_AREA *ra; in ntfs_is_logfile_clean() local
685 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset)); in ntfs_is_logfile_clean()
691 if (ra->client_in_use_list != LOGFILE_NO_CLIENT && in ntfs_is_logfile_clean()
692 !(ra->flags & RESTART_VOLUME_IS_CLEAN)) { in ntfs_is_logfile_clean()