Lines Matching +full:1 +full: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()
497 smt_swap_para(sm,(int) mb->sm_len,1) ; in smt_received_pack()
543 illegal = 1; in smt_received_pack()
547 illegal = 1; 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()
604 update_dac(smc,1) ; 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()
630 update_dac(smc,1) ; 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()
652 smt_echo_test(smc,1) ; in smt_received_pack()
654 smc->mib.m[MAC0].fddiMACDA_Flag = FALSE ; in smt_received_pack()
655 update_dac(smc,1) ; 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()
738 illegal = 1 ; 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()
790 * we need to send a RDF frame according to 8.1.3.1.1, 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()
888 rdf->version.v_n = 1 ; in smt_send_rdf()
889 rdf->version.v_index = 1 ; in smt_send_rdf()
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()
1062 ports = 1 ; in smt_send_sif_operation()
1079 if (ports == 1) { in smt_send_sif_operation()
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()
1162 sde->sde_mac_count = NUMMACS ; /* only 1 MAC */ in smt_fill_sde()
1183 if (smc->mib.fddiSMTPeerWrapFlag) { in smt_fill_state()
1191 if ((twist = pcm_status_twisted(smc)) & 1) { 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()
1234 p[1] = (u_char)((time>>(8+8+8+8-1)) & 1) ; in smt_set_timestamp()
1235 p[2] = (u_char)(time>>(8+8+8-1)) ; in smt_set_timestamp()
1236 p[3] = (u_char)(time>>(8+8-1)) ; in smt_set_timestamp()
1237 p[4] = (u_char)(time>>(8-1)) ; in smt_set_timestamp()
1238 p[5] = (u_char)(time<<1) ; in smt_set_timestamp()
1262 * MIB para 101b (fddiSMTConnectionPolicy) coding in smt_fill_policy()
1266 0,7,5,3,8,1,6,4,9,10,2,11,12,13,14,15 in smt_fill_policy()
1271 in = smc->mib.fddiSMTConnectionPolicy ; in smt_fill_policy()
1273 if (in & 1) in smt_fill_policy()
1274 out |= (1<<*map) ; in smt_fill_policy()
1275 in >>= 1 ; in smt_fill_policy()
1278 policy->pl_config = smc->mib.fddiSMTConfigPolicy ; in smt_fill_policy()
1296 latency->lt_phyout_idx2 = phy_index(smc,1) ; in smt_fill_latency()
1313 neighbor->nb_mac_index = mac_index(smc,1) ; in smt_fill_neighbor()
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()
1324 #define ALLPHYS ((smc->s.sas == SMT_SAS) ? 1 : 2)
1367 pd_mac->mac_addr = smc->mib.m[MAC0].fddiMACSMTAddress ; in smt_fill_path()
1368 pd_mac->mac_resource_idx = mac_con_resource_index(smc,1) ; in smt_fill_path()
1380 st->st_mac_index = mac_index(smc,1) ; in smt_fill_mac_status()
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()
1429 vers->v_n = 1 ; /* one version is enough .. */ in smt_fill_version()
1430 vers->v_index = 1 ; in smt_fill_version()
1448 fsc->fsc_mac_index = INDEX_MAC ; /* this is MIB ; MIB is NOT in smt_fill_fsc()
1467 mc->mc_index = mac_index(smc,1) ; in smt_fill_mac_counter()
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()
1479 fnc->nc_index = mac_index(smc,1) ; in smt_fill_mac_fnc()
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()
1649 return -1; in smt_check_para()
1666 p = (char *)(sm+1) ; /* pointer to info */ in sm_to_para()
1705 *p++ = 1 << (i&7) ;
1709 smt->smt_source = smc->mib.m[MAC0].fddiMACSMTAddress ;
1723 return NUMPHYS + 1; in mac_index()
1735 return phy + 1; in phy_index()
1749 switch (smc->mib.fddiSMTCF_State) { in mac_con_resource_index()
1753 return 1; in mac_con_resource_index()
1770 switch (smc->mib.fddiSMTCF_State) { in phy_con_resource_index()
1774 return phy == PA ? 1 : 3; in phy_con_resource_index()
1776 return phy == PA ? 3 : 1; in phy_con_resource_index()
1790 return mac_index(smc, 1); in entity_to_index()
1803 /* int direction; 0 encode 1 decode */ in smt_swap_para()
1820 p = (char *) (sm + 1) ; in smt_swap_para()
1862 case '1' : in smt_string_swap()
1879 swap(data[0], data[1]) ; in smt_string_swap()
1885 swap(data[1], data[2]) ; in smt_string_swap()
1895 /* int direction; 0 encode 1 decode */ in smt_swap_para()
1915 smc->mib.fddiSMTRemoteDisconnectFlag = FALSE ; in smt_action()
1920 smc->mib.fddiSMTRemoteDisconnectFlag = TRUE ; in smt_action()
1950 if (smc->mib.p[port].fddiPORTMy_Type != TM) in smt_action()
1957 return 1; in smt_action()
1978 return 1; in smt_action()
1983 return 1; in smt_action()