• Home
  • Raw
  • Download

Lines Matching refs:ie

74 	INDEX_ENTRY *ie;  in ntfs_lookup_inode_by_name()  local
117 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_lookup_inode_by_name()
123 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { in ntfs_lookup_inode_by_name()
125 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie + in ntfs_lookup_inode_by_name()
127 (u8*)ie + le16_to_cpu(ie->key_length) > in ntfs_lookup_inode_by_name()
134 if (ie->flags & INDEX_ENTRY_END) in ntfs_lookup_inode_by_name()
144 (ntfschar*)&ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
145 ie->key.file_name.file_name_length, in ntfs_lookup_inode_by_name()
158 if (ie->key.file_name.file_name_type == FILE_NAME_DOS) { in ntfs_lookup_inode_by_name()
168 ie->data.dir.indexed_file); in ntfs_lookup_inode_by_name()
176 mref = le64_to_cpu(ie->data.dir.indexed_file); in ntfs_lookup_inode_by_name()
192 ie->key.file_name.file_name_type && in ntfs_lookup_inode_by_name()
194 (ntfschar*)&ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
195 ie->key.file_name.file_name_length, in ntfs_lookup_inode_by_name()
198 u8 type = ie->key.file_name.file_name_type; in ntfs_lookup_inode_by_name()
199 u8 len = ie->key.file_name.file_name_length; in ntfs_lookup_inode_by_name()
220 name->mref = le64_to_cpu(ie->data.dir.indexed_file); in ntfs_lookup_inode_by_name()
224 memcpy(name->name, ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
235 (ntfschar*)&ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
236 ie->key.file_name.file_name_length, 1, in ntfs_lookup_inode_by_name()
254 (ntfschar*)&ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
255 ie->key.file_name.file_name_length, 1, in ntfs_lookup_inode_by_name()
274 if (!(ie->flags & INDEX_ENTRY_NODE)) { in ntfs_lookup_inode_by_name()
292 vcn = sle64_to_cpup((sle64*)((u8*)ie + le16_to_cpu(ie->length) - 8)); in ntfs_lookup_inode_by_name()
372 ie = (INDEX_ENTRY*)((u8*)&ia->index + in ntfs_lookup_inode_by_name()
379 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { in ntfs_lookup_inode_by_name()
381 if ((u8*)ie < (u8*)ia || (u8*)ie + in ntfs_lookup_inode_by_name()
383 (u8*)ie + le16_to_cpu(ie->key_length) > in ntfs_lookup_inode_by_name()
394 if (ie->flags & INDEX_ENTRY_END) in ntfs_lookup_inode_by_name()
404 (ntfschar*)&ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
405 ie->key.file_name.file_name_length, in ntfs_lookup_inode_by_name()
418 if (ie->key.file_name.file_name_type == FILE_NAME_DOS) { in ntfs_lookup_inode_by_name()
428 ie->data.dir.indexed_file); in ntfs_lookup_inode_by_name()
436 mref = le64_to_cpu(ie->data.dir.indexed_file); in ntfs_lookup_inode_by_name()
452 ie->key.file_name.file_name_type && in ntfs_lookup_inode_by_name()
454 (ntfschar*)&ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
455 ie->key.file_name.file_name_length, in ntfs_lookup_inode_by_name()
458 u8 type = ie->key.file_name.file_name_type; in ntfs_lookup_inode_by_name()
459 u8 len = ie->key.file_name.file_name_length; in ntfs_lookup_inode_by_name()
482 name->mref = le64_to_cpu(ie->data.dir.indexed_file); in ntfs_lookup_inode_by_name()
486 memcpy(name->name, ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
497 (ntfschar*)&ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
498 ie->key.file_name.file_name_length, 1, in ntfs_lookup_inode_by_name()
516 (ntfschar*)&ie->key.file_name.file_name, in ntfs_lookup_inode_by_name()
517 ie->key.file_name.file_name_length, 1, in ntfs_lookup_inode_by_name()
534 if (ie->flags & INDEX_ENTRY_NODE) { in ntfs_lookup_inode_by_name()
543 vcn = sle64_to_cpup((sle64*)((u8*)ie + in ntfs_lookup_inode_by_name()
544 le16_to_cpu(ie->length) - 8)); in ntfs_lookup_inode_by_name()
627 INDEX_ENTRY *ie;
668 ie = (INDEX_ENTRY*)((u8*)&ir->index +
674 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) {
676 if ((u8*)ie < (u8*)ctx->mrec || (u8*)ie +
678 (u8*)ie + le16_to_cpu(ie->key_length) >
685 if (ie->flags & INDEX_ENTRY_END)
697 ic = ie->key.file_name.file_name_type ? IGNORE_CASE :
706 (ntfschar*)&ie->key.file_name.file_name,
707 ie->key.file_name.file_name_length, ic,
710 mref = le64_to_cpu(ie->data.dir.indexed_file);
720 (ntfschar*)&ie->key.file_name.file_name,
721 ie->key.file_name.file_name_length, 1,
739 (ntfschar*)&ie->key.file_name.file_name,
740 ie->key.file_name.file_name_length, 1,
757 if (!(ie->flags & INDEX_ENTRY_NODE)) {
770 vcn = sle64_to_cpup((u8*)ie + le16_to_cpu(ie->length) - 8);
850 ie = (INDEX_ENTRY*)((u8*)&ia->index +
857 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) {
859 if ((u8*)ie < (u8*)ia || (u8*)ie +
861 (u8*)ie + le16_to_cpu(ie->key_length) >
872 if (ie->flags & INDEX_ENTRY_END)
884 ic = ie->key.file_name.file_name_type ? IGNORE_CASE :
893 (ntfschar*)&ie->key.file_name.file_name,
894 ie->key.file_name.file_name_length, ic,
897 mref = le64_to_cpu(ie->data.dir.indexed_file);
907 (ntfschar*)&ie->key.file_name.file_name,
908 ie->key.file_name.file_name_length, 1,
926 (ntfschar*)&ie->key.file_name.file_name,
927 ie->key.file_name.file_name_length, 1,
944 if (ie->flags & INDEX_ENTRY_NODE) {
953 vcn = sle64_to_cpup((u8*)ie + le16_to_cpu(ie->length) - 8);
1013 ntfs_inode *ndir, struct page *ia_page, INDEX_ENTRY *ie, in ntfs_filldir() argument
1021 name_type = ie->key.file_name.file_name_type; in ntfs_filldir()
1026 if (MREF_LE(ie->data.dir.indexed_file) == FILE_root) { in ntfs_filldir()
1030 if (MREF_LE(ie->data.dir.indexed_file) < FILE_first_user && in ntfs_filldir()
1035 name_len = ntfs_ucstonls(vol, (ntfschar*)&ie->key.file_name.file_name, in ntfs_filldir()
1036 ie->key.file_name.file_name_length, &name, in ntfs_filldir()
1040 (long long)MREF_LE(ie->data.dir.indexed_file)); in ntfs_filldir()
1043 if (ie->key.file_name.file_attributes & in ntfs_filldir()
1048 mref = MREF_LE(ie->data.dir.indexed_file); in ntfs_filldir()
1096 INDEX_ENTRY *ie; in ntfs_readdir() local
1176 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_readdir()
1183 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { in ntfs_readdir()
1184 ntfs_debug("In index root, offset 0x%zx.", (u8*)ie - (u8*)ir); in ntfs_readdir()
1186 if (unlikely((u8*)ie < (u8*)ir || (u8*)ie + in ntfs_readdir()
1188 (u8*)ie + le16_to_cpu(ie->key_length) > in ntfs_readdir()
1192 if (ie->flags & INDEX_ENTRY_END) in ntfs_readdir()
1195 if (ir_pos > (u8*)ie - (u8*)ir) in ntfs_readdir()
1198 actor->pos = (u8*)ie - (u8*)ir; in ntfs_readdir()
1200 rc = ntfs_filldir(vol, ndir, NULL, ie, name, actor); in ntfs_readdir()
1356 ie = (INDEX_ENTRY*)((u8*)&ia->index + in ntfs_readdir()
1363 for (;; ie = (INDEX_ENTRY*)((u8*)ie + le16_to_cpu(ie->length))) { in ntfs_readdir()
1366 (unsigned long long)((u8*)ie - (u8*)ia)); in ntfs_readdir()
1368 if (unlikely((u8*)ie < (u8*)ia || (u8*)ie + in ntfs_readdir()
1370 (u8*)ie + le16_to_cpu(ie->key_length) > in ntfs_readdir()
1374 if (ie->flags & INDEX_ENTRY_END) in ntfs_readdir()
1377 if (ia_pos - ia_start > (u8*)ie - (u8*)ia) in ntfs_readdir()
1380 actor->pos = (u8*)ie - (u8*)ia + in ntfs_readdir()
1390 rc = ntfs_filldir(vol, ndir, ia_page, ie, name, actor); in ntfs_readdir()