Lines Matching refs:curregs
215 pmz_load_zsregs(uap, uap->curregs); in pmz_maybe_update_regs()
223 uap->curregs[1] |= INT_ALL_Rx | TxINT_ENAB; in pmz_interrupt_control()
225 uap->curregs[1] |= EXT_INT_ENAB; in pmz_interrupt_control()
227 uap->curregs[1] &= ~(EXT_INT_ENAB | TxINT_ENAB | RxINT_MASK); in pmz_interrupt_control()
229 write_zsreg(uap, R1, uap->curregs[1]); in pmz_interrupt_control()
395 pmz_load_zsregs(uap, uap->curregs); in pmz_transmit_chars()
582 uap->curregs[R5] |= set_bits; in pmz_set_mctrl()
583 uap->curregs[R5] &= ~clear_bits; in pmz_set_mctrl()
585 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_set_mctrl()
587 set_bits, clear_bits, uap->curregs[R5]); in pmz_set_mctrl()
683 uap->curregs[R1] &= ~RxINT_MASK; in pmz_stop_rx()
700 new_reg = uap->curregs[R15] | (DCDIE | SYNCIE | CTSIE); in pmz_enable_ms()
701 if (new_reg != uap->curregs[R15]) { in pmz_enable_ms()
702 uap->curregs[R15] = new_reg; in pmz_enable_ms()
705 write_zsreg(uap, R15, uap->curregs[R15]); in pmz_enable_ms()
728 new_reg = (uap->curregs[R5] | set_bits) & ~clear_bits; in pmz_break_ctl()
729 if (new_reg != uap->curregs[R5]) { in pmz_break_ctl()
730 uap->curregs[R5] = new_reg; in pmz_break_ctl()
731 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_break_ctl()
851 memset(&uap->curregs, 0, sizeof(uap->curregs)); in __pmz_startup()
860 uap->curregs[R9] = 0; in __pmz_startup()
875 uap->curregs[R4] = X16CLK | SB1; in __pmz_startup()
876 uap->curregs[R3] = Rx8; in __pmz_startup()
877 uap->curregs[R5] = Tx8 | RTS; in __pmz_startup()
879 uap->curregs[R5] |= DTR; in __pmz_startup()
880 uap->curregs[R12] = 0; in __pmz_startup()
881 uap->curregs[R13] = 0; in __pmz_startup()
882 uap->curregs[R14] = BRENAB; in __pmz_startup()
885 uap->curregs[R15] = BRKIE; in __pmz_startup()
888 uap->curregs[R9] |= NV | MIE; in __pmz_startup()
890 pmz_load_zsregs(uap, uap->curregs); in __pmz_startup()
893 write_zsreg(uap, R3, uap->curregs[R3] |= RxENABLE); in __pmz_startup()
894 write_zsreg(uap, R5, uap->curregs[R5] |= TxENABLE); in __pmz_startup()
907 uap->curregs[R5] |= DTR; in pmz_irda_reset()
908 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_reset()
914 uap->curregs[R5] &= ~DTR; in pmz_irda_reset()
915 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_reset()
987 uap->curregs[R3] &= ~RxENABLE; in pmz_shutdown()
988 uap->curregs[R5] &= ~TxENABLE; in pmz_shutdown()
991 uap->curregs[R5] &= ~SND_BRK; in pmz_shutdown()
1025 uap->curregs[R4] = X1CLK; in pmz_convert_to_zs()
1026 uap->curregs[R11] = RCTRxCP | TCTRxCP; in pmz_convert_to_zs()
1027 uap->curregs[R14] = 0; /* BRG off */ in pmz_convert_to_zs()
1028 uap->curregs[R12] = 0; in pmz_convert_to_zs()
1029 uap->curregs[R13] = 0; in pmz_convert_to_zs()
1034 uap->curregs[R4] = X16CLK; in pmz_convert_to_zs()
1035 uap->curregs[R11] = 0; in pmz_convert_to_zs()
1036 uap->curregs[R14] = 0; in pmz_convert_to_zs()
1039 uap->curregs[R4] = X32CLK; in pmz_convert_to_zs()
1040 uap->curregs[R11] = 0; in pmz_convert_to_zs()
1041 uap->curregs[R14] = 0; in pmz_convert_to_zs()
1044 uap->curregs[R4] = X16CLK; in pmz_convert_to_zs()
1045 uap->curregs[R11] = TCBR | RCBR; in pmz_convert_to_zs()
1047 uap->curregs[R12] = (brg & 255); in pmz_convert_to_zs()
1048 uap->curregs[R13] = ((brg >> 8) & 255); in pmz_convert_to_zs()
1049 uap->curregs[R14] = BRENAB; in pmz_convert_to_zs()
1055 uap->curregs[3] &= ~RxN_MASK; in pmz_convert_to_zs()
1056 uap->curregs[5] &= ~TxN_MASK; in pmz_convert_to_zs()
1060 uap->curregs[3] |= Rx5; in pmz_convert_to_zs()
1061 uap->curregs[5] |= Tx5; in pmz_convert_to_zs()
1065 uap->curregs[3] |= Rx6; in pmz_convert_to_zs()
1066 uap->curregs[5] |= Tx6; in pmz_convert_to_zs()
1070 uap->curregs[3] |= Rx7; in pmz_convert_to_zs()
1071 uap->curregs[5] |= Tx7; in pmz_convert_to_zs()
1076 uap->curregs[3] |= Rx8; in pmz_convert_to_zs()
1077 uap->curregs[5] |= Tx8; in pmz_convert_to_zs()
1081 uap->curregs[4] &= ~(SB_MASK); in pmz_convert_to_zs()
1083 uap->curregs[4] |= SB2; in pmz_convert_to_zs()
1085 uap->curregs[4] |= SB1; in pmz_convert_to_zs()
1087 uap->curregs[4] |= PAR_ENAB; in pmz_convert_to_zs()
1089 uap->curregs[4] &= ~PAR_ENAB; in pmz_convert_to_zs()
1091 uap->curregs[4] |= PAR_EVEN; in pmz_convert_to_zs()
1093 uap->curregs[4] &= ~PAR_EVEN; in pmz_convert_to_zs()
1188 uap->curregs[R5] |= DTR; in pmz_irda_setup()
1189 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_setup()
1195 pmz_load_zsregs(uap, uap->curregs); in pmz_irda_setup()
1238 uap->curregs[R5] &= ~DTR; in pmz_irda_setup()
1239 write_zsreg(uap, R5, uap->curregs[R5]); in pmz_irda_setup()
1273 pmz_load_zsregs(uap, uap->curregs); in __pmz_set_termios()
1280 uap->curregs[R15] |= DCDIE | SYNCIE | CTSIE; in __pmz_set_termios()
1283 uap->curregs[R15] &= ~(DCDIE | SYNCIE | CTSIE); in __pmz_set_termios()
1979 write_zsreg(uap, R1, uap->curregs[1] & ~TxINT_ENAB); in pmz_console_write()
1980 write_zsreg(uap, R5, uap->curregs[5] | TxENABLE | RTS | DTR); in pmz_console_write()
1985 write_zsreg(uap, R1, uap->curregs[1]); in pmz_console_write()