Lines Matching refs:ucw
404 umem_cache_walk_t *ucw;
421 ucw = mdb_alloc(sizeof (umem_cache_walk_t), UM_SLEEP);
423 ucw->ucw_first = cp;
424 ucw->ucw_current = (uintptr_t)c.cache_next;
425 wsp->walk_data = ucw;
433 umem_cache_walk_t *ucw = wsp->walk_data;
437 if (mdb_vread(&c, sizeof (umem_cache_t), ucw->ucw_current) == -1) {
438 mdb_warn("couldn't read cache at %p", ucw->ucw_current);
442 status = wsp->walk_callback(ucw->ucw_current, &c, wsp->walk_cbdata);
444 if ((ucw->ucw_current = (uintptr_t)c.cache_next) == ucw->ucw_first)
453 umem_cache_walk_t *ucw = wsp->walk_data;
454 mdb_free(ucw, sizeof (umem_cache_walk_t));
468 umem_cpu_walk_state_t *ucw;
475 ucw = mdb_alloc(sizeof (*ucw), UM_SLEEP);
477 ucw->ucw_cpus = umem_cpus;
478 ucw->ucw_current = 0;
479 ucw->ucw_max = umem_max_ncpus;
481 wsp->walk_data = ucw;
489 umem_cpu_walk_state_t *ucw = wsp->walk_data;
493 if (ucw->ucw_current >= ucw->ucw_max)
496 caddr = (uintptr_t)&(ucw->ucw_cpus[ucw->ucw_current]);
499 mdb_warn("failed to read cpu %d", ucw->ucw_current);
503 ucw->ucw_current++;
511 umem_cpu_walk_state_t *ucw = wsp->walk_data;
513 mdb_free(ucw, sizeof (*ucw));