Lines Matching refs:curregs
191 pmz_load_zsregs(uap, uap->curregs); in pmz_maybe_update_regs()
199 uap->curregs[1] |= INT_ALL_Rx | TxINT_ENAB; in pmz_interrupt_control()
201 uap->curregs[1] |= EXT_INT_ENAB; in pmz_interrupt_control()
203 uap->curregs[1] &= ~(EXT_INT_ENAB | TxINT_ENAB | RxINT_MASK); in pmz_interrupt_control()
205 write_zsreg(uap, R1, uap->curregs[1]); in pmz_interrupt_control()
357 pmz_load_zsregs(uap, uap->curregs); in pmz_transmit_chars()
539 uap->curregs[R5] |= set_bits; in pmz_set_mctrl()
540 uap->curregs[R5] &= ~clear_bits; in pmz_set_mctrl()
542 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_set_mctrl()
544 set_bits, clear_bits, uap->curregs[R5]); in pmz_set_mctrl()
633 uap->curregs[R1] &= ~RxINT_MASK; in pmz_stop_rx()
648 new_reg = uap->curregs[R15] | (DCDIE | SYNCIE | CTSIE); in pmz_enable_ms()
649 if (new_reg != uap->curregs[R15]) { in pmz_enable_ms()
650 uap->curregs[R15] = new_reg; in pmz_enable_ms()
653 write_zsreg(uap, R15, uap->curregs[R15]); in pmz_enable_ms()
676 new_reg = (uap->curregs[R5] | set_bits) & ~clear_bits; in pmz_break_ctl()
677 if (new_reg != uap->curregs[R5]) { in pmz_break_ctl()
678 uap->curregs[R5] = new_reg; in pmz_break_ctl()
679 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_break_ctl()
799 memset(&uap->curregs, 0, sizeof(uap->curregs)); in __pmz_startup()
808 uap->curregs[R9] = 0; in __pmz_startup()
823 uap->curregs[R4] = X16CLK | SB1; in __pmz_startup()
824 uap->curregs[R3] = Rx8; in __pmz_startup()
825 uap->curregs[R5] = Tx8 | RTS; in __pmz_startup()
827 uap->curregs[R5] |= DTR; in __pmz_startup()
828 uap->curregs[R12] = 0; in __pmz_startup()
829 uap->curregs[R13] = 0; in __pmz_startup()
830 uap->curregs[R14] = BRENAB; in __pmz_startup()
833 uap->curregs[R15] = BRKIE; in __pmz_startup()
836 uap->curregs[R9] |= NV | MIE; in __pmz_startup()
838 pmz_load_zsregs(uap, uap->curregs); in __pmz_startup()
841 write_zsreg(uap, R3, uap->curregs[R3] |= RxENABLE); in __pmz_startup()
842 write_zsreg(uap, R5, uap->curregs[R5] |= TxENABLE); in __pmz_startup()
855 uap->curregs[R5] |= DTR; in pmz_irda_reset()
856 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_reset()
862 uap->curregs[R5] &= ~DTR; in pmz_irda_reset()
863 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_reset()
929 uap->curregs[R3] &= ~RxENABLE; in pmz_shutdown()
930 uap->curregs[R5] &= ~TxENABLE; in pmz_shutdown()
933 uap->curregs[R5] &= ~SND_BRK; in pmz_shutdown()
965 uap->curregs[R4] = X1CLK; in pmz_convert_to_zs()
966 uap->curregs[R11] = RCTRxCP | TCTRxCP; in pmz_convert_to_zs()
967 uap->curregs[R14] = 0; /* BRG off */ in pmz_convert_to_zs()
968 uap->curregs[R12] = 0; in pmz_convert_to_zs()
969 uap->curregs[R13] = 0; in pmz_convert_to_zs()
974 uap->curregs[R4] = X16CLK; in pmz_convert_to_zs()
975 uap->curregs[R11] = 0; in pmz_convert_to_zs()
976 uap->curregs[R14] = 0; in pmz_convert_to_zs()
979 uap->curregs[R4] = X32CLK; in pmz_convert_to_zs()
980 uap->curregs[R11] = 0; in pmz_convert_to_zs()
981 uap->curregs[R14] = 0; in pmz_convert_to_zs()
984 uap->curregs[R4] = X16CLK; in pmz_convert_to_zs()
985 uap->curregs[R11] = TCBR | RCBR; in pmz_convert_to_zs()
987 uap->curregs[R12] = (brg & 255); in pmz_convert_to_zs()
988 uap->curregs[R13] = ((brg >> 8) & 255); in pmz_convert_to_zs()
989 uap->curregs[R14] = BRENAB; in pmz_convert_to_zs()
995 uap->curregs[3] &= ~RxN_MASK; in pmz_convert_to_zs()
996 uap->curregs[5] &= ~TxN_MASK; in pmz_convert_to_zs()
1000 uap->curregs[3] |= Rx5; in pmz_convert_to_zs()
1001 uap->curregs[5] |= Tx5; in pmz_convert_to_zs()
1005 uap->curregs[3] |= Rx6; in pmz_convert_to_zs()
1006 uap->curregs[5] |= Tx6; in pmz_convert_to_zs()
1010 uap->curregs[3] |= Rx7; in pmz_convert_to_zs()
1011 uap->curregs[5] |= Tx7; in pmz_convert_to_zs()
1016 uap->curregs[3] |= Rx8; in pmz_convert_to_zs()
1017 uap->curregs[5] |= Tx8; in pmz_convert_to_zs()
1021 uap->curregs[4] &= ~(SB_MASK); in pmz_convert_to_zs()
1023 uap->curregs[4] |= SB2; in pmz_convert_to_zs()
1025 uap->curregs[4] |= SB1; in pmz_convert_to_zs()
1027 uap->curregs[4] |= PAR_ENAB; in pmz_convert_to_zs()
1029 uap->curregs[4] &= ~PAR_ENAB; in pmz_convert_to_zs()
1031 uap->curregs[4] |= PAR_EVEN; in pmz_convert_to_zs()
1033 uap->curregs[4] &= ~PAR_EVEN; in pmz_convert_to_zs()
1128 uap->curregs[R5] |= DTR; in pmz_irda_setup()
1129 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_setup()
1135 pmz_load_zsregs(uap, uap->curregs); in pmz_irda_setup()
1178 uap->curregs[R5] &= ~DTR; in pmz_irda_setup()
1179 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_setup()
1209 pmz_load_zsregs(uap, uap->curregs); in __pmz_set_termios()
1216 uap->curregs[R15] |= DCDIE | SYNCIE | CTSIE; in __pmz_set_termios()
1219 uap->curregs[R15] &= ~(DCDIE | SYNCIE | CTSIE); in __pmz_set_termios()
1881 write_zsreg(uap, R1, uap->curregs[1] & ~TxINT_ENAB); in pmz_console_write()
1882 write_zsreg(uap, R5, uap->curregs[5] | TxENABLE | RTS | DTR); in pmz_console_write()
1887 write_zsreg(uap, R1, uap->curregs[1]); in pmz_console_write()