Lines Matching refs:read_reg
671 static unsigned char read_reg(SLMP_INFO *info, unsigned char addr);
1690 RegValue = read_reg(info, CTL); in set_break()
2053 unsigned char status = read_reg(info, SR1) & info->ie1_value & (FLGD + IDLD + CDCD + BRKD); in isr_rxint()
2054 unsigned char status2 = read_reg(info, SR2) & info->ie2_value & OVRN; in isr_rxint()
2119 while((status = read_reg(info,CST0)) & BIT0) in isr_rxrdy()
2121 DataByte = read_reg(info,TRB); in isr_rxrdy()
2254 unsigned char status = read_reg(info, SR1) & info->ie1_value & (UDRN + IDLE + CCTS); in isr_txint()
2316 unsigned char status = read_reg(info,RXDMA + DSR) & 0xc0; in isr_rxdmaok()
2333 unsigned char status = read_reg(info,RXDMA + DSR) & 0x30; in isr_rxdmaerror()
2348 unsigned char status_reg1 = read_reg(info, SR1); in isr_txdmaok()
2369 unsigned char status = read_reg(info,TXDMA + DSR) & 0x30; in isr_txdmaerror()
2513 timerstatus0 = read_reg(info, ISR2); in synclinkmp_interrupt()
2525 timerstatus1 = read_reg(info->port_array[2], ISR2); in synclinkmp_interrupt()
4051 write_reg(info, MD2, (unsigned char)(read_reg(info, MD2) | (BIT1 + BIT0))); in enable_loopback()
4069 write_reg(info, MD2, (unsigned char)(read_reg(info, MD2) & ~(BIT1 + BIT0))); in enable_loopback()
4124 (unsigned char)((read_reg(info, TXS) & 0xf0) | BRValue)); in set_rate()
4126 (unsigned char)((read_reg(info, RXS) & 0xf0) | BRValue)); in set_rate()
4324 while( info->tx_count && (read_reg(info,SR0) & BIT1) ) { in tx_load_fifo()
4762 u16 status = read_reg(info, SR3); in get_signals()
4794 RegValue = read_reg(info, CTL); in set_signals()
5095 if ( (read_reg(info, TMC) != testval[i]) || in register_test()
5096 (read_reg(info, IDL) != testval[(i+1)%count]) || in register_test()
5097 (read_reg(info, SA0) != testval[(i+2)%count]) || in register_test()
5098 (read_reg(info, SA1) != testval[(i+3)%count]) ) in register_test()
5578 unsigned char read_reg(SLMP_INFO * info, unsigned char Addr) in read_reg() function