Lines Matching refs:be32_to_cpu

241 	*bno = be32_to_cpu(rec->alloc.ar_startblock);  in xfs_alloc_get_rec()
242 *len = be32_to_cpu(rec->alloc.ar_blockcount); in xfs_alloc_get_rec()
614 if (bp->b_pag && be32_to_cpu(agfl->agfl_seqno) != bp->b_pag->pag_agno) in xfs_agfl_verify()
618 if (be32_to_cpu(agfl_bno[i]) != NULLAGBLOCK && in xfs_agfl_verify()
619 be32_to_cpu(agfl_bno[i]) >= mp->m_sb.sb_agblocks) in xfs_agfl_verify()
721 if (unlikely(be32_to_cpu(agf->agf_freeblks) > in xfs_alloc_update_counters()
722 be32_to_cpu(agf->agf_length))) { in xfs_alloc_update_counters()
930 ASSERT(acur->rec_bno + acur->rec_len <= be32_to_cpu(agf->agf_length)); in xfs_alloc_cur_finish()
1057 be32_to_cpu(agf->agf_flcount) <= args->minleft) in xfs_alloc_ag_vextent_small()
1081 if (XFS_IS_CORRUPT(args->mp, fbno >= be32_to_cpu(agf->agf_length))) { in xfs_alloc_ag_vextent_small()
1281 ASSERT(args->agbno + args->len <= be32_to_cpu(agf->agf_length)); in xfs_alloc_ag_vextent_exact()
1850 be32_to_cpu(agf->agf_length))) { in xfs_alloc_ag_vextent_size()
2370 uint32_t f = be32_to_cpu(agf->agf_flfirst); in xfs_agfl_needs_reset()
2371 uint32_t l = be32_to_cpu(agf->agf_fllast); in xfs_agfl_needs_reset()
2372 uint32_t c = be32_to_cpu(agf->agf_flcount); in xfs_agfl_needs_reset()
2776 error = xfs_alloc_read_agfl(mp, tp, be32_to_cpu(agf->agf_seqno), in xfs_alloc_get_freelist()
2786 bno = be32_to_cpu(agfl_bno[be32_to_cpu(agf->agf_flfirst)]); in xfs_alloc_get_freelist()
2789 if (be32_to_cpu(agf->agf_flfirst) == xfs_agfl_size(mp)) in xfs_alloc_get_freelist()
2892 be32_to_cpu(agf->agf_seqno), &agflbp))) in xfs_alloc_put_freelist()
2895 if (be32_to_cpu(agf->agf_fllast) == xfs_agfl_size(mp)) in xfs_alloc_put_freelist()
2912 ASSERT(be32_to_cpu(agf->agf_flcount) <= xfs_agfl_size(mp)); in xfs_alloc_put_freelist()
2915 blockp = &agfl_bno[be32_to_cpu(agf->agf_fllast)]; in xfs_alloc_put_freelist()
2944 if (!(XFS_AGF_GOOD_VERSION(be32_to_cpu(agf->agf_versionnum)) && in xfs_agf_verify()
2945 be32_to_cpu(agf->agf_freeblks) <= be32_to_cpu(agf->agf_length) && in xfs_agf_verify()
2946 be32_to_cpu(agf->agf_flfirst) < xfs_agfl_size(mp) && in xfs_agf_verify()
2947 be32_to_cpu(agf->agf_fllast) < xfs_agfl_size(mp) && in xfs_agf_verify()
2948 be32_to_cpu(agf->agf_flcount) <= xfs_agfl_size(mp))) in xfs_agf_verify()
2951 if (be32_to_cpu(agf->agf_length) > mp->m_sb.sb_dblocks) in xfs_agf_verify()
2954 if (be32_to_cpu(agf->agf_freeblks) < be32_to_cpu(agf->agf_longest) || in xfs_agf_verify()
2955 be32_to_cpu(agf->agf_freeblks) > be32_to_cpu(agf->agf_length)) in xfs_agf_verify()
2958 if (be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]) < 1 || in xfs_agf_verify()
2959 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]) < 1 || in xfs_agf_verify()
2960 be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]) > in xfs_agf_verify()
2962 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]) > in xfs_agf_verify()
2967 (be32_to_cpu(agf->agf_levels[XFS_BTNUM_RMAP]) < 1 || in xfs_agf_verify()
2968 be32_to_cpu(agf->agf_levels[XFS_BTNUM_RMAP]) > in xfs_agf_verify()
2973 be32_to_cpu(agf->agf_rmap_blocks) > be32_to_cpu(agf->agf_length)) in xfs_agf_verify()
2982 if (bp->b_pag && be32_to_cpu(agf->agf_seqno) != bp->b_pag->pag_agno) in xfs_agf_verify()
2986 be32_to_cpu(agf->agf_btreeblks) > be32_to_cpu(agf->agf_length)) in xfs_agf_verify()
2990 be32_to_cpu(agf->agf_refcount_blocks) > in xfs_agf_verify()
2991 be32_to_cpu(agf->agf_length)) in xfs_agf_verify()
2995 (be32_to_cpu(agf->agf_refcount_level) < 1 || in xfs_agf_verify()
2996 be32_to_cpu(agf->agf_refcount_level) > mp->m_refc_maxlevels)) in xfs_agf_verify()
3111 pag->pagf_freeblks = be32_to_cpu(agf->agf_freeblks); in xfs_alloc_read_agf()
3112 pag->pagf_btreeblks = be32_to_cpu(agf->agf_btreeblks); in xfs_alloc_read_agf()
3113 pag->pagf_flcount = be32_to_cpu(agf->agf_flcount); in xfs_alloc_read_agf()
3114 pag->pagf_longest = be32_to_cpu(agf->agf_longest); in xfs_alloc_read_agf()
3116 be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNOi]); in xfs_alloc_read_agf()
3118 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNTi]); in xfs_alloc_read_agf()
3120 be32_to_cpu(agf->agf_levels[XFS_BTNUM_RMAPi]); in xfs_alloc_read_agf()
3121 pag->pagf_refcount_level = be32_to_cpu(agf->agf_refcount_level); in xfs_alloc_read_agf()
3134 allocbt_blks -= be32_to_cpu(agf->agf_rmap_blocks) - 1; in xfs_alloc_read_agf()
3140 ASSERT(pag->pagf_freeblks == be32_to_cpu(agf->agf_freeblks)); in xfs_alloc_read_agf()
3141 ASSERT(pag->pagf_btreeblks == be32_to_cpu(agf->agf_btreeblks)); in xfs_alloc_read_agf()
3142 ASSERT(pag->pagf_flcount == be32_to_cpu(agf->agf_flcount)); in xfs_alloc_read_agf()
3143 ASSERT(pag->pagf_longest == be32_to_cpu(agf->agf_longest)); in xfs_alloc_read_agf()
3145 be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNOi])); in xfs_alloc_read_agf()
3147 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNTi])); in xfs_alloc_read_agf()
3421 if (XFS_IS_CORRUPT(mp, agbno + len > be32_to_cpu(agf->agf_length))) { in __xfs_free_extent()
3458 irec.ar_startblock = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_query_range_helper()
3459 irec.ar_blockcount = be32_to_cpu(rec->alloc.ar_blockcount); in xfs_alloc_query_range_helper()
3536 i = be32_to_cpu(agf->agf_flfirst); in xfs_agfl_walk()
3544 error = walk_fn(mp, be32_to_cpu(agfl_bno[i]), priv); in xfs_agfl_walk()
3547 if (i == be32_to_cpu(agf->agf_fllast)) in xfs_agfl_walk()