Lines Matching refs:NTFS_DE

559 static const struct NTFS_DE *hdr_find_split(const struct INDEX_HDR *hdr)  in hdr_find_split()
562 const struct NTFS_DE *e = hdr_first_de(hdr); in hdr_find_split()
571 const struct NTFS_DE *p = e; in hdr_find_split()
590 static const struct NTFS_DE *hdr_insert_head(struct INDEX_HDR *hdr, in hdr_insert_head()
594 struct NTFS_DE *e = hdr_first_de(hdr); in hdr_insert_head()
621 off + sizeof(struct NTFS_DE) > end) { in index_hdr_check()
674 struct NTFS_DE *e) in fnd_push()
717 static struct NTFS_DE *hdr_find_e(const struct ntfs_index *indx, in hdr_find_e()
721 struct NTFS_DE *e, *found = NULL; in hdr_find_e()
739 if (off + sizeof(struct NTFS_DE) > end) in hdr_find_e()
745 if (e_size < sizeof(struct NTFS_DE) || off + e_size > end) in hdr_find_e()
802 static struct NTFS_DE *hdr_insert_de(const struct ntfs_index *indx, in hdr_insert_de()
804 const struct NTFS_DE *de, in hdr_insert_de()
805 struct NTFS_DE *before, const void *ctx) in hdr_insert_de()
846 static inline struct NTFS_DE *hdr_delete_de(struct INDEX_HDR *hdr, in hdr_delete_de()
847 struct NTFS_DE *re) in hdr_delete_de()
858 if (off >= used || esize < sizeof(struct NTFS_DE) || in hdr_delete_de()
859 bytes < sizeof(struct NTFS_DE)) in hdr_delete_de()
936 struct NTFS_DE *e; in indx_new()
977 e->size = cpu_to_le16(sizeof(struct NTFS_DE) + sizeof(u64)); in indx_new()
979 cpu_to_le32(eo + sizeof(struct NTFS_DE) + sizeof(u64)); in indx_new()
983 e->size = cpu_to_le16(sizeof(struct NTFS_DE)); in indx_new()
984 hdr->used = cpu_to_le32(eo + sizeof(struct NTFS_DE)); in indx_new()
1141 const void *ctx, int *diff, struct NTFS_DE **entry, in indx_find()
1145 struct NTFS_DE *e; in indx_find()
1203 const struct INDEX_ROOT *root, struct NTFS_DE **entry, in indx_find_sort()
1208 struct NTFS_DE *e; in indx_find_sort()
1250 sizeof(struct NTFS_DE) + sizeof(u64)) { in indx_find_sort()
1273 if (le16_to_cpu(e->size) > sizeof(struct NTFS_DE)) { in indx_find_sort()
1303 if (le16_to_cpu(e->size) > sizeof(struct NTFS_DE)) { in indx_find_sort()
1313 const struct INDEX_ROOT *root, struct NTFS_DE **entry, in indx_find_raw()
1318 struct NTFS_DE *e = NULL; in indx_find_raw()
1319 struct NTFS_DE *e2; in indx_find_raw()
1349 if (e && le16_to_cpu(e->size) > sizeof(struct NTFS_DE)) in indx_find_raw()
1576 const struct NTFS_DE *new_de, in indx_insert_into_root()
1577 struct NTFS_DE *root_de, const void *ctx, in indx_insert_into_root()
1581 struct NTFS_DE *e, *e0, *re; in indx_insert_into_root()
1667 new_root_size = sizeof(struct INDEX_ROOT) + sizeof(struct NTFS_DE) + in indx_insert_into_root()
1681 e = (struct NTFS_DE *)(root + 1); in indx_insert_into_root()
1682 memset(e, 0, sizeof(struct NTFS_DE)); in indx_insert_into_root()
1683 e->size = cpu_to_le16(sizeof(struct NTFS_DE) + sizeof(u64)); in indx_insert_into_root()
1718 e = (struct NTFS_DE *)(root + 1); in indx_insert_into_root()
1789 struct INDEX_ROOT *root, const struct NTFS_DE *new_de, in indx_insert_into_buffer()
1793 const struct NTFS_DE *sp; in indx_insert_into_buffer()
1794 struct NTFS_DE *e, *de_t, *up_e; in indx_insert_into_buffer()
1936 const struct NTFS_DE *new_de, const void *ctx, in indx_insert_entry()
1941 struct NTFS_DE *e; in indx_insert_entry()
2007 const struct NTFS_DE *e; in indx_find_buffer()
2113 const struct NTFS_DE *e, bool trim) in indx_free_children()
2164 const struct NTFS_DE *de_next, in indx_get_entry_to_replace()
2165 struct NTFS_DE **de_to_replace, in indx_get_entry_to_replace()
2171 struct NTFS_DE *e, *te, *re; in indx_get_entry_to_replace()
2265 struct NTFS_DE *e, *re, *next, *prev, *me; in indx_delete_entry()
2606 sizeof(struct INDEX_ROOT) + sizeof(struct NTFS_DE); in indx_delete_entry()
2615 e = (struct NTFS_DE *)(root + 1); in indx_delete_entry()
2619 e->size = cpu_to_le16(sizeof(struct NTFS_DE)); in indx_delete_entry()
2648 struct NTFS_DE *e = NULL; in indx_update_dup()