Lines Matching refs:be32_to_cpu
219 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
222 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
299 fromidx = toidx = be32_to_cpu(btp->count) - 1; in xfs_dir2_block_compact()
315 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_compact()
316 *lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_compact()
317 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_compact()
320 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact()
430 lfloglow = be32_to_cpu(btp->count); in xfs_dir2_block_addname()
437 for (low = 0, high = be32_to_cpu(btp->count) - 1; low <= high; ) { in xfs_dir2_block_addname()
439 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
446 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
497 highstale < be32_to_cpu(btp->count) && in xfs_dir2_block_addname()
507 (highstale == be32_to_cpu(btp->count) || in xfs_dir2_block_addname()
519 ASSERT(highstale < be32_to_cpu(btp->count)); in xfs_dir2_block_addname()
639 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup()
691 for (low = 0, high = be32_to_cpu(btp->count) - 1; ; ) { in xfs_dir2_block_lookup_int()
694 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
709 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
717 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_block_lookup_int()
737 } while (++mid < be32_to_cpu(btp->count) && in xfs_dir2_block_lookup_int()
738 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
795 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename()
869 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_replace()
894 return be32_to_cpu(la->hashval) < be32_to_cpu(lb->hashval) ? -1 : in xfs_dir2_block_sort()
895 (be32_to_cpu(la->hashval) > be32_to_cpu(lb->hashval) ? 1 : 0); in xfs_dir2_block_sort()
951 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == in xfs_dir2_leaf_to_block()
955 (xfs_dir2_db_t)(be32_to_cpu(ltp->bestcount) - 1)))) in xfs_dir2_leaf_to_block()
1017 ASSERT(to == be32_to_cpu(btp->count)); in xfs_dir2_leaf_to_block()
1018 xfs_dir2_block_log_leaf(tp, dbp, 0, be32_to_cpu(btp->count) - 1); in xfs_dir2_leaf_to_block()
1248 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort); in xfs_dir2_sf_to_block()
1254 xfs_dir2_block_log_leaf(tp, bp, 0, be32_to_cpu(btp->count) - 1); in xfs_dir2_sf_to_block()