Lines Matching defs:iw
231 static int ncec_cb(uintptr_t addr, const ncec_walk_data_t *iw,
517 illif_walk_data_t *iw;
524 iw = mdb_alloc(sizeof (illif_walk_data_t), UM_SLEEP);
526 if (mdb_vread(iw->ill_g_heads, MAX_G_HEADS * sizeof (ill_g_head_t),
530 mdb_free(iw, sizeof (illif_walk_data_t));
534 iw->ill_list = 0;
535 wsp->walk_addr = (uintptr_t)iw->ill_g_heads[0].ill_g_list_head;
536 wsp->walk_data = iw;
545 illif_walk_data_t *iw = wsp->walk_data;
546 int list = iw->ill_list;
548 if (mdb_vread(&iw->ill_if, sizeof (ill_if_t), addr) == -1) {
553 wsp->walk_addr = (uintptr_t)iw->ill_if.illif_next;
556 (uintptr_t)iw->ill_g_heads[list].ill_g_list_head) {
561 iw->ill_list = list;
563 (uintptr_t)iw->ill_g_heads[list].ill_g_list_head;
567 return (wsp->walk_callback(addr, iw, wsp->walk_cbdata));
584 illif_cb(uintptr_t addr, const illif_walk_data_t *iw, illif_cbdata_t *id)
589 id->ill_printlist != iw->ill_list)
600 switch (iw->ill_list) {
608 iw->ill_if.illif_avl_by_ppa.avl_numnodes,
609 iw->ill_if.illif_ppa_arena, iw->ill_if.illif_name);
2287 ipcl_hash_get_next_connf_tbl(ipcl_hash_walk_data_t *iw)
2291 int index = iw->connf_tbl_index;
2294 next = iw->hash_tbl + index * sizeof (struct connf_s);
2295 if (++index >= iw->hash_tbl_size) {
2305 iw->connf_tbl_index = index;
2313 ipcl_hash_walk_data_t *iw;
2317 iw = mdb_alloc(sizeof (ipcl_hash_walk_data_t), UM_SLEEP);
2318 iw->conn = mdb_alloc(sizeof (conn_t), UM_SLEEP);
2322 if (mdb_vread(&iw->hash_tbl, sizeof (uintptr_t), tbladdr) == -1) {
2324 mdb_free(iw->conn, sizeof (conn_t));
2325 mdb_free(iw, sizeof (ipcl_hash_walk_data_t));
2330 iw->hash_tbl_size = IPPROTO_MAX;
2332 if (mdb_vread(&iw->hash_tbl_size, sizeof (int),
2336 mdb_free(iw->conn, sizeof (conn_t));
2337 mdb_free(iw, sizeof (ipcl_hash_walk_data_t));
2341 iw->connf_tbl_index = 0;
2342 wsp->walk_addr = ipcl_hash_get_next_connf_tbl(iw);
2343 wsp->walk_data = iw;
2355 ipcl_hash_walk_data_t *iw = wsp->walk_data;
2356 conn_t *conn = iw->conn;
2364 ret = wsp->walk_callback(addr, iw, wsp->walk_cbdata);
2370 wsp->walk_addr = ipcl_hash_get_next_connf_tbl(iw);
2384 ipcl_hash_walk_data_t *iw = wsp->walk_data;
2386 mdb_free(iw->conn, sizeof (conn_t));
2387 mdb_free(iw, sizeof (ipcl_hash_walk_data_t));
2454 ncec_cb(uintptr_t addr, const ncec_walk_data_t *iw, ncec_cbdata_t *id)
2498 ill_cb(uintptr_t addr, const ill_walk_data_t *iw, ill_cbdata_t *id)
2712 ip_list_walk_data_t *iw;
2724 iw = mdb_alloc(sizeof (ip_list_walk_data_t), UM_SLEEP);
2725 iw->nextoff = arg->nextp_off;
2726 wsp->walk_data = iw;
2734 ip_list_walk_data_t *iw = wsp->walk_data;
2739 wsp->walk_addr = addr + iw->nextoff;
2745 return (wsp->walk_callback(addr, iw, wsp->walk_cbdata));
2778 ipif_cb(uintptr_t addr, const ipif_walk_data_t *iw, ipif_cbdata_t *id)
3051 const ipcl_hash_walk_data_t *iw = walk_data;
3052 conn_t *conn = iw->conn;