Lines Matching defs:mip
300 mac_impl_t *mip = ksp->ks_private;
310 for (i = 0; i < mip->mi_kstat_count; i++, msi_index++) {
319 msi = mip->mi_type->mt_stats;
322 val = mac_stat_get((mac_handle_t)mip, msi[msi_index].msi_stat);
943 mac_driver_stat_create(mac_impl_t *mip)
948 major_t major = getmajor(mip->mi_phy_dev);
950 count = MAC_MOD_NKSTAT + MAC_NKSTAT + mip->mi_type->mt_statcount;
952 getminor(mip->mi_phy_dev) - 1, MAC_KSTAT_NAME,
958 ksp->ks_private = mip;
959 mip->mi_ksp = ksp;
960 mip->mi_kstat_count = count;
966 if (mip->mi_type->mt_statcount > 0) {
968 i_mac_kstat_init(knp, mip->mi_type->mt_stats,
969 mip->mi_type->mt_statcount);
977 mac_driver_stat_delete(mac_impl_t *mip)
979 if (mip->mi_ksp != NULL) {
980 kstat_delete(mip->mi_ksp);
981 mip->mi_ksp = NULL;
982 mip->mi_kstat_count = 0;
987 mac_driver_stat_default(mac_impl_t *mip, uint_t stat)
998 ASSERT(stat_index < mip->mi_type->mt_statcount);
999 return (mip->mi_type->mt_stats[stat_index].msi_default);
1005 mac_impl_t *mip = ring->mr_mip;
1009 if (mip->mi_state_flags & MIS_IS_AGGR) {
1010 (void) strlcpy(modname, mip->mi_clients_list->mci_name,
1013 (void) strlcpy(modname, mip->mi_name, MAXNAMELEN);
1210 mac_pseudo_ring_stat_rename(mac_impl_t *mip)
1216 for (group = mip->mi_rx_groups; group != NULL;
1226 for (group = mip->mi_tx_groups; group != NULL;