Lines Matching refs:PLC
419 outpw(PLC(p,PL_CNTRL_B),0) ; in plc_init()
420 outpw(PLC(p,PL_CNTRL_B),PL_PCM_STOP) ; in plc_init()
421 outpw(PLC(p,PL_CNTRL_A),0) ; in plc_init()
427 rev = inpw(PLC(p,PL_STATUS_A)) & PLC_REV_MASK ; in plc_init()
432 outpw(PLC(p,PL_CNTRL_C),PLCS_CONTROL_C_S) ; in plc_init()
434 outpw(PLC(p,PL_T_FOT_ASS),PLCS_FASSERT_S) ; in plc_init()
435 outpw(PLC(p,PL_T_FOT_DEASS),PLCS_FDEASSERT_S) ; in plc_init()
439 outpw(PLC(p,PL_CNTRL_C),PLCS_CONTROL_C_U) ; in plc_init()
441 outpw(PLC(p,PL_T_FOT_ASS),PLCS_FASSERT_U) ; in plc_init()
442 outpw(PLC(p,PL_T_FOT_DEASS),PLCS_FDEASSERT_U) ; in plc_init()
451 outpw(PLC(p,pltm[i].timer),pltm[i].para) ; in plc_init()
453 (void)inpw(PLC(p,PL_INTR_EVENT)) ; /* clear interrupt event reg */ in plc_init()
455 outpw(PLC(p,PL_INTR_MASK),plc_imsk_na); /* enable non active irq's */ in plc_init()
466 outpw(PLC(p,PL_CNTRL_B),PL_CLASS_S) ; in plc_init()
481 port = (HW_PTR) (PLC(p,PL_CNTRL_B)) ; in plc_go_state()
499 state = inpw(PLC(phy,PL_STATUS_A)) & PL_LINE_ST ; in sm_pm_get_ls()
535 if (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL) { in plc_send_bits()
542 outpw(PLC(np,PL_VECTOR_LEN),len-1) ; /* len=nr-1 */ in plc_send_bits()
543 outpw(PLC(np,PL_XMIT_VECTOR),n) ; in plc_send_bits()
565 SETMASK(PLC(PA,PL_CNTRL_B),PL_CONFIG_CNTRL,PL_CONFIG_CNTRL) ; in plc_config_mux()
566 SETMASK(PLC(PA,PL_CNTRL_A),PL_SC_REM_LOOP,PL_SC_REM_LOOP) ; in plc_config_mux()
569 CLEAR(PLC(PA,PL_CNTRL_B),PL_CONFIG_CNTRL) ; in plc_config_mux()
570 CLEAR(PLC(PA,PL_CNTRL_A),PL_SC_REM_LOOP) ; in plc_config_mux()
572 CLEAR(PLC(PB,PL_CNTRL_B),PL_CONFIG_CNTRL) ; in plc_config_mux()
573 CLEAR(PLC(PB,PL_CNTRL_A),PL_SC_REM_LOOP) ; in plc_config_mux()
703 CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ; in pcm_fsm()
711 outpw(PLC(np,PL_CNTRL_A),0) ; in pcm_fsm()
712 CLEAR(PLC(np,PL_CNTRL_B),PL_PC_JOIN) ; in pcm_fsm()
713 CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ; in pcm_fsm()
734 CLEAR(PLC(np,PL_CNTRL_B),PL_PC_JOIN) ; in pcm_fsm()
735 CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ; in pcm_fsm()
741 if (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL) { in pcm_fsm()
763 outpw(PLC(np,PL_INTR_MASK),plc_imsk_na) ; in pcm_fsm()
770 (void)inpw(PLC(np,PL_INTR_EVENT)) ; in pcm_fsm()
773 plc_rev = inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK ; in pcm_fsm()
808 if (!(inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL)) in pcm_fsm()
810 if (((inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK) != in pcm_fsm()
812 !(inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL)) in pcm_fsm()
884 i = inpw(PLC(np,PL_CNTRL_B)) & ~PL_PC_LOOP ; in pcm_fsm()
885 outpw(PLC(np,PL_CNTRL_B),i) ; /* must be cleared */ in pcm_fsm()
886 outpw(PLC(np,PL_CNTRL_B),i | PL_RLBP) ; in pcm_fsm()
936 SETMASK(PLC(np,PL_CNTRL_A), in pcm_fsm()
938 SETMASK(PLC(np,PL_CNTRL_B), in pcm_fsm()
941 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm()
942 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm()
978 outpw(PLC(np,PL_INTR_MASK),plc_imsk_act) ; in pcm_fsm()
994 CLEAR(PLC(np,PL_CNTRL_B),PL_PC_JOIN) ; in pcm_fsm()
995 CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ; in pcm_fsm()
996 CLEAR(PLC(np,PL_INTR_MASK),PL_LE_CTR) ; /* disable LEM int. */ in pcm_fsm()
1003 SETMASK(PLC(np,PL_CNTRL_B),PL_MAINT,PL_MAINT) ; in pcm_fsm()
1005 outpw(PLC(np,PL_CNTRL_A),PL_SC_BYPASS) ; in pcm_fsm()
1032 cntrl = (inpw(PLC(phy,PL_CNTRL_B)) & ~PL_MAINT_LS) | in sm_ph_linestate()
1052 outpw(PLC(phy,PL_CNTRL_B),cntrl) ; in sm_ph_linestate()
1079 errors = inpw(PLC(((int) phy->np),PL_LINK_ERR_CTR)) ; in lem_evaluate()
1182 errors = inpw(PLC(((int)phy->np),PL_LINK_ERR_CTR)) ; in lem_check_lct()
1228 outpw(PLC(np,PL_LE_THRESHOLD),threshold) ; in sm_ph_lem_start()
1229 (void)inpw(PLC(np,PL_LINK_ERR_CTR)) ; /* clear error counter */ in sm_ph_lem_start()
1232 SETMASK(PLC(np,PL_INTR_MASK),PL_LE_CTR,PL_LE_CTR) ; in sm_ph_lem_start()
1240 CLEAR(PLC(np,PL_INTR_MASK),PL_LE_CTR) ; in sm_ph_lem_stop()
1330 outpw(PLC((int)phy->np,PL_LC_LENGTH), TP_LC_LENGTH ) ; in pc_rcode_actions()
1334 outpw(PLC((int)phy->np,PL_LC_LENGTH), TP_LC_LONGLN ) ; in pc_rcode_actions()
1338 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions()
1342 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions()
1666 ((inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK) == in plc_irq()
1678 outpw(PLC(np,PL_INTR_MASK),corr_mask); in plc_irq()
1716 j = inpw(PLC(np,PL_LE_THRESHOLD)) ; in plc_irq()
1717 i = inpw(PLC(np,PL_LINK_ERR_CTR)) ; in plc_irq()
1742 switch (inpw(PLC(np,PL_CNTRL_B)) & PL_MATCH_LS) { in plc_irq()
1752 reason = inpw(PLC(np,PL_STATUS_B)) & PL_BREAK_REASON ; in plc_irq()
1780 n = inpw(PLC(np,PL_RCV_VECTOR)) ; in plc_irq()
1886 switch (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_STATE) { in get_pcm_state()
1908 switch (inpw(PLC(np,PL_STATUS_A)) & PL_LINE_ST) { in get_linestate()
1930 switch (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_STATE) { in get_pcmstate()