Lines Matching defs:plc
161 int timer ; /* relative plc timer address */
385 memset((char *)&phy->plc,0,sizeof(struct s_plc)) ;
386 phy->plc.p_state = PS_OFF ;
562 * config plc muxes
670 struct s_plc *plc ;
673 u_short plc_rev ; /* Revision of the plc */
676 plc = &phy->plc ;
776 /* Get the plc revision for revision dependent code */
830 plc->p_state = PS_BIT3 ;
831 plc->p_bits = 3 ;
832 plc->p_start = 0 ;
854 switch (plc->p_state) {
859 plc->p_state = PS_BIT4 ;
860 plc->p_bits = 1 ;
861 plc->p_start = 3 ;
871 plc->p_state = PS_BIT7 ;
872 plc->p_bits = 3 ;
873 plc->p_start = 4 ;
882 plc->p_state = PS_LCT ;
883 plc->p_bits = 0 ;
884 plc->p_start = 7 ;
898 plc->p_state = PS_BIT8 ;
899 plc->p_bits = 1 ;
900 plc->p_start = 7 ;
916 plc->p_state = PS_JOIN ;
917 plc->p_bits = 2 ;
918 plc->p_start = 8 ;
927 plc->p_state = PS_ACTIVE ;
951 switch (plc->p_state) {
1633 struct s_plc *plc = &phy->plc ;
1641 plc->soft_err++ ;
1648 if (!plc->ebuf_cont && phy->mib->fddiPORTPCMState == PC8_ACTIVE){
1659 plc->ebuf_err++ ;
1660 if (plc->ebuf_cont <= 1000) {
1665 plc->ebuf_cont++ ; /* Ebuf continuous error */
1669 if (plc->ebuf_cont == 1000 &&
1703 plc->ebuf_cont = 0 ; /* reset Ebuf continuous error */
1706 plc->phyinv++ ;
1709 plc->vsym_ctr++ ;
1712 plc->mini_ctr++ ;
1737 if (plc->p_state == PS_LCT) {
1743 plc->tpc_exp++ ;
1759 case PL_B_PCS : plc->b_pcs++ ; break ;
1760 case PL_B_TPC : plc->b_tpc++ ; break ;
1761 case PL_B_TNE : plc->b_tne++ ; break ;
1762 case PL_B_QLS : plc->b_qls++ ; break ;
1763 case PL_B_ILS : plc->b_ils++ ; break ;
1764 case PL_B_HLS : plc->b_hls++ ; break ;
1785 for (i = 0 ; i < plc->p_bits ; i++) {
1786 phy->r_val[plc->p_start+i] = n & 1 ;
1834 plc->np_err++ ;
1838 plc->parity_err++ ;
1952 struct s_plc *plc ;
1956 plc = &smc->y[np].plc ;
1959 plc->soft_err,plc->b_pcs);
1961 plc->parity_err,plc->b_tpc,get_linestate(smc,np)) ;
1963 plc->ebuf_err,plc->b_tne) ;
1965 plc->phyinv,plc->b_qls,get_pcmstate(smc,np)) ;
1967 plc->vsym_ctr,plc->b_ils) ;
1969 plc->mini_ctr,plc->b_hls) ;
1970 printf("\tnodepr_err: %ld\n",plc->np_err) ;
1971 printf("\tTPC_exp : %ld\n",plc->tpc_exp) ;