Lines Matching refs:kcp

185 	kstat_ctl_t 	*kcp = (kstat_ctl_t *)arg;
218 ksp = dladm_kstat_lookup(kcp, NULL, -1, flowname, "flow");
224 dladm_get_stats(kcp, ksp, &currstats);
311 kstat_ctl_t *kcp = (kstat_ctl_t *)arg;
340 (void) kstat_chain_update(kcp);
344 ksp = dladm_kstat_lookup(kcp, NULL, -1, flist->linkname, "net");
350 dladm_get_stats(kcp, ksp, &currstats);
433 stat_report(dladm_handle_t handle, kstat_ctl_t *kcp, datalink_id_t linkid,
479 (void *)kcp, DATALINK_CLASS_ALL,
483 (void) link_kstats(handle, linkid, kcp);
494 (void) flow_kstats(handle, &fattr, kcp);
498 (void *)kcp, DATALINK_CLASS_ALL,
502 (void) dladm_walk_flow(flow_kstats, handle, linkid, kcp,
543 kstat_ctl_t *kcp;
545 if ((kcp = kstat_open()) == NULL) {
557 stat_report(handle, kcp, linkid, flowname, opt);
564 (void) kstat_close(kcp);
573 dladm_kstat_lookup(kstat_ctl_t *kcp, const char *module, int instance,
605 for (ksp = kcp->kc_chain; ksp != NULL; ksp = ksp->ks_next) {
623 dladm_get_stats(kstat_ctl_t *kcp, kstat_t *ksp, pktsum_t *stats)
626 if (kstat_read(kcp, ksp, NULL) == -1)
703 kstat_ctl_t *kcp;
727 if ((kcp = kstat_open()) == NULL) {
736 if ((ksp = kstat_lookup(kcp, module, instance, DLSTAT_MAC_PHYS_STAT))
737 == NULL && (ksp = kstat_lookup(kcp, module, instance, NULL))
742 if (kstat_read(kcp, ksp, NULL) == -1)
748 (void) kstat_close(kcp);
752 (void) kstat_close(kcp);
1268 i_dlstat_get_stats(kstat_ctl_t *kcp, kstat_t *ksp, void *stats,
1273 if (kstat_read(kcp, ksp, NULL) == -1)
1331 kstat_ctl_t *kcp;
1336 if ((kcp = kstat_open()) == NULL)
1339 ksp = dladm_kstat_lookup(kcp, DLSTAT_MAC_LINK_STAT, 0, linkname, NULL);
1342 dladm_get_stats(kcp, ksp, stats);
1344 (void) kstat_close(kcp);
1468 kstat_ctl_t *kcp;
1475 if ((kcp = kstat_open()) == NULL) {
1486 ksp = dladm_kstat_lookup(kcp, modname, -1, statname, NULL);
1494 curr->dc_statentry = fn(kcp, ksp, index);
1512 (void) kstat_close(kcp);
1519 kstat_ctl_t *kcp;
1523 if ((kcp = kstat_open()) == NULL)
1526 ksp = dladm_kstat_lookup(kcp, modname, -1, DLSTAT_MAC_LINK_STAT, NULL);
1534 i_dlstat_get_stats(kcp, ksp, &link_stat_entry->lse_stats,
1537 (void) kstat_close(kcp);
1574 i_dlstat_rx_hwlane_retrieve_stat(kstat_ctl_t *kcp, kstat_t *ksp, int i)
1585 i_dlstat_get_stats(kcp, ksp, &rx_lane_stat_entry->rle_stats,
1847 i_dlstat_tx_hwlane_retrieve_stat(kstat_ctl_t *kcp, kstat_t *ksp, int i)
1858 i_dlstat_get_stats(kcp, ksp, &tx_lane_stat_entry->tle_stats,
2249 i_dlstat_rx_ring_retrieve_stat(kstat_ctl_t *kcp, kstat_t *ksp, int i)
2259 i_dlstat_get_stats(kcp, ksp, &rx_ring_stat_entry->re_stats,
2319 i_dlstat_tx_ring_retrieve_stat(kstat_ctl_t *kcp, kstat_t *ksp, int i)
2329 i_dlstat_get_stats(kcp, ksp, &tx_ring_stat_entry->re_stats,
2361 kstat_ctl_t *kcp;
2370 if ((kcp = kstat_open()) == NULL) {
2375 ksp = dladm_kstat_lookup(kcp, module, instance, DLSTAT_MAC_PHYS_STAT,
2384 i_dlstat_get_stats(kcp, ksp, &total_stat_entry->tse_stats,
2387 (void) kstat_close(kcp);
2696 kstat_ctl_t *kcp;
2705 if ((kcp = kstat_open()) == NULL) {
2710 ksp = dladm_kstat_lookup(kcp, module, instance, DLSTAT_MAC_PHYS_STAT,
2722 i_dlstat_get_stats(kcp, ksp, &aggr_port_stat_entry->ape_stats,
2725 (void) kstat_close(kcp);
3252 kstat_ctl_t *kcp;
3256 if ((kcp = kstat_open()) == NULL)
3263 ksp = dladm_kstat_lookup(kcp, NULL, -1, flowname, "flow");
3266 i_dlstat_get_stats(kcp, ksp, flow_stat, flow_stats_list,
3271 (void) kstat_close(kcp);