Lines Matching refs:mblock

1107 	struct mblock_md *mblock;  in plat_mem_node_iterator_init()  local
1182 mblock = &mpo_mblock[i]; in plat_mem_node_iterator_init()
1187 it->mi_ra_to_pa = btop(mblock->ra_to_pa); in plat_mem_node_iterator_init()
1565 mblock_md_t *mblock = mc->mc_mblocks; in mblock_update() local
1571 &mblock[i].base); in mblock_update()
1580 &mblock[i].size); in mblock_update()
1589 PROP_LG_RA_PA_OFFSET, &mblock[i].ra_to_pa); in mblock_update()
1593 mblock[i].ra_to_pa = 0; in mblock_update()
1597 mblock[i].base, in mblock_update()
1598 mblock[i].size, in mblock_update()
1599 mblock[i].ra_to_pa); in mblock_update()
1602 if (mblock[i].base > mblock[i].base + mblock[i].size) { in mblock_update()
1606 mblock[i].base, mblock[i].size); in mblock_update()
1612 if (mblock[i].size != 0) { in mblock_update()
1613 uint64_t base = mblock[i].base; in mblock_update()
1614 uint64_t end = base + mblock[i].size; in mblock_update()
1616 mblock[i].base_pfn = btop(base); in mblock_update()
1617 mblock[i].end_pfn = btop(end - 1); in mblock_update()
1633 mblock_sort(mblock, mc->mc_nmblocks); in mblock_update()
1692 mblock_md_t *mblock; in mblock_update_del() local
1703 mblock = mc_new->mc_mblocks; in mblock_update_del()
1704 bcopy(mc_old->mc_mblocks, mblock, nmblocks * sizeof (mblock_md_t)); in mblock_update_del()
1712 base = btop(mblock[i].base); in mblock_update_del()
1713 end = base + btop(mblock[i].size) - 1; in mblock_update_del()
1729 mblock[j] = mblock[j + 1]; in mblock_update_del()
1731 bzero(&mblock[nmblocks], sizeof (*mblock)); in mblock_update_del()
1735 mblock[j + 1] = mblock[j]; in mblock_update_del()
1736 mblock[i].size = ptob(ubase - base); in mblock_update_del()
1737 mblock[i].end_pfn = ubase - 1; in mblock_update_del()
1738 mblock[i + 1].base = ptob(uend + 1); in mblock_update_del()
1739 mblock[i + 1].size = ptob(end - uend); in mblock_update_del()
1740 mblock[i + 1].base_pfn = uend + 1; in mblock_update_del()
1746 mblock[i].base = ptob(uend + 1); in mblock_update_del()
1747 mblock[i].size -= ptob(uend - ubase + 1); in mblock_update_del()
1749 mblock[i].base_pfn = base; in mblock_update_del()
1750 mblock[i].end_pfn = end; in mblock_update_del()
1756 mblock[i].size -= ptob(uend - ubase + 1); in mblock_update_del()
1758 mblock[i].base_pfn = base; in mblock_update_del()
1759 mblock[i].end_pfn = end; in mblock_update_del()
1782 mblock_md_t *mblock = mc->mc_mblocks; in mstripe_update() local
1798 mc->mc_stripes[i].physbase = mblock[i].base_pfn; in mstripe_update()
1799 mc->mc_stripes[i].physmax = mblock[i].end_pfn; in mstripe_update()
1811 base = mblock[i].base; in mstripe_update()
1812 end = base + mblock[i].size; in mstripe_update()
1813 ra_to_pa = mblock[i].ra_to_pa; in mstripe_update()