Lines Matching refs:eecd_reg
28 u32 *eecd_reg) in ixgb_raise_clock() argument
33 *eecd_reg = *eecd_reg | IXGB_EECD_SK; in ixgb_raise_clock()
34 IXGB_WRITE_REG(hw, EECD, *eecd_reg); in ixgb_raise_clock()
47 u32 *eecd_reg) in ixgb_lower_clock() argument
52 *eecd_reg = *eecd_reg & ~IXGB_EECD_SK; in ixgb_lower_clock()
53 IXGB_WRITE_REG(hw, EECD, *eecd_reg); in ixgb_lower_clock()
70 u32 eecd_reg; in ixgb_shift_out_bits() local
78 eecd_reg = IXGB_READ_REG(hw, EECD); in ixgb_shift_out_bits()
79 eecd_reg &= ~(IXGB_EECD_DO | IXGB_EECD_DI); in ixgb_shift_out_bits()
86 eecd_reg &= ~IXGB_EECD_DI; in ixgb_shift_out_bits()
89 eecd_reg |= IXGB_EECD_DI; in ixgb_shift_out_bits()
91 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_shift_out_bits()
96 ixgb_raise_clock(hw, &eecd_reg); in ixgb_shift_out_bits()
97 ixgb_lower_clock(hw, &eecd_reg); in ixgb_shift_out_bits()
104 eecd_reg &= ~IXGB_EECD_DI; in ixgb_shift_out_bits()
105 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_shift_out_bits()
116 u32 eecd_reg; in ixgb_shift_in_bits() local
127 eecd_reg = IXGB_READ_REG(hw, EECD); in ixgb_shift_in_bits()
129 eecd_reg &= ~(IXGB_EECD_DO | IXGB_EECD_DI); in ixgb_shift_in_bits()
134 ixgb_raise_clock(hw, &eecd_reg); in ixgb_shift_in_bits()
136 eecd_reg = IXGB_READ_REG(hw, EECD); in ixgb_shift_in_bits()
138 eecd_reg &= ~(IXGB_EECD_DI); in ixgb_shift_in_bits()
139 if (eecd_reg & IXGB_EECD_DO) in ixgb_shift_in_bits()
142 ixgb_lower_clock(hw, &eecd_reg); in ixgb_shift_in_bits()
159 u32 eecd_reg; in ixgb_setup_eeprom() local
161 eecd_reg = IXGB_READ_REG(hw, EECD); in ixgb_setup_eeprom()
164 eecd_reg &= ~(IXGB_EECD_SK | IXGB_EECD_DI); in ixgb_setup_eeprom()
165 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_setup_eeprom()
168 eecd_reg |= IXGB_EECD_CS; in ixgb_setup_eeprom()
169 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_setup_eeprom()
180 u32 eecd_reg; in ixgb_standby_eeprom() local
182 eecd_reg = IXGB_READ_REG(hw, EECD); in ixgb_standby_eeprom()
185 eecd_reg &= ~(IXGB_EECD_CS | IXGB_EECD_SK); in ixgb_standby_eeprom()
186 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_standby_eeprom()
191 eecd_reg |= IXGB_EECD_SK; in ixgb_standby_eeprom()
192 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_standby_eeprom()
197 eecd_reg |= IXGB_EECD_CS; in ixgb_standby_eeprom()
198 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_standby_eeprom()
203 eecd_reg &= ~IXGB_EECD_SK; in ixgb_standby_eeprom()
204 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_standby_eeprom()
217 u32 eecd_reg; in ixgb_clock_eeprom() local
219 eecd_reg = IXGB_READ_REG(hw, EECD); in ixgb_clock_eeprom()
222 eecd_reg |= IXGB_EECD_SK; in ixgb_clock_eeprom()
223 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_clock_eeprom()
228 eecd_reg &= ~IXGB_EECD_SK; in ixgb_clock_eeprom()
229 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_clock_eeprom()
242 u32 eecd_reg; in ixgb_cleanup_eeprom() local
244 eecd_reg = IXGB_READ_REG(hw, EECD); in ixgb_cleanup_eeprom()
246 eecd_reg &= ~(IXGB_EECD_CS | IXGB_EECD_DI); in ixgb_cleanup_eeprom()
248 IXGB_WRITE_REG(hw, EECD, eecd_reg); in ixgb_cleanup_eeprom()
267 u32 eecd_reg; in ixgb_wait_eeprom_command() local
280 eecd_reg = IXGB_READ_REG(hw, EECD); in ixgb_wait_eeprom_command()
282 if (eecd_reg & IXGB_EECD_DO) in ixgb_wait_eeprom_command()