Lines Matching refs:be32_to_cpu

208 			if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) *  in xfs_dir2_block_need_space()
211 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
288 fromidx = toidx = be32_to_cpu(btp->count) - 1; in xfs_dir2_block_compact()
304 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_compact()
305 *lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_compact()
306 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_compact()
309 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact()
419 lfloglow = be32_to_cpu(btp->count); in xfs_dir2_block_addname()
426 for (low = 0, high = be32_to_cpu(btp->count) - 1; low <= high; ) { in xfs_dir2_block_addname()
428 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
435 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
490 highstale < be32_to_cpu(btp->count) && in xfs_dir2_block_addname()
500 (highstale == be32_to_cpu(btp->count) || in xfs_dir2_block_addname()
512 ASSERT(highstale < be32_to_cpu(btp->count)); in xfs_dir2_block_addname()
634 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup()
686 for (low = 0, high = be32_to_cpu(btp->count) - 1; ; ) { in xfs_dir2_block_lookup_int()
689 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
704 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
712 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_block_lookup_int()
732 } while (++mid < be32_to_cpu(btp->count) && in xfs_dir2_block_lookup_int()
733 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
790 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename()
864 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_replace()
889 return be32_to_cpu(la->hashval) < be32_to_cpu(lb->hashval) ? -1 : in xfs_dir2_block_sort()
890 (be32_to_cpu(la->hashval) > be32_to_cpu(lb->hashval) ? 1 : 0); in xfs_dir2_block_sort()
946 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == in xfs_dir2_leaf_to_block()
950 (xfs_dir2_db_t)(be32_to_cpu(ltp->bestcount) - 1)))) in xfs_dir2_leaf_to_block()
1014 ASSERT(to == be32_to_cpu(btp->count)); in xfs_dir2_leaf_to_block()
1015 xfs_dir2_block_log_leaf(tp, dbp, 0, be32_to_cpu(btp->count) - 1); in xfs_dir2_leaf_to_block()
1245 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort); in xfs_dir2_sf_to_block()
1251 xfs_dir2_block_log_leaf(tp, bp, 0, be32_to_cpu(btp->count) - 1); in xfs_dir2_sf_to_block()