Lines Matching refs:RegValue
1519 unsigned char RegValue; in set_break() local
1531 RegValue = read_reg(info, CTL); in set_break()
1533 RegValue |= BIT3; in set_break()
1535 RegValue &= ~BIT3; in set_break()
1536 write_reg(info, CTL, RegValue); in set_break()
4381 unsigned char RegValue; in async_mode() local
4396 RegValue = 0x00; in async_mode()
4398 RegValue |= BIT1; in async_mode()
4399 write_reg(info, MD0, RegValue); in async_mode()
4410 RegValue = 0x40; in async_mode()
4412 case 7: RegValue |= BIT4 + BIT2; break; in async_mode()
4413 case 6: RegValue |= BIT5 + BIT3; break; in async_mode()
4414 case 5: RegValue |= BIT5 + BIT4 + BIT3 + BIT2; break; in async_mode()
4417 RegValue |= BIT1; in async_mode()
4419 RegValue |= BIT0; in async_mode()
4421 write_reg(info, MD1, RegValue); in async_mode()
4430 RegValue = 0x00; in async_mode()
4432 RegValue |= (BIT1 + BIT0); in async_mode()
4433 write_reg(info, MD2, RegValue); in async_mode()
4441 RegValue=BIT6; in async_mode()
4442 write_reg(info, RXS, RegValue); in async_mode()
4450 RegValue=BIT6; in async_mode()
4451 write_reg(info, TXS, RegValue); in async_mode()
4495 RegValue = 0x10; in async_mode()
4497 RegValue |= 0x01; in async_mode()
4498 write_reg(info, CTL, RegValue); in async_mode()
4519 unsigned char RegValue; in hdlc_mode() local
4543 RegValue = 0x81; in hdlc_mode()
4545 RegValue |= BIT4; in hdlc_mode()
4547 RegValue |= BIT4; in hdlc_mode()
4549 RegValue |= BIT2 + BIT1; in hdlc_mode()
4550 write_reg(info, MD0, RegValue); in hdlc_mode()
4561 RegValue = 0x00; in hdlc_mode()
4562 write_reg(info, MD1, RegValue); in hdlc_mode()
4574 RegValue = 0x00; in hdlc_mode()
4576 case HDLC_ENCODING_NRZI: RegValue |= BIT5; break; in hdlc_mode()
4577 case HDLC_ENCODING_BIPHASE_MARK: RegValue |= BIT7 + BIT5; break; /* aka FM1 */ in hdlc_mode()
4578 case HDLC_ENCODING_BIPHASE_SPACE: RegValue |= BIT7 + BIT6; break; /* aka FM0 */ in hdlc_mode()
4579 case HDLC_ENCODING_BIPHASE_LEVEL: RegValue |= BIT7; break; /* aka Manchester */ in hdlc_mode()
4588 RegValue |= BIT3; in hdlc_mode()
4593 RegValue |= BIT4; in hdlc_mode()
4595 write_reg(info, MD2, RegValue); in hdlc_mode()
4604 RegValue=0; in hdlc_mode()
4606 RegValue |= BIT6; in hdlc_mode()
4608 RegValue |= BIT6 + BIT5; in hdlc_mode()
4609 write_reg(info, RXS, RegValue); in hdlc_mode()
4617 RegValue=0; in hdlc_mode()
4619 RegValue |= BIT6; in hdlc_mode()
4621 RegValue |= BIT6 + BIT5; in hdlc_mode()
4622 write_reg(info, TXS, RegValue); in hdlc_mode()
4700 RegValue = 0x10; in hdlc_mode()
4702 RegValue |= 0x01; in hdlc_mode()
4703 write_reg(info, CTL, RegValue); in hdlc_mode()
4721 unsigned char RegValue = 0xff; in tx_set_idle() local
4725 case HDLC_TXIDLE_FLAGS: RegValue = 0x7e; break; in tx_set_idle()
4726 case HDLC_TXIDLE_ALT_ZEROS_ONES: RegValue = 0xaa; break; in tx_set_idle()
4727 case HDLC_TXIDLE_ZEROS: RegValue = 0x00; break; in tx_set_idle()
4728 case HDLC_TXIDLE_ONES: RegValue = 0xff; break; in tx_set_idle()
4729 case HDLC_TXIDLE_ALT_MARK_SPACE: RegValue = 0xaa; break; in tx_set_idle()
4730 case HDLC_TXIDLE_SPACE: RegValue = 0x00; break; in tx_set_idle()
4731 case HDLC_TXIDLE_MARK: RegValue = 0xff; break; in tx_set_idle()
4734 write_reg(info, IDL, RegValue); in tx_set_idle()
4770 unsigned char RegValue; in set_signals() local
4773 RegValue = read_reg(info, CTL); in set_signals()
4775 RegValue &= ~BIT0; in set_signals()
4777 RegValue |= BIT0; in set_signals()
4778 write_reg(info, CTL, RegValue); in set_signals()