Lines Matching refs:eecd

17 static void igb_raise_eec_clk(struct e1000_hw *hw, u32 *eecd)  in igb_raise_eec_clk()  argument
19 *eecd = *eecd | E1000_EECD_SK; in igb_raise_eec_clk()
20 wr32(E1000_EECD, *eecd); in igb_raise_eec_clk()
32 static void igb_lower_eec_clk(struct e1000_hw *hw, u32 *eecd) in igb_lower_eec_clk() argument
34 *eecd = *eecd & ~E1000_EECD_SK; in igb_lower_eec_clk()
35 wr32(E1000_EECD, *eecd); in igb_lower_eec_clk()
53 u32 eecd = rd32(E1000_EECD); in igb_shift_out_eec_bits() local
58 eecd |= E1000_EECD_DO; in igb_shift_out_eec_bits()
61 eecd &= ~E1000_EECD_DI; in igb_shift_out_eec_bits()
64 eecd |= E1000_EECD_DI; in igb_shift_out_eec_bits()
66 wr32(E1000_EECD, eecd); in igb_shift_out_eec_bits()
71 igb_raise_eec_clk(hw, &eecd); in igb_shift_out_eec_bits()
72 igb_lower_eec_clk(hw, &eecd); in igb_shift_out_eec_bits()
77 eecd &= ~E1000_EECD_DI; in igb_shift_out_eec_bits()
78 wr32(E1000_EECD, eecd); in igb_shift_out_eec_bits()
94 u32 eecd; in igb_shift_in_eec_bits() local
98 eecd = rd32(E1000_EECD); in igb_shift_in_eec_bits()
100 eecd &= ~(E1000_EECD_DO | E1000_EECD_DI); in igb_shift_in_eec_bits()
105 igb_raise_eec_clk(hw, &eecd); in igb_shift_in_eec_bits()
107 eecd = rd32(E1000_EECD); in igb_shift_in_eec_bits()
109 eecd &= ~E1000_EECD_DI; in igb_shift_in_eec_bits()
110 if (eecd & E1000_EECD_DO) in igb_shift_in_eec_bits()
113 igb_lower_eec_clk(hw, &eecd); in igb_shift_in_eec_bits()
160 u32 eecd = rd32(E1000_EECD); in igb_acquire_nvm() local
165 wr32(E1000_EECD, eecd | E1000_EECD_REQ); in igb_acquire_nvm()
166 eecd = rd32(E1000_EECD); in igb_acquire_nvm()
169 if (eecd & E1000_EECD_GNT) in igb_acquire_nvm()
172 eecd = rd32(E1000_EECD); in igb_acquire_nvm()
177 eecd &= ~E1000_EECD_REQ; in igb_acquire_nvm()
178 wr32(E1000_EECD, eecd); in igb_acquire_nvm()
195 u32 eecd = rd32(E1000_EECD); in igb_standby_nvm() local
199 eecd |= E1000_EECD_CS; in igb_standby_nvm()
200 wr32(E1000_EECD, eecd); in igb_standby_nvm()
203 eecd &= ~E1000_EECD_CS; in igb_standby_nvm()
204 wr32(E1000_EECD, eecd); in igb_standby_nvm()
218 u32 eecd; in e1000_stop_nvm() local
220 eecd = rd32(E1000_EECD); in e1000_stop_nvm()
223 eecd |= E1000_EECD_CS; in e1000_stop_nvm()
224 igb_lower_eec_clk(hw, &eecd); in e1000_stop_nvm()
236 u32 eecd; in igb_release_nvm() local
240 eecd = rd32(E1000_EECD); in igb_release_nvm()
241 eecd &= ~E1000_EECD_REQ; in igb_release_nvm()
242 wr32(E1000_EECD, eecd); in igb_release_nvm()
254 u32 eecd = rd32(E1000_EECD); in igb_ready_nvm_eeprom() local
262 eecd &= ~(E1000_EECD_CS | E1000_EECD_SK); in igb_ready_nvm_eeprom()
263 wr32(E1000_EECD, eecd); in igb_ready_nvm_eeprom()