Lines Matching refs:umhw
701 umem_hash_walk_t *umhw;
723 umhw = mdb_zalloc(sizeof (umem_hash_walk_t), UM_SLEEP);
724 umhw->umhw_cur.bc_next = NULL;
725 umhw->umhw_pos = 0;
727 umhw->umhw_nelems = nelems = c.cache_hash_mask + 1;
731 umhw->umhw_table = hash = mdb_alloc(hsize, UM_SLEEP);
735 mdb_free(umhw, sizeof (umem_hash_walk_t));
739 wsp->walk_data = umhw;
747 umem_hash_walk_t *umhw = wsp->walk_data;
750 if ((addr = (uintptr_t)umhw->umhw_cur.bc_next) == NULL) {
751 while (umhw->umhw_pos < umhw->umhw_nelems) {
752 if ((addr = umhw->umhw_table[umhw->umhw_pos++]) != NULL)
759 if (mdb_vread(&umhw->umhw_cur, sizeof (umem_bufctl_t), addr) == -1) {
764 return (wsp->walk_callback(addr, &umhw->umhw_cur, wsp->walk_cbdata));
770 umem_hash_walk_t *umhw = wsp->walk_data;
772 if (umhw == NULL)
775 mdb_free(umhw->umhw_table, umhw->umhw_nelems * sizeof (uintptr_t));
776 mdb_free(umhw, sizeof (umem_hash_walk_t));