• Home
  • Raw
  • Download

Lines Matching refs:be32_to_cpu

112 	leaf->hdr.count = cpu_to_be16(be32_to_cpu(btp->count));  in xfs_dir2_block_to_leaf()
113 leaf->hdr.stale = cpu_to_be16(be32_to_cpu(btp->stale)); in xfs_dir2_block_to_leaf()
118 memcpy(leaf->ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
222 index < be16_to_cpu(leaf->hdr.count) && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_addname()
224 if (be32_to_cpu(lep->address) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_leaf_addname()
226 i = xfs_dir2_dataptr_to_db(mp, be32_to_cpu(lep->address)); in xfs_dir2_leaf_addname()
227 ASSERT(i < be32_to_cpu(ltp->bestcount)); in xfs_dir2_leaf_addname()
238 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) { in xfs_dir2_leaf_addname()
359 if (use_block >= be32_to_cpu(ltp->bestcount)) { in xfs_dir2_leaf_addname()
362 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0])); in xfs_dir2_leaf_addname()
365 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_addname()
469 be32_to_cpu(leaf->ents[lowstale].address) != in xfs_dir2_leaf_addname()
480 be32_to_cpu(leaf->ents[highstale].address) != in xfs_dir2_leaf_addname()
494 ASSERT(be32_to_cpu(leaf->ents[lowstale].address) == in xfs_dir2_leaf_addname()
513 ASSERT(be32_to_cpu(leaf->ents[highstale].address) == in xfs_dir2_leaf_addname()
583 ASSERT(be32_to_cpu(leaf->ents[i].hashval) <= in xfs_dir2_leaf_check()
584 be32_to_cpu(leaf->ents[i + 1].hashval)); in xfs_dir2_leaf_check()
585 if (be32_to_cpu(leaf->ents[i].address) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_leaf_check()
614 if (be32_to_cpu(leaf->ents[from].address) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_leaf_compact()
671 be32_to_cpu(leaf->ents[lowstale].address) != XFS_DIR2_NULL_DATAPTR; in xfs_dir2_leaf_compact_x1()
680 be32_to_cpu(leaf->ents[highstale].address) != XFS_DIR2_NULL_DATAPTR && in xfs_dir2_leaf_compact_x1()
704 be32_to_cpu(leaf->ents[from].address) == XFS_DIR2_NULL_DATAPTR) { in xfs_dir2_leaf_compact_x1()
1300 xfs_dir2_dataptr_to_off(dp->i_mount, be32_to_cpu(lep->address))); in xfs_dir2_leaf_lookup()
1361 be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leaf_lookup_int()
1366 if (be32_to_cpu(lep->address) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_leaf_lookup_int()
1371 newdb = xfs_dir2_dataptr_to_db(mp, be32_to_cpu(lep->address)); in xfs_dir2_leaf_lookup_int()
1393 xfs_dir2_dataptr_to_off(mp, be32_to_cpu(lep->address))); in xfs_dir2_leaf_lookup_int()
1485 db = xfs_dir2_dataptr_to_db(mp, be32_to_cpu(lep->address)); in xfs_dir2_leaf_removename()
1487 ((char *)data + xfs_dir2_dataptr_to_off(mp, be32_to_cpu(lep->address))); in xfs_dir2_leaf_removename()
1549 if (db == be32_to_cpu(ltp->bestcount) - 1) { in xfs_dir2_leaf_removename()
1562 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); in xfs_dir2_leaf_removename()
1565 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_removename()
1618 xfs_dir2_dataptr_to_off(dp->i_mount, be32_to_cpu(lep->address))); in xfs_dir2_leaf_replace()
1663 if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) in xfs_dir2_leaf_search_hash()
1674 while (mid > 0 && be32_to_cpu(lep[mid - 1].hashval) == hashwant) { in xfs_dir2_leaf_search_hash()
1720 ASSERT(be32_to_cpu(data->hdr.magic) == XFS_DIR2_DATA_MAGIC); in xfs_dir2_leaf_trim_data()
1731 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1745 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp)); in xfs_dir2_leaf_trim_data()
1747 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_leaf_trim_data()
1828 ASSERT(be32_to_cpu(free->hdr.magic) == XFS_DIR2_FREE_MAGIC); in xfs_dir2_node_to_leaf()
1836 be32_to_cpu(free->hdr.nvalid) * (uint)sizeof(leaf->bests[0]) + in xfs_dir2_node_to_leaf()
1860 be32_to_cpu(ltp->bestcount) * sizeof(leaf->bests[0])); in xfs_dir2_node_to_leaf()
1861 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1); in xfs_dir2_node_to_leaf()