Lines Matching refs:eec
21 static void ixgbe_raise_eeprom_clk(struct ixgbe_hw *hw, u32 *eec);
22 static void ixgbe_lower_eeprom_clk(struct ixgbe_hw *hw, u32 *eec);
850 u32 eec; in ixgbe_init_eeprom_params_generic() local
865 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_init_eeprom_params_generic()
866 if (eec & IXGBE_EEC_PRES) { in ixgbe_init_eeprom_params_generic()
873 eeprom_size = (u16)((eec & IXGBE_EEC_SIZE) >> in ixgbe_init_eeprom_params_generic()
879 if (eec & IXGBE_EEC_ADDR_SIZE) in ixgbe_init_eeprom_params_generic()
1343 u32 eec; in ixgbe_acquire_eeprom() local
1349 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_acquire_eeprom()
1352 eec |= IXGBE_EEC_REQ; in ixgbe_acquire_eeprom()
1353 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), eec); in ixgbe_acquire_eeprom()
1356 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_acquire_eeprom()
1357 if (eec & IXGBE_EEC_GNT) in ixgbe_acquire_eeprom()
1363 if (!(eec & IXGBE_EEC_GNT)) { in ixgbe_acquire_eeprom()
1364 eec &= ~IXGBE_EEC_REQ; in ixgbe_acquire_eeprom()
1365 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), eec); in ixgbe_acquire_eeprom()
1374 eec &= ~(IXGBE_EEC_CS | IXGBE_EEC_SK); in ixgbe_acquire_eeprom()
1375 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), eec); in ixgbe_acquire_eeprom()
1518 u32 eec; in ixgbe_standby_eeprom() local
1520 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_standby_eeprom()
1523 eec |= IXGBE_EEC_CS; in ixgbe_standby_eeprom()
1524 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), eec); in ixgbe_standby_eeprom()
1527 eec &= ~IXGBE_EEC_CS; in ixgbe_standby_eeprom()
1528 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), eec); in ixgbe_standby_eeprom()
1542 u32 eec; in ixgbe_shift_out_eeprom_bits() local
1546 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_shift_out_eeprom_bits()
1563 eec |= IXGBE_EEC_DI; in ixgbe_shift_out_eeprom_bits()
1565 eec &= ~IXGBE_EEC_DI; in ixgbe_shift_out_eeprom_bits()
1567 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), eec); in ixgbe_shift_out_eeprom_bits()
1572 ixgbe_raise_eeprom_clk(hw, &eec); in ixgbe_shift_out_eeprom_bits()
1573 ixgbe_lower_eeprom_clk(hw, &eec); in ixgbe_shift_out_eeprom_bits()
1583 eec &= ~IXGBE_EEC_DI; in ixgbe_shift_out_eeprom_bits()
1584 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), eec); in ixgbe_shift_out_eeprom_bits()
1595 u32 eec; in ixgbe_shift_in_eeprom_bits() local
1606 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_shift_in_eeprom_bits()
1608 eec &= ~(IXGBE_EEC_DO | IXGBE_EEC_DI); in ixgbe_shift_in_eeprom_bits()
1612 ixgbe_raise_eeprom_clk(hw, &eec); in ixgbe_shift_in_eeprom_bits()
1614 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_shift_in_eeprom_bits()
1616 eec &= ~(IXGBE_EEC_DI); in ixgbe_shift_in_eeprom_bits()
1617 if (eec & IXGBE_EEC_DO) in ixgbe_shift_in_eeprom_bits()
1620 ixgbe_lower_eeprom_clk(hw, &eec); in ixgbe_shift_in_eeprom_bits()
1631 static void ixgbe_raise_eeprom_clk(struct ixgbe_hw *hw, u32 *eec) in ixgbe_raise_eeprom_clk() argument
1637 *eec = *eec | IXGBE_EEC_SK; in ixgbe_raise_eeprom_clk()
1638 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), *eec); in ixgbe_raise_eeprom_clk()
1648 static void ixgbe_lower_eeprom_clk(struct ixgbe_hw *hw, u32 *eec) in ixgbe_lower_eeprom_clk() argument
1654 *eec = *eec & ~IXGBE_EEC_SK; in ixgbe_lower_eeprom_clk()
1655 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), *eec); in ixgbe_lower_eeprom_clk()
1666 u32 eec; in ixgbe_release_eeprom() local
1668 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_release_eeprom()
1670 eec |= IXGBE_EEC_CS; /* Pull CS high */ in ixgbe_release_eeprom()
1671 eec &= ~IXGBE_EEC_SK; /* Lower SCK */ in ixgbe_release_eeprom()
1673 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), eec); in ixgbe_release_eeprom()
1679 eec &= ~IXGBE_EEC_REQ; in ixgbe_release_eeprom()
1680 IXGBE_WRITE_REG(hw, IXGBE_EEC(hw), eec); in ixgbe_release_eeprom()