Lines Matching refs:ctrl
343 static void __atl2_vlan_mode(netdev_features_t features, u32 *ctrl) in __atl2_vlan_mode() argument
347 *ctrl |= MAC_CTRL_RMV_VLAN; in __atl2_vlan_mode()
350 *ctrl &= ~MAC_CTRL_RMV_VLAN; in __atl2_vlan_mode()
358 u32 ctrl; in atl2_vlan_mode() local
362 ctrl = ATL2_READ_REG(&adapter->hw, REG_MAC_CTRL); in atl2_vlan_mode()
363 __atl2_vlan_mode(features, &ctrl); in atl2_vlan_mode()
364 ATL2_WRITE_REG(&adapter->hw, REG_MAC_CTRL, ctrl); in atl2_vlan_mode()
1494 u32 ctrl = 0; in atl2_suspend() local
1514 atl2_read_phy_reg(hw, MII_BMSR, (u16 *)&ctrl); in atl2_suspend()
1515 atl2_read_phy_reg(hw, MII_BMSR, (u16 *)&ctrl); in atl2_suspend()
1516 if (ctrl & BMSR_LSTATUS) in atl2_suspend()
1519 if (0 != (ctrl & BMSR_LSTATUS) && 0 != wufc) { in atl2_suspend()
1530 ctrl = 0; in atl2_suspend()
1534 ctrl |= (WOL_MAGIC_EN | WOL_MAGIC_PME_EN); in atl2_suspend()
1537 ATL2_WRITE_REG(hw, REG_WOL_CTRL, ctrl); in atl2_suspend()
1540 ctrl = MAC_CTRL_RX_EN | MAC_CTRL_MACLP_CLK_PHY; in atl2_suspend()
1542 ctrl |= MAC_CTRL_DUPLX; in atl2_suspend()
1543 ctrl |= (MAC_CTRL_ADD_CRC | MAC_CTRL_PAD); in atl2_suspend()
1544 ctrl |= (((u32)adapter->hw.preamble_len & in atl2_suspend()
1546 ctrl |= (((u32)(adapter->hw.retry_buf & in atl2_suspend()
1551 ctrl |= MAC_CTRL_BC_EN; in atl2_suspend()
1554 ATL2_WRITE_REG(hw, REG_MAC_CTRL, ctrl); in atl2_suspend()
1557 ctrl = ATL2_READ_REG(hw, REG_PCIE_PHYMISC); in atl2_suspend()
1558 ctrl |= PCIE_PHYMISC_FORCE_RCV_DET; in atl2_suspend()
1559 ATL2_WRITE_REG(hw, REG_PCIE_PHYMISC, ctrl); in atl2_suspend()
1560 ctrl = ATL2_READ_REG(hw, REG_PCIE_DLL_TX_CTRL1); in atl2_suspend()
1561 ctrl |= PCIE_DLL_TX_CTRL1_SEL_NOR_CLK; in atl2_suspend()
1562 ATL2_WRITE_REG(hw, REG_PCIE_DLL_TX_CTRL1, ctrl); in atl2_suspend()
1568 if (0 == (ctrl&BMSR_LSTATUS) && 0 != (wufc&ATLX_WUFC_LNKC)) { in atl2_suspend()
1570 ctrl |= (WOL_LINK_CHG_EN | WOL_LINK_CHG_PME_EN); in atl2_suspend()
1571 ATL2_WRITE_REG(hw, REG_WOL_CTRL, ctrl); in atl2_suspend()
1575 ctrl = ATL2_READ_REG(hw, REG_PCIE_PHYMISC); in atl2_suspend()
1576 ctrl |= PCIE_PHYMISC_FORCE_RCV_DET; in atl2_suspend()
1577 ATL2_WRITE_REG(hw, REG_PCIE_PHYMISC, ctrl); in atl2_suspend()
1578 ctrl = ATL2_READ_REG(hw, REG_PCIE_DLL_TX_CTRL1); in atl2_suspend()
1579 ctrl |= PCIE_DLL_TX_CTRL1_SEL_NOR_CLK; in atl2_suspend()
1580 ATL2_WRITE_REG(hw, REG_PCIE_DLL_TX_CTRL1, ctrl); in atl2_suspend()
1594 ctrl = ATL2_READ_REG(hw, REG_PCIE_PHYMISC); in atl2_suspend()
1595 ctrl |= PCIE_PHYMISC_FORCE_RCV_DET; in atl2_suspend()
1596 ATL2_WRITE_REG(hw, REG_PCIE_PHYMISC, ctrl); in atl2_suspend()
1597 ctrl = ATL2_READ_REG(hw, REG_PCIE_DLL_TX_CTRL1); in atl2_suspend()
1598 ctrl |= PCIE_DLL_TX_CTRL1_SEL_NOR_CLK; in atl2_suspend()
1599 ATL2_WRITE_REG(hw, REG_PCIE_DLL_TX_CTRL1, ctrl); in atl2_suspend()