Lines Matching refs:be16_to_cpu

171 	if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length))
173 if (be16_to_cpu(bf[1].length) < be16_to_cpu(bf[2].length))
187 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) {
192 if (offset + be16_to_cpu(dup->length) > end)
194 if (be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)) !=
206 if (be16_to_cpu(dup->length) >
207 be16_to_cpu(bf[2].length))
210 offset += be16_to_cpu(dup->length);
226 if (be16_to_cpu(*xfs_dir2_data_entry_tag_p(mp, dep)) != offset)
488 if (be16_to_cpu(dfp->offset) == off) {
492 } else if (be16_to_cpu(dfp->offset) > off) {
493 if (off + be16_to_cpu(dup->length) >
494 be16_to_cpu(dfp->offset))
497 if (be16_to_cpu(dfp->offset) +
498 be16_to_cpu(dfp->length) > off)
502 be16_to_cpu(dfp->length) < be16_to_cpu(dup->length))
505 be16_to_cpu(dfp[-1].length) < be16_to_cpu(dfp[0].length))
533 if (be16_to_cpu(dup->length) <
534 be16_to_cpu(bf[XFS_DIR2_DATA_FD_COUNT - 1].length))
542 if (be16_to_cpu(dfp->offset) == off)
574 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[0].length)) {
581 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[1].length)) {
587 if (be16_to_cpu(new.length) > be16_to_cpu(dfp[2].length)) {
670 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) {
672 be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)));
674 offset += be16_to_cpu(dup->length);
682 be16_to_cpu(*xfs_dir2_data_entry_tag_p(mp, dep)));
870 prevdup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp));
871 if (be16_to_cpu(prevdup->freetag) != XFS_DIR2_DATA_FREE_TAG)
882 if (be16_to_cpu(postdup->freetag) != XFS_DIR2_DATA_FREE_TAG)
911 be16_add_cpu(&prevdup->length, len + be16_to_cpu(postdup->length));
963 needscan = be16_to_cpu(prevdup->length) >
964 be16_to_cpu(bf[2].length);
974 newdup->length = cpu_to_be16(len + be16_to_cpu(postdup->length));
991 needscan = be16_to_cpu(newdup->length) >
992 be16_to_cpu(bf[2].length);
1023 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG)
1027 if (offset + len > (char *)dup + be16_to_cpu(dup->length) - (char *)hdr)
1030 be16_to_cpu(*xfs_dir2_data_unused_tag_p(dup)))
1046 if (be16_to_cpu(dfp->offset) != (char *)newdup - (char *)hdr)
1082 oldlen = be16_to_cpu(dup->length);
1085 ASSERT(dfp || oldlen <= be16_to_cpu(bf[2].length));
1174 newdup2->length = cpu_to_be16(oldlen - len - be16_to_cpu(newdup->length));