Lines Matching refs:be16_to_cpu
195 if (be16_to_cpu(bf[0].length) >= len) { in xfs_dir2_block_need_space()
200 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
212 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
218 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
219 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
236 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
243 if (be16_to_cpu(enddup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
248 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
253 if (be16_to_cpu(dup->length) < len) in xfs_dir2_block_need_space()
261 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space()
265 if (be16_to_cpu(bf[1].length) >= len) in xfs_dir2_block_need_space()
267 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space()
458 ((char *)enddup - (char *)hdr + be16_to_cpu(enddup->length) - in xfs_dir2_block_addname()
951 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == in xfs_dir2_leaf_to_block()
981 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_leaf_to_block()
985 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG || in xfs_dir2_leaf_to_block()
986 be16_to_cpu(dup->length) < size) in xfs_dir2_leaf_to_block()
1154 be16_to_cpu(dup->length), &needlog, &needscan); in xfs_dir2_sf_to_block()
1217 offset += be16_to_cpu(dup->length); in xfs_dir2_sf_to_block()