Lines Matching refs:mib

69 static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper);
126 smc->mib.fddiESSPayload = 0 ; in smt_reset_defaults()
127 smc->mib.fddiESSOverhead = 0 ; in smt_reset_defaults()
128 smc->mib.fddiESSMaxTNeg = (u_long)(- MS2BCLK(25)) ; in smt_reset_defaults()
129 smc->mib.fddiESSMinSegmentSize = 1 ; in smt_reset_defaults()
130 smc->mib.fddiESSCategory = SB_STATIC ; in smt_reset_defaults()
131 smc->mib.fddiESSSynchTxMode = FALSE ; in smt_reset_defaults()
158 struct fddi_mib *mib ; in smt_init_mib() local
163 mib = &smc->mib ; in smt_init_mib()
175 mib->fddiSMTRemoteDisconnectFlag = 0 ; in smt_init_mib()
176 mib->fddiSMTPeerWrapFlag = 0 ; in smt_init_mib()
179 mib->fddiSMTOpVersionId = 2 ; in smt_init_mib()
180 mib->fddiSMTHiVersionId = 2 ; in smt_init_mib()
181 mib->fddiSMTLoVersionId = 2 ; in smt_init_mib()
182 memcpy((char *) mib->fddiSMTManufacturerData,man_data,32) ; in smt_init_mib()
184 strcpy(mib->fddiSMTUserData,OEM_USER_DATA) ; in smt_init_mib()
186 mib->fddiSMTMIBVersionId = 1 ; in smt_init_mib()
187 mib->fddiSMTMac_Ct = NUMMACS ; in smt_init_mib()
188 mib->fddiSMTConnectionPolicy = POLICY_MM | POLICY_AA | POLICY_BB ; in smt_init_mib()
194 mib->fddiSMTAvailablePaths = MIB_PATH_P | MIB_PATH_S ; in smt_init_mib()
196 mib->fddiSMTConfigCapabilities = 0 ; /* no hold,no wrap_ab*/ in smt_init_mib()
197 mib->fddiSMTTT_Notify = 10 ; in smt_init_mib()
198 mib->fddiSMTStatRptPolicy = TRUE ; in smt_init_mib()
199 mib->fddiSMTTrace_MaxExpiration = SEC2MIB(7) ; in smt_init_mib()
200 mib->fddiSMTMACIndexes = INDEX_MAC ; in smt_init_mib()
201 mib->fddiSMTStationStatus = MIB_SMT_STASTA_SEPA ; /* separated */ in smt_init_mib()
203 mib->m[MAC0].fddiMACIndex = INDEX_MAC ; in smt_init_mib()
204 mib->m[MAC0].fddiMACFrameStatusFunctions = FSC_TYPE0 ; in smt_init_mib()
205 mib->m[MAC0].fddiMACRequestedPaths = in smt_init_mib()
209 mib->m[MAC0].fddiMACAvailablePaths = MIB_PATH_P ; in smt_init_mib()
210 mib->m[MAC0].fddiMACCurrentPath = MIB_PATH_PRIMARY ; in smt_init_mib()
211 mib->m[MAC0].fddiMACT_MaxCapabilitiy = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
212 mib->m[MAC0].fddiMACTVXCapabilitiy = (u_long)(- US2BCLK(52)) ; in smt_init_mib()
214 mib->m[MAC0].fddiMACTvxValue = (u_long)(- US2BCLK(27)) ; in smt_init_mib()
215 mib->m[MAC0].fddiMACTvxValueMIB = (u_long)(- US2BCLK(27)) ; in smt_init_mib()
216 mib->m[MAC0].fddiMACT_Req = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
217 mib->m[MAC0].fddiMACT_ReqMIB = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
218 mib->m[MAC0].fddiMACT_Max = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
219 mib->m[MAC0].fddiMACT_MaxMIB = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
220 mib->m[MAC0].fddiMACT_Min = (u_long)(- MS2BCLK(4)) ; in smt_init_mib()
222 mib->m[MAC0].fddiMACHardwarePresent = TRUE ; in smt_init_mib()
223 mib->m[MAC0].fddiMACMA_UnitdataEnable = TRUE ; in smt_init_mib()
224 mib->m[MAC0].fddiMACFrameErrorThreshold = 1 ; in smt_init_mib()
225 mib->m[MAC0].fddiMACNotCopiedThreshold = 1 ; in smt_init_mib()
230 mib->a[path].fddiPATHIndex = INDEX_PATH + path ; in smt_init_mib()
232 mib->a[path].fddiPATHTVXLowerBound = in smt_init_mib()
234 mib->a[path].fddiPATHT_MaxLowerBound = in smt_init_mib()
236 mib->a[path].fddiPATHMaxT_Req = in smt_init_mib()
245 pm = mib->p ; in smt_init_mib()
252 smc->y[port].mib = NULL; in smt_init_mib()
253 mib->fddiSMTPORTIndexes[port] = port+INDEX_PORT ; in smt_init_mib()
281 st = set_min_max(1,smc->mib.m[MAC0].fddiMACTvxValueMIB, in smt_set_mac_opvalues()
282 smc->mib.a[PATH0].fddiPATHTVXLowerBound, in smt_set_mac_opvalues()
283 &smc->mib.m[MAC0].fddiMACTvxValue) ; in smt_set_mac_opvalues()
284 st |= set_min_max(0,smc->mib.m[MAC0].fddiMACT_MaxMIB, in smt_set_mac_opvalues()
285 smc->mib.a[PATH0].fddiPATHT_MaxLowerBound, in smt_set_mac_opvalues()
286 &smc->mib.m[MAC0].fddiMACT_Max) ; in smt_set_mac_opvalues()
287 st |= (st2 = set_min_max(0,smc->mib.m[MAC0].fddiMACT_ReqMIB, in smt_set_mac_opvalues()
288 smc->mib.a[PATH0].fddiPATHMaxT_Req, in smt_set_mac_opvalues()
289 &smc->mib.m[MAC0].fddiMACT_Req)) ; in smt_set_mac_opvalues()
306 smc->mib.fddiSMTNonMaster_Ct = 1 ; in smt_fixup_mib()
309 smc->mib.fddiSMTNonMaster_Ct = 2 ; in smt_fixup_mib()
312 smc->mib.fddiSMTNonMaster_Ct = 0 ; in smt_fixup_mib()
315 smc->mib.fddiSMTMaster_Ct = NUMPHYS - smc->mib.fddiSMTNonMaster_Ct ; in smt_fixup_mib()
319 smc->mib.fddiSMTNonMaster_Ct = 1 ; in smt_fixup_mib()
322 smc->mib.fddiSMTNonMaster_Ct = 2 ; in smt_fixup_mib()
325 smc->mib.fddiSMTMaster_Ct = 0 ; in smt_fixup_mib()
337 static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper) in set_min_max() argument
341 if ((limit > mib) ^ maxflag) in set_min_max()
344 *oper = mib ; in set_min_max()