Lines Matching refs:be32_to_cpu

215 			if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) *  in xfs_dir2_block_need_space()
218 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
295 fromidx = toidx = be32_to_cpu(btp->count) - 1; in xfs_dir2_block_compact()
311 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_compact()
312 *lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_compact()
313 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_compact()
316 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact()
426 lfloglow = be32_to_cpu(btp->count); in xfs_dir2_block_addname()
433 for (low = 0, high = be32_to_cpu(btp->count) - 1; low <= high; ) { in xfs_dir2_block_addname()
435 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
442 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
493 highstale < be32_to_cpu(btp->count) && in xfs_dir2_block_addname()
503 (highstale == be32_to_cpu(btp->count) || in xfs_dir2_block_addname()
515 ASSERT(highstale < be32_to_cpu(btp->count)); in xfs_dir2_block_addname()
635 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup()
687 for (low = 0, high = be32_to_cpu(btp->count) - 1; ; ) { in xfs_dir2_block_lookup_int()
690 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
705 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
713 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_block_lookup_int()
733 } while (++mid < be32_to_cpu(btp->count) && in xfs_dir2_block_lookup_int()
734 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
791 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename()
865 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_replace()
890 return be32_to_cpu(la->hashval) < be32_to_cpu(lb->hashval) ? -1 : in xfs_dir2_block_sort()
891 (be32_to_cpu(la->hashval) > be32_to_cpu(lb->hashval) ? 1 : 0); in xfs_dir2_block_sort()
947 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == in xfs_dir2_leaf_to_block()
951 (xfs_dir2_db_t)(be32_to_cpu(ltp->bestcount) - 1)))) in xfs_dir2_leaf_to_block()
1013 ASSERT(to == be32_to_cpu(btp->count)); in xfs_dir2_leaf_to_block()
1014 xfs_dir2_block_log_leaf(tp, dbp, 0, be32_to_cpu(btp->count) - 1); in xfs_dir2_leaf_to_block()
1244 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort); in xfs_dir2_sf_to_block()
1250 xfs_dir2_block_log_leaf(tp, bp, 0, be32_to_cpu(btp->count) - 1); in xfs_dir2_sf_to_block()