Lines Matching refs:iw

233 static int ncec_cb(uintptr_t addr, const ncec_walk_data_t *iw,
519 illif_walk_data_t *iw; in illif_stack_walk_init() local
526 iw = mdb_alloc(sizeof (illif_walk_data_t), UM_SLEEP); in illif_stack_walk_init()
528 if (mdb_vread(iw->ill_g_heads, MAX_G_HEADS * sizeof (ill_g_head_t), in illif_stack_walk_init()
532 mdb_free(iw, sizeof (illif_walk_data_t)); in illif_stack_walk_init()
536 iw->ill_list = 0; in illif_stack_walk_init()
537 wsp->walk_addr = (uintptr_t)iw->ill_g_heads[0].ill_g_list_head; in illif_stack_walk_init()
538 wsp->walk_data = iw; in illif_stack_walk_init()
547 illif_walk_data_t *iw = wsp->walk_data; in illif_stack_walk_step() local
548 int list = iw->ill_list; in illif_stack_walk_step()
550 if (mdb_vread(&iw->ill_if, sizeof (ill_if_t), addr) == -1) { in illif_stack_walk_step()
555 wsp->walk_addr = (uintptr_t)iw->ill_if.illif_next; in illif_stack_walk_step()
558 (uintptr_t)iw->ill_g_heads[list].ill_g_list_head) { in illif_stack_walk_step()
563 iw->ill_list = list; in illif_stack_walk_step()
565 (uintptr_t)iw->ill_g_heads[list].ill_g_list_head; in illif_stack_walk_step()
569 return (wsp->walk_callback(addr, iw, wsp->walk_cbdata)); in illif_stack_walk_step()
586 illif_cb(uintptr_t addr, const illif_walk_data_t *iw, illif_cbdata_t *id) in illif_cb() argument
591 id->ill_printlist != iw->ill_list) in illif_cb()
602 switch (iw->ill_list) { in illif_cb()
610 iw->ill_if.illif_avl_by_ppa.avl_numnodes, in illif_cb()
611 iw->ill_if.illif_ppa_arena, iw->ill_if.illif_name); in illif_cb()
2317 ipcl_hash_get_next_connf_tbl(ipcl_hash_walk_data_t *iw) in ipcl_hash_get_next_connf_tbl() argument
2321 int index = iw->connf_tbl_index; in ipcl_hash_get_next_connf_tbl()
2324 next = iw->hash_tbl + index * sizeof (struct connf_s); in ipcl_hash_get_next_connf_tbl()
2325 if (++index >= iw->hash_tbl_size) { in ipcl_hash_get_next_connf_tbl()
2335 iw->connf_tbl_index = index; in ipcl_hash_get_next_connf_tbl()
2343 ipcl_hash_walk_data_t *iw; in ipcl_hash_walk_init() local
2347 iw = mdb_alloc(sizeof (ipcl_hash_walk_data_t), UM_SLEEP); in ipcl_hash_walk_init()
2348 iw->conn = mdb_alloc(sizeof (conn_t), UM_SLEEP); in ipcl_hash_walk_init()
2352 if (mdb_vread(&iw->hash_tbl, sizeof (uintptr_t), tbladdr) == -1) { in ipcl_hash_walk_init()
2354 mdb_free(iw->conn, sizeof (conn_t)); in ipcl_hash_walk_init()
2355 mdb_free(iw, sizeof (ipcl_hash_walk_data_t)); in ipcl_hash_walk_init()
2360 iw->hash_tbl_size = IPPROTO_MAX; in ipcl_hash_walk_init()
2362 if (mdb_vread(&iw->hash_tbl_size, sizeof (int), in ipcl_hash_walk_init()
2366 mdb_free(iw->conn, sizeof (conn_t)); in ipcl_hash_walk_init()
2367 mdb_free(iw, sizeof (ipcl_hash_walk_data_t)); in ipcl_hash_walk_init()
2371 iw->connf_tbl_index = 0; in ipcl_hash_walk_init()
2372 wsp->walk_addr = ipcl_hash_get_next_connf_tbl(iw); in ipcl_hash_walk_init()
2373 wsp->walk_data = iw; in ipcl_hash_walk_init()
2385 ipcl_hash_walk_data_t *iw = wsp->walk_data; in ipcl_hash_walk_step() local
2386 conn_t *conn = iw->conn; in ipcl_hash_walk_step()
2394 ret = wsp->walk_callback(addr, iw, wsp->walk_cbdata); in ipcl_hash_walk_step()
2400 wsp->walk_addr = ipcl_hash_get_next_connf_tbl(iw); in ipcl_hash_walk_step()
2414 ipcl_hash_walk_data_t *iw = wsp->walk_data; in ipcl_hash_walk_fini() local
2416 mdb_free(iw->conn, sizeof (conn_t)); in ipcl_hash_walk_fini()
2417 mdb_free(iw, sizeof (ipcl_hash_walk_data_t)); in ipcl_hash_walk_fini()
2484 ncec_cb(uintptr_t addr, const ncec_walk_data_t *iw, ncec_cbdata_t *id) in ncec_cb() argument
2528 ill_cb(uintptr_t addr, const ill_walk_data_t *iw, ill_cbdata_t *id) in ill_cb() argument
2742 ip_list_walk_data_t *iw; in ip_list_walk_init() local
2754 iw = mdb_alloc(sizeof (ip_list_walk_data_t), UM_SLEEP); in ip_list_walk_init()
2755 iw->nextoff = arg->nextp_off; in ip_list_walk_init()
2756 wsp->walk_data = iw; in ip_list_walk_init()
2764 ip_list_walk_data_t *iw = wsp->walk_data; in ip_list_walk_step() local
2769 wsp->walk_addr = addr + iw->nextoff; in ip_list_walk_step()
2775 return (wsp->walk_callback(addr, iw, wsp->walk_cbdata)); in ip_list_walk_step()
2808 ipif_cb(uintptr_t addr, const ipif_walk_data_t *iw, ipif_cbdata_t *id) in ipif_cb() argument
3080 const ipcl_hash_walk_data_t *iw = walk_data; in conn_status_cb() local
3084 if (iw != NULL) in conn_status_cb()
3085 conn = iw->conn; in conn_status_cb()