Searched refs:usa_count (Results 1 – 7 of 7) sorted by relevance
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | mst.c | 41 is_valid_record(u32 size, u16 usa_ofs, u16 usa_count) in is_valid_record() argument 45 usa_count == 1 + (size / NTFS_BLOCK_SIZE) && in is_valid_record() 46 usa_ofs + ((u32)usa_count * 2) <= NTFS_BLOCK_SIZE - 2; in is_valid_record() 68 u16 usa_ofs, usa_count, usn; in ntfs_mst_post_read_fixup_warn() local 75 usa_count = le16_to_cpu(b->usa_count); in ntfs_mst_post_read_fixup_warn() 77 if (!is_valid_record(size, usa_ofs, usa_count)) { in ntfs_mst_post_read_fixup_warn() 85 (unsigned int)usa_count); in ntfs_mst_post_read_fixup_warn() 106 while (--usa_count) { in ntfs_mst_post_read_fixup_warn() 117 usa_ofs, usa_count, *data_pos, usn); in ntfs_mst_post_read_fixup_warn() 124 usa_count = le16_to_cpu(b->usa_count); in ntfs_mst_post_read_fixup_warn() [all …]
|
H A D | logfile.c | 60 u16 ra_ofs, usa_count, usa_ofs, usa_end = 0; in ntfs_check_restart_page_header() local 108 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header() 113 usa_count = 1 + (logfile_system_page_size >> NTFS_BLOCK_SIZE_BITS); in ntfs_check_restart_page_header() 114 if (usa_count != le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header() 121 usa_end = usa_ofs + usa_count * sizeof(u16); in ntfs_check_restart_page_header() 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()
|
H A D | logfile.h | 73 /* 6*/ le16 usa_count; /* See NTFS_RECORD definition in layout.h. */ member 317 le16 usa_count; /* See NTFS_RECORD definition in layout.h. */ member
|
H A D | layout.h | 196 le16 usa_count; /* Number of le16 sized entries in the usa member 350 le16 usa_count; /* See NTFS_RECORD definition above. */ member 425 le16 usa_count; /* See NTFS_RECORD definition above. */ member 2157 le16 usa_count; /* See NTFS_RECORD definition. */ member
|
H A D | mft.c | 431 mrec->usa_count = cpu_to_le16(vol->mft_record_size / in ntfs_mft_record_layout() 434 mrec->usa_count = const_cpu_to_le16(1); in ntfs_mft_record_layout() 449 (le16_to_cpu(mrec->usa_count) << 1) + 7) & ~7); in ntfs_mft_record_layout()
|
H A D | index.c | 918 ib->usa_count = cpu_to_le16(ib_size / NTFS_BLOCK_SIZE + 1); in ntfs_ib_alloc() 926 le16_to_cpu(ib->usa_count) * 2 + 7) & ~7); in ntfs_ib_alloc()
|
/haiku/src/add-ons/kernel/file_systems/ntfs/utils/ |
H A D | mkntfs.c | 2186 ia_val->usa_count = cpu_to_le16(index_block_size / in upgrade_to_large_index() 2189 ia_val->usa_count = cpu_to_le16(1); in upgrade_to_large_index() 2205 le16_to_cpu(ia_val->usa_count) * 2 + 7) & ~7); in upgrade_to_large_index()
|