Lines Matching refs:readreg
110 static inline int readreg(int portno) in readreg() function
134 while(readreg(PP_SelfST) & SI_BUSY) { in wait_eeprom_ready()
155 buffer[i] = readreg(PP_EEData); in get_eeprom_data()
236 if ((readreg(PP_LineST) & LINK_OK) == 0) in detect_tp()
245 while (readreg(PP_AutoNegST) & AUTO_NEG_BUSY) { in detect_tp()
252 if (readreg(PP_AutoNegST) & FDX_ACTIVE) in detect_tp()
270 writereg(PP_LineCTL, readreg(PP_LineCTL) | SERIAL_TX_ON); in send_test_pkt()
280 (readreg(PP_BusST) & READY_FOR_TX_NOW) == 0; ) in send_test_pkt()
292 if ((readreg(PP_TxEvent) & TX_SEND_OK_BITS) == TX_OK) { in send_test_pkt()
336 writereg(PP_SelfCTL, readreg(PP_SelfCTL) | POWER_ON_RESET); in cs89x0_reset()
356 (readreg(PP_SelfST) & INIT_DONE) == 0 && in cs89x0_reset()
411 if ((readreg(PP_BusST) & READY_FOR_TX_NOW) == 0) { in cs89x0_transmit()
429 (s = readreg(PP_TxEvent)&~0x1F) == 0 && currticks() < tmo;) in cs89x0_transmit()
446 status = readreg(PP_RxEvent); in cs89x0_poll()
510 rev_type = readreg(PRODUCT_ID_ADD); in cs89x0_probe()
521 if ((readreg(PP_SelfST) & EEPROM_PRESENT) == 0) { in cs89x0_probe()
556 (i = readreg(PP_CS8920_ISAINT) & 0xff, in cs89x0_probe()
620 writereg(PP_LineCTL, readreg(PP_LineCTL) & in cs89x0_probe()
691 writereg(PP_LineCTL, readreg(PP_LineCTL) | SERIAL_RX_ON | in cs89x0_probe()
697 writereg(PP_LineCTL, readreg(PP_LineCTL) & in cs89x0_probe()