Lines Matching refs:ia

88 	INDEX_ALLOCATION *ia;  in ntfs_lookup_inode_by_name()  local
333 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn << in ntfs_lookup_inode_by_name()
336 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_CACHE_SIZE) { in ntfs_lookup_inode_by_name()
342 if (unlikely(!ntfs_is_indx_record(ia->magic))) { in ntfs_lookup_inode_by_name()
348 if (sle64_to_cpu(ia->index_block_vcn) != vcn) { in ntfs_lookup_inode_by_name()
353 sle64_to_cpu(ia->index_block_vcn), in ntfs_lookup_inode_by_name()
357 if (le32_to_cpu(ia->index.allocated_size) + 0x18 != in ntfs_lookup_inode_by_name()
364 le32_to_cpu(ia->index.allocated_size) + 0x18, in ntfs_lookup_inode_by_name()
368 index_end = (u8*)ia + dir_ni->itype.index.block_size; in ntfs_lookup_inode_by_name()
377 index_end = (u8*)&ia->index + le32_to_cpu(ia->index.index_length); in ntfs_lookup_inode_by_name()
378 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) { in ntfs_lookup_inode_by_name()
385 ie = (INDEX_ENTRY*)((u8*)&ia->index + in ntfs_lookup_inode_by_name()
386 le32_to_cpu(ia->index.entries_offset)); in ntfs_lookup_inode_by_name()
394 if ((u8*)ie < (u8*)ia || (u8*)ie + in ntfs_lookup_inode_by_name()
548 if ((ia->index.flags & NODE_MASK) == LEAF_NODE) { in ntfs_lookup_inode_by_name()
641 INDEX_ALLOCATION *ia;
811 ia = (INDEX_ALLOCATION*)(kaddr + ((vcn <<
814 if ((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_CACHE_SIZE) {
820 if (unlikely(!ntfs_is_indx_record(ia->magic))) {
826 if (sle64_to_cpu(ia->index_block_vcn) != vcn) {
831 sle64_to_cpu(ia->index_block_vcn),
835 if (le32_to_cpu(ia->index.allocated_size) + 0x18 !=
842 le32_to_cpu(ia->index.allocated_size) + 0x18,
846 index_end = (u8*)ia + dir_ni->itype.index.block_size;
855 index_end = (u8*)&ia->index + le32_to_cpu(ia->index.index_length);
856 if (index_end > (u8*)ia + dir_ni->itype.index.block_size) {
863 ie = (INDEX_ENTRY*)((u8*)&ia->index +
864 le32_to_cpu(ia->index.entries_offset));
872 if ((u8*)ie < (u8*)ia || (u8*)ie +
958 if ((ia->index.flags & NODE_MASK) == LEAF_NODE) {
1111 INDEX_ALLOCATION *ia; in ntfs_readdir() local
1329 ia = (INDEX_ALLOCATION*)(kaddr + (ia_pos & ~PAGE_CACHE_MASK & in ntfs_readdir()
1332 if (unlikely((u8*)ia < kaddr || (u8*)ia > kaddr + PAGE_CACHE_SIZE)) { in ntfs_readdir()
1338 if (unlikely(!ntfs_is_indx_record(ia->magic))) { in ntfs_readdir()
1345 if (unlikely(sle64_to_cpu(ia->index_block_vcn) != (ia_pos & in ntfs_readdir()
1352 sle64_to_cpu(ia->index_block_vcn), in ntfs_readdir()
1357 if (unlikely(le32_to_cpu(ia->index.allocated_size) + 0x18 != in ntfs_readdir()
1365 le32_to_cpu(ia->index.allocated_size) + 0x18, in ntfs_readdir()
1369 index_end = (u8*)ia + ndir->itype.index.block_size; in ntfs_readdir()
1379 index_end = (u8*)&ia->index + le32_to_cpu(ia->index.index_length); in ntfs_readdir()
1380 if (unlikely(index_end > (u8*)ia + ndir->itype.index.block_size)) { in ntfs_readdir()
1388 ie = (INDEX_ENTRY*)((u8*)&ia->index + in ntfs_readdir()
1389 le32_to_cpu(ia->index.entries_offset)); in ntfs_readdir()
1398 (unsigned long long)((u8*)ie - (u8*)ia)); in ntfs_readdir()
1400 if (unlikely((u8*)ie < (u8*)ia || (u8*)ie + in ntfs_readdir()
1409 if (ia_pos - ia_start > (u8*)ie - (u8*)ia) in ntfs_readdir()
1412 fpos = (u8*)ie - (u8*)ia + in ntfs_readdir()
1413 (sle64_to_cpu(ia->index_block_vcn) << in ntfs_readdir()