Lines Matching refs:mwd
278 mod_walk_data_t *mwd = private; in modent_format() local
282 if (msd->msd_position > mwd->mwd_maxposn) { in modent_format()
283 mwd->mwd_maxposn = msd->msd_position; in modent_format()
284 mwd->mwd_maxidx = msd->msd_hash_index; in modent_format()
285 mwd->mwd_maxaddr = msd->msd_first_addr; in modent_format()
289 if (mwd->mwd_idxtoprint != (uintptr_t)-1) { in modent_format()
291 if (mwd->mwd_idxtoprint == msd->msd_hash_index) in modent_format()
292 mwd->mwd_addr = msd->msd_first_addr; in modent_format()
298 if (mwd->mwd_opt_k_set && in modent_format()
299 (uintptr_t)msd->msd_mhe.mhe_key != mwd->mwd_opt_k) in modent_format()
303 if (mwd->mwd_opt_v_set && in modent_format()
304 (uintptr_t)msd->msd_mhe.mhe_val != mwd->mwd_opt_v) in modent_format()
308 if (mwd->mwd_opt_c && msd->msd_position != 0) in modent_format()
312 if (mwd->mwd_opt_e) { in modent_format()
314 if (mwd->mwd_main_flags & DCMD_PIPE_OUT) in modent_format()
318 mwd->mwd_flags, mwd->mwd_hte, mwd->mwd_opt_h, 0, 0); in modent_format()
319 mwd->mwd_flags &= ~DCMD_LOOPFIRST; in modent_format()
353 mod_walk_data_t mwd; in modhash() local
360 (void) memset(&mwd, 0, sizeof (mwd)); in modhash()
361 mwd.mwd_main_flags = flags; in modhash()
362 mwd.mwd_flags = DCMD_ADDRSPEC | DCMD_LOOP | DCMD_LOOPFIRST; in modhash()
363 mwd.mwd_maxposn = -1; in modhash()
364 mwd.mwd_idxtoprint = (uintptr_t)-1; in modhash()
369 'c', MDB_OPT_SETBITS, TRUE, &mwd.mwd_opt_c, in modhash()
370 'e', MDB_OPT_SETBITS, TRUE, &mwd.mwd_opt_e, in modhash()
371 'h', MDB_OPT_SETBITS, TRUE, &mwd.mwd_opt_h, in modhash()
372 'i', MDB_OPT_UINTPTR, &mwd.mwd_idxtoprint, in modhash()
373 'k', MDB_OPT_UINTPTR_SET, &mwd.mwd_opt_k_set, &mwd.mwd_opt_k, in modhash()
374 'v', MDB_OPT_UINTPTR_SET, &mwd.mwd_opt_v_set, &mwd.mwd_opt_v, in modhash()
388 elem_flags = mwd.mwd_opt_c || mwd.mwd_opt_e || mwd.mwd_opt_h || in modhash()
389 mwd.mwd_opt_k_set || mwd.mwd_opt_v_set || in modhash()
390 mwd.mwd_idxtoprint != (uintptr_t)-1; in modhash()
415 if (mwd.mwd_opt_e) { in modhash()
438 if (mwd.mwd_idxtoprint != (uintptr_t)-1 && in modhash()
439 mwd.mwd_idxtoprint >= mh.mh_nchains) { in modhash()
441 mwd.mwd_idxtoprint, mh.mh_nchains - 1); in modhash()
466 mwd.mwd_hte = htep; in modhash()
468 if (!mwd.mwd_opt_e && !opt_s) { in modhash()
484 if (mdb_pwalk("modent", modent_format, &mwd, addr) == -1) { in modhash()
504 mdb_printf("%6x %6x", mwd.mwd_maxposn + 1, in modhash()
505 mwd.mwd_maxidx); in modhash()
508 } else if (!mwd.mwd_opt_e) { in modhash()
510 "entry %p)\n", mwd.mwd_maxposn + 1, mwd.mwd_maxidx, in modhash()
511 mwd.mwd_maxaddr); in modhash()