• Home
  • Raw
  • Download

Lines Matching refs:be32_to_cpu

113 	if (unlikely(be32_to_cpu(block->hdr.magic) != XFS_DIR2_BLOCK_MAGIC)) {  in xfs_dir2_block_addname()
206 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_addname()
209 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_addname()
255 for (fromidx = toidx = be32_to_cpu(btp->count) - 1, in xfs_dir2_block_addname()
259 if (be32_to_cpu(blp[fromidx].address) == XFS_DIR2_NULL_DATAPTR) { in xfs_dir2_block_addname()
272 lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_addname()
273 lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_addname()
274 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_addname()
277 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_addname()
279 blp += be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_addname()
295 lfloglow = be32_to_cpu(btp->count); in xfs_dir2_block_addname()
301 for (low = 0, high = be32_to_cpu(btp->count) - 1; low <= high; ) { in xfs_dir2_block_addname()
303 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
310 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
357 be32_to_cpu(blp[lowstale].address) != XFS_DIR2_NULL_DATAPTR; in xfs_dir2_block_addname()
361 highstale < be32_to_cpu(btp->count) && in xfs_dir2_block_addname()
362 be32_to_cpu(blp[highstale].address) != XFS_DIR2_NULL_DATAPTR && in xfs_dir2_block_addname()
370 (highstale == be32_to_cpu(btp->count) || in xfs_dir2_block_addname()
382 ASSERT(highstale < be32_to_cpu(btp->count)); in xfs_dir2_block_addname()
615 xfs_dir2_dataptr_to_off(mp, be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup()
669 for (low = 0, high = be32_to_cpu(btp->count) - 1; ; ) { in xfs_dir2_block_lookup_int()
672 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
687 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
695 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_block_lookup_int()
715 } while (++mid < be32_to_cpu(btp->count) && in xfs_dir2_block_lookup_int()
716 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
773 ((char *)block + xfs_dir2_dataptr_to_off(mp, be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename()
848 ((char *)block + xfs_dir2_dataptr_to_off(mp, be32_to_cpu(blp[ent].address))); in xfs_dir2_block_replace()
873 return be32_to_cpu(la->hashval) < be32_to_cpu(lb->hashval) ? -1 : in xfs_dir2_block_sort()
874 (be32_to_cpu(la->hashval) > be32_to_cpu(lb->hashval) ? 1 : 0); in xfs_dir2_block_sort()
920 if (be16_to_cpu(bestsp[be32_to_cpu(ltp->bestcount) - 1]) == in xfs_dir2_leaf_to_block()
924 (xfs_dir2_db_t)(be32_to_cpu(ltp->bestcount) - 1)))) in xfs_dir2_leaf_to_block()
940 ASSERT(be32_to_cpu(block->hdr.magic) == XFS_DIR2_DATA_MAGIC); in xfs_dir2_leaf_to_block()
982 if (be32_to_cpu(leaf->ents[from].address) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_leaf_to_block()
986 ASSERT(to == be32_to_cpu(btp->count)); in xfs_dir2_leaf_to_block()
987 xfs_dir2_block_log_leaf(tp, dbp, 0, be32_to_cpu(btp->count) - 1); in xfs_dir2_leaf_to_block()
1222 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort); in xfs_dir2_sf_to_block()
1228 xfs_dir2_block_log_leaf(tp, bp, 0, be32_to_cpu(btp->count) - 1); in xfs_dir2_sf_to_block()