Home
last modified time | relevance | path

Searched refs:mdic (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/intel/e1000e/
Dphy.c121 u32 i, mdic = 0; in e1000e_read_phy_reg_mdic() local
132 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 …]
/Linux-v4.19/drivers/net/ethernet/intel/e1000/
De1000_hw.c2819 u32 mdic = 0; in e1000_read_phy_reg_ex() local
2833 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
2838 writel(mdic, E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2845 mdic = readl(E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2846 if (!(mdic & INTEL_CE_GBE_MDIC_GO)) in e1000_read_phy_reg_ex()
2850 if (mdic & INTEL_CE_GBE_MDIC_GO) { in e1000_read_phy_reg_ex()
2855 mdic = readl(E1000_MDIO_STS); in e1000_read_phy_reg_ex()
2856 if (mdic & INTEL_CE_GBE_MDIC_READ_ERROR) { in e1000_read_phy_reg_ex()
2860 *phy_data = (u16)mdic; in e1000_read_phy_reg_ex()
2862 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/igb/
De1000_phy.c116 u32 i, mdic = 0; in igb_read_phy_reg_mdic() local
129 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() local
185 mdic = (((u32)data) | in igb_write_phy_reg_mdic()
[all …]
De1000_82575.c833 u32 mdic; in igb_get_phy_id_82575() local
855 mdic = rd32(E1000_MDIC); in igb_get_phy_id_82575()
856 mdic &= E1000_MDIC_PHY_MASK; in igb_get_phy_id_82575()
857 phy->addr = mdic >> E1000_MDIC_PHY_SHIFT; in igb_get_phy_id_82575()
864 mdic = rd32(E1000_MDICNFG); in igb_get_phy_id_82575()
865 mdic &= E1000_MDICNFG_PHY_MASK; in igb_get_phy_id_82575()
866 phy->addr = mdic >> E1000_MDICNFG_PHY_SHIFT; in igb_get_phy_id_82575()