Lines Matching refs:ARCH_CONVERT
220 o = INT_GET(k->br_startoff, ARCH_CONVERT); in xfs_bmbt_trace_argifk()
269 o = INT_GET(k->br_startoff, ARCH_CONVERT); in xfs_bmbt_trace_argik()
292 …INT_GET(r.l0, ARCH_CONVERT) >> 32, (int)INT_GET(r.l0, ARCH_CONVERT), INT_GET(r.l1, ARCH_CONVERT) >… in xfs_bmbt_trace_cursor()
385 numrecs = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_delrec()
403 if ((error = xfs_btree_check_lptr(cur, INT_GET(pp[i], ARCH_CONVERT), level))) { in xfs_bmbt_delrec()
425 INT_SET(key.br_startoff, ARCH_CONVERT, xfs_bmbt_disk_get_startoff(rp)); in xfs_bmbt_delrec()
430 INT_SET(block->bb_numrecs, ARCH_CONVERT, numrecs); in xfs_bmbt_delrec()
466 rbno = INT_GET(block->bb_rightsib, ARCH_CONVERT); in xfs_bmbt_delrec()
467 lbno = INT_GET(block->bb_leftsib, ARCH_CONVERT); in xfs_bmbt_delrec()
511 bno = INT_GET(right->bb_leftsib, ARCH_CONVERT); in xfs_bmbt_delrec()
512 if (INT_GET(right->bb_numrecs, ARCH_CONVERT) - 1 >= in xfs_bmbt_delrec()
519 ASSERT(INT_GET(block->bb_numrecs, ARCH_CONVERT) >= in xfs_bmbt_delrec()
536 rrecs = INT_GET(right->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_delrec()
567 bno = INT_GET(left->bb_rightsib, ARCH_CONVERT); in xfs_bmbt_delrec()
568 if (INT_GET(left->bb_numrecs, ARCH_CONVERT) - 1 >= in xfs_bmbt_delrec()
575 ASSERT(INT_GET(block->bb_numrecs, ARCH_CONVERT) >= in xfs_bmbt_delrec()
586 lrecs = INT_GET(left->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_delrec()
593 lrecs + INT_GET(block->bb_numrecs, ARCH_CONVERT) <= XFS_BMAP_BLOCK_IMAXRECS(level, cur)) { in xfs_bmbt_delrec()
608 rrecs + INT_GET(block->bb_numrecs, ARCH_CONVERT) <= in xfs_bmbt_delrec()
623 lrecs = INT_GET(left->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_delrec()
633 numlrecs = INT_GET(left->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_delrec()
634 numrrecs = INT_GET(right->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_delrec()
642 if ((error = xfs_btree_check_lptr(cur, INT_GET(rpp[i], ARCH_CONVERT), level))) { in xfs_bmbt_delrec()
658 INT_MOD(left->bb_numrecs, ARCH_CONVERT, numrrecs); in xfs_bmbt_delrec()
661 if (INT_GET(left->bb_rightsib, ARCH_CONVERT) != NULLDFSBNO) { in xfs_bmbt_delrec()
663 INT_GET(left->bb_rightsib, ARCH_CONVERT), in xfs_bmbt_delrec()
673 INT_SET(rrblock->bb_leftsib, ARCH_CONVERT, lbno); in xfs_bmbt_delrec()
730 if (ptr > INT_GET(block->bb_numrecs, ARCH_CONVERT) || ptr <= 0) { in xfs_bmbt_get_rec()
781 INT_SET(key.br_startoff, ARCH_CONVERT, in xfs_bmbt_insrec()
791 numrecs = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_insrec()
873 numrecs = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_insrec()
879 if ((error = xfs_btree_check_lptr(cur, INT_GET(pp[i - 1], ARCH_CONVERT), in xfs_bmbt_insrec()
898 INT_SET(pp[ptr - 1], ARCH_CONVERT, *bnop); in xfs_bmbt_insrec()
900 INT_SET(block->bb_numrecs, ARCH_CONVERT, numrecs); in xfs_bmbt_insrec()
909 INT_SET(block->bb_numrecs, ARCH_CONVERT, numrecs); in xfs_bmbt_insrec()
974 if (INT_GET(block->bb_numrecs, ARCH_CONVERT) != 1) { in xfs_bmbt_killroot()
985 if (INT_GET(cblock->bb_numrecs, ARCH_CONVERT) > XFS_BMAP_BLOCK_DMAXRECS(level, cur)) { in xfs_bmbt_killroot()
989 ASSERT(INT_GET(cblock->bb_leftsib, ARCH_CONVERT) == NULLDFSBNO); in xfs_bmbt_killroot()
990 ASSERT(INT_GET(cblock->bb_rightsib, ARCH_CONVERT) == NULLDFSBNO); in xfs_bmbt_killroot()
995 i = (int)(INT_GET(cblock->bb_numrecs, ARCH_CONVERT) - XFS_BMAP_BLOCK_IMAXRECS(level, cur)); in xfs_bmbt_killroot()
1000 INT_MOD(block->bb_numrecs, ARCH_CONVERT, i); in xfs_bmbt_killroot()
1001 ASSERT(INT_GET(block->bb_numrecs, ARCH_CONVERT) == INT_GET(cblock->bb_numrecs, ARCH_CONVERT)); in xfs_bmbt_killroot()
1004 memcpy(kp, ckp, INT_GET(block->bb_numrecs, ARCH_CONVERT) * sizeof(*kp)); in xfs_bmbt_killroot()
1008 for (i = 0; i < INT_GET(cblock->bb_numrecs, ARCH_CONVERT); i++) { in xfs_bmbt_killroot()
1009 if ((error = xfs_btree_check_lptr(cur, INT_GET(cpp[i], ARCH_CONVERT), level - 1))) { in xfs_bmbt_killroot()
1015 memcpy(pp, cpp, INT_GET(block->bb_numrecs, ARCH_CONVERT) * sizeof(*pp)); in xfs_bmbt_killroot()
1023 INT_MOD(block->bb_level, ARCH_CONVERT, -1); in xfs_bmbt_killroot()
1179 if (!(high = INT_GET(block->bb_numrecs, ARCH_CONVERT))) { in xfs_bmbt_lookup()
1191 startoff = INT_GET(kkp->br_startoff, ARCH_CONVERT); in xfs_bmbt_lookup()
1211 if ((error = xfs_btree_check_lptr(cur, INT_GET(*pp, ARCH_CONVERT), level))) { in xfs_bmbt_lookup()
1216 fsbno = INT_GET(*pp, ARCH_CONVERT); in xfs_bmbt_lookup()
1226 if (dir == XFS_LOOKUP_GE && keyno > INT_GET(block->bb_numrecs, ARCH_CONVERT) && in xfs_bmbt_lookup()
1227 INT_GET(block->bb_rightsib, ARCH_CONVERT) != NULLDFSBNO) { in xfs_bmbt_lookup()
1242 if (keyno == 0 || keyno > INT_GET(block->bb_numrecs, ARCH_CONVERT)) { in xfs_bmbt_lookup()
1299 if (INT_GET(right->bb_leftsib, ARCH_CONVERT) == NULLDFSBNO) { in xfs_bmbt_lshift()
1310 if ((error = xfs_btree_read_bufl(mp, cur->bc_tp, INT_GET(right->bb_leftsib, ARCH_CONVERT), 0, in xfs_bmbt_lshift()
1320 if (INT_GET(left->bb_numrecs, ARCH_CONVERT) == XFS_BMAP_BLOCK_IMAXRECS(level, cur)) { in xfs_bmbt_lshift()
1325 lrecs = INT_GET(left->bb_numrecs, ARCH_CONVERT) + 1; in xfs_bmbt_lshift()
1334 if ((error = xfs_btree_check_lptr(cur, INT_GET(*rpp, ARCH_CONVERT), level))) { in xfs_bmbt_lshift()
1347 INT_SET(left->bb_numrecs, ARCH_CONVERT, lrecs); in xfs_bmbt_lshift()
1355 rrecs = INT_GET(right->bb_numrecs, ARCH_CONVERT) - 1; in xfs_bmbt_lshift()
1356 INT_SET(right->bb_numrecs, ARCH_CONVERT, rrecs); in xfs_bmbt_lshift()
1361 if ((error = xfs_btree_check_lptr(cur, INT_GET(rpp[i + 1], ARCH_CONVERT), in xfs_bmbt_lshift()
1375 INT_SET(key.br_startoff, ARCH_CONVERT, in xfs_bmbt_lshift()
1433 if (INT_GET(left->bb_rightsib, ARCH_CONVERT) == NULLDFSBNO) { in xfs_bmbt_rshift()
1438 if (cur->bc_ptrs[level] >= INT_GET(left->bb_numrecs, ARCH_CONVERT)) { in xfs_bmbt_rshift()
1444 if ((error = xfs_btree_read_bufl(mp, cur->bc_tp, INT_GET(left->bb_rightsib, ARCH_CONVERT), 0, in xfs_bmbt_rshift()
1454 if (INT_GET(right->bb_numrecs, ARCH_CONVERT) == XFS_BMAP_BLOCK_IMAXRECS(level, cur)) { in xfs_bmbt_rshift()
1460 lkp = XFS_BMAP_KEY_IADDR(left, INT_GET(left->bb_numrecs, ARCH_CONVERT), cur); in xfs_bmbt_rshift()
1461 lpp = XFS_BMAP_PTR_IADDR(left, INT_GET(left->bb_numrecs, ARCH_CONVERT), cur); in xfs_bmbt_rshift()
1465 for (i = INT_GET(right->bb_numrecs, ARCH_CONVERT) - 1; i >= 0; i--) { in xfs_bmbt_rshift()
1466 if ((error = xfs_btree_check_lptr(cur, INT_GET(rpp[i], ARCH_CONVERT), level))) { in xfs_bmbt_rshift()
1472 memmove(rkp + 1, rkp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rkp)); in xfs_bmbt_rshift()
1473 memmove(rpp + 1, rpp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rpp)); in xfs_bmbt_rshift()
1475 if ((error = xfs_btree_check_lptr(cur, INT_GET(*lpp, ARCH_CONVERT), level))) { in xfs_bmbt_rshift()
1482 xfs_bmbt_log_keys(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1); in xfs_bmbt_rshift()
1483 xfs_bmbt_log_ptrs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1); in xfs_bmbt_rshift()
1485 lrp = XFS_BMAP_REC_IADDR(left, INT_GET(left->bb_numrecs, ARCH_CONVERT), cur); in xfs_bmbt_rshift()
1487 memmove(rrp + 1, rrp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rrp)); in xfs_bmbt_rshift()
1489 xfs_bmbt_log_recs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1); in xfs_bmbt_rshift()
1490 INT_SET(key.br_startoff, ARCH_CONVERT, in xfs_bmbt_rshift()
1494 INT_MOD(left->bb_numrecs, ARCH_CONVERT, -1); in xfs_bmbt_rshift()
1496 INT_MOD(right->bb_numrecs, ARCH_CONVERT, +1); in xfs_bmbt_rshift()
1627 INT_SET(right->bb_magic, ARCH_CONVERT, XFS_BMAP_MAGIC); in xfs_bmbt_split()
1629 …INT_SET(right->bb_numrecs, ARCH_CONVERT, (__uint16_t)(INT_GET(left->bb_numrecs, ARCH_CONVERT) / 2)… in xfs_bmbt_split()
1630 if ((INT_GET(left->bb_numrecs, ARCH_CONVERT) & 1) && in xfs_bmbt_split()
1631 cur->bc_ptrs[level] <= INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1) in xfs_bmbt_split()
1632 INT_MOD(right->bb_numrecs, ARCH_CONVERT, +1); in xfs_bmbt_split()
1633 i = INT_GET(left->bb_numrecs, ARCH_CONVERT) - INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1; in xfs_bmbt_split()
1640 for (i = 0; i < INT_GET(right->bb_numrecs, ARCH_CONVERT); i++) { in xfs_bmbt_split()
1641 if ((error = xfs_btree_check_lptr(cur, INT_GET(lpp[i], ARCH_CONVERT), level))) { in xfs_bmbt_split()
1647 memcpy(rkp, lkp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rkp)); in xfs_bmbt_split()
1648 memcpy(rpp, lpp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rpp)); in xfs_bmbt_split()
1649 xfs_bmbt_log_keys(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT)); in xfs_bmbt_split()
1650 xfs_bmbt_log_ptrs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT)); in xfs_bmbt_split()
1651 keyp->br_startoff = INT_GET(rkp->br_startoff, ARCH_CONVERT); in xfs_bmbt_split()
1655 memcpy(rrp, lrp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rrp)); in xfs_bmbt_split()
1656 xfs_bmbt_log_recs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT)); in xfs_bmbt_split()
1659 INT_MOD(left->bb_numrecs, ARCH_CONVERT, -(INT_GET(right->bb_numrecs, ARCH_CONVERT))); in xfs_bmbt_split()
1661 INT_SET(left->bb_rightsib, ARCH_CONVERT, args.fsbno); in xfs_bmbt_split()
1662 INT_SET(right->bb_leftsib, ARCH_CONVERT, lbno); in xfs_bmbt_split()
1665 if (INT_GET(right->bb_rightsib, ARCH_CONVERT) != NULLDFSBNO) { in xfs_bmbt_split()
1667 INT_GET(right->bb_rightsib, ARCH_CONVERT), 0, &rrbp, in xfs_bmbt_split()
1677 INT_SET(rrblock->bb_leftsib, ARCH_CONVERT, args.fsbno); in xfs_bmbt_split()
1680 if (cur->bc_ptrs[level] > INT_GET(left->bb_numrecs, ARCH_CONVERT) + 1) { in xfs_bmbt_split()
1682 cur->bc_ptrs[level] -= INT_GET(left->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_split()
1754 INT_SET(rblock->bb_magic, ARCH_CONVERT, XFS_BMAP_MAGIC); in xfs_bmdr_to_bmbt()
1756 ASSERT(INT_GET(rblock->bb_level, ARCH_CONVERT) > 0); in xfs_bmdr_to_bmbt()
1758 INT_SET(rblock->bb_leftsib, ARCH_CONVERT, NULLDFSBNO); in xfs_bmdr_to_bmbt()
1759 INT_SET(rblock->bb_rightsib, ARCH_CONVERT, NULLDFSBNO); in xfs_bmdr_to_bmbt()
1765 dmxr = INT_GET(dblock->bb_numrecs, ARCH_CONVERT); in xfs_bmdr_to_bmbt()
1808 if (INT_GET(block->bb_leftsib, ARCH_CONVERT) == NULLDFSBNO) { in xfs_bmbt_decrement()
1827 fsbno = INT_GET(*XFS_BMAP_PTR_IADDR(block, cur->bc_ptrs[lev], cur), ARCH_CONVERT); in xfs_bmbt_decrement()
1840 cur->bc_ptrs[lev] = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_decrement()
2020 #if ARCH_CONVERT != ARCH_NOCONVERT
2029 l0 = INT_GET(r->l0, ARCH_CONVERT); in xfs_bmbt_disk_get_all()
2030 l1 = INT_GET(r->l1, ARCH_CONVERT); in xfs_bmbt_disk_get_all()
2042 return (xfs_filblks_t)(INT_GET(r->l1, ARCH_CONVERT) & XFS_MASK64LO(21)); in xfs_bmbt_disk_get_blockcount()
2053 return (((xfs_fsblock_t)INT_GET(r->l0, ARCH_CONVERT) & XFS_MASK64LO(9)) << 43) | in xfs_bmbt_disk_get_startblock()
2054 (((xfs_fsblock_t)INT_GET(r->l1, ARCH_CONVERT)) >> 21); in xfs_bmbt_disk_get_startblock()
2059 b = (((xfs_dfsbno_t)INT_GET(r->l0, ARCH_CONVERT) & XFS_MASK64LO(9)) << 43) | in xfs_bmbt_disk_get_startblock()
2060 (((xfs_dfsbno_t)INT_GET(r->l1, ARCH_CONVERT)) >> 21); in xfs_bmbt_disk_get_startblock()
2064 return (xfs_fsblock_t)(((xfs_dfsbno_t)INT_GET(r->l1, ARCH_CONVERT)) >> 21); in xfs_bmbt_disk_get_startblock()
2076 return ((xfs_fileoff_t)INT_GET(r->l0, ARCH_CONVERT) & in xfs_bmbt_disk_get_startoff()
2086 ext_flag = (int)((INT_GET(r->l0, ARCH_CONVERT)) >> (64 - BMBT_EXNTFLAG_BITLEN)); in xfs_bmbt_disk_get_state()
2126 if (++cur->bc_ptrs[level] <= INT_GET(block->bb_numrecs, ARCH_CONVERT)) { in xfs_bmbt_increment()
2131 if (INT_GET(block->bb_rightsib, ARCH_CONVERT) == NULLDFSBNO) { in xfs_bmbt_increment()
2144 if (++cur->bc_ptrs[lev] <= INT_GET(block->bb_numrecs, ARCH_CONVERT)) in xfs_bmbt_increment()
2157 fsbno = INT_GET(*XFS_BMAP_PTR_IADDR(block, cur->bc_ptrs[lev], cur), ARCH_CONVERT); in xfs_bmbt_increment()
2391 if ((error = xfs_btree_check_lptr(cur, INT_GET(*pp, ARCH_CONVERT), level))) { in xfs_bmbt_newroot()
2396 args.fsbno = INT_GET(*pp, ARCH_CONVERT); in xfs_bmbt_newroot()
2420 INT_MOD(block->bb_level, ARCH_CONVERT, +1); in xfs_bmbt_newroot()
2421 INT_SET(block->bb_numrecs, ARCH_CONVERT, 1); in xfs_bmbt_newroot()
2426 memcpy(ckp, kp, INT_GET(cblock->bb_numrecs, ARCH_CONVERT) * sizeof(*kp)); in xfs_bmbt_newroot()
2429 for (i = 0; i < INT_GET(cblock->bb_numrecs, ARCH_CONVERT); i++) { in xfs_bmbt_newroot()
2430 if ((error = xfs_btree_check_lptr(cur, INT_GET(pp[i], ARCH_CONVERT), level))) { in xfs_bmbt_newroot()
2436 memcpy(cpp, pp, INT_GET(cblock->bb_numrecs, ARCH_CONVERT) * sizeof(*pp)); in xfs_bmbt_newroot()
2444 INT_SET(*pp, ARCH_CONVERT, args.fsbno); in xfs_bmbt_newroot()
2445 xfs_iroot_realloc(cur->bc_private.b.ip, 1 - INT_GET(cblock->bb_numrecs, ARCH_CONVERT), in xfs_bmbt_newroot()
2453 xfs_bmbt_log_keys(cur, bp, 1, INT_GET(cblock->bb_numrecs, ARCH_CONVERT)); in xfs_bmbt_newroot()
2454 xfs_bmbt_log_ptrs(cur, bp, 1, INT_GET(cblock->bb_numrecs, ARCH_CONVERT)); in xfs_bmbt_newroot()
2548 #if ARCH_CONVERT != ARCH_NOCONVERT
2566 INT_SET(r->l0, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)extent_flag << 63) | in xfs_bmbt_disk_set_all()
2569 INT_SET(r->l1, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)s->br_startblock << 21) | in xfs_bmbt_disk_set_all()
2574 INT_SET(r->l0, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)extent_flag << 63) | in xfs_bmbt_disk_set_all()
2577 INT_SET(r->l1, ARCH_CONVERT, XFS_MASK64HI(11) | in xfs_bmbt_disk_set_all()
2582 INT_SET(r->l0, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)extent_flag << 63) | in xfs_bmbt_disk_set_all()
2584 INT_SET(r->l1, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)s->br_startblock << 21) | in xfs_bmbt_disk_set_all()
2610 INT_SET(r->l0, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)extent_flag << 63) | in xfs_bmbt_disk_set_allf()
2613 INT_SET(r->l1, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)b << 21) | in xfs_bmbt_disk_set_allf()
2618 INT_SET(r->l0, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)extent_flag << 63) | in xfs_bmbt_disk_set_allf()
2621 INT_SET(r->l1, ARCH_CONVERT, XFS_MASK64HI(11) | in xfs_bmbt_disk_set_allf()
2626 INT_SET(r->l0, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)extent_flag << 63) | in xfs_bmbt_disk_set_allf()
2628 INT_SET(r->l1, ARCH_CONVERT, ((xfs_bmbt_rec_base_t)b << 21) | in xfs_bmbt_disk_set_allf()
2722 ASSERT(INT_GET(rblock->bb_magic, ARCH_CONVERT) == XFS_BMAP_MAGIC); in xfs_bmbt_to_bmdr()
2723 ASSERT(INT_GET(rblock->bb_leftsib, ARCH_CONVERT) == NULLDFSBNO); in xfs_bmbt_to_bmdr()
2724 ASSERT(INT_GET(rblock->bb_rightsib, ARCH_CONVERT) == NULLDFSBNO); in xfs_bmbt_to_bmdr()
2725 ASSERT(INT_GET(rblock->bb_level, ARCH_CONVERT) > 0); in xfs_bmbt_to_bmdr()
2733 dmxr = INT_GET(dblock->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_to_bmdr()
2777 INT_SET(key.br_startoff, ARCH_CONVERT, off); in xfs_bmbt_update()