Lines Matching refs:curregs
80 unsigned char curregs[NUM_ZSREGS]; member
278 __load_zsregs(channel, up->curregs); in sunzilog_maybe_update_regs()
292 up->curregs[R12] = (brg & 0xff); in sunzilog_change_mouse_baud()
293 up->curregs[R13] = (brg >> 8) & 0xff; in sunzilog_change_mouse_baud()
480 __load_zsregs(channel, up->curregs); in sunzilog_transmit_chars()
664 up->curregs[R5] |= set_bits; in sunzilog_set_mctrl()
665 up->curregs[R5] &= ~clear_bits; in sunzilog_set_mctrl()
666 write_zsreg(channel, R5, up->curregs[R5]); in sunzilog_set_mctrl()
735 up->curregs[R1] &= ~RxINT_MASK; in sunzilog_stop_rx()
747 new_reg = up->curregs[R15] | (DCDIE | SYNCIE | CTSIE); in sunzilog_enable_ms()
748 if (new_reg != up->curregs[R15]) { in sunzilog_enable_ms()
749 up->curregs[R15] = new_reg; in sunzilog_enable_ms()
752 write_zsreg(channel, R15, up->curregs[R15] & ~WR7pEN); in sunzilog_enable_ms()
774 new_reg = (up->curregs[R5] | set_bits) & ~clear_bits; in sunzilog_break_ctl()
775 if (new_reg != up->curregs[R5]) { in sunzilog_break_ctl()
776 up->curregs[R5] = new_reg; in sunzilog_break_ctl()
779 write_zsreg(channel, R5, up->curregs[R5]); in sunzilog_break_ctl()
793 up->curregs[R3] |= RxENAB; in __sunzilog_startup()
794 up->curregs[R5] |= TxENAB; in __sunzilog_startup()
796 up->curregs[R1] |= EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB; in __sunzilog_startup()
853 up->curregs[R3] &= ~RxENAB; in sunzilog_shutdown()
854 up->curregs[R5] &= ~TxENAB; in sunzilog_shutdown()
857 up->curregs[R1] &= ~(EXT_INT_ENAB | TxINT_ENAB | RxINT_MASK); in sunzilog_shutdown()
858 up->curregs[R5] &= ~SND_BRK; in sunzilog_shutdown()
872 up->curregs[R10] = NRZ; in sunzilog_convert_to_zs()
873 up->curregs[R11] = TCBR | RCBR; in sunzilog_convert_to_zs()
876 up->curregs[R4] &= ~XCLK_MASK; in sunzilog_convert_to_zs()
877 up->curregs[R4] |= X16CLK; in sunzilog_convert_to_zs()
878 up->curregs[R12] = brg & 0xff; in sunzilog_convert_to_zs()
879 up->curregs[R13] = (brg >> 8) & 0xff; in sunzilog_convert_to_zs()
880 up->curregs[R14] = BRSRC | BRENAB; in sunzilog_convert_to_zs()
883 up->curregs[R3] &= ~RxN_MASK; in sunzilog_convert_to_zs()
884 up->curregs[R5] &= ~TxN_MASK; in sunzilog_convert_to_zs()
887 up->curregs[R3] |= Rx5; in sunzilog_convert_to_zs()
888 up->curregs[R5] |= Tx5; in sunzilog_convert_to_zs()
892 up->curregs[R3] |= Rx6; in sunzilog_convert_to_zs()
893 up->curregs[R5] |= Tx6; in sunzilog_convert_to_zs()
897 up->curregs[R3] |= Rx7; in sunzilog_convert_to_zs()
898 up->curregs[R5] |= Tx7; in sunzilog_convert_to_zs()
903 up->curregs[R3] |= Rx8; in sunzilog_convert_to_zs()
904 up->curregs[R5] |= Tx8; in sunzilog_convert_to_zs()
908 up->curregs[R4] &= ~0x0c; in sunzilog_convert_to_zs()
910 up->curregs[R4] |= SB2; in sunzilog_convert_to_zs()
912 up->curregs[R4] |= SB1; in sunzilog_convert_to_zs()
914 up->curregs[R4] |= PAR_ENAB; in sunzilog_convert_to_zs()
916 up->curregs[R4] &= ~PAR_ENAB; in sunzilog_convert_to_zs()
918 up->curregs[R4] |= PAR_EVEN; in sunzilog_convert_to_zs()
920 up->curregs[R4] &= ~PAR_EVEN; in sunzilog_convert_to_zs()
1254 up->curregs[R15] |= BRKIE; in sunzilog_console_setup()
1296 up->curregs[R15] |= BRKIE; in sunzilog_init_kbdms()
1350 up->curregs[R1] = EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB; in sunzilog_init_hw()
1351 up->curregs[R4] = PAR_EVEN | X16CLK | SB1; in sunzilog_init_hw()
1352 up->curregs[R3] = RxENAB | Rx8; in sunzilog_init_hw()
1353 up->curregs[R5] = TxENAB | Tx8; in sunzilog_init_hw()
1354 up->curregs[R6] = 0x00; /* SDLC Address */ in sunzilog_init_hw()
1355 up->curregs[R7] = 0x7E; /* SDLC Flag */ in sunzilog_init_hw()
1356 up->curregs[R9] = NV; in sunzilog_init_hw()
1357 up->curregs[R7p] = 0x00; in sunzilog_init_hw()
1361 up->curregs[R9] |= MIE; in sunzilog_init_hw()
1362 write_zsreg(channel, R9, up->curregs[R9]); in sunzilog_init_hw()
1366 up->curregs[R1] = EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB; in sunzilog_init_hw()
1367 up->curregs[R4] = PAR_EVEN | X16CLK | SB1; in sunzilog_init_hw()
1368 up->curregs[R3] = RxENAB | Rx8; in sunzilog_init_hw()
1369 up->curregs[R5] = TxENAB | Tx8; in sunzilog_init_hw()
1370 up->curregs[R6] = 0x00; /* SDLC Address */ in sunzilog_init_hw()
1371 up->curregs[R7] = 0x7E; /* SDLC Flag */ in sunzilog_init_hw()
1372 up->curregs[R9] = NV; in sunzilog_init_hw()
1373 up->curregs[R10] = NRZ; in sunzilog_init_hw()
1374 up->curregs[R11] = TCBR | RCBR; in sunzilog_init_hw()
1377 up->curregs[R12] = (brg & 0xff); in sunzilog_init_hw()
1378 up->curregs[R13] = (brg >> 8) & 0xff; in sunzilog_init_hw()
1379 up->curregs[R14] = BRSRC | BRENAB; in sunzilog_init_hw()
1380 up->curregs[R15] = FIFOEN; /* Use FIFO if on ESCC */ in sunzilog_init_hw()
1381 up->curregs[R7p] = TxFIFO_LVL | RxFIFO_LVL; in sunzilog_init_hw()
1382 if (__load_zsregs(channel, up->curregs)) { in sunzilog_init_hw()
1387 up->curregs[R9] |= MIE; in sunzilog_init_hw()
1388 write_zsreg(channel, R9, up->curregs[R9]); in sunzilog_init_hw()
1594 up->curregs[R9] |= MIE; in sunzilog_init()
1595 write_zsreg(channel, R9, up->curregs[R9]); in sunzilog_init()
1631 up->curregs[R9] &= ~MIE; in sunzilog_exit()
1632 write_zsreg(channel, R9, up->curregs[R9]); in sunzilog_exit()