Lines Matching refs:be16_to_cpu

210 		if (be16_to_cpu(bf[0].length) >= len) {  in xfs_dir2_block_need_space()
215 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
227 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
233 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
234 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
251 enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_block_need_space()
258 if (be16_to_cpu(enddup->freetag) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_need_space()
263 ((char *)hdr + be16_to_cpu(bf[0].offset)); in xfs_dir2_block_need_space()
268 if (be16_to_cpu(dup->length) < len) in xfs_dir2_block_need_space()
276 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space()
280 if (be16_to_cpu(bf[1].length) >= len) in xfs_dir2_block_need_space()
282 ((char *)hdr + be16_to_cpu(bf[1].offset)); in xfs_dir2_block_need_space()
474 be16_to_cpu(enddup->length) - sizeof(*blp)); in xfs_dir2_block_addname()
969 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == in xfs_dir2_leaf_to_block()
999 dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp)); in xfs_dir2_leaf_to_block()
1003 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG || in xfs_dir2_leaf_to_block()
1004 be16_to_cpu(dup->length) < size) in xfs_dir2_leaf_to_block()
1164 be16_to_cpu(dup->length), &needlog, &needscan); in xfs_dir2_sf_to_block()
1231 offset += be16_to_cpu(dup->length); in xfs_dir2_sf_to_block()