Lines Matching refs:smc
67 void smt_reset_defaults(struct s_smc *smc, int level);
68 static void smt_init_mib(struct s_smc *smc, int level);
74 void smt_reset_defaults(struct s_smc *smc, int level) in smt_reset_defaults() argument
81 smt_init_mib(smc,level) ; in smt_reset_defaults()
83 smc->os.smc_version = SMC_VERSION ; in smt_reset_defaults()
86 smc->sm.last_tok_time[i] = smt_boot_time ; in smt_reset_defaults()
87 smt = &smc->s ; in smt_reset_defaults()
125 smc->ess.sync_bw_available = FALSE ; in smt_reset_defaults()
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()
132 smc->ess.raf_act_timer_poll = FALSE ; in smt_reset_defaults()
133 smc->ess.timer_count = 7 ; /* first RAF alc req after 3s */ in smt_reset_defaults()
135 smc->ess.local_sba_active = FALSE ; in smt_reset_defaults()
136 smc->ess.sba_reply_pend = NULL ; in smt_reset_defaults()
139 smt_init_sba(smc,level) ; in smt_reset_defaults()
144 smc->hw.pci_fix_value = 0 ; in smt_reset_defaults()
156 static void smt_init_mib(struct s_smc *smc, int level) in smt_init_mib() argument
163 mib = &smc->mib ; in smt_init_mib()
169 memset(((char *)smc)+ in smt_init_mib()
252 smc->y[port].mib = NULL; in smt_init_mib()
273 (void) smt_set_mac_opvalues(smc) ; in smt_init_mib()
276 int smt_set_mac_opvalues(struct s_smc *smc) in smt_set_mac_opvalues() argument
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()
294 AIX_EVENT(smc, (u_long) FDDI_RING_STATUS, (u_long) in smt_set_mac_opvalues()
296 smt_get_event_word(smc)); in smt_set_mac_opvalues()
301 void smt_fixup_mib(struct s_smc *smc) in smt_fixup_mib() argument
304 switch (smc->s.sas) { in smt_fixup_mib()
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()
317 switch (smc->s.sas) { 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()