Lines Matching refs:mib
77 static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper);
134 smc->mib.fddiESSPayload = 0 ; in smt_reset_defaults()
135 smc->mib.fddiESSOverhead = 0 ; in smt_reset_defaults()
136 smc->mib.fddiESSMaxTNeg = (u_long)(- MS2BCLK(25)) ; in smt_reset_defaults()
137 smc->mib.fddiESSMinSegmentSize = 1 ; in smt_reset_defaults()
138 smc->mib.fddiESSCategory = SB_STATIC ; in smt_reset_defaults()
139 smc->mib.fddiESSSynchTxMode = FALSE ; in smt_reset_defaults()
166 struct fddi_mib *mib ; in smt_init_mib() local
171 mib = &smc->mib ; in smt_init_mib()
183 mib->fddiSMTRemoteDisconnectFlag = 0 ; in smt_init_mib()
184 mib->fddiSMTPeerWrapFlag = 0 ; in smt_init_mib()
187 mib->fddiSMTOpVersionId = 2 ; in smt_init_mib()
188 mib->fddiSMTHiVersionId = 2 ; in smt_init_mib()
189 mib->fddiSMTLoVersionId = 2 ; in smt_init_mib()
190 memcpy((char *) mib->fddiSMTManufacturerData,man_data,32) ; in smt_init_mib()
192 strcpy(mib->fddiSMTUserData,OEM_USER_DATA) ; in smt_init_mib()
194 mib->fddiSMTMIBVersionId = 1 ; in smt_init_mib()
195 mib->fddiSMTMac_Ct = NUMMACS ; in smt_init_mib()
196 mib->fddiSMTConnectionPolicy = POLICY_MM | POLICY_AA | POLICY_BB ; in smt_init_mib()
202 mib->fddiSMTAvailablePaths = MIB_PATH_P | MIB_PATH_S ; in smt_init_mib()
204 mib->fddiSMTConfigCapabilities = 0 ; /* no hold,no wrap_ab*/ in smt_init_mib()
205 mib->fddiSMTTT_Notify = 10 ; in smt_init_mib()
206 mib->fddiSMTStatRptPolicy = TRUE ; in smt_init_mib()
207 mib->fddiSMTTrace_MaxExpiration = SEC2MIB(7) ; in smt_init_mib()
208 mib->fddiSMTMACIndexes = INDEX_MAC ; in smt_init_mib()
209 mib->fddiSMTStationStatus = MIB_SMT_STASTA_SEPA ; /* separated */ in smt_init_mib()
211 mib->m[MAC0].fddiMACIndex = INDEX_MAC ; in smt_init_mib()
212 mib->m[MAC0].fddiMACFrameStatusFunctions = FSC_TYPE0 ; in smt_init_mib()
213 mib->m[MAC0].fddiMACRequestedPaths = in smt_init_mib()
217 mib->m[MAC0].fddiMACAvailablePaths = MIB_PATH_P ; in smt_init_mib()
218 mib->m[MAC0].fddiMACCurrentPath = MIB_PATH_PRIMARY ; in smt_init_mib()
219 mib->m[MAC0].fddiMACT_MaxCapabilitiy = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
220 mib->m[MAC0].fddiMACTVXCapabilitiy = (u_long)(- US2BCLK(52)) ; in smt_init_mib()
222 mib->m[MAC0].fddiMACTvxValue = (u_long)(- US2BCLK(27)) ; in smt_init_mib()
223 mib->m[MAC0].fddiMACTvxValueMIB = (u_long)(- US2BCLK(27)) ; in smt_init_mib()
224 mib->m[MAC0].fddiMACT_Req = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
225 mib->m[MAC0].fddiMACT_ReqMIB = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
226 mib->m[MAC0].fddiMACT_Max = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
227 mib->m[MAC0].fddiMACT_MaxMIB = (u_long)(- MS2BCLK(165)) ; in smt_init_mib()
228 mib->m[MAC0].fddiMACT_Min = (u_long)(- MS2BCLK(4)) ; in smt_init_mib()
230 mib->m[MAC0].fddiMACHardwarePresent = TRUE ; in smt_init_mib()
231 mib->m[MAC0].fddiMACMA_UnitdataEnable = TRUE ; in smt_init_mib()
232 mib->m[MAC0].fddiMACFrameErrorThreshold = 1 ; in smt_init_mib()
233 mib->m[MAC0].fddiMACNotCopiedThreshold = 1 ; in smt_init_mib()
238 mib->a[path].fddiPATHIndex = INDEX_PATH + path ; in smt_init_mib()
240 mib->a[path].fddiPATHTVXLowerBound = in smt_init_mib()
242 mib->a[path].fddiPATHT_MaxLowerBound = in smt_init_mib()
244 mib->a[path].fddiPATHMaxT_Req = in smt_init_mib()
253 pm = mib->p ; in smt_init_mib()
260 smc->y[port].mib = NULL; in smt_init_mib()
261 mib->fddiSMTPORTIndexes[port] = port+INDEX_PORT ; in smt_init_mib()
289 st = set_min_max(1,smc->mib.m[MAC0].fddiMACTvxValueMIB, in smt_set_mac_opvalues()
290 smc->mib.a[PATH0].fddiPATHTVXLowerBound, in smt_set_mac_opvalues()
291 &smc->mib.m[MAC0].fddiMACTvxValue) ; in smt_set_mac_opvalues()
292 st |= set_min_max(0,smc->mib.m[MAC0].fddiMACT_MaxMIB, in smt_set_mac_opvalues()
293 smc->mib.a[PATH0].fddiPATHT_MaxLowerBound, in smt_set_mac_opvalues()
294 &smc->mib.m[MAC0].fddiMACT_Max) ; in smt_set_mac_opvalues()
295 st |= (st2 = set_min_max(0,smc->mib.m[MAC0].fddiMACT_ReqMIB, in smt_set_mac_opvalues()
296 smc->mib.a[PATH0].fddiPATHMaxT_Req, in smt_set_mac_opvalues()
297 &smc->mib.m[MAC0].fddiMACT_Req)) ; in smt_set_mac_opvalues()
314 smc->mib.fddiSMTNonMaster_Ct = 1 ; in smt_fixup_mib()
317 smc->mib.fddiSMTNonMaster_Ct = 2 ; in smt_fixup_mib()
320 smc->mib.fddiSMTNonMaster_Ct = 0 ; in smt_fixup_mib()
323 smc->mib.fddiSMTMaster_Ct = NUMPHYS - smc->mib.fddiSMTNonMaster_Ct ; in smt_fixup_mib()
327 smc->mib.fddiSMTNonMaster_Ct = 1 ; in smt_fixup_mib()
330 smc->mib.fddiSMTNonMaster_Ct = 2 ; in smt_fixup_mib()
333 smc->mib.fddiSMTMaster_Ct = 0 ; in smt_fixup_mib()
345 static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper) in set_min_max() argument
349 if ((limit > mib) ^ maxflag) in set_min_max()
352 *oper = mib ; in set_min_max()