Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/intel/e1000e/
Dnvm.c13 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()
[all …]
D82571.c123 u32 eecd = er32(EECD); in e1000_init_nvm_params_82571() local
138 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_82571()
139 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in e1000_init_nvm_params_82571()
147 if (((eecd >> 15) & 0x3) == 0x3) { in e1000_init_nvm_params_82571()
153 eecd &= ~E1000_EECD_AUPDEN; in e1000_init_nvm_params_82571()
154 ew32(EECD, eecd); in e1000_init_nvm_params_82571()
160 size = (u16)FIELD_GET(E1000_EECD_SIZE_EX_MASK, eecd); in e1000_init_nvm_params_82571()
725 u32 eecd; in e1000_update_nvm_checksum_82571() local
760 eecd = er32(EECD) | E1000_EECD_FLUPD; in e1000_update_nvm_checksum_82571()
761 ew32(EECD, eecd); in e1000_update_nvm_checksum_82571()
[all …]
D80003es2lan.c73 u32 eecd = er32(EECD); in e1000_init_nvm_params_80003es2lan() local
88 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_80003es2lan()
89 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in e1000_init_nvm_params_80003es2lan()
95 size = (u16)FIELD_GET(E1000_EECD_SIZE_EX_MASK, eecd); in e1000_init_nvm_params_80003es2lan()
Dich8lan.c3236 u32 eecd; in e1000_valid_nvm_bank_detect_ich8lan() local
3288 eecd = er32(EECD); in e1000_valid_nvm_bank_detect_ich8lan()
3289 if ((eecd & E1000_EECD_SEC1VAL_VALID_MASK) == in e1000_valid_nvm_bank_detect_ich8lan()
3291 if (eecd & E1000_EECD_SEC1VAL) in e1000_valid_nvm_bank_detect_ich8lan()
/linux-6.12.1/drivers/net/ethernet/intel/igb/
De1000_nvm.c17 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()
[all …]
De1000_82575.c329 u32 eecd = rd32(E1000_EECD); in igb_init_nvm_params_82575() local
332 size = FIELD_GET(E1000_EECD_SIZE_EX_MASK, eecd); in igb_init_nvm_params_82575()
359 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in igb_init_nvm_params_82575()
360 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? in igb_init_nvm_params_82575()
/linux-6.12.1/drivers/net/ethernet/intel/igc/
Digc_nvm.c49 u32 eecd = rd32(IGC_EECD); in igc_acquire_nvm() local
52 wr32(IGC_EECD, eecd | IGC_EECD_REQ); in igc_acquire_nvm()
53 eecd = rd32(IGC_EECD); in igc_acquire_nvm()
56 if (eecd & IGC_EECD_GNT) in igc_acquire_nvm()
59 eecd = rd32(IGC_EECD); in igc_acquire_nvm()
64 eecd &= ~IGC_EECD_REQ; in igc_acquire_nvm()
65 wr32(IGC_EECD, eecd); in igc_acquire_nvm()
81 u32 eecd; in igc_release_nvm() local
83 eecd = rd32(IGC_EECD); in igc_release_nvm()
84 eecd &= ~IGC_EECD_REQ; in igc_release_nvm()
[all …]
Digc_base.c68 u32 eecd = rd32(IGC_EECD); in igc_init_nvm_params_base() local
71 size = FIELD_GET(IGC_EECD_SIZE_EX_MASK, eecd); in igc_init_nvm_params_base()
89 nvm->page_size = eecd & IGC_EECD_ADDR_BITS ? 32 : 8; in igc_init_nvm_params_base()
90 nvm->address_bits = eecd & IGC_EECD_ADDR_BITS ? in igc_init_nvm_params_base()
/linux-6.12.1/drivers/net/ethernet/intel/e1000/
De1000_hw.c50 static void e1000_raise_ee_clk(struct e1000_hw *hw, u32 *eecd);
51 static void e1000_lower_ee_clk(struct e1000_hw *hw, u32 *eecd);
3441 u32 eecd = er32(EECD); in e1000_init_eeprom_params() local
3464 if (eecd & E1000_EECD_SIZE) { in e1000_init_eeprom_params()
3476 if (eecd & E1000_EECD_TYPE) { in e1000_init_eeprom_params()
3480 if (eecd & E1000_EECD_ADDR_BITS) { in e1000_init_eeprom_params()
3491 if (eecd & E1000_EECD_ADDR_BITS) { in e1000_init_eeprom_params()
3532 static void e1000_raise_ee_clk(struct e1000_hw *hw, u32 *eecd) in e1000_raise_ee_clk() argument
3537 *eecd = *eecd | E1000_EECD_SK; in e1000_raise_ee_clk()
3538 ew32(EECD, *eecd); in e1000_raise_ee_clk()
[all …]