Home
last modified time | relevance | path

Searched refs:eecd (Results 1 – 7 of 7) sorted by relevance

/drivers/net/ethernet/intel/e1000e/
Dnvm.c38 static void e1000_raise_eec_clk(struct e1000_hw *hw, u32 *eecd) in e1000_raise_eec_clk() argument
40 *eecd = *eecd | E1000_EECD_SK; in e1000_raise_eec_clk()
41 ew32(EECD, *eecd); in e1000_raise_eec_clk()
53 static void e1000_lower_eec_clk(struct e1000_hw *hw, u32 *eecd) in e1000_lower_eec_clk() argument
55 *eecd = *eecd & ~E1000_EECD_SK; in e1000_lower_eec_clk()
56 ew32(EECD, *eecd); in e1000_lower_eec_clk()
74 u32 eecd = er32(EECD); in e1000_shift_out_eec_bits() local
79 eecd |= E1000_EECD_DO; in e1000_shift_out_eec_bits()
82 eecd &= ~E1000_EECD_DI; in e1000_shift_out_eec_bits()
85 eecd |= E1000_EECD_DI; in e1000_shift_out_eec_bits()
[all …]
D82571.c167 u32 eecd = er32(EECD); in e1000_init_nvm_params_82571() local
182 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_82571()
183 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in e1000_init_nvm_params_82571()
191 if (((eecd >> 15) & 0x3) == 0x3) { in e1000_init_nvm_params_82571()
198 eecd &= ~E1000_EECD_AUPDEN; in e1000_init_nvm_params_82571()
199 ew32(EECD, eecd); in e1000_init_nvm_params_82571()
205 size = (u16)((eecd & E1000_EECD_SIZE_EX_MASK) >> in e1000_init_nvm_params_82571()
783 u32 eecd; in e1000_update_nvm_checksum_82571() local
820 eecd = er32(EECD) | E1000_EECD_FLUPD; in e1000_update_nvm_checksum_82571()
821 ew32(EECD, eecd); in e1000_update_nvm_checksum_82571()
D80003es2lan.c161 u32 eecd = er32(EECD); in e1000_init_nvm_params_80003es2lan() local
176 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_80003es2lan()
177 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in e1000_init_nvm_params_80003es2lan()
183 size = (u16)((eecd & E1000_EECD_SIZE_EX_MASK) >> in e1000_init_nvm_params_80003es2lan()
Dich8lan.c2087 u32 eecd; in e1000_valid_nvm_bank_detect_ich8lan() local
2097 eecd = er32(EECD); in e1000_valid_nvm_bank_detect_ich8lan()
2098 if ((eecd & E1000_EECD_SEC1VAL_VALID_MASK) == in e1000_valid_nvm_bank_detect_ich8lan()
2100 if (eecd & E1000_EECD_SEC1VAL) in e1000_valid_nvm_bank_detect_ich8lan()
/drivers/net/ethernet/intel/igb/
De1000_nvm.c41 static void igb_raise_eec_clk(struct e1000_hw *hw, u32 *eecd) in igb_raise_eec_clk() argument
43 *eecd = *eecd | E1000_EECD_SK; in igb_raise_eec_clk()
44 wr32(E1000_EECD, *eecd); in igb_raise_eec_clk()
56 static void igb_lower_eec_clk(struct e1000_hw *hw, u32 *eecd) in igb_lower_eec_clk() argument
58 *eecd = *eecd & ~E1000_EECD_SK; in igb_lower_eec_clk()
59 wr32(E1000_EECD, *eecd); in igb_lower_eec_clk()
77 u32 eecd = rd32(E1000_EECD); in igb_shift_out_eec_bits() local
82 eecd |= E1000_EECD_DO; in igb_shift_out_eec_bits()
85 eecd &= ~E1000_EECD_DI; in igb_shift_out_eec_bits()
88 eecd |= E1000_EECD_DI; in igb_shift_out_eec_bits()
[all …]
De1000_82575.c114 u32 eecd; in igb_get_invariants_82575() local
215 eecd = rd32(E1000_EECD); in igb_get_invariants_82575()
229 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in igb_get_invariants_82575()
230 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in igb_get_invariants_82575()
236 size = (u16)((eecd & E1000_EECD_SIZE_EX_MASK) >> in igb_get_invariants_82575()
/drivers/net/ethernet/intel/e1000/
De1000_hw.c74 static void e1000_raise_ee_clk(struct e1000_hw *hw, u32 *eecd);
75 static void e1000_lower_ee_clk(struct e1000_hw *hw, u32 *eecd);
3498 u32 eecd = er32(EECD); in e1000_init_eeprom_params() local
3523 if (eecd & E1000_EECD_SIZE) { in e1000_init_eeprom_params()
3535 if (eecd & E1000_EECD_TYPE) { in e1000_init_eeprom_params()
3539 if (eecd & E1000_EECD_ADDR_BITS) { in e1000_init_eeprom_params()
3550 if (eecd & E1000_EECD_ADDR_BITS) { in e1000_init_eeprom_params()
3590 static void e1000_raise_ee_clk(struct e1000_hw *hw, u32 *eecd) in e1000_raise_ee_clk() argument
3595 *eecd = *eecd | E1000_EECD_SK; in e1000_raise_ee_clk()
3596 ew32(EECD, *eecd); in e1000_raise_ee_clk()
[all …]