Lines Matching refs:nblocks
77 uint32_t nblocks; /* number of memory blocks */ member
608 if (entsrc->nblocks == 0) { in physmem_ent_init()
614 entsrc->parity = kmem_alloc(howmany(entsrc->nblocks, 8), in physmem_ent_init()
620 i = howmany(entsrc->nblocks, 8); in physmem_ent_init()
651 kmem_free(entsrc->parity, howmany(entsrc->nblocks, 8)); in physmem_ent_fini()
689 ASSERT(entsrc->nblocks > 0); in physmem_ent_gen()
692 block = oblock = srndpool[i] % entsrc->nblocks; in physmem_ent_gen()
834 entsrc.nblocks = 0; in physmem_count_blocks()
836 entsrc.nblocks += pmem->ml_size / MEMBLOCKSIZE; in physmem_count_blocks()
837 if (entsrc.nblocks > MAXMEMBLOCKS) { in physmem_count_blocks()
838 entsrc.nblocks = MAXMEMBLOCKS; in physmem_count_blocks()