Lines Matching refs:be16_to_cpu
128 if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length)) in __xfs_dir3_data_check()
130 if (be16_to_cpu(bf[1].length) < be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
142 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in __xfs_dir3_data_check()
147 if (endp < p + be16_to_cpu(dup->length)) in __xfs_dir3_data_check()
149 if (be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)) != in __xfs_dir3_data_check()
161 if (be16_to_cpu(dup->length) > in __xfs_dir3_data_check()
162 be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
165 p += be16_to_cpu(dup->length); in __xfs_dir3_data_check()
182 if (be16_to_cpu(*ops->data_entry_tag_p(dep)) != in __xfs_dir3_data_check()
414 if (be16_to_cpu(dfp->offset) == off) { in xfs_dir2_data_freefind_verify()
418 } else if (be16_to_cpu(dfp->offset) > off) { in xfs_dir2_data_freefind_verify()
419 if (off + be16_to_cpu(dup->length) > in xfs_dir2_data_freefind_verify()
420 be16_to_cpu(dfp->offset)) in xfs_dir2_data_freefind_verify()
423 if (be16_to_cpu(dfp->offset) + in xfs_dir2_data_freefind_verify()
424 be16_to_cpu(dfp->length) > off) in xfs_dir2_data_freefind_verify()
428 be16_to_cpu(dfp->length) < be16_to_cpu(dup->length)) in xfs_dir2_data_freefind_verify()
431 be16_to_cpu(dfp[-1].length) < be16_to_cpu(dfp[0].length)) in xfs_dir2_data_freefind_verify()
459 if (be16_to_cpu(dup->length) < in xfs_dir2_data_freefind()
460 be16_to_cpu(bf[XFS_DIR2_DATA_FD_COUNT - 1].length)) in xfs_dir2_data_freefind()
468 if (be16_to_cpu(dfp->offset) == off) in xfs_dir2_data_freefind()
500 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[0].length)) { in xfs_dir2_data_freeinsert()
507 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[1].length)) { in xfs_dir2_data_freeinsert()
513 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[2].length)) { in xfs_dir2_data_freeinsert()
602 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_data_freescan_int()
604 be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup))); in xfs_dir2_data_freescan_int()
606 p += be16_to_cpu(dup->length); in xfs_dir2_data_freescan_int()
614 be16_to_cpu(*ops->data_entry_tag_p(dep))); in xfs_dir2_data_freescan_int()
817 prevdup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_data_make_free()
818 if (be16_to_cpu(prevdup->freetag) != XFS_DIR2_DATA_FREE_TAG) in xfs_dir2_data_make_free()
829 if (be16_to_cpu(postdup->freetag) != XFS_DIR2_DATA_FREE_TAG) in xfs_dir2_data_make_free()
858 be16_add_cpu(&prevdup->length, len + be16_to_cpu(postdup->length)); in xfs_dir2_data_make_free()
910 needscan = be16_to_cpu(prevdup->length) > in xfs_dir2_data_make_free()
911 be16_to_cpu(bf[2].length); in xfs_dir2_data_make_free()
921 newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length)); in xfs_dir2_data_make_free()
938 needscan = be16_to_cpu(newdup->length) > in xfs_dir2_data_make_free()
939 be16_to_cpu(bf[2].length); in xfs_dir2_data_make_free()
970 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG) in xfs_dir2_data_check_free()
974 if (offset + len > (char *)dup + be16_to_cpu(dup->length) - (char *)hdr) in xfs_dir2_data_check_free()
977 be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup))) in xfs_dir2_data_check_free()
993 if (be16_to_cpu(dfp->offset) != (char *)newdup - (char *)hdr) in xfs_dir2_data_check_new_free()
1029 oldlen = be16_to_cpu(dup->length); in xfs_dir2_data_use_free()
1032 ASSERT(dfp || oldlen <= be16_to_cpu(bf[2].length)); in xfs_dir2_data_use_free()
1121 newdup2->length = cpu_to_be16(oldlen - len - be16_to_cpu(newdup->length)); in xfs_dir2_data_use_free()