Lines Matching refs:curregs

198 			pmz_load_zsregs(uap, uap->curregs);  in pmz_maybe_update_regs()
206 uap->curregs[1] |= INT_ALL_Rx | TxINT_ENAB; in pmz_interrupt_control()
208 uap->curregs[1] |= EXT_INT_ENAB; in pmz_interrupt_control()
210 uap->curregs[1] &= ~(EXT_INT_ENAB | TxINT_ENAB | RxINT_MASK); in pmz_interrupt_control()
212 write_zsreg(uap, R1, uap->curregs[1]); in pmz_interrupt_control()
377 pmz_load_zsregs(uap, uap->curregs); in pmz_transmit_chars()
564 uap->curregs[R5] |= set_bits; in pmz_set_mctrl()
565 uap->curregs[R5] &= ~clear_bits; in pmz_set_mctrl()
567 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_set_mctrl()
569 set_bits, clear_bits, uap->curregs[R5]); in pmz_set_mctrl()
665 uap->curregs[R1] &= ~RxINT_MASK; in pmz_stop_rx()
682 new_reg = uap->curregs[R15] | (DCDIE | SYNCIE | CTSIE); in pmz_enable_ms()
683 if (new_reg != uap->curregs[R15]) { in pmz_enable_ms()
684 uap->curregs[R15] = new_reg; in pmz_enable_ms()
687 write_zsreg(uap, R15, uap->curregs[R15]); in pmz_enable_ms()
710 new_reg = (uap->curregs[R5] | set_bits) & ~clear_bits; in pmz_break_ctl()
711 if (new_reg != uap->curregs[R5]) { in pmz_break_ctl()
712 uap->curregs[R5] = new_reg; in pmz_break_ctl()
713 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_break_ctl()
833 memset(&uap->curregs, 0, sizeof(uap->curregs)); in __pmz_startup()
842 uap->curregs[R9] = 0; in __pmz_startup()
857 uap->curregs[R4] = X16CLK | SB1; in __pmz_startup()
858 uap->curregs[R3] = Rx8; in __pmz_startup()
859 uap->curregs[R5] = Tx8 | RTS; in __pmz_startup()
861 uap->curregs[R5] |= DTR; in __pmz_startup()
862 uap->curregs[R12] = 0; in __pmz_startup()
863 uap->curregs[R13] = 0; in __pmz_startup()
864 uap->curregs[R14] = BRENAB; in __pmz_startup()
867 uap->curregs[R15] = BRKIE; in __pmz_startup()
870 uap->curregs[R9] |= NV | MIE; in __pmz_startup()
872 pmz_load_zsregs(uap, uap->curregs); in __pmz_startup()
875 write_zsreg(uap, R3, uap->curregs[R3] |= RxENABLE); in __pmz_startup()
876 write_zsreg(uap, R5, uap->curregs[R5] |= TxENABLE); in __pmz_startup()
889 uap->curregs[R5] |= DTR; in pmz_irda_reset()
890 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_reset()
896 uap->curregs[R5] &= ~DTR; in pmz_irda_reset()
897 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_reset()
969 uap->curregs[R3] &= ~RxENABLE; in pmz_shutdown()
970 uap->curregs[R5] &= ~TxENABLE; in pmz_shutdown()
973 uap->curregs[R5] &= ~SND_BRK; in pmz_shutdown()
1007 uap->curregs[R4] = X1CLK; in pmz_convert_to_zs()
1008 uap->curregs[R11] = RCTRxCP | TCTRxCP; in pmz_convert_to_zs()
1009 uap->curregs[R14] = 0; /* BRG off */ in pmz_convert_to_zs()
1010 uap->curregs[R12] = 0; in pmz_convert_to_zs()
1011 uap->curregs[R13] = 0; in pmz_convert_to_zs()
1016 uap->curregs[R4] = X16CLK; in pmz_convert_to_zs()
1017 uap->curregs[R11] = 0; in pmz_convert_to_zs()
1018 uap->curregs[R14] = 0; in pmz_convert_to_zs()
1021 uap->curregs[R4] = X32CLK; in pmz_convert_to_zs()
1022 uap->curregs[R11] = 0; in pmz_convert_to_zs()
1023 uap->curregs[R14] = 0; in pmz_convert_to_zs()
1026 uap->curregs[R4] = X16CLK; in pmz_convert_to_zs()
1027 uap->curregs[R11] = TCBR | RCBR; in pmz_convert_to_zs()
1029 uap->curregs[R12] = (brg & 255); in pmz_convert_to_zs()
1030 uap->curregs[R13] = ((brg >> 8) & 255); in pmz_convert_to_zs()
1031 uap->curregs[R14] = BRENAB; in pmz_convert_to_zs()
1037 uap->curregs[3] &= ~RxN_MASK; in pmz_convert_to_zs()
1038 uap->curregs[5] &= ~TxN_MASK; in pmz_convert_to_zs()
1042 uap->curregs[3] |= Rx5; in pmz_convert_to_zs()
1043 uap->curregs[5] |= Tx5; in pmz_convert_to_zs()
1047 uap->curregs[3] |= Rx6; in pmz_convert_to_zs()
1048 uap->curregs[5] |= Tx6; in pmz_convert_to_zs()
1052 uap->curregs[3] |= Rx7; in pmz_convert_to_zs()
1053 uap->curregs[5] |= Tx7; in pmz_convert_to_zs()
1058 uap->curregs[3] |= Rx8; in pmz_convert_to_zs()
1059 uap->curregs[5] |= Tx8; in pmz_convert_to_zs()
1063 uap->curregs[4] &= ~(SB_MASK); in pmz_convert_to_zs()
1065 uap->curregs[4] |= SB2; in pmz_convert_to_zs()
1067 uap->curregs[4] |= SB1; in pmz_convert_to_zs()
1069 uap->curregs[4] |= PAR_ENAB; in pmz_convert_to_zs()
1071 uap->curregs[4] &= ~PAR_ENAB; in pmz_convert_to_zs()
1073 uap->curregs[4] |= PAR_EVEN; in pmz_convert_to_zs()
1075 uap->curregs[4] &= ~PAR_EVEN; in pmz_convert_to_zs()
1170 uap->curregs[R5] |= DTR; in pmz_irda_setup()
1171 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_setup()
1177 pmz_load_zsregs(uap, uap->curregs); in pmz_irda_setup()
1220 uap->curregs[R5] &= ~DTR; in pmz_irda_setup()
1221 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_setup()
1255 pmz_load_zsregs(uap, uap->curregs); in __pmz_set_termios()
1262 uap->curregs[R15] |= DCDIE | SYNCIE | CTSIE; in __pmz_set_termios()
1265 uap->curregs[R15] &= ~(DCDIE | SYNCIE | CTSIE); in __pmz_set_termios()
1966 write_zsreg(uap, R1, uap->curregs[1] & ~TxINT_ENAB); in pmz_console_write()
1967 write_zsreg(uap, R5, uap->curregs[5] | TxENABLE | RTS | DTR); in pmz_console_write()
1972 write_zsreg(uap, R1, uap->curregs[1]); in pmz_console_write()