Lines Matching refs:be16_to_cpu

181 		if (be16_to_cpu(bf[0].length) >= len) {  in xfs_dir2_block_need_space()
186 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
198 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
204 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
205 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
222 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
229 if (be16_to_cpu(enddup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
234 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
239 if (be16_to_cpu(dup->length) < len) in xfs_dir2_block_need_space()
247 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space()
251 if (be16_to_cpu(bf[1].length) >= len) in xfs_dir2_block_need_space()
253 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space()
445 be16_to_cpu(enddup->length) - sizeof(*blp)); in xfs_dir2_block_addname()
943 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == in xfs_dir2_leaf_to_block()
973 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_leaf_to_block()
977 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG || in xfs_dir2_leaf_to_block()
978 be16_to_cpu(dup->length) < size) in xfs_dir2_leaf_to_block()
1146 be16_to_cpu(dup->length), &needlog, &needscan); in xfs_dir2_sf_to_block()
1211 offset += be16_to_cpu(dup->length); in xfs_dir2_sf_to_block()