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