Lines Matching refs:be16_to_cpu
184 if (be16_to_cpu(bf[0].length) >= len) { in xfs_dir2_block_need_space()
189 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
201 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
207 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
208 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
225 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
232 if (be16_to_cpu(enddup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
237 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
242 if (be16_to_cpu(dup->length) < len) in xfs_dir2_block_need_space()
250 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space()
254 if (be16_to_cpu(bf[1].length) >= len) in xfs_dir2_block_need_space()
256 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space()
448 be16_to_cpu(enddup->length) - sizeof(*blp)); in xfs_dir2_block_addname()
946 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == in xfs_dir2_leaf_to_block()
976 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_leaf_to_block()
980 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG || in xfs_dir2_leaf_to_block()
981 be16_to_cpu(dup->length) < size) in xfs_dir2_leaf_to_block()
1149 be16_to_cpu(dup->length), &needlog, &needscan); in xfs_dir2_sf_to_block()
1214 offset += be16_to_cpu(dup->length); in xfs_dir2_sf_to_block()