Searched refs:mdic (Results 1 – 5 of 5) sorted by relevance
550 u32 i, mdic = 0; in igc_read_phy_reg_mdic() local563 mdic = ((offset << IGC_MDIC_REG_SHIFT) | in igc_read_phy_reg_mdic()567 wr32(IGC_MDIC, mdic); in igc_read_phy_reg_mdic()575 mdic = rd32(IGC_MDIC); in igc_read_phy_reg_mdic()576 if (mdic & IGC_MDIC_READY) in igc_read_phy_reg_mdic()579 if (!(mdic & IGC_MDIC_READY)) { in igc_read_phy_reg_mdic()584 if (mdic & IGC_MDIC_ERROR) { in igc_read_phy_reg_mdic()589 *data = (u16)mdic; in igc_read_phy_reg_mdic()606 u32 i, mdic = 0; in igc_write_phy_reg_mdic() local619 mdic = (((u32)data) | in igc_write_phy_reg_mdic()[all …]
2811 u32 mdic = 0; in e1000_read_phy_reg_ex() local2825 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()2830 writel(mdic, E1000_MDIO_CMD); in e1000_read_phy_reg_ex()2837 mdic = readl(E1000_MDIO_CMD); in e1000_read_phy_reg_ex()2838 if (!(mdic & INTEL_CE_GBE_MDIC_GO)) in e1000_read_phy_reg_ex()2842 if (mdic & INTEL_CE_GBE_MDIC_GO) { in e1000_read_phy_reg_ex()2847 mdic = readl(E1000_MDIO_STS); in e1000_read_phy_reg_ex()2848 if (mdic & INTEL_CE_GBE_MDIC_READ_ERROR) { in e1000_read_phy_reg_ex()2852 *phy_data = (u16)mdic; in e1000_read_phy_reg_ex()2854 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()[all …]
121 u32 i, mdic = 0; in e1000e_read_phy_reg_mdic() local132 mdic = ((offset << E1000_MDIC_REG_SHIFT) | in e1000e_read_phy_reg_mdic()136 ew32(MDIC, mdic); in e1000e_read_phy_reg_mdic()144 mdic = er32(MDIC); in e1000e_read_phy_reg_mdic()145 if (mdic & E1000_MDIC_READY) in e1000e_read_phy_reg_mdic()148 if (!(mdic & E1000_MDIC_READY)) { in e1000e_read_phy_reg_mdic()152 if (mdic & E1000_MDIC_ERROR) { in e1000e_read_phy_reg_mdic()156 if (((mdic & E1000_MDIC_REG_MASK) >> E1000_MDIC_REG_SHIFT) != offset) { in e1000e_read_phy_reg_mdic()159 (mdic & E1000_MDIC_REG_MASK) >> E1000_MDIC_REG_SHIFT); in e1000e_read_phy_reg_mdic()162 *data = (u16)mdic; in e1000e_read_phy_reg_mdic()[all …]
116 u32 i, mdic = 0; in igb_read_phy_reg_mdic() local129 mdic = ((offset << E1000_MDIC_REG_SHIFT) | in igb_read_phy_reg_mdic()133 wr32(E1000_MDIC, mdic); in igb_read_phy_reg_mdic()141 mdic = rd32(E1000_MDIC); in igb_read_phy_reg_mdic()142 if (mdic & E1000_MDIC_READY) in igb_read_phy_reg_mdic()145 if (!(mdic & E1000_MDIC_READY)) { in igb_read_phy_reg_mdic()150 if (mdic & E1000_MDIC_ERROR) { in igb_read_phy_reg_mdic()155 *data = (u16) mdic; in igb_read_phy_reg_mdic()172 u32 i, mdic = 0; in igb_write_phy_reg_mdic() local185 mdic = (((u32)data) | in igb_write_phy_reg_mdic()[all …]
829 u32 mdic; in igb_get_phy_id_82575() local851 mdic = rd32(E1000_MDIC); in igb_get_phy_id_82575()852 mdic &= E1000_MDIC_PHY_MASK; in igb_get_phy_id_82575()853 phy->addr = mdic >> E1000_MDIC_PHY_SHIFT; in igb_get_phy_id_82575()860 mdic = rd32(E1000_MDICNFG); in igb_get_phy_id_82575()861 mdic &= E1000_MDICNFG_PHY_MASK; in igb_get_phy_id_82575()862 phy->addr = mdic >> E1000_MDICNFG_PHY_SHIFT; in igb_get_phy_id_82575()