Lines Matching refs:eecd

13 static void e1000_raise_eec_clk(struct e1000_hw *hw, u32 *eecd)  in e1000_raise_eec_clk()  argument
15 *eecd = *eecd | E1000_EECD_SK; in e1000_raise_eec_clk()
16 ew32(EECD, *eecd); in e1000_raise_eec_clk()
28 static void e1000_lower_eec_clk(struct e1000_hw *hw, u32 *eecd) in e1000_lower_eec_clk() argument
30 *eecd = *eecd & ~E1000_EECD_SK; in e1000_lower_eec_clk()
31 ew32(EECD, *eecd); in e1000_lower_eec_clk()
49 u32 eecd = er32(EECD); in e1000_shift_out_eec_bits() local
54 eecd |= E1000_EECD_DO; in e1000_shift_out_eec_bits()
57 eecd &= ~E1000_EECD_DI; in e1000_shift_out_eec_bits()
60 eecd |= E1000_EECD_DI; in e1000_shift_out_eec_bits()
62 ew32(EECD, eecd); in e1000_shift_out_eec_bits()
67 e1000_raise_eec_clk(hw, &eecd); in e1000_shift_out_eec_bits()
68 e1000_lower_eec_clk(hw, &eecd); in e1000_shift_out_eec_bits()
73 eecd &= ~E1000_EECD_DI; in e1000_shift_out_eec_bits()
74 ew32(EECD, eecd); in e1000_shift_out_eec_bits()
90 u32 eecd; in e1000_shift_in_eec_bits() local
94 eecd = er32(EECD); in e1000_shift_in_eec_bits()
95 eecd &= ~(E1000_EECD_DO | E1000_EECD_DI); in e1000_shift_in_eec_bits()
100 e1000_raise_eec_clk(hw, &eecd); in e1000_shift_in_eec_bits()
102 eecd = er32(EECD); in e1000_shift_in_eec_bits()
104 eecd &= ~E1000_EECD_DI; in e1000_shift_in_eec_bits()
105 if (eecd & E1000_EECD_DO) in e1000_shift_in_eec_bits()
108 e1000_lower_eec_clk(hw, &eecd); in e1000_shift_in_eec_bits()
152 u32 eecd = er32(EECD); in e1000e_acquire_nvm() local
155 ew32(EECD, eecd | E1000_EECD_REQ); in e1000e_acquire_nvm()
156 eecd = er32(EECD); in e1000e_acquire_nvm()
159 if (eecd & E1000_EECD_GNT) in e1000e_acquire_nvm()
162 eecd = er32(EECD); in e1000e_acquire_nvm()
167 eecd &= ~E1000_EECD_REQ; in e1000e_acquire_nvm()
168 ew32(EECD, eecd); in e1000e_acquire_nvm()
185 u32 eecd = er32(EECD); in e1000_standby_nvm() local
189 eecd |= E1000_EECD_CS; in e1000_standby_nvm()
190 ew32(EECD, eecd); in e1000_standby_nvm()
193 eecd &= ~E1000_EECD_CS; in e1000_standby_nvm()
194 ew32(EECD, eecd); in e1000_standby_nvm()
208 u32 eecd; in e1000_stop_nvm() local
210 eecd = er32(EECD); in e1000_stop_nvm()
213 eecd |= E1000_EECD_CS; in e1000_stop_nvm()
214 e1000_lower_eec_clk(hw, &eecd); in e1000_stop_nvm()
226 u32 eecd; in e1000e_release_nvm() local
230 eecd = er32(EECD); in e1000e_release_nvm()
231 eecd &= ~E1000_EECD_REQ; in e1000e_release_nvm()
232 ew32(EECD, eecd); in e1000e_release_nvm()
244 u32 eecd = er32(EECD); in e1000_ready_nvm_eeprom() local
251 eecd &= ~(E1000_EECD_CS | E1000_EECD_SK); in e1000_ready_nvm_eeprom()
252 ew32(EECD, eecd); in e1000_ready_nvm_eeprom()