Lines Matching refs:cr

400 	u_char cr, cmr, icr, nicsr, lemac, hard_strapped = 0;  in ewrk3_hw_init()  local
489 cr = inb(EWRK3_CR); /* Set up the Control Register */ in ewrk3_hw_init()
490 cr |= eeprom_image[EEPROM_SETUP] & SETUP_APD; in ewrk3_hw_init()
491 if (cr & SETUP_APD) in ewrk3_hw_init()
492 cr |= eeprom_image[EEPROM_SETUP] & SETUP_PS; in ewrk3_hw_init()
493 cr |= eeprom_image[EEPROM_MISC0] & FAST_BUS; in ewrk3_hw_init()
494 cr |= eeprom_image[EEPROM_MISC0] & ENA_16; in ewrk3_hw_init()
495 outb(cr, EWRK3_CR); in ewrk3_hw_init()
909 u_char icr, cr, csr; in ewrk3_interrupt() local
923 cr = inb(EWRK3_CR); in ewrk3_interrupt()
924 cr |= lp->led_mask; in ewrk3_interrupt()
925 outb(cr, EWRK3_CR); in ewrk3_interrupt()
949 cr &= ~(lp->led_mask); in ewrk3_interrupt()
950 outb(cr, EWRK3_CR); in ewrk3_interrupt()
1669 u_char cr = inb(EWRK3_CR); in ewrk3_ethtool_ioctl() local
1684 ecmd.autoneg = !(cr & CR_APD); in ewrk3_ethtool_ioctl()
1690 ecmd.port = (cr & CR_PSEL) ? PORT_BNC : PORT_TP; in ewrk3_ethtool_ioctl()
1706 u_char cr; in ewrk3_ethtool_ioctl() local
1729 cr = inb(EWRK3_CR); in ewrk3_ethtool_ioctl()
1734 cr &= ~CR_APD; in ewrk3_ethtool_ioctl()
1736 cr |= CR_APD; in ewrk3_ethtool_ioctl()
1738 cr &= ~CR_PSEL; /* Force TP */ in ewrk3_ethtool_ioctl()
1740 cr |= CR_PSEL; /* Force BNC */ in ewrk3_ethtool_ioctl()
1744 outb(cr, EWRK3_CR); in ewrk3_ethtool_ioctl()
1774 u_char cr; in ewrk3_ethtool_ioctl() local
1796 cr = inb(EWRK3_CR); in ewrk3_ethtool_ioctl()
1797 outb(cr ^ CR_LED, EWRK3_CR); in ewrk3_ethtool_ioctl()
1811 cr = inb(EWRK3_CR); in ewrk3_ethtool_ioctl()
1812 outb(cr & ~CR_LED, EWRK3_CR); in ewrk3_ethtool_ioctl()