Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/intel/igc/
Digc_phy.c550 u32 i, mdic = 0; in igc_read_phy_reg_mdic() local
563 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() local
619 mdic = (((u32)data) | in igc_write_phy_reg_mdic()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/e1000/
De1000_hw.c2811 u32 mdic = 0; in e1000_read_phy_reg_ex() local
2825 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 …]
/Linux-v6.6/drivers/net/ethernet/intel/e1000e/
Dphy.c122 u32 i, mdic = 0; in e1000e_read_phy_reg_mdic() local
133 mdic = ((offset << E1000_MDIC_REG_SHIFT) | in e1000e_read_phy_reg_mdic()
137 ew32(MDIC, mdic); in e1000e_read_phy_reg_mdic()
145 mdic = er32(MDIC); in e1000e_read_phy_reg_mdic()
146 if (mdic & E1000_MDIC_READY) in e1000e_read_phy_reg_mdic()
149 if (!(mdic & E1000_MDIC_READY)) { in e1000e_read_phy_reg_mdic()
153 if (mdic & E1000_MDIC_ERROR) { in e1000e_read_phy_reg_mdic()
157 if (((mdic & E1000_MDIC_REG_MASK) >> E1000_MDIC_REG_SHIFT) != offset) { in e1000e_read_phy_reg_mdic()
160 (mdic & E1000_MDIC_REG_MASK) >> E1000_MDIC_REG_SHIFT); in e1000e_read_phy_reg_mdic()
163 *data = (u16)mdic; in e1000e_read_phy_reg_mdic()
[all …]
/Linux-v6.6/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.c829 u32 mdic; in igb_get_phy_id_82575() local
851 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()