Lines Matching refs:eec
49 static void ixgbe_raise_eeprom_clk(struct ixgbe_hw *hw, u32 *eec);
50 static void ixgbe_lower_eeprom_clk(struct ixgbe_hw *hw, u32 *eec);
73 u32 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw)); in ixgbe_init_ops_generic() local
80 if (eec & IXGBE_EEC_PRES) { in ixgbe_init_ops_generic()
1253 u32 eec; in ixgbe_init_eeprom_params_generic() local
1270 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw)); in ixgbe_init_eeprom_params_generic()
1271 if (eec & IXGBE_EEC_PRES) { in ixgbe_init_eeprom_params_generic()
1278 eeprom_size = (u16)((eec & IXGBE_EEC_SIZE) >> in ixgbe_init_eeprom_params_generic()
1284 if (eec & IXGBE_EEC_ADDR_SIZE) in ixgbe_init_eeprom_params_generic()
1821 u32 eec; in ixgbe_acquire_eeprom() local
1831 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw)); in ixgbe_acquire_eeprom()
1834 eec |= IXGBE_EEC_REQ; in ixgbe_acquire_eeprom()
1835 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), eec); in ixgbe_acquire_eeprom()
1838 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw)); in ixgbe_acquire_eeprom()
1839 if (eec & IXGBE_EEC_GNT) in ixgbe_acquire_eeprom()
1845 if (!(eec & IXGBE_EEC_GNT)) { in ixgbe_acquire_eeprom()
1846 eec &= ~IXGBE_EEC_REQ; in ixgbe_acquire_eeprom()
1847 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), eec); in ixgbe_acquire_eeprom()
1857 eec &= ~(IXGBE_EEC_CS | IXGBE_EEC_SK); in ixgbe_acquire_eeprom()
1858 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), eec); in ixgbe_acquire_eeprom()
2024 u32 eec; in ixgbe_standby_eeprom() local
2028 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw)); in ixgbe_standby_eeprom()
2031 eec |= IXGBE_EEC_CS; in ixgbe_standby_eeprom()
2032 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), eec); in ixgbe_standby_eeprom()
2035 eec &= ~IXGBE_EEC_CS; in ixgbe_standby_eeprom()
2036 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), eec); in ixgbe_standby_eeprom()
2050 u32 eec; in ixgbe_shift_out_eeprom_bits() local
2056 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw)); in ixgbe_shift_out_eeprom_bits()
2073 eec |= IXGBE_EEC_DI; in ixgbe_shift_out_eeprom_bits()
2075 eec &= ~IXGBE_EEC_DI; in ixgbe_shift_out_eeprom_bits()
2077 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), eec); in ixgbe_shift_out_eeprom_bits()
2082 ixgbe_raise_eeprom_clk(hw, &eec); in ixgbe_shift_out_eeprom_bits()
2083 ixgbe_lower_eeprom_clk(hw, &eec); in ixgbe_shift_out_eeprom_bits()
2093 eec &= ~IXGBE_EEC_DI; in ixgbe_shift_out_eeprom_bits()
2094 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), eec); in ixgbe_shift_out_eeprom_bits()
2105 u32 eec; in ixgbe_shift_in_eeprom_bits() local
2118 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw)); in ixgbe_shift_in_eeprom_bits()
2120 eec &= ~(IXGBE_EEC_DO | IXGBE_EEC_DI); in ixgbe_shift_in_eeprom_bits()
2124 ixgbe_raise_eeprom_clk(hw, &eec); in ixgbe_shift_in_eeprom_bits()
2126 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw)); in ixgbe_shift_in_eeprom_bits()
2128 eec &= ~(IXGBE_EEC_DI); in ixgbe_shift_in_eeprom_bits()
2129 if (eec & IXGBE_EEC_DO) in ixgbe_shift_in_eeprom_bits()
2132 ixgbe_lower_eeprom_clk(hw, &eec); in ixgbe_shift_in_eeprom_bits()
2143 static void ixgbe_raise_eeprom_clk(struct ixgbe_hw *hw, u32 *eec) in ixgbe_raise_eeprom_clk() argument
2151 *eec = *eec | IXGBE_EEC_SK; in ixgbe_raise_eeprom_clk()
2152 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), *eec); in ixgbe_raise_eeprom_clk()
2162 static void ixgbe_lower_eeprom_clk(struct ixgbe_hw *hw, u32 *eec) in ixgbe_lower_eeprom_clk() argument
2170 *eec = *eec & ~IXGBE_EEC_SK; in ixgbe_lower_eeprom_clk()
2171 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), *eec); in ixgbe_lower_eeprom_clk()
2182 u32 eec; in ixgbe_release_eeprom() local
2186 eec = IXGBE_READ_REG(hw, IXGBE_EEC_BY_MAC(hw)); in ixgbe_release_eeprom()
2188 eec |= IXGBE_EEC_CS; /* Pull CS high */ in ixgbe_release_eeprom()
2189 eec &= ~IXGBE_EEC_SK; /* Lower SCK */ in ixgbe_release_eeprom()
2191 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), eec); in ixgbe_release_eeprom()
2197 eec &= ~IXGBE_EEC_REQ; in ixgbe_release_eeprom()
2198 IXGBE_WRITE_REG(hw, IXGBE_EEC_BY_MAC(hw), eec); in ixgbe_release_eeprom()