Lines Matching refs:inw
159 #define writereg(val,reg) {outw(reg,PORT+L_ADDRREG);inw(PORT+L_ADDRREG); \
160 outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);}
161 #define readreg(reg) (outw(reg,PORT+L_ADDRREG),inw(PORT+L_ADDRREG),\
162 inw(PORT+L_DATAREG))
164 #define writedatareg(val) {outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);}
170 #define readreg(reg) (outw(reg,PORT+L_ADDRREG),inw(PORT+L_DATAREG))
279 if(inw(PORT+L_ADDRREG) != 80) in ni65_set_performance()
326 outw(inw(PORT+L_RESET),PORT+L_RESET); /* that's the hard way */ in ni65_close()
460 outw(inw(PORT+L_RESET),PORT+L_RESET); /* first: reset the card */ in ni65_probe1()
470 if(inw(PORT+L_ADDRREG) == 88) { in ni65_probe1()
472 v = inw(PORT+L_DATAREG); in ni65_probe1()
475 v |= inw(PORT+L_DATAREG); in ni65_probe1()
485 dev->irq = irqtab[(inw(ioaddr+L_CONFIG)>>2)&3]; in ni65_probe1()
486 dev->dma = dmatab[inw(ioaddr+L_CONFIG)&3]; in ni65_probe1()
595 if(inw(PORT+L_DATAREG) & (CSR0_IDON | CSR0_MERR) ) in ni65_init_lance()
804 outw(inw(PORT+L_RESET),PORT+L_RESET); /* first: reset the card */ in ni65_lance_reinit()
855 if(inw(PORT+L_DATAREG) & CSR0_IDON) { in ni65_lance_reinit()
861 printk(KERN_ERR "%s: can't init lance, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG)); in ni65_lance_reinit()
883 csr0 = inw(PORT+L_DATAREG); in ni65_interrupt()
1067 dev->name,(int) rmdstat,csr0,(int) inw(PORT+L_DATAREG) ); in ni65_recv_intr()