Lines Matching refs:NTFS_DE
559 static const struct NTFS_DE *hdr_find_split(const struct INDEX_HDR *hdr)
562 const struct NTFS_DE *e = hdr_first_de(hdr);
571 const struct NTFS_DE *p = e;
590 static const struct NTFS_DE *hdr_insert_head(struct INDEX_HDR *hdr,
594 struct NTFS_DE *e = hdr_first_de(hdr);
621 off + sizeof(struct NTFS_DE) > end) {
674 struct NTFS_DE *e)
717 static struct NTFS_DE *hdr_find_e(const struct ntfs_index *indx,
721 struct NTFS_DE *e, *found = NULL;
739 if (off + sizeof(struct NTFS_DE) > end)
745 if (e_size < sizeof(struct NTFS_DE) || off + e_size > end)
802 static struct NTFS_DE *hdr_insert_de(const struct ntfs_index *indx,
804 const struct NTFS_DE *de,
805 struct NTFS_DE *before, const void *ctx)
846 static inline struct NTFS_DE *hdr_delete_de(struct INDEX_HDR *hdr,
847 struct NTFS_DE *re)
858 if (off >= used || esize < sizeof(struct NTFS_DE) ||
859 bytes < sizeof(struct NTFS_DE))
936 struct NTFS_DE *e;
977 e->size = cpu_to_le16(sizeof(struct NTFS_DE) + sizeof(u64));
979 cpu_to_le32(eo + sizeof(struct NTFS_DE) + sizeof(u64));
983 e->size = cpu_to_le16(sizeof(struct NTFS_DE));
984 hdr->used = cpu_to_le32(eo + sizeof(struct NTFS_DE));
1141 const void *ctx, int *diff, struct NTFS_DE **entry,
1145 struct NTFS_DE *e;
1203 const struct INDEX_ROOT *root, struct NTFS_DE **entry,
1208 struct NTFS_DE *e;
1250 sizeof(struct NTFS_DE) + sizeof(u64)) {
1273 if (le16_to_cpu(e->size) > sizeof(struct NTFS_DE)) {
1303 if (le16_to_cpu(e->size) > sizeof(struct NTFS_DE)) {
1313 const struct INDEX_ROOT *root, struct NTFS_DE **entry,
1318 struct NTFS_DE *e = NULL;
1319 struct NTFS_DE *e2;
1349 if (e && le16_to_cpu(e->size) > sizeof(struct NTFS_DE))
1569 const struct NTFS_DE *new_de,
1570 struct NTFS_DE *root_de, const void *ctx,
1574 struct NTFS_DE *e, *e0, *re;
1660 new_root_size = sizeof(struct INDEX_ROOT) + sizeof(struct NTFS_DE) +
1674 e = (struct NTFS_DE *)(root + 1);
1675 memset(e, 0, sizeof(struct NTFS_DE));
1676 e->size = cpu_to_le16(sizeof(struct NTFS_DE) + sizeof(u64));
1711 e = (struct NTFS_DE *)(root + 1);
1782 struct INDEX_ROOT *root, const struct NTFS_DE *new_de,
1786 const struct NTFS_DE *sp;
1787 struct NTFS_DE *e, *de_t, *up_e;
1929 const struct NTFS_DE *new_de, const void *ctx,
1934 struct NTFS_DE *e;
2000 const struct NTFS_DE *e;
2106 const struct NTFS_DE *e, bool trim)
2157 const struct NTFS_DE *de_next,
2158 struct NTFS_DE **de_to_replace,
2164 struct NTFS_DE *e, *te, *re;
2258 struct NTFS_DE *e, *re, *next, *prev, *me;
2599 sizeof(struct INDEX_ROOT) + sizeof(struct NTFS_DE);
2608 e = (struct NTFS_DE *)(root + 1);
2612 e->size = cpu_to_le16(sizeof(struct NTFS_DE));
2641 struct NTFS_DE *e = NULL;