Lines Matching refs:be32_to_cpu
111 leaf->hdr.count = cpu_to_be16(be32_to_cpu(btp->count));
112 leaf->hdr.stale = cpu_to_be16(be32_to_cpu(btp->stale));
117 memcpy(leaf->ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t));
222 index < be16_to_cpu(leaf->hdr.count) && be32_to_cpu(lep->hashval) == args->hashval;
224 if (be32_to_cpu(lep->address) == XFS_DIR2_NULL_DATAPTR)
226 i = xfs_dir2_dataptr_to_db(mp, be32_to_cpu(lep->address));
227 ASSERT(i < be32_to_cpu(ltp->bestcount));
238 for (i = 0; i < be32_to_cpu(ltp->bestcount); i++) {
359 if (use_block >= be32_to_cpu(ltp->bestcount)) {
362 be32_to_cpu(ltp->bestcount) * sizeof(bestsp[0]));
365 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);
469 be32_to_cpu(leaf->ents[lowstale].address) !=
480 be32_to_cpu(leaf->ents[highstale].address) !=
494 ASSERT(be32_to_cpu(leaf->ents[lowstale].address) ==
513 ASSERT(be32_to_cpu(leaf->ents[highstale].address) ==
583 ASSERT(be32_to_cpu(leaf->ents[i].hashval) <=
584 be32_to_cpu(leaf->ents[i + 1].hashval));
585 if (be32_to_cpu(leaf->ents[i].address) == XFS_DIR2_NULL_DATAPTR)
614 if (be32_to_cpu(leaf->ents[from].address) == XFS_DIR2_NULL_DATAPTR)
671 be32_to_cpu(leaf->ents[lowstale].address) != XFS_DIR2_NULL_DATAPTR;
680 be32_to_cpu(leaf->ents[highstale].address) != XFS_DIR2_NULL_DATAPTR &&
704 be32_to_cpu(leaf->ents[from].address) == XFS_DIR2_NULL_DATAPTR) {
1290 xfs_dir2_dataptr_to_off(dp->i_mount, be32_to_cpu(lep->address)));
1351 be32_to_cpu(lep->hashval) == args->hashval;
1356 if (be32_to_cpu(lep->address) == XFS_DIR2_NULL_DATAPTR)
1361 newdb = xfs_dir2_dataptr_to_db(mp, be32_to_cpu(lep->address));
1383 xfs_dir2_dataptr_to_off(mp, be32_to_cpu(lep->address)));
1476 db = xfs_dir2_dataptr_to_db(mp, be32_to_cpu(lep->address));
1478 ((char *)data + xfs_dir2_dataptr_to_off(mp, be32_to_cpu(lep->address)));
1540 if (db == be32_to_cpu(ltp->bestcount) - 1) {
1553 (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp));
1556 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);
1610 xfs_dir2_dataptr_to_off(dp->i_mount, be32_to_cpu(lep->address)));
1655 if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant)
1666 while (mid > 0 && be32_to_cpu(lep[mid - 1].hashval) == hashwant) {
1712 ASSERT(be32_to_cpu(data->hdr.magic) == XFS_DIR2_DATA_MAGIC);
1723 ASSERT(db == be32_to_cpu(ltp->bestcount) - 1);
1737 memmove(&bestsp[1], &bestsp[0], be32_to_cpu(ltp->bestcount) * sizeof(*bestsp));
1739 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);
1822 ASSERT(be32_to_cpu(free->hdr.magic) == XFS_DIR2_FREE_MAGIC);
1830 be32_to_cpu(free->hdr.nvalid) * (uint)sizeof(leaf->bests[0]) +
1854 be32_to_cpu(ltp->bestcount) * sizeof(leaf->bests[0]));
1855 xfs_dir2_leaf_log_bests(tp, lbp, 0, be32_to_cpu(ltp->bestcount) - 1);