Lines Matching refs:mib
112 *(short *)(&smc->mib.m[MAC0].fddiMACSMTAddress.a[0]) in is_my_addr()
114 *(short *)(&smc->mib.m[MAC0].fddiMACSMTAddress.a[2]) in is_my_addr()
116 *(short *)(&smc->mib.m[MAC0].fddiMACSMTAddress.a[4])) ; in is_my_addr()
154 smc->mib.m[MAC0].fddiMACSMTAddress = smc->hw.fddi_home_addr ; in smt_agent_init()
159 smc->mib.fddiSMTStationId.sid_oem[0] = 0 ; in smt_agent_init()
160 smc->mib.fddiSMTStationId.sid_oem[1] = 0 ; in smt_agent_init()
161 driver_get_bia(smc,&smc->mib.fddiSMTStationId.sid_node) ; in smt_agent_init()
163 smc->mib.fddiSMTStationId.sid_node.a[i] = in smt_agent_init()
164 bitrev8(smc->mib.fddiSMTStationId.sid_node.a[i]); in smt_agent_init()
166 smc->mib.fddiSMTManufacturerData[0] = in smt_agent_init()
167 smc->mib.fddiSMTStationId.sid_node.a[0] ; in smt_agent_init()
168 smc->mib.fddiSMTManufacturerData[1] = in smt_agent_init()
169 smc->mib.fddiSMTStationId.sid_node.a[1] ; in smt_agent_init()
170 smc->mib.fddiSMTManufacturerData[2] = in smt_agent_init()
171 smc->mib.fddiSMTStationId.sid_node.a[2] ; in smt_agent_init()
173 smc->mib.m[MAC0].fddiMACDupAddressTest = DA_NONE ; in smt_agent_init()
174 smc->mib.m[MAC0].fddiMACUNDA_Flag = FALSE ; in smt_agent_init()
218 smc->mib.m[mac_index].fddiMACToken_Ct += count; in smt_emulate_token_ct()
276 struct fddi_mib_m *mib ; in smt_event() local
293 mib = smc->mib.m ; in smt_event()
295 (mib->fddiMACLost_Ct - mib->fddiMACOld_Lost_Ct) + in smt_event()
296 (mib->fddiMACError_Ct - mib->fddiMACOld_Error_Ct) ; in smt_event()
298 (mib->fddiMACFrame_Ct - mib->fddiMACOld_Frame_Ct) + in smt_event()
299 (mib->fddiMACLost_Ct - mib->fddiMACOld_Lost_Ct) ; in smt_event()
300 mib->fddiMACFrameErrorRatio = div_ratio(upper,lower) ; in smt_event()
303 ((!mib->fddiMACFrameErrorThreshold && in smt_event()
304 mib->fddiMACError_Ct != mib->fddiMACOld_Error_Ct) || in smt_event()
305 (mib->fddiMACFrameErrorRatio > in smt_event()
306 mib->fddiMACFrameErrorThreshold)) ; in smt_event()
308 if (cond != mib->fddiMACFrameErrorFlag) in smt_event()
313 (mib->fddiMACNotCopied_Ct - mib->fddiMACOld_NotCopied_Ct) ; in smt_event()
316 (mib->fddiMACCopied_Ct - mib->fddiMACOld_Copied_Ct) ; in smt_event()
317 mib->fddiMACNotCopiedRatio = div_ratio(upper,lower) ; in smt_event()
320 ((!mib->fddiMACNotCopiedThreshold && in smt_event()
321 mib->fddiMACNotCopied_Ct != in smt_event()
322 mib->fddiMACOld_NotCopied_Ct)|| in smt_event()
323 (mib->fddiMACNotCopiedRatio > in smt_event()
324 mib->fddiMACNotCopiedThreshold)) ; in smt_event()
326 if (cond != mib->fddiMACNotCopiedFlag) in smt_event()
333 mib->fddiMACOld_Frame_Ct = mib->fddiMACFrame_Ct ; in smt_event()
334 mib->fddiMACOld_Copied_Ct = mib->fddiMACCopied_Ct ; in smt_event()
335 mib->fddiMACOld_Error_Ct = mib->fddiMACError_Ct ; in smt_event()
336 mib->fddiMACOld_Lost_Ct = mib->fddiMACLost_Ct ; in smt_event()
337 mib->fddiMACOld_NotCopied_Ct = mib->fddiMACNotCopied_Ct ; in smt_event()
345 if (!phy->mib->fddiPORTHardwarePresent) { in smt_event()
349 cond = (phy->mib->fddiPORTEBError_Ct - in smt_event()
350 phy->mib->fddiPORTOldEBError_Ct > 5) ; in smt_event()
361 phy->mib->fddiPORTOldEBError_Ct = in smt_event()
362 phy->mib->fddiPORTEBError_Ct ; in smt_event()
371 (smc->mib.fddiSMTTT_Notify * TICKS_PER_SECOND) ) { in smt_event()
393 if (!is_equal(&smc->mib.m[MAC0].fddiMACUpstreamNbr, in smt_event()
396 smc->mib.m[MAC0].fddiMACOldUpstreamNbr= in smt_event()
397 smc->mib.m[MAC0].fddiMACUpstreamNbr ; in smt_event()
399 smc->mib.m[MAC0].fddiMACUpstreamNbr = SMT_Unknown ; in smt_event()
400 smc->mib.m[MAC0].fddiMACUNDA_Flag = FALSE ; in smt_event()
415 if (!is_equal(&smc->mib.m[MAC0].fddiMACDownstreamNbr, in smt_event()
418 smc->mib.m[MAC0].fddiMACOldDownstreamNbr= in smt_event()
419 smc->mib.m[MAC0].fddiMACDownstreamNbr ; in smt_event()
421 smc->mib.m[MAC0].fddiMACDownstreamNbr = SMT_Unknown ; in smt_event()
479 smc->mib.m[MAC0].fddiMACSMTCopied_Ct++ ; in smt_received_pack()
579 &smc->mib.m[MAC0].fddiMACUpstreamNbr, in smt_received_pack()
583 if (!is_equal(&smc->mib.m[MAC0]. in smt_received_pack()
586 smc->mib.m[MAC0].fddiMACOldUpstreamNbr= in smt_received_pack()
587 smc->mib.m[MAC0].fddiMACUpstreamNbr ; in smt_received_pack()
590 smc->mib.m[MAC0].fddiMACUpstreamNbr = in smt_received_pack()
601 smc->mib.m[MAC0].fddiMACUNDA_Flag = in smt_received_pack()
625 smc->mib.m[MAC0].fddiMACDupAddressTest = in smt_received_pack()
629 smc->mib.m[MAC0].fddiMACDA_Flag = TRUE ; in smt_received_pack()
637 &smc->mib.m[MAC0].fddiMACDownstreamNbr, in smt_received_pack()
640 if (!is_equal(&smc->mib.m[MAC0]. in smt_received_pack()
643 smc->mib.m[MAC0].fddiMACOldDownstreamNbr = in smt_received_pack()
644 smc->mib.m[MAC0].fddiMACDownstreamNbr ; in smt_received_pack()
647 smc->mib.m[MAC0].fddiMACDownstreamNbr = in smt_received_pack()
654 smc->mib.m[MAC0].fddiMACDA_Flag = FALSE ; in smt_received_pack()
657 smc->mib.m[MAC0].fddiMACDupAddressTest = in smt_received_pack()
695 smc->mib.priv.fddiPRIVECF_Reply_Rx++ ; in smt_received_pack()
718 smc->mib.priv.fddiPRIVECF_Req_Rx++ ; in smt_received_pack()
733 smc->mib.priv.fddiPRIVECF_Reply_Tx++ ; in smt_received_pack()
755 smc->mib.priv.fddiPRIVRDF_Rx++ ; in smt_received_pack()
769 smc->mib.priv.fddiPRIVPMF_Get_Rx++ ; in smt_received_pack()
771 smc->mib.priv.fddiPRIVPMF_Set_Rx++ ; in smt_received_pack()
810 cond = ( smc->mib.m[MAC0].fddiMACUNDA_Flag | in update_dac()
811 smc->mib.m[MAC0].fddiMACDA_Flag) != 0 ; in update_dac()
812 if (report && (cond != smc->mib.m[MAC0].fddiMACDuplicateAddressCond)) in update_dac()
815 smc->mib.m[MAC0].fddiMACDuplicateAddressCond = cond ; in update_dac()
835 sm->smt_source = smc->mib.m[MAC0].fddiMACSMTAddress ; in smt_send_frame()
836 sm->smt_sid = smc->mib.fddiSMTStationId ; in smt_send_frame()
840 smc->mib.m[MAC0].fddiMACSMTTransmit_Ct++ ; in smt_send_frame()
917 smc->mib.priv.fddiPRIVRDF_Tx++ ; in smt_send_rdf()
982 &smc->mib.m[MAC0].fddiMACDownstreamNbr : in smt_echo_test()
983 &smc->mib.m[MAC0].fddiMACUpstreamNbr, in smt_echo_test()
1008 smc->mib.priv.fddiPRIVECF_Req_Tx++ ; in smt_send_ecf()
1151 una->una_node = smc->mib.m[MAC0].fddiMACUpstreamNbr ; in smt_fill_una()
1160 sde->sde_non_master = smc->mib.fddiSMTNonMaster_Ct ; in smt_fill_sde()
1161 sde->sde_master = smc->mib.fddiSMTMaster_Ct ; in smt_fill_sde()
1183 if (smc->mib.fddiSMTPeerWrapFlag) { in smt_fill_state()
1202 if (smc->mib.a[0].fddiPATHSbaPayload != 0) in smt_fill_state()
1206 ((smc->mib.m[MAC0].fddiMACDA_Flag ? SMT_ST_MY_DUPA : 0 ) | in smt_fill_state()
1207 (smc->mib.m[MAC0].fddiMACUNDA_Flag ? SMT_ST_UNA_DUPA : 0)) ; in smt_fill_state()
1271 in = smc->mib.fddiSMTConnectionPolicy ; in smt_fill_policy()
1278 policy->pl_config = smc->mib.fddiSMTConfigPolicy ; in smt_fill_policy()
1314 neighbor->nb_una = smc->mib.m[MAC0].fddiMACUpstreamNbr ; in smt_fill_neighbor()
1315 neighbor->nb_dna = smc->mib.m[MAC0].fddiMACDownstreamNbr ; in smt_fill_neighbor()
1367 pd_mac->mac_addr = smc->mib.m[MAC0].fddiMACSMTAddress ; in smt_fill_path()
1387 st->st_t_req = smc->mib.m[MAC0].fddiMACT_Req ; in smt_fill_mac_status()
1388 st->st_t_neg = smc->mib.m[MAC0].fddiMACT_Neg ; in smt_fill_mac_status()
1389 st->st_t_max = smc->mib.m[MAC0].fddiMACT_Max ; in smt_fill_mac_status()
1390 st->st_tvx_value = smc->mib.m[MAC0].fddiMACTvxValue ; in smt_fill_mac_status()
1391 st->st_t_min = smc->mib.m[MAC0].fddiMACT_Min ; in smt_fill_mac_status()
1393 st->st_sba = smc->mib.a[PATH0].fddiPATHSbaPayload ; in smt_fill_mac_status()
1394 st->st_frame_ct = smc->mib.m[MAC0].fddiMACFrame_Ct ; in smt_fill_mac_status()
1395 st->st_error_ct = smc->mib.m[MAC0].fddiMACError_Ct ; in smt_fill_mac_status()
1396 st->st_lost_ct = smc->mib.m[MAC0].fddiMACLost_Ct ; in smt_fill_mac_status()
1404 struct fddi_mib_p *mib ; in smt_fill_lem() local
1406 mib = smc->y[phy].mib ; in smt_fill_lem()
1412 lem->lem_cutoff = mib->fddiPORTLer_Cutoff ; in smt_fill_lem()
1413 lem->lem_alarm = mib->fddiPORTLer_Alarm ; in smt_fill_lem()
1415 lem->lem_estimate = mib->fddiPORTLer_Estimate ; in smt_fill_lem()
1417 lem->lem_reject_ct = mib->fddiPORTLem_Reject_Ct ; in smt_fill_lem()
1418 lem->lem_ct = mib->fddiPORTLem_Ct ; /* total number of errors */ in smt_fill_lem()
1468 mc->mc_receive_ct = smc->mib.m[MAC0].fddiMACCopied_Ct ; in smt_fill_mac_counter()
1469 mc->mc_transmit_ct = smc->mib.m[MAC0].fddiMACTransmit_Ct ; in smt_fill_mac_counter()
1480 fnc->nc_counter = smc->mib.m[MAC0].fddiMACNotCopied_Ct ; in smt_fill_mac_fnc()
1492 (char *) smc->mib.fddiSMTManufacturerData, in smt_fill_manufacturer()
1503 (char *) smc->mib.fddiSMTUserData, in smt_fill_user()
1514 setcount->count = smc->mib.fddiSMTSetCount.count ; in smt_fill_setcount()
1516 (char *)smc->mib.fddiSMTSetCount.timestamp,8) ; in smt_fill_setcount()
1542 smc->mib.m[MAC0].fddiMACUpstreamNbr = SMT_Unknown ; in smt_clear_una_dna()
1543 smc->mib.m[MAC0].fddiMACDownstreamNbr = SMT_Unknown ; in smt_clear_una_dna()
1548 smc->mib.m[MAC0].fddiMACOldUpstreamNbr = SMT_Unknown ; in smt_clear_old_una_dna()
1549 smc->mib.m[MAC0].fddiMACOldDownstreamNbr = SMT_Unknown ; in smt_clear_old_una_dna()
1709 smt->smt_source = smc->mib.m[MAC0].fddiMACSMTAddress ;
1749 switch (smc->mib.fddiSMTCF_State) { in mac_con_resource_index()
1770 switch (smc->mib.fddiSMTCF_State) { in phy_con_resource_index()
1921 smc->mib.fddiSMTRemoteDisconnectFlag = FALSE ; in smt_action()
1926 smc->mib.fddiSMTRemoteDisconnectFlag = TRUE ; in smt_action()
1956 if (smc->mib.p[port].fddiPORTMy_Type != TM) in smt_action()