Lines Matching refs:be16_to_cpu
136 enddup = (xfs_dir2_data_unused_t *)((char *)block + be16_to_cpu(*tagp));
142 if (be16_to_cpu(enddup->freetag) != XFS_DIR2_DATA_FREE_TAG)
149 ((char *)block + be16_to_cpu(bf[0].offset));
155 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) {
160 if (be16_to_cpu(bf[1].length) >= len)
163 be16_to_cpu(bf[1].offset));
172 if (be16_to_cpu(dup->length) < len) {
183 else if (be16_to_cpu(bf[0].length) >= len) {
185 ((char *)block + be16_to_cpu(bf[0].offset));
199 dup = (xfs_dir2_data_unused_t *)((char *)block + be16_to_cpu(*tagp));
204 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) {
205 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) *
316 ((char *)enddup - (char *)block + be16_to_cpu(enddup->length) -
490 if (be16_to_cpu(dup->freetag) == XFS_DIR2_DATA_FREE_TAG) {
491 ptr += be16_to_cpu(dup->length);
909 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC);
919 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) ==
944 (uint)sizeof(*lep) * (be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale));
949 dup = (xfs_dir2_data_unused_t *)((char *)block + be16_to_cpu(*tagp));
953 if (be16_to_cpu(dup->freetag) != XFS_DIR2_DATA_FREE_TAG ||
954 be16_to_cpu(dup->length) < size) {
973 btp->count = cpu_to_be32(be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale));
980 for (from = to = 0; from < be16_to_cpu(leaf->hdr.count); from++) {
1127 be16_to_cpu(dup->length), &needlog, &needscan);
1189 offset += be16_to_cpu(dup->length);