Lines Matching defs:plc

157 	int	timer ;			/* relative plc timer address */
381 memset((char *)&phy->plc,0,sizeof(struct s_plc)) ;
382 phy->plc.p_state = PS_OFF ;
558 * config plc muxes
666 struct s_plc *plc ;
669 u_short plc_rev ; /* Revision of the plc */
672 plc = &phy->plc ;
772 /* Get the plc revision for revision dependent code */
826 plc->p_state = PS_BIT3 ;
827 plc->p_bits = 3 ;
828 plc->p_start = 0 ;
850 switch (plc->p_state) {
855 plc->p_state = PS_BIT4 ;
856 plc->p_bits = 1 ;
857 plc->p_start = 3 ;
867 plc->p_state = PS_BIT7 ;
868 plc->p_bits = 3 ;
869 plc->p_start = 4 ;
878 plc->p_state = PS_LCT ;
879 plc->p_bits = 0 ;
880 plc->p_start = 7 ;
894 plc->p_state = PS_BIT8 ;
895 plc->p_bits = 1 ;
896 plc->p_start = 7 ;
912 plc->p_state = PS_JOIN ;
913 plc->p_bits = 2 ;
914 plc->p_start = 8 ;
923 plc->p_state = PS_ACTIVE ;
947 switch (plc->p_state) {
1629 struct s_plc *plc = &phy->plc ;
1637 plc->soft_err++ ;
1644 if (!plc->ebuf_cont && phy->mib->fddiPORTPCMState == PC8_ACTIVE){
1655 plc->ebuf_err++ ;
1656 if (plc->ebuf_cont <= 1000) {
1661 plc->ebuf_cont++ ; /* Ebuf continuous error */
1665 if (plc->ebuf_cont == 1000 &&
1699 plc->ebuf_cont = 0 ; /* reset Ebuf continuous error */
1702 plc->phyinv++ ;
1705 plc->vsym_ctr++ ;
1708 plc->mini_ctr++ ;
1733 if (plc->p_state == PS_LCT) {
1739 plc->tpc_exp++ ;
1755 case PL_B_PCS : plc->b_pcs++ ; break ;
1756 case PL_B_TPC : plc->b_tpc++ ; break ;
1757 case PL_B_TNE : plc->b_tne++ ; break ;
1758 case PL_B_QLS : plc->b_qls++ ; break ;
1759 case PL_B_ILS : plc->b_ils++ ; break ;
1760 case PL_B_HLS : plc->b_hls++ ; break ;
1781 for (i = 0 ; i < plc->p_bits ; i++) {
1782 phy->r_val[plc->p_start+i] = n & 1 ;
1830 plc->np_err++ ;
1834 plc->parity_err++ ;
1948 struct s_plc *plc ;
1952 plc = &smc->y[np].plc ;
1955 plc->soft_err,plc->b_pcs);
1957 plc->parity_err,plc->b_tpc,get_linestate(smc,np)) ;
1959 plc->ebuf_err,plc->b_tne) ;
1961 plc->phyinv,plc->b_qls,get_pcmstate(smc,np)) ;
1963 plc->vsym_ctr,plc->b_ils) ;
1965 plc->mini_ctr,plc->b_hls) ;
1966 printf("\tnodepr_err: %ld\n",plc->np_err) ;
1967 printf("\tTPC_exp : %ld\n",plc->tpc_exp) ;