Lines Matching refs:be16_to_cpu
170 if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length)) in __xfs_dir3_data_check()
172 if (be16_to_cpu(bf[1].length) < be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
186 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in __xfs_dir3_data_check()
191 if (offset + be16_to_cpu(dup->length) > end) in __xfs_dir3_data_check()
193 if (be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)) != in __xfs_dir3_data_check()
205 if (be16_to_cpu(dup->length) > in __xfs_dir3_data_check()
206 be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
209 offset += be16_to_cpu(dup->length); in __xfs_dir3_data_check()
225 if (be16_to_cpu(*xfs_dir2_data_entry_tag_p(mp, dep)) != offset) in __xfs_dir3_data_check()
486 if (be16_to_cpu(dfp->offset) == off) { in xfs_dir2_data_freefind_verify()
490 } else if (be16_to_cpu(dfp->offset) > off) { in xfs_dir2_data_freefind_verify()
491 if (off + be16_to_cpu(dup->length) > in xfs_dir2_data_freefind_verify()
492 be16_to_cpu(dfp->offset)) in xfs_dir2_data_freefind_verify()
495 if (be16_to_cpu(dfp->offset) + in xfs_dir2_data_freefind_verify()
496 be16_to_cpu(dfp->length) > off) in xfs_dir2_data_freefind_verify()
500 be16_to_cpu(dfp->length) < be16_to_cpu(dup->length)) in xfs_dir2_data_freefind_verify()
503 be16_to_cpu(dfp[-1].length) < be16_to_cpu(dfp[0].length)) in xfs_dir2_data_freefind_verify()
531 if (be16_to_cpu(dup->length) < in xfs_dir2_data_freefind()
532 be16_to_cpu(bf[XFS_DIR2_DATA_FD_COUNT - 1].length)) in xfs_dir2_data_freefind()
540 if (be16_to_cpu(dfp->offset) == off) in xfs_dir2_data_freefind()
572 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[0].length)) { in xfs_dir2_data_freeinsert()
579 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[1].length)) { in xfs_dir2_data_freeinsert()
585 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[2].length)) { in xfs_dir2_data_freeinsert()
668 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_data_freescan()
670 be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup))); in xfs_dir2_data_freescan()
672 offset += be16_to_cpu(dup->length); in xfs_dir2_data_freescan()
680 be16_to_cpu(*xfs_dir2_data_entry_tag_p(mp, dep))); in xfs_dir2_data_freescan()
868 prevdup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_data_make_free()
869 if (be16_to_cpu(prevdup->freetag) != XFS_DIR2_DATA_FREE_TAG) in xfs_dir2_data_make_free()
880 if (be16_to_cpu(postdup->freetag) != XFS_DIR2_DATA_FREE_TAG) in xfs_dir2_data_make_free()
909 be16_add_cpu(&prevdup->length, len + be16_to_cpu(postdup->length)); in xfs_dir2_data_make_free()
961 needscan = be16_to_cpu(prevdup->length) > in xfs_dir2_data_make_free()
962 be16_to_cpu(bf[2].length); in xfs_dir2_data_make_free()
972 newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length)); in xfs_dir2_data_make_free()
989 needscan = be16_to_cpu(newdup->length) > in xfs_dir2_data_make_free()
990 be16_to_cpu(bf[2].length); in xfs_dir2_data_make_free()
1021 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG) in xfs_dir2_data_check_free()
1025 if (offset + len > (char *)dup + be16_to_cpu(dup->length) - (char *)hdr) in xfs_dir2_data_check_free()
1028 be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup))) in xfs_dir2_data_check_free()
1044 if (be16_to_cpu(dfp->offset) != (char *)newdup - (char *)hdr) in xfs_dir2_data_check_new_free()
1080 oldlen = be16_to_cpu(dup->length); in xfs_dir2_data_use_free()
1083 ASSERT(dfp || oldlen <= be16_to_cpu(bf[2].length)); in xfs_dir2_data_use_free()
1172 newdup2->length = cpu_to_be16(oldlen - len - be16_to_cpu(newdup->length)); in xfs_dir2_data_use_free()