/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_util.c | 193 aend = al->ml_address + al->ml_size; in dr_memlist_intersect() 195 bend = bl->ml_address + bl->ml_size; in dr_memlist_intersect() 200 aend = al->ml_address + al->ml_size; in dr_memlist_intersect() 209 bend = bl->ml_address + bl->ml_size; in dr_memlist_intersect() 229 end = mlist->ml_address + mlist->ml_size; in dr_memlist_coalesce() 234 mlist->ml_next->ml_size; in dr_memlist_coalesce() 236 mlist->ml_size += (nend - end); in dr_memlist_coalesce() 260 ml->ml_address, ml->ml_size); in memlist_dump() 277 (*mlp)->ml_size = mlist->ml_size; in dr_memlist_dup() 298 mlist->ml_size = len; in dr_memlist_add_span() [all …]
|
H A D | dr_mem_acpi.c | 195 (pgcnt_t)btop(mc->ml_size)); in dr_attach_mem() 223 mp->sbm_cm.sbdev_id, mc->ml_address, mc->ml_size); in dr_attach_mem() 510 ml->ml_size); in dr_post_attach_mem()
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_util.c | 193 aend = al->ml_address + al->ml_size; in dr_memlist_intersect() 195 bend = bl->ml_address + bl->ml_size; in dr_memlist_intersect() 200 aend = al->ml_address + al->ml_size; in dr_memlist_intersect() 209 bend = bl->ml_address + bl->ml_size; in dr_memlist_intersect() 229 end = mlist->ml_address + mlist->ml_size; in dr_memlist_coalesce() 234 mlist->ml_next->ml_size; in dr_memlist_coalesce() 236 mlist->ml_size += (nend - end); in dr_memlist_coalesce() 259 printf("memlist> 0x%lx, 0x%lx\n", ml->ml_address, ml->ml_size); in memlist_dump() 276 (*mlp)->ml_size = mlist->ml_size; in dr_memlist_dup() 297 mlist->ml_size = len; in dr_memlist_add_span() [all …]
|
H A D | dr_mem.c | 314 (pgcnt_t)(mc->ml_size >> PAGESHIFT)); in dr_attach_mem() 342 mp->sbm_cm.sbdev_id, mc->ml_address, mc->ml_size); in dr_attach_mem() 394 nbytes = ml->ml_size; in dr_mem_ecache_scrub() 395 if (ml->ml_size & PAGEOFFSET) in dr_mem_ecache_scrub() 398 "page boundary", f, ml->ml_size); in dr_mem_ecache_scrub() 457 c_ml = memlist_del_span(c_ml, d_ml->ml_address, d_ml->ml_size); in dr_move_memory() 663 ml->ml_address, ml->ml_size); in dr_del_span_query() 678 _b64top(ml->ml_address), _b64top(ml->ml_size), &mq); in dr_del_span_query() 983 ml->ml_size); in dr_post_attach_mem() 1082 npgs = _b64top(ml->ml_size); in dr_add_memory_spans() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | memlist_new.c | 126 end = start + new->ml_size; in memlist_insert() 140 if (cur->ml_address + cur->ml_size > start) in memlist_insert() 188 address < (mlp->ml_address + mlp->ml_size)) in memlist_find() 220 dst->ml_size = bytes; in memlist_add_span() 237 if (address > (next->ml_address + next->ml_size)) in memlist_add_span() 251 next->ml_size += bytes; in memlist_add_span() 259 if (address == (next->ml_address + next->ml_size)) { in memlist_add_span() 281 mlp->ml_size += next->ml_size; in memlist_add_span() 282 mlp->ml_size += bytes; in memlist_add_span() 293 next->ml_size += bytes; in memlist_add_span() [all …]
|
/illumos-gate/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 52 listp->ml_address, listp->ml_size); in pci_memlist_dump() 101 next->ml_address + next->ml_size >= addr + size) { in pci_memlist_insert() 114 merge_left = (prev && addr == prev->ml_address + prev->ml_size); in pci_memlist_insert() 117 prev->ml_size += size + next->ml_size; in pci_memlist_insert() 124 prev->ml_size += size; in pci_memlist_insert() 130 next->ml_size += size; in pci_memlist_insert() 136 entry->ml_size = size; in pci_memlist_insert() 174 chunk_end = chunk->ml_address + chunk->ml_size - 1; in pci_memlist_remove() 197 new->ml_size = chunk_end - new->ml_address + 1; in pci_memlist_remove() 198 chunk->ml_size = rem_begin - chunk_begin; in pci_memlist_remove() [all …]
|
H A D | pci_boot.c | 653 list->ml_address, list->ml_size); in remove_subtractive_res() 662 list->ml_address, list->ml_size); in remove_subtractive_res() 665 list->ml_address, list->ml_size); in remove_subtractive_res() 675 list->ml_address, list->ml_size); in remove_subtractive_res() 678 list->ml_address, list->ml_size); in remove_subtractive_res() 857 (void) pci_memlist_remove(par_used, m->ml_address, m->ml_size); in get_parbus_res() 858 pci_memlist_insert(par_avail, m->ml_address, m->ml_size); in get_parbus_res() 928 if ((elem->ml_address == 0x3b0 && elem->ml_size == 0xc) || in is_vga() 929 (elem->ml_address == 0x3c0 && elem->ml_size == 0x20)) { in is_vga() 934 if (elem->ml_address == 0xa0000 && elem->ml_size == 0x20000) in is_vga() [all …]
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | memscrub.c | 327 (pgcnt_t)(src->ml_size >> PAGESHIFT))) { in memscrub_init() 373 (pgcnt_t)(memscrub_memlist->ml_size >> PAGESHIFT)); in memscrub_cleanup() 391 list->ml_address, list->ml_size); in memscrub_printmemlist() 687 if (address < (mlp->ml_address + mlp->ml_size)) in memscrub_verify_span() 703 bytes_remaining = (mlp->ml_address + mlp->ml_size) - address; in memscrub_verify_span() 712 ((mlp->ml_address + mlp->ml_size) == (address + bytes))) in memscrub_verify_span() 784 dst->ml_size = bytes; in memscrub_add_span_gen() 803 if (address > (next->ml_address + next->ml_size)) in memscrub_add_span_gen() 817 next->ml_size += bytes; in memscrub_add_span_gen() 825 if (address == (next->ml_address + next->ml_size)) { in memscrub_add_span_gen() [all …]
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | memlist.c | 100 npages += mp->ml_size >> PAGESHIFT; in num_phys_pages() 170 if (physavail->ml_size > max_size) in get_max_phys_size() 171 max_size = physavail->ml_size; in get_max_phys_size() 250 proto->ml_address >= diff->ml_address + diff->ml_size) in diff_memlists() 253 (*func)(proto->ml_address, proto->ml_size); in diff_memlists() 258 proto->ml_size == diff->ml_size) { in diff_memlists() 265 p_end = p_base + proto->ml_size; in diff_memlists() 267 d_end = d_base + diff->ml_size; in diff_memlists() 282 (*func)(p_base, proto->ml_size); in diff_memlists() 338 d_end = d_base + diff->ml_size; in diff_memlists() [all …]
|
H A D | lgrpplat.c | 284 npgs += btop(mlist->ml_size); in lgrp_plat_mem_size_default() 290 npgs += btop(mlist->ml_size); in lgrp_plat_mem_size_default()
|
H A D | memnode.c | 262 btop(pmem->ml_size), mnode, &pages); in mem_node_memlist_pages() 277 cur_end = cur_base + btop(pmem->ml_size) - 1; in mem_node_memlist_pages()
|
/illumos-gate/usr/src/uts/sun4/vm/ |
H A D | sfmmu.c | 497 ndata->ml_size = end - base; in ndata_alloc_init() 508 size_t chunksize = ndata->ml_size; in ndata_maxsize() 511 if (chunksize < ndata->ml_size) in ndata_maxsize() 512 chunksize = ndata->ml_size; in ndata_maxsize() 543 wasteage += ndata->ml_size; in ndata_extra_base() 549 if (base >= ndata->ml_address + ndata->ml_size) in ndata_extra_base() 552 if ((caddr_t)(ndata->ml_address + ndata->ml_size) != endaddr) { in ndata_extra_base() 563 ndata->ml_size = 0; in ndata_extra_base() 568 ndata->ml_size = base - ndata->ml_address; in ndata_extra_base() 569 wasteage += ndata->ml_size; in ndata_extra_base() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | memscrub.c | 186 if (memscrub_add_span(src->ml_address, src->ml_size)) { in memscrub_init() 282 mlp_last_addr = mlp->ml_address + mlp->ml_size; in memscrubber() 367 mlp_last_addr = mlp->ml_address + mlp->ml_size; in memscrubber() 481 uint64_t ne = next->ml_address + next->ml_size - 1; in memscrub_add_span() 499 next->ml_size += bytes; in memscrub_add_span() 507 next->ml_size += bytes; in memscrub_add_span() 533 dst->ml_size = bytes; in memscrub_add_span()
|
H A D | memnode.c | 208 (list->ml_address + list->ml_size - 1) >> PAGESHIFT; in startup_build_mem_nodes() 274 cur_end = cur_base + btop(pmem->ml_size) - 1; in mem_node_memlist_pages()
|
/illumos-gate/usr/src/uts/sun4u/opl/io/ |
H A D | dr_mem.c | 332 (pgcnt_t)(mc->ml_size >> PAGESHIFT)); in dr_attach_mem() 360 mp->sbm_cm.sbdev_id, mc->ml_address, mc->ml_size); in dr_attach_mem() 462 c_ml = memlist_del_span(c_ml, d_ml->ml_address, d_ml->ml_size); in dr_move_memory() 664 _b64top(ml->ml_address), _b64top(ml->ml_size), &mq); in dr_del_mlist_query() 988 ml->ml_size); in dr_post_attach_mem() 1082 npgs = _b64top(ml->ml_size); in dr_add_memory_spans() 1089 ml->ml_size); in dr_add_memory_spans() 1111 (add == (ml->ml_address + ml->ml_size))) in memlist_touch() 1148 ml->ml_address, ml->ml_size); in dr_process_excess_mlist() 1164 ml0.ml_size = ml->ml_size; in dr_process_excess_mlist() [all …]
|
H A D | drmach.c | 445 nbytes += p->ml_size; in drmach_setup_mc_info() 2583 nbytes = ml->ml_size; in drmach_pt_readmem() 2976 mlist->ml_size = len; in drmach_memlist_add_span() 2990 nl->ml_size = len; in drmach_memlist_add_span() 2998 ml->ml_size = MAX((base + len), in drmach_memlist_add_span() 2999 (ml->ml_address + ml->ml_size)) - base; in drmach_memlist_add_span() 3004 } else if (base <= (ml->ml_address + ml->ml_size)) { in drmach_memlist_add_span() 3005 ml->ml_size = in drmach_memlist_add_span() 3006 MAX((base + len), (ml->ml_address + ml->ml_size)) - in drmach_memlist_add_span() 3018 nl->ml_size = len; in drmach_memlist_add_span() [all …]
|
/illumos-gate/usr/src/stand/lib/sa/ |
H A D | memlist.c | 54 (uint_t)(p->ml_size >> 32), (uint_t)p->ml_size); in print_memlist()
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sbd_mem.c | 338 ml->ml_size); in sbd_post_attach_mem() 500 npgs = _b64top(ml->ml_size); in sbd_add_memory_spans() 509 (void) sbdp_mem_add_span(hdp, ml->ml_address, ml->ml_size); in sbd_add_memory_spans() 1459 mp->sbm_npages += btop(ml->ml_size); in sbd_init_mem_unit_data() 1505 npgs = _b64top(mc->ml_size); in sbd_reserve_mem_spans() 1833 ASSERT(d_ml->ml_address + d_ml->ml_size == in sbd_select_mem_target() 2102 mp->ml_size = mlist->ml_size; in memlist_dup() 2127 ml->ml_address, ml->ml_size); in memlist_dump() 2139 aend = al->ml_address + al->ml_size; in memlist_intersect() 2141 bend = bl->ml_address + bl->ml_size; in memlist_intersect() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | dr_util.c | 159 (*mlp)->ml_size = mlist->ml_size; in dr_memlist_dup()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | memlist.h | 45 uint64_t ml_size; /* size of same */ member
|
/illumos-gate/usr/src/uts/sun4v/vm/ |
H A D | mach_kpm.c | 60 end = start + pmem->ml_size; in mach_kpm_init() 71 end = pmem->ml_address + pmem->ml_size; in mach_kpm_init()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | sundep.c | 136 highp = (list->ml_address + list->ml_size - 1) >> PAGESHIFT; in installed_top_size_ex() 139 sumpages += btop(list->ml_size); in installed_top_size_ex() 189 eaddr = P2ALIGN(src->ml_address + src->ml_size, PAGESIZE); in copy_memlist_filter() 197 dst->ml_size = size; in copy_memlist_filter()
|
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci_prd_i86pc.c | 160 new->ml_size = orig->ml_size; in acpi_trim_bus_ranges() 193 if ((current->ml_address + current->ml_size) > next->ml_address) in acpi_trim_bus_ranges() 194 current->ml_prev->ml_size = in acpi_trim_bus_ranges()
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | swrand.c | 695 if (block < pmem->ml_size / MEMBLOCKSIZE) in physmem_ent_gen() 697 block -= pmem->ml_size / MEMBLOCKSIZE; in physmem_ent_gen() 836 entsrc.nblocks += pmem->ml_size / MEMBLOCKSIZE; in physmem_count_blocks()
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | immu_dvma.c | 965 npages = mp->ml_size/IMMU_PAGESIZE + 1; in map_unity_domain() 974 " - 0x%" PRIx64 "]", start, start + mp->ml_size); in map_unity_domain() 980 mp->ml_address, mp->ml_address + mp->ml_size); in map_unity_domain() 983 npages = mp->ml_size/IMMU_PAGESIZE + 1; in map_unity_domain() 997 mp->ml_address, mp->ml_address + mp->ml_size); in map_unity_domain() 1000 npages = mp->ml_size/IMMU_PAGESIZE + 1; in map_unity_domain() 1061 if (start + mp->ml_size > maxaddr) in create_xlate_arena() 1064 size = mp->ml_size; in create_xlate_arena() 1098 if (start + mp->ml_size > maxaddr) in create_xlate_arena() 1101 size = mp->ml_size; in create_xlate_arena()
|