Lines Matching refs:usc_InReg
612 usc_OutReg( (a), ICR, (u16)((usc_InReg((a),ICR) & 0xff00) + 0xc0 + (b)) )
615 usc_OutReg( (a), ICR, (u16)((usc_InReg((a),ICR) & 0xff00) + 0x80 + (b)) )
618 usc_OutReg( (a), ICR, (u16)((usc_InReg((a),ICR) & 0x0f00) + 0xb000) )
621 usc_OutReg( (a), ICR, (u16)(usc_InReg((a),ICR) & 0x7f00) )
650 usc_OutReg( (a), SICR, (u16)(usc_InReg((a),SICR) | (b)) )
653 usc_OutReg( (a), SICR, (u16)(usc_InReg((a),SICR) & ~(b)) )
665 usc_OutReg( (a), TMR, (u16)((usc_InReg((a),TMR) & 0xfffc) | (b)) )
667 usc_OutReg( (a), RMR, (u16)((usc_InReg((a),RMR) & 0xfffc) | (b)) )
673 static u16 usc_InReg( struct mgsl_struct *info, u16 Port );
1169 u16 status = usc_InReg( info, RCSR ); in mgsl_isr_receive_status()
1188 (usc_InReg(info, RICR) & ~RXSTATUS_ABORT_RECEIVED)); in mgsl_isr_receive_status()
1221 u16 status = usc_InReg( info, TCSR ); in mgsl_isr_transmit_status()
1289 u16 status = usc_InReg( info, MISR ); in mgsl_isr_io_pin()
1394 (unsigned short)(usc_InReg(info,SICR) & ~(SICR_TXC_ACTIVE+SICR_TXC_INACTIVE)) ); in mgsl_isr_io_pin()
1460 usc_OutReg( info, RICR+LSBONLY, (u16)(usc_InReg(info, RICR+LSBONLY) & ~BIT3 )); in mgsl_isr_receive_data()
1464 while( (Fifocount = (usc_InReg(info,RICR) >> 8)) ) { in mgsl_isr_receive_data()
1473 status = usc_InReg(info, RCSR); in mgsl_isr_receive_data()
1543 u16 status = usc_InReg( info, MISR ); in mgsl_isr_misc()
1702 UscVector = usc_InReg(info, IVR) >> 9; in mgsl_interrupt()
1850 usc_OutReg(info, PCR, (u16)((usc_InReg(info, PCR) | BIT15) | BIT14)); in shutdown()
1855 usc_OutReg(info, PCR, (u16)((usc_InReg(info, PCR) | BIT13) | BIT12)); in shutdown()
2716 u16 oldreg = usc_InReg(info,RICR); in mgsl_wait_event()
2784 usc_OutReg(info, RICR, usc_InReg(info,RICR) & in mgsl_wait_event()
2920 usc_OutReg(info,IOCR,(u16)(usc_InReg(info,IOCR) | BIT7)); in mgsl_break()
2922 usc_OutReg(info,IOCR,(u16)(usc_InReg(info,IOCR) & ~BIT7)); in mgsl_break()
3181 while (!(usc_InReg(info,TCSR) & TXSTATUS_ALL_SENT) && in mgsl_wait_until_sent()
3536 u16 Tcsr = usc_InReg( info, TCSR ); in line_info()
3538 u16 Ticr = usc_InReg( info, TICR ); in line_info()
3539 u16 Rscr = usc_InReg( info, RCSR ); in line_info()
3541 u16 Ricr = usc_InReg( info, RICR ); in line_info()
3542 u16 Icr = usc_InReg( info, ICR ); in line_info()
3543 u16 Dccr = usc_InReg( info, DCCR ); in line_info()
3544 u16 Tmr = usc_InReg( info, TMR ); in line_info()
3545 u16 Tccr = usc_InReg( info, TCCR ); in line_info()
4623 static u16 usc_InReg( struct mgsl_struct *info, u16 RegAddr ) in usc_InReg() function
4652 RegValue=usc_InReg(info,TMDR); in usc_set_sdlc_mode()
4693 (unsigned short)((usc_InReg(info, IOCR) & ~(BIT13|BIT12)) | BIT12)); in usc_set_sdlc_mode()
4802 RegValue = usc_InReg( info, RICR ) & 0xc0; in usc_set_sdlc_mode()
5045 (u16)(usc_InReg(info,SICR) | SICR_CTS_INACTIVE) ); in usc_set_sdlc_mode()
5056 usc_OutReg(info, SICR, (u16)(usc_InReg(info,SICR) | BIT3)); in usc_set_sdlc_mode()
5068 usc_OutReg(info, PCR, (u16)((usc_InReg(info, PCR) | BIT15) & ~BIT14)); in usc_set_sdlc_mode()
5217 usc_OutReg(info,IOCR,usc_InReg(info,IOCR) | (BIT7+BIT6)); in usc_enable_loopback()
5246 usc_OutReg( info, HCR, (u16)((usc_InReg( info, HCR ) & ~BIT1) | BIT0) ); in usc_enable_loopback()
5249 usc_OutReg(info, IOCR, (u16)((usc_InReg(info, IOCR) & 0xfff8) | 0x0004)); in usc_enable_loopback()
5256 usc_OutReg(info,IOCR,usc_InReg(info,IOCR) & ~(BIT7+BIT6)); in usc_enable_loopback()
5309 usc_OutReg( info, HCR, (u16)((usc_InReg( info, HCR ) & ~BIT1) | BIT0) ); in usc_enable_aux_clock()
5312 usc_OutReg( info, IOCR, (u16)((usc_InReg(info, IOCR) & 0xfff8) | 0x0004) ); in usc_enable_aux_clock()
5315 usc_OutReg( info, HCR, (u16)(usc_InReg( info, HCR ) & ~BIT0) ); in usc_enable_aux_clock()
5435 usc_OutReg( info, CCSR, (u16)(usc_InReg(info,CCSR) | BIT13) ); in usc_process_rxoverrun_sync()
5460 usc_OutReg( info, CCSR, (u16)(usc_InReg(info,CCSR) | BIT13) ); in usc_process_rxoverrun_sync()
5490 usc_OutReg( info, CCSR, (u16)(usc_InReg(info,CCSR) | BIT13) ); in usc_stop_receiver()
5517 usc_OutReg( info, CCSR, (u16)(usc_InReg(info,CCSR) | BIT13) ); in usc_start_receiver()
5718 while( (Fifocount = usc_InReg(info, TICR) >> 8) && info->xmit_cnt ) { in usc_load_txfifo()
6050 usc_OutReg(info, PCR, (u16)((usc_InReg(info, PCR) | BIT13) & ~BIT12)); in usc_set_async_mode()
6125 if (usc_InReg( info, RCSR ) & (BIT8 + BIT4 + BIT3 + BIT1)) in usc_loopback_frame()
6150 usc_OutReg(info, PCR, (u16)((usc_InReg(info, PCR) | BIT13) & ~BIT12)); in usc_set_sync_mode()
6238 status = usc_InReg( info, MISR ); in usc_get_serial_signals()
6271 Control = usc_InReg( info, PCR ); in usc_set_serial_signals()
6335 (u16)((usc_InReg( info, HCR ) & ~BIT1) | BIT0) ); in usc_enable_async_clock()
6341 (u16)((usc_InReg(info, IOCR) & 0xfff8) | 0x0004) ); in usc_enable_async_clock()
6344 usc_OutReg( info, HCR, (u16)(usc_InReg( info, HCR ) & ~BIT0) ); in usc_enable_async_clock()
6972 if ( (usc_InReg( info, SICR ) != 0) || in mgsl_register_test()
6973 (usc_InReg( info, IVR ) != 0) || in mgsl_register_test()
6990 if ( (usc_InReg( info, TC0R ) != BitPatterns[i]) || in mgsl_register_test()
6991 (usc_InReg( info, TC1R ) != BitPatterns[(i+1)%Patterncount]) || in mgsl_register_test()
6992 (usc_InReg( info, TCLR ) != BitPatterns[(i+2)%Patterncount]) || in mgsl_register_test()
6993 (usc_InReg( info, RCLR ) != BitPatterns[(i+3)%Patterncount]) || in mgsl_register_test()
6994 (usc_InReg( info, RSR ) != BitPatterns[(i+4)%Patterncount]) || in mgsl_register_test()
7033 usc_OutReg( info, PCR, (unsigned short)((usc_InReg(info, PCR) | BIT13) & ~BIT12) ); in mgsl_irq_test()
7172 usc_OutReg( info, RMR, (unsigned short)((usc_InReg(info, RMR) & 0xfffc) | 0x0002) ); in mgsl_dma_test()
7223 usc_OutReg( info, TCSR, (unsigned short)(( usc_InReg(info, TCSR) & 0x0f00) | 0xfa) ); in mgsl_dma_test()
7247 FifoLevel = usc_InReg(info, TICR) >> 8; in mgsl_dma_test()
7270 usc_OutReg( info, TMR, (unsigned short)((usc_InReg(info, TMR) & 0xfffc) | 0x0002) ); in mgsl_dma_test()
7285 status = usc_InReg( info, TCSR ); in mgsl_dma_test()
7295 status = usc_InReg( info, TCSR ); in mgsl_dma_test()
7627 (usc_InReg( info, RICR ) | RXSTATUS_ABORT_RECEIVED ) ); in usc_loopmode_insert_request()
7638 return usc_InReg( info, CCSR ) & BIT7 ? 1 : 0 ; in usc_loopmode_active()