Lines Matching refs:mac_reg

182 	u32 mac_reg = 0;  in e1000_phy_is_accessible_pchlan()  local
231 mac_reg = er32(CTRL_EXT); in e1000_phy_is_accessible_pchlan()
232 mac_reg &= ~E1000_CTRL_EXT_FORCE_SMBUS; in e1000_phy_is_accessible_pchlan()
233 ew32(CTRL_EXT, mac_reg); in e1000_phy_is_accessible_pchlan()
249 u32 mac_reg; in e1000_toggle_lanphypc_pch_lpt() local
252 mac_reg = er32(FEXTNVM3); in e1000_toggle_lanphypc_pch_lpt()
253 mac_reg &= ~E1000_FEXTNVM3_PHY_CFG_COUNTER_MASK; in e1000_toggle_lanphypc_pch_lpt()
254 mac_reg |= E1000_FEXTNVM3_PHY_CFG_COUNTER_50MSEC; in e1000_toggle_lanphypc_pch_lpt()
255 ew32(FEXTNVM3, mac_reg); in e1000_toggle_lanphypc_pch_lpt()
258 mac_reg = er32(CTRL); in e1000_toggle_lanphypc_pch_lpt()
259 mac_reg |= E1000_CTRL_LANPHYPC_OVERRIDE; in e1000_toggle_lanphypc_pch_lpt()
260 mac_reg &= ~E1000_CTRL_LANPHYPC_VALUE; in e1000_toggle_lanphypc_pch_lpt()
261 ew32(CTRL, mac_reg); in e1000_toggle_lanphypc_pch_lpt()
264 mac_reg &= ~E1000_CTRL_LANPHYPC_OVERRIDE; in e1000_toggle_lanphypc_pch_lpt()
265 ew32(CTRL, mac_reg); in e1000_toggle_lanphypc_pch_lpt()
291 u32 mac_reg, fwsm = er32(FWSM); in e1000_init_phy_workarounds_pchlan() local
331 mac_reg = er32(CTRL_EXT); in e1000_init_phy_workarounds_pchlan()
332 mac_reg |= E1000_CTRL_EXT_FORCE_SMBUS; in e1000_init_phy_workarounds_pchlan()
333 ew32(CTRL_EXT, mac_reg); in e1000_init_phy_workarounds_pchlan()
367 mac_reg = er32(CTRL_EXT); in e1000_init_phy_workarounds_pchlan()
368 mac_reg &= ~E1000_CTRL_EXT_FORCE_SMBUS; in e1000_init_phy_workarounds_pchlan()
369 ew32(CTRL_EXT, mac_reg); in e1000_init_phy_workarounds_pchlan()
1100 u32 mac_reg; in e1000_enable_ulp_lpt_lp() local
1115 mac_reg = er32(H2ME); in e1000_enable_ulp_lpt_lp()
1116 mac_reg |= E1000_H2ME_ULP | E1000_H2ME_ENFORCE_SETTINGS; in e1000_enable_ulp_lpt_lp()
1117 ew32(H2ME, mac_reg); in e1000_enable_ulp_lpt_lp()
1153 mac_reg = er32(CTRL_EXT); in e1000_enable_ulp_lpt_lp()
1154 mac_reg |= E1000_CTRL_EXT_FORCE_SMBUS; in e1000_enable_ulp_lpt_lp()
1155 ew32(CTRL_EXT, mac_reg); in e1000_enable_ulp_lpt_lp()
1200 mac_reg = er32(FEXTNVM7); in e1000_enable_ulp_lpt_lp()
1201 mac_reg |= E1000_FEXTNVM7_DISABLE_SMB_PERST; in e1000_enable_ulp_lpt_lp()
1202 ew32(FEXTNVM7, mac_reg); in e1000_enable_ulp_lpt_lp()
1245 u32 mac_reg; in e1000_disable_ulp_lpt_lp() local
1263 mac_reg = er32(H2ME); in e1000_disable_ulp_lpt_lp()
1264 mac_reg &= ~E1000_H2ME_ULP; in e1000_disable_ulp_lpt_lp()
1265 mac_reg |= E1000_H2ME_ENFORCE_SETTINGS; in e1000_disable_ulp_lpt_lp()
1266 ew32(H2ME, mac_reg); in e1000_disable_ulp_lpt_lp()
1291 mac_reg = er32(H2ME); in e1000_disable_ulp_lpt_lp()
1292 mac_reg &= ~E1000_H2ME_ENFORCE_SETTINGS; in e1000_disable_ulp_lpt_lp()
1293 ew32(H2ME, mac_reg); in e1000_disable_ulp_lpt_lp()
1296 mac_reg = er32(H2ME); in e1000_disable_ulp_lpt_lp()
1297 mac_reg &= ~E1000_H2ME_ULP; in e1000_disable_ulp_lpt_lp()
1298 ew32(H2ME, mac_reg); in e1000_disable_ulp_lpt_lp()
1318 mac_reg = er32(CTRL_EXT); in e1000_disable_ulp_lpt_lp()
1319 mac_reg |= E1000_CTRL_EXT_FORCE_SMBUS; in e1000_disable_ulp_lpt_lp()
1320 ew32(CTRL_EXT, mac_reg); in e1000_disable_ulp_lpt_lp()
1333 mac_reg = er32(CTRL_EXT); in e1000_disable_ulp_lpt_lp()
1334 mac_reg &= ~E1000_CTRL_EXT_FORCE_SMBUS; in e1000_disable_ulp_lpt_lp()
1335 ew32(CTRL_EXT, mac_reg); in e1000_disable_ulp_lpt_lp()
1365 mac_reg = er32(FEXTNVM7); in e1000_disable_ulp_lpt_lp()
1366 mac_reg &= ~E1000_FEXTNVM7_DISABLE_SMB_PERST; in e1000_disable_ulp_lpt_lp()
1367 ew32(FEXTNVM7, mac_reg); in e1000_disable_ulp_lpt_lp()
1538 u32 mac_reg; in e1000_check_for_copper_link_ich8lan() local
1540 mac_reg = er32(FEXTNVM4); in e1000_check_for_copper_link_ich8lan()
1541 mac_reg &= ~E1000_FEXTNVM4_BEACON_DURATION_MASK; in e1000_check_for_copper_link_ich8lan()
1542 mac_reg |= E1000_FEXTNVM4_BEACON_DURATION_8USEC; in e1000_check_for_copper_link_ich8lan()
1543 ew32(FEXTNVM4, mac_reg); in e1000_check_for_copper_link_ich8lan()
2365 u32 mac_reg; in e1000_oem_bits_config_ich8lan() local
2376 mac_reg = er32(EXTCNF_CTRL); in e1000_oem_bits_config_ich8lan()
2377 if (mac_reg & E1000_EXTCNF_CTRL_OEM_WRITE_ENABLE) in e1000_oem_bits_config_ich8lan()
2381 mac_reg = er32(FEXTNVM); in e1000_oem_bits_config_ich8lan()
2382 if (!(mac_reg & E1000_FEXTNVM_SW_CONFIG_ICH8M)) in e1000_oem_bits_config_ich8lan()
2385 mac_reg = er32(PHY_CTRL); in e1000_oem_bits_config_ich8lan()
2394 if (mac_reg & E1000_PHY_CTRL_GBE_DISABLE) in e1000_oem_bits_config_ich8lan()
2397 if (mac_reg & E1000_PHY_CTRL_D0A_LPLU) in e1000_oem_bits_config_ich8lan()
2400 if (mac_reg & (E1000_PHY_CTRL_GBE_DISABLE | in e1000_oem_bits_config_ich8lan()
2404 if (mac_reg & (E1000_PHY_CTRL_D0A_LPLU | in e1000_oem_bits_config_ich8lan()
2532 u32 mac_reg; in e1000_copy_rx_addrs_to_phy_ich8lan() local
2545 mac_reg = er32(RAL(i)); in e1000_copy_rx_addrs_to_phy_ich8lan()
2547 (u16)(mac_reg & 0xFFFF)); in e1000_copy_rx_addrs_to_phy_ich8lan()
2549 (u16)((mac_reg >> 16) & 0xFFFF)); in e1000_copy_rx_addrs_to_phy_ich8lan()
2551 mac_reg = er32(RAH(i)); in e1000_copy_rx_addrs_to_phy_ich8lan()
2553 (u16)(mac_reg & 0xFFFF)); in e1000_copy_rx_addrs_to_phy_ich8lan()
2555 (u16)((mac_reg & E1000_RAH_AV) in e1000_copy_rx_addrs_to_phy_ich8lan()
2575 u32 mac_reg; in e1000_lv_jumbo_workaround_ich8lan() local
2613 mac_reg = er32(FFLT_DBG); in e1000_lv_jumbo_workaround_ich8lan()
2614 mac_reg &= ~BIT(14); in e1000_lv_jumbo_workaround_ich8lan()
2615 mac_reg |= (7 << 15); in e1000_lv_jumbo_workaround_ich8lan()
2616 ew32(FFLT_DBG, mac_reg); in e1000_lv_jumbo_workaround_ich8lan()
2618 mac_reg = er32(RCTL); in e1000_lv_jumbo_workaround_ich8lan()
2619 mac_reg |= E1000_RCTL_SECRC; in e1000_lv_jumbo_workaround_ich8lan()
2620 ew32(RCTL, mac_reg); in e1000_lv_jumbo_workaround_ich8lan()
2672 mac_reg = er32(FFLT_DBG); in e1000_lv_jumbo_workaround_ich8lan()
2673 mac_reg &= ~(0xF << 14); in e1000_lv_jumbo_workaround_ich8lan()
2674 ew32(FFLT_DBG, mac_reg); in e1000_lv_jumbo_workaround_ich8lan()
2676 mac_reg = er32(RCTL); in e1000_lv_jumbo_workaround_ich8lan()
2677 mac_reg &= ~E1000_RCTL_SECRC; in e1000_lv_jumbo_workaround_ich8lan()
2678 ew32(RCTL, mac_reg); in e1000_lv_jumbo_workaround_ich8lan()
2801 u32 mac_reg; in e1000_k1_workaround_lv() local
2803 mac_reg = er32(FEXTNVM4); in e1000_k1_workaround_lv()
2804 mac_reg &= ~E1000_FEXTNVM4_BEACON_DURATION_MASK; in e1000_k1_workaround_lv()
2805 mac_reg |= E1000_FEXTNVM4_BEACON_DURATION_16USEC; in e1000_k1_workaround_lv()
2806 ew32(FEXTNVM4, mac_reg); in e1000_k1_workaround_lv()