Lines Matching refs:esize
789 static inline struct RESTART_TABLE *init_rsttbl(u16 esize, u16 used) in init_rsttbl() argument
793 u32 bytes = esize * used + sizeof(struct RESTART_TABLE); in init_rsttbl()
794 u32 lf = sizeof(struct RESTART_TABLE) + (used - 1) * esize; in init_rsttbl()
800 t->size = cpu_to_le16(esize); in init_rsttbl()
809 for (off = sizeof(struct RESTART_TABLE) + esize; e < last_free; in init_rsttbl()
810 e = Add2Ptr(e, esize), off += esize) { in init_rsttbl()
819 u16 esize = le16_to_cpu(tbl->size); in extend_rsttbl() local
824 rt = init_rsttbl(esize, used + add); in extend_rsttbl()
828 memcpy(rt + 1, tbl + 1, esize * used); in extend_rsttbl()
833 free_goal * esize); in extend_rsttbl()
896 u16 esize = le16_to_cpu(rt->size); in alloc_rsttbl_from_idx() local
910 *tbl = rt = extend_rsttbl(rt, bytes2idx / esize + 1, bytes); in alloc_rsttbl_from_idx()
969 memset(e, 0, esize); in alloc_rsttbl_from_idx()
2627 u16 esize = le16_to_cpu(e->size); in check_index_header() local
2628 struct NTFS_DE *next = Add2Ptr(e, esize); in check_index_header()
2630 if (esize < min_de || PtrOffset(hdr, next) > used || in check_index_header()
2891 u16 esize; in check_if_root_index() local
2896 esize = le16_to_cpu(e->size); in check_if_root_index()
2897 if (!esize) in check_if_root_index()
2900 o += esize; in check_if_root_index()
2901 e = Add2Ptr(e, esize); in check_if_root_index()
2916 u16 esize; in check_if_alloc_index() local
2921 esize = le16_to_cpu(e->size); in check_if_alloc_index()
2922 if (!esize) in check_if_alloc_index()
2925 o += esize; in check_if_alloc_index()
2926 de_off += esize; in check_if_alloc_index()
2927 e = Add2Ptr(e, esize); in check_if_alloc_index()
3053 u32 nsize, t32, asize, used, esize, bmp_off, bmp_bits; in do_action() local
3395 esize = le16_to_cpu(e->size); in do_action()
3402 Add2Ptr(data, esize) > Add2Ptr(lrh, rec_len) || in do_action()
3403 esize > le32_to_cpu(rec->total) - le32_to_cpu(rec->used)) { in do_action()
3409 change_attr_size(rec, attr, le32_to_cpu(attr->size) + esize); in do_action()
3411 memmove(Add2Ptr(e1, esize), e1, in do_action()
3413 memmove(e1, e, esize); in do_action()
3415 le32_add_cpu(&attr->res.data_size, esize); in do_action()
3416 hdr->used = cpu_to_le32(used + esize); in do_action()
3417 le32_add_cpu(&hdr->total, esize); in do_action()
3433 esize = le16_to_cpu(e1->size); in do_action()
3434 e2 = Add2Ptr(e1, esize); in do_action()
3438 le32_sub_cpu(&attr->res.data_size, esize); in do_action()
3439 hdr->used = cpu_to_le32(used - esize); in do_action()
3440 le32_sub_cpu(&hdr->total, esize); in do_action()
3442 change_attr_size(rec, attr, le32_to_cpu(attr->size) - esize); in do_action()
3516 esize = le16_to_cpu(e->size); in do_action()
3528 Add2Ptr(e, esize) > Add2Ptr(lrh, rec_len) || in do_action()
3529 used + esize > le32_to_cpu(hdr->total)) { in do_action()
3533 memmove(Add2Ptr(e1, esize), e1, in do_action()
3535 memcpy(e1, e, esize); in do_action()
3537 hdr->used = cpu_to_le32(used + esize); in do_action()
3548 esize = le16_to_cpu(e->size); in do_action()
3560 e1 = Add2Ptr(e, esize); in do_action()
3561 nsize = esize; in do_action()