Lines Matching refs:PLC
423 outpw(PLC(p,PL_CNTRL_B),0) ; in plc_init()
424 outpw(PLC(p,PL_CNTRL_B),PL_PCM_STOP) ; in plc_init()
425 outpw(PLC(p,PL_CNTRL_A),0) ; in plc_init()
431 rev = inpw(PLC(p,PL_STATUS_A)) & PLC_REV_MASK ; in plc_init()
436 outpw(PLC(p,PL_CNTRL_C),PLCS_CONTROL_C_S) ; in plc_init()
438 outpw(PLC(p,PL_T_FOT_ASS),PLCS_FASSERT_S) ; in plc_init()
439 outpw(PLC(p,PL_T_FOT_DEASS),PLCS_FDEASSERT_S) ; in plc_init()
443 outpw(PLC(p,PL_CNTRL_C),PLCS_CONTROL_C_U) ; in plc_init()
445 outpw(PLC(p,PL_T_FOT_ASS),PLCS_FASSERT_U) ; in plc_init()
446 outpw(PLC(p,PL_T_FOT_DEASS),PLCS_FDEASSERT_U) ; in plc_init()
455 outpw(PLC(p,pltm[i].timer),pltm[i].para) ; in plc_init()
457 (void)inpw(PLC(p,PL_INTR_EVENT)) ; /* clear interrupt event reg */ in plc_init()
459 outpw(PLC(p,PL_INTR_MASK),plc_imsk_na); /* enable non active irq's */ in plc_init()
470 outpw(PLC(p,PL_CNTRL_B),PL_CLASS_S) ; in plc_init()
485 port = (HW_PTR) (PLC(p,PL_CNTRL_B)) ; in plc_go_state()
503 state = inpw(PLC(phy,PL_STATUS_A)) & PL_LINE_ST ; in sm_pm_get_ls()
539 if (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL) { in plc_send_bits()
546 outpw(PLC(np,PL_VECTOR_LEN),len-1) ; /* len=nr-1 */ in plc_send_bits()
547 outpw(PLC(np,PL_XMIT_VECTOR),n) ; in plc_send_bits()
569 SETMASK(PLC(PA,PL_CNTRL_B),PL_CONFIG_CNTRL,PL_CONFIG_CNTRL) ; in plc_config_mux()
570 SETMASK(PLC(PA,PL_CNTRL_A),PL_SC_REM_LOOP,PL_SC_REM_LOOP) ; in plc_config_mux()
573 CLEAR(PLC(PA,PL_CNTRL_B),PL_CONFIG_CNTRL) ; in plc_config_mux()
574 CLEAR(PLC(PA,PL_CNTRL_A),PL_SC_REM_LOOP) ; in plc_config_mux()
576 CLEAR(PLC(PB,PL_CNTRL_B),PL_CONFIG_CNTRL) ; in plc_config_mux()
577 CLEAR(PLC(PB,PL_CNTRL_A),PL_SC_REM_LOOP) ; in plc_config_mux()
707 CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ; in pcm_fsm()
715 outpw(PLC(np,PL_CNTRL_A),0) ; in pcm_fsm()
716 CLEAR(PLC(np,PL_CNTRL_B),PL_PC_JOIN) ; in pcm_fsm()
717 CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ; in pcm_fsm()
738 CLEAR(PLC(np,PL_CNTRL_B),PL_PC_JOIN) ; in pcm_fsm()
739 CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ; in pcm_fsm()
745 if (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL) { in pcm_fsm()
767 outpw(PLC(np,PL_INTR_MASK),plc_imsk_na) ; in pcm_fsm()
774 (void)inpw(PLC(np,PL_INTR_EVENT)) ; in pcm_fsm()
777 plc_rev = inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK ; in pcm_fsm()
812 if (!(inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL)) in pcm_fsm()
814 if (((inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK) != in pcm_fsm()
816 !(inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL)) in pcm_fsm()
888 i = inpw(PLC(np,PL_CNTRL_B)) & ~PL_PC_LOOP ; in pcm_fsm()
889 outpw(PLC(np,PL_CNTRL_B),i) ; /* must be cleared */ in pcm_fsm()
890 outpw(PLC(np,PL_CNTRL_B),i | PL_RLBP) ; in pcm_fsm()
940 SETMASK(PLC(np,PL_CNTRL_A), in pcm_fsm()
942 SETMASK(PLC(np,PL_CNTRL_B), in pcm_fsm()
945 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm()
946 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm()
982 outpw(PLC(np,PL_INTR_MASK),plc_imsk_act) ; in pcm_fsm()
998 CLEAR(PLC(np,PL_CNTRL_B),PL_PC_JOIN) ; in pcm_fsm()
999 CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ; in pcm_fsm()
1000 CLEAR(PLC(np,PL_INTR_MASK),PL_LE_CTR) ; /* disable LEM int. */ in pcm_fsm()
1007 SETMASK(PLC(np,PL_CNTRL_B),PL_MAINT,PL_MAINT) ; in pcm_fsm()
1009 outpw(PLC(np,PL_CNTRL_A),PL_SC_BYPASS) ; in pcm_fsm()
1036 cntrl = (inpw(PLC(phy,PL_CNTRL_B)) & ~PL_MAINT_LS) | in sm_ph_linestate()
1056 outpw(PLC(phy,PL_CNTRL_B),cntrl) ; in sm_ph_linestate()
1083 errors = inpw(PLC(((int) phy->np),PL_LINK_ERR_CTR)) ; in lem_evaluate()
1186 errors = inpw(PLC(((int)phy->np),PL_LINK_ERR_CTR)) ; in lem_check_lct()
1232 outpw(PLC(np,PL_LE_THRESHOLD),threshold) ; in sm_ph_lem_start()
1233 (void)inpw(PLC(np,PL_LINK_ERR_CTR)) ; /* clear error counter */ in sm_ph_lem_start()
1236 SETMASK(PLC(np,PL_INTR_MASK),PL_LE_CTR,PL_LE_CTR) ; in sm_ph_lem_start()
1244 CLEAR(PLC(np,PL_INTR_MASK),PL_LE_CTR) ; in sm_ph_lem_stop()
1334 outpw(PLC((int)phy->np,PL_LC_LENGTH), TP_LC_LENGTH ) ; in pc_rcode_actions()
1338 outpw(PLC((int)phy->np,PL_LC_LENGTH), TP_LC_LONGLN ) ; in pc_rcode_actions()
1342 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions()
1346 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions()
1670 ((inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK) == in plc_irq()
1682 outpw(PLC(np,PL_INTR_MASK),corr_mask); in plc_irq()
1720 j = inpw(PLC(np,PL_LE_THRESHOLD)) ; in plc_irq()
1721 i = inpw(PLC(np,PL_LINK_ERR_CTR)) ; in plc_irq()
1746 switch (inpw(PLC(np,PL_CNTRL_B)) & PL_MATCH_LS) { in plc_irq()
1756 reason = inpw(PLC(np,PL_STATUS_B)) & PL_BREAK_REASON ; in plc_irq()
1784 n = inpw(PLC(np,PL_RCV_VECTOR)) ; in plc_irq()
1890 switch (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_STATE) { in get_pcm_state()
1912 switch (inpw(PLC(np,PL_STATUS_A)) & PL_LINE_ST) { in get_linestate()
1934 switch (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_STATE) { in get_pcmstate()