Lines Matching refs:crvalue
390 unsigned long crvalue; member
438 static void stop_nic_rx(void __iomem *ioaddr, long crvalue) in stop_nic_rx() argument
441 iowrite32(crvalue & ~(CR_W_RXEN), ioaddr + TCRRCR); in stop_nic_rx()
449 static void stop_nic_rxtx(void __iomem *ioaddr, long crvalue) in stop_nic_rxtx() argument
452 iowrite32(crvalue & ~(CR_W_RXEN+CR_W_TXEN), ioaddr + TCRRCR); in stop_nic_rxtx()
864 np->crvalue = 0xa00; in netdev_open()
867 np->crvalue = 0xe00; /* rx 128 burst length */ in netdev_open()
876 np->crvalue |= CR_W_ENH; /* set enhanced bit */ in netdev_open()
887 np->crvalue |= 0x00e40001; /* tx store and forward, tx/rx enable */ in netdev_open()
1037 np->crvalue &= (~CR_W_PS10) & (~CR_W_FD) & (~CR_W_PS1000); in getlinktype()
1039 np->crvalue |= CR_W_PS10; in getlinktype()
1041 np->crvalue |= CR_W_PS1000; in getlinktype()
1043 np->crvalue |= CR_W_FD; in getlinktype()
1080 int old_crvalue = np->crvalue; in netdev_timer()
1095 if (np->crvalue != old_crvalue) { in netdev_timer()
1096 stop_nic_rxtx(ioaddr, np->crvalue); in netdev_timer()
1097 iowrite32(np->crvalue, ioaddr + TCRRCR); in netdev_timer()
1173 np->crvalue = np->crvalue_sv; in reset_timer()
1481 stop_nic_rx(ioaddr, np->crvalue); in intr_handler()
1483 iowrite32(np->crvalue, ioaddr + TCRRCR); in intr_handler()
1502 if (!(np->crvalue & CR_W_ENH)) { in intr_handler()
1553 if (np->crvalue & CR_W_ENH) { in intr_handler()
1576 np->crvalue_sv = np->crvalue; in intr_handler()
1578 np->crvalue &= ~(CR_W_TXEN | CR_W_RXEN); /* or simply = 0? */ in intr_handler()
1677 stop_nic_rx(ioaddr, np->crvalue); in netdev_rx()
1679 iowrite32(np->crvalue, ioaddr + TCRRCR); in netdev_rx()
1799 stop_nic_rxtx(ioaddr, np->crvalue); in __set_rx_mode()
1803 np->crvalue &= ~CR_W_RXMODEMASK; in __set_rx_mode()
1804 np->crvalue |= rx_mode; in __set_rx_mode()
1805 iowrite32(np->crvalue, ioaddr + TCRRCR); in __set_rx_mode()