Lines Matching refs:be16_to_cpu
191 if (be16_to_cpu(bf[0].length) >= len) { in xfs_dir2_block_need_space()
196 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
208 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
214 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
215 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
232 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
239 if (be16_to_cpu(enddup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
244 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
249 if (be16_to_cpu(dup->length) < len) in xfs_dir2_block_need_space()
257 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space()
261 if (be16_to_cpu(bf[1].length) >= len) in xfs_dir2_block_need_space()
263 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space()
454 ((char *)enddup - (char *)hdr + be16_to_cpu(enddup->length) - in xfs_dir2_block_addname()
947 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == in xfs_dir2_leaf_to_block()
977 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_leaf_to_block()
981 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG || in xfs_dir2_leaf_to_block()
982 be16_to_cpu(dup->length) < size) in xfs_dir2_leaf_to_block()
1150 be16_to_cpu(dup->length), &needlog, &needscan); in xfs_dir2_sf_to_block()
1213 offset += be16_to_cpu(dup->length); in xfs_dir2_sf_to_block()