Lines Matching refs:mac_pvt

516 	gld_mac_pvt_t *mac_pvt;  in gld_register()  local
683 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_register()
684 mac_pvt->major_dev = glddev; in gld_register()
686 mac_pvt->curr_macaddr = kmem_zalloc(macinfo->gldm_addrlen, KM_SLEEP); in gld_register()
693 bcopy(macinfo->gldm_vendor_addr, mac_pvt->curr_macaddr, in gld_register()
695 mac_pvt->statistics = kmem_zalloc(sizeof (struct gld_stats), KM_SLEEP); in gld_register()
702 mac_pvt->notifications = gld_internal_notes; in gld_register()
704 mac_pvt->notifications |= gld_linkstate_notes; in gld_register()
705 mac_pvt->notifications &= gld_supported_notes; in gld_register()
796 mac_pvt->interfacep->mac_string, in gld_register()
806 if (mac_pvt->curr_macaddr != NULL) in gld_register()
807 kmem_free(mac_pvt->curr_macaddr, macinfo->gldm_addrlen); in gld_register()
808 if (mac_pvt->statistics != NULL) in gld_register()
809 kmem_free(mac_pvt->statistics, sizeof (struct gld_stats)); in gld_register()
858 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_unregister() local
859 glddev_t *glddev = mac_pvt->major_dev; in gld_unregister()
866 if (mac_pvt->nvlan > 0) { in gld_unregister()
877 if ((mac_pvt->vlan_hash[i] != NULL)) in gld_unregister()
898 ASSERT(mac_pvt->kstatp); in gld_unregister()
899 kstat_delete(mac_pvt->kstatp); in gld_unregister()
902 kmem_free(mac_pvt->curr_macaddr, macinfo->gldm_addrlen); in gld_unregister()
903 kmem_free(mac_pvt->statistics, sizeof (struct gld_stats)); in gld_unregister()
905 if (mac_pvt->mcast_table != NULL) in gld_unregister()
906 kmem_free(mac_pvt->mcast_table, multisize); in gld_unregister()
949 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_initstats() local
955 glddev = mac_pvt->major_dev; in gld_initstats()
965 mac_pvt->kstatp = ksp; in gld_initstats()
1018 gld_mac_pvt_t *mac_pvt; in gld_update_kstat() local
1040 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_update_kstat()
1041 gsp = mac_pvt->kstatp->ks_data; in gld_update_kstat()
1043 stats = mac_pvt->statistics; in gld_update_kstat()
1079 if (mac_pvt->nprom) in gld_update_kstat()
1081 else if (mac_pvt->nprom_multi) in gld_update_kstat()
1172 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)mac->gldm_mac_pvt; in gld_init_vlan_stats() local
1179 glddev = mac_pvt->major_dev; in gld_init_vlan_stats()
1242 gld_mac_pvt_t *mac_pvt; in gld_update_vlan_kstat() local
1254 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_update_vlan_kstat()
1282 gsp->glds_speed.value.ui64 = mac_pvt->statistics->glds_speed; in gld_update_vlan_kstat()
1283 media = mac_pvt->statistics->glds_media; in gld_update_vlan_kstat()
1426 gld_mac_pvt_t *mac_pvt; in gld_open() local
1548 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_open()
1549 if (!mac_pvt->started) { in gld_open()
2044 gld_mac_pvt_t *mac_pvt; in gld_start() local
2055 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_start()
2056 ifp = mac_pvt->interfacep; in gld_start()
2070 stats0 = mac_pvt->statistics; in gld_start()
2143 if (mac_pvt->nprom > 0) { in gld_start()
2243 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_start_mdt() local
2245 gld_interface_t *ifp = mac_pvt->interfacep; in gld_start_mdt()
2261 if (mac_pvt->nprom > 0) { in gld_start_mdt()
2457 gld_mac_pvt_t *mac_pvt; in gld_sched() local
2472 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_sched()
2475 for (vlan = mac_pvt->vlan_hash[i]; in gld_sched()
2505 gld_mac_pvt_t *mac_pvt; in gld_precv() local
2511 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_precv()
2512 ifp = mac_pvt->interfacep; in gld_precv()
2519 BUMP(mac_pvt->statistics, stats, glds_rcvbadinterp, 1); in gld_precv()
2550 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_precv_mdt() local
2551 gld_interface_t *ifp = mac_pvt->interfacep; in gld_precv_mdt()
2580 gld_mac_pvt_t *mac_pvt; in gld_recv_tagged() local
2610 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_recv_tagged()
2611 stats0 = mac_pvt->statistics; in gld_recv_tagged()
2632 ifp = mac_pvt->interfacep; in gld_recv_tagged()
3819 gld_mac_pvt_t *mac_pvt; in gld_notify_qs() local
3827 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_notify_qs()
3834 for (vlan = mac_pvt->vlan_hash[i]; in gld_notify_qs()
3874 gld_mac_pvt_t *mac_pvt; in gld_notify_ind() local
3902 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_notify_ind()
3903 stats = mac_pvt->statistics; in gld_notify_ind()
3930 if (mac_pvt->nprom != 0) in gld_notify_ind()
3961 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_notify_ind()
3962 mac_copy(mac_pvt->curr_macaddr, in gld_notify_ind()
4148 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_bindack() local
4166 mac_copy(mac_pvt->curr_macaddr, (uchar_t *)&dlp[1], in gld_bindack()
4342 gld_mac_pvt_t *mac_pvt; in gld_inforeq() local
4365 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_inforeq()
4451 mac_copy(mac_pvt->curr_macaddr, mp->b_rptr + in gld_inforeq()
4593 gld_mac_pvt_t *mac_pvt; in gldattach() local
4665 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gldattach()
4666 if (!mac_pvt->started) { in gldattach()
4712 gld_mac_pvt_t *mac_pvt; in gldunattach() local
4723 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gldunattach()
4751 --mac_pvt->nprom == 0); in gldunattach()
4753 --mac_pvt->nprom_multi == 0); in gldunattach()
4756 op = (mac_pvt->nprom_multi == 0) ? GLD_MAC_PROMISC_NONE : in gldunattach()
4759 op = (mac_pvt->nprom == 0) ? GLD_MAC_PROMISC_NONE : in gldunattach()
4802 if (mac_pvt->nvlan == 0) { in gldunattach()
4808 if (mac_pvt->last_sched == gld) in gldunattach()
4809 mac_pvt->last_sched = NULL; in gldunattach()
4842 gld_mac_pvt_t *mac_pvt; in gld_enable_multi() local
4855 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_enable_multi()
4869 glddev = mac_pvt->major_dev; in gld_enable_multi()
4913 if (mac_pvt->mcast_table == NULL) { in gld_enable_multi()
4914 mac_pvt->mcast_table = GLD_GETSTRUCT(gld_mcast_t, in gld_enable_multi()
4916 if (mac_pvt->mcast_table == NULL) { in gld_enable_multi()
4923 if (mac_pvt->mcast_table[i].gldm_refcnt && in gld_enable_multi()
4924 mac_eq(mac_pvt->mcast_table[i].gldm_addr, in gld_enable_multi()
4926 mcast = &mac_pvt->mcast_table[i]; in gld_enable_multi()
4934 if (mac_pvt->mcast_table[i].gldm_refcnt == 0) { in gld_enable_multi()
4935 mcast = &mac_pvt->mcast_table[i]; in gld_enable_multi()
5105 gld_mac_pvt_t *mac_pvt; in gld_promisc() local
5128 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_promisc()
5145 if (mac_pvt->nprom == 0) in gld_promisc()
5150 if (mac_pvt->nprom_multi == 0) in gld_promisc()
5151 if (mac_pvt->nprom == 0) in gld_promisc()
5168 else if (mac_pvt->nprom == 1) in gld_promisc()
5169 if (mac_pvt->nprom_multi) in gld_promisc()
5178 else if (mac_pvt->nprom_multi == 1) in gld_promisc()
5179 if (mac_pvt->nprom == 0) in gld_promisc()
5214 mac_pvt->nprom++; in gld_promisc()
5220 mac_pvt->nprom_multi++; in gld_promisc()
5237 mac_pvt->nprom--; in gld_promisc()
5243 mac_pvt->nprom_multi--; in gld_promisc()
5365 gld_mac_pvt_t *mac_pvt; in gld_setaddr() local
5383 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_setaddr()
5399 mac_copy(addr, mac_pvt->curr_macaddr, in gld_setaddr()
5431 gld_mac_pvt_t *mac_pvt; in gld_get_statistics() local
5438 mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_get_statistics()
5439 (void) gld_update_kstat(mac_pvt->kstatp, KSTAT_READ); in gld_get_statistics()
5453 bcopy(mac_pvt->kstatp->ks_data, in gld_get_statistics()
5474 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_start_mac() local
5477 ASSERT(!mac_pvt->started); in gld_start_mac()
5497 mac_pvt->started = B_TRUE; in gld_start_mac()
5507 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_stop_mac() local
5510 ASSERT(mac_pvt->started); in gld_stop_mac()
5514 mac_pvt->started = B_FALSE; in gld_stop_mac()
5726 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_add_vlan() local
5730 pp = &(mac_pvt->vlan_hash[vid % VLAN_HASHSZ]); in gld_add_vlan()
5744 p->gldv_stats = mac_pvt->statistics; in gld_add_vlan()
5759 mac_pvt->nvlan++; in gld_add_vlan()
5769 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_rem_vlan() local
5773 pp = &(mac_pvt->vlan_hash[vlan->gldv_id % VLAN_HASHSZ]); in gld_rem_vlan()
5782 mac_pvt->nvlan--; in gld_rem_vlan()
5794 gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_find_vlan() local
5797 p = mac_pvt->vlan_hash[vid % VLAN_HASHSZ]; in gld_find_vlan()