Lines Matching refs:lem
379 memset((char *)&phy->lem,0,sizeof(struct lem_counter)) ; in pcm_init()
1057 struct lem_counter *lem = &phy->lem ; in reset_lem_struct() local
1060 lem->lem_float_ber = 15 * 100 ; in reset_lem_struct()
1070 struct lem_counter *lem = &phy->lem ; in lem_evaluate() local
1076 if (!lem->lem_on) in lem_evaluate()
1080 lem->lem_errors += errors ; in lem_evaluate()
1083 errors = lem->lem_errors ; in lem_evaluate()
1110 lem->lem_float_ber = lem->lem_float_ber * 7 + ber * 3 ; in lem_evaluate()
1111 lem->lem_float_ber /= 10 ; in lem_evaluate()
1112 mib->fddiPORTLer_Estimate = lem->lem_float_ber / 100 ; in lem_evaluate()
1117 if (lem->lem_errors) { in lem_evaluate()
1119 DB_PCMN(1, "errors : %ld", lem->lem_errors); in lem_evaluate()
1122 DB_PCMN(1, "float BER : 10E-(%d/100)", lem->lem_float_ber); in lem_evaluate()
1126 lem->lem_errors = 0L ; in lem_evaluate()
1147 lem->lem_float_ber += 2*100 ; in lem_evaluate()
1175 struct lem_counter *lem = &phy->lem ; in lem_check_lct() local
1183 lem->lem_errors += errors ; in lem_check_lct()
1185 if (lem->lem_errors) { in lem_check_lct()
1188 if (lem->lem_errors >= smc->s.lct_short) in lem_check_lct()
1192 if (lem->lem_errors >= smc->s.lct_medium) in lem_check_lct()
1196 if (lem->lem_errors >= smc->s.lct_long) in lem_check_lct()
1200 if (lem->lem_errors >= smc->s.lct_extended) in lem_check_lct()
1204 DB_PCMN(1, " >>errors : %lu", lem->lem_errors); in lem_check_lct()
1219 struct lem_counter *lem = &smc->y[np].lem ; in sm_ph_lem_start() local
1221 lem->lem_on = 1 ; in sm_ph_lem_start()
1222 lem->lem_errors = 0L ; in sm_ph_lem_start()
1237 struct lem_counter *lem = &smc->y[np].lem ; in sm_ph_lem_stop() local
1239 lem->lem_on = 0 ; in sm_ph_lem_stop()
1724 if (phy->lem.lem_on) { in plc_irq()
1728 phy->lem.lem_errors += i ; in plc_irq()
1968 printf("\tLEM_err : %ld\n",smc->y[np].lem.lem_errors) ; in list_phy()