Lines Matching refs:le16_to_cpu
108 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header()
114 if (usa_count != le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header()
120 usa_ofs = le16_to_cpu(rp->usa_ofs); in ntfs_check_restart_page_header()
135 ra_ofs = le16_to_cpu(rp->restart_area_offset); in ntfs_check_restart_page_header()
177 ra_ofs = le16_to_cpu(rp->restart_area_offset); in ntfs_check_restart_area()
197 ca_ofs = le16_to_cpu(ra->client_array_offset); in ntfs_check_restart_area()
210 ra_len = ca_ofs + le16_to_cpu(ra->log_clients) * in ntfs_check_restart_area()
213 (u32)(ra_ofs + le16_to_cpu(ra->restart_area_length)) > in ntfs_check_restart_area()
215 ra_len > le16_to_cpu(ra->restart_area_length)) { in ntfs_check_restart_area()
228 le16_to_cpu(ra->client_free_list) >= in ntfs_check_restart_area()
229 le16_to_cpu(ra->log_clients)) || in ntfs_check_restart_area()
231 le16_to_cpu(ra->client_in_use_list) >= in ntfs_check_restart_area()
232 le16_to_cpu(ra->log_clients))) { in ntfs_check_restart_area()
253 if (((le16_to_cpu(ra->log_record_header_length) + 7) & ~7) != in ntfs_check_restart_area()
254 le16_to_cpu(ra->log_record_header_length)) { in ntfs_check_restart_area()
260 if (((le16_to_cpu(ra->log_page_data_offset) + 7) & ~7) != in ntfs_check_restart_area()
261 le16_to_cpu(ra->log_page_data_offset)) { in ntfs_check_restart_area()
294 if ((le16_to_cpu(rp->restart_area_offset) + sizeof(RESTART_AREA)) in ntfs_check_log_client_array()
297 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset)); in ntfs_check_log_client_array()
298 offset_clients = le16_to_cpu(rp->restart_area_offset) in ntfs_check_log_client_array()
299 + le16_to_cpu(ra->client_array_offset); in ntfs_check_log_client_array()
304 le16_to_cpu(ra->client_array_offset)); in ntfs_check_log_client_array()
313 nr_clients = le16_to_cpu(ra->log_clients); in ntfs_check_log_client_array()
314 idx = le16_to_cpu(ra->client_free_list); in ntfs_check_log_client_array()
318 idx = le16_to_cpu(cr->next_client)) { in ntfs_check_log_client_array()
319 if (!nr_clients || idx >= le16_to_cpu(ra->log_clients)) in ntfs_check_log_client_array()
337 idx = le16_to_cpu(ra->client_in_use_list); in ntfs_check_log_client_array()
393 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset)); in ntfs_check_and_load_restart_page()
401 > (u32)(le16_to_cpu(rp->usa_count) - 1)*NTFS_BLOCK_SIZE) in ntfs_check_and_load_restart_page()
429 if ((!ntfs_is_chkd_record(trp->magic) || le16_to_cpu(trp->usa_count)) in ntfs_check_and_load_restart_page()
437 if (le16_to_cpu(rp->restart_area_offset) + in ntfs_check_and_load_restart_page()
438 le16_to_cpu(ra->restart_area_length) > in ntfs_check_and_load_restart_page()
699 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset)); in ntfs_is_logfile_clean()
708 "%d).\n", le16_to_cpu(ra->client_in_use_list), in ntfs_is_logfile_clean()
709 le16_to_cpu(ra->flags)); in ntfs_is_logfile_clean()