Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/intel/igc/
Digc_phy.c547 u32 i, mdic = 0; in igc_read_phy_reg_mdic() local
560 mdic = ((offset << IGC_MDIC_REG_SHIFT) | in igc_read_phy_reg_mdic()
564 wr32(IGC_MDIC, mdic); in igc_read_phy_reg_mdic()
572 mdic = rd32(IGC_MDIC); in igc_read_phy_reg_mdic()
573 if (mdic & IGC_MDIC_READY) in igc_read_phy_reg_mdic()
576 if (!(mdic & IGC_MDIC_READY)) { in igc_read_phy_reg_mdic()
581 if (mdic & IGC_MDIC_ERROR) { in igc_read_phy_reg_mdic()
586 *data = (u16)mdic; in igc_read_phy_reg_mdic()
603 u32 i, mdic = 0; in igc_write_phy_reg_mdic() local
616 mdic = (((u32)data) | in igc_write_phy_reg_mdic()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/e1000/
De1000_hw.c2812 u32 mdic = 0; in e1000_read_phy_reg_ex() local
2826 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
2831 writel(mdic, E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2838 mdic = readl(E1000_MDIO_CMD); in e1000_read_phy_reg_ex()
2839 if (!(mdic & INTEL_CE_GBE_MDIC_GO)) in e1000_read_phy_reg_ex()
2843 if (mdic & INTEL_CE_GBE_MDIC_GO) { in e1000_read_phy_reg_ex()
2848 mdic = readl(E1000_MDIO_STS); in e1000_read_phy_reg_ex()
2849 if (mdic & INTEL_CE_GBE_MDIC_READ_ERROR) { in e1000_read_phy_reg_ex()
2853 *phy_data = (u16)mdic; in e1000_read_phy_reg_ex()
2855 mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) | in e1000_read_phy_reg_ex()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/e1000e/
Dphy.c131 u32 i, mdic = 0, retry_counter, retry_max; in e1000e_read_phy_reg_mdic() local
149 mdic = ((offset << E1000_MDIC_REG_SHIFT) | in e1000e_read_phy_reg_mdic()
153 ew32(MDIC, mdic); in e1000e_read_phy_reg_mdic()
161 mdic = er32(MDIC); in e1000e_read_phy_reg_mdic()
162 if (mdic & E1000_MDIC_READY) in e1000e_read_phy_reg_mdic()
165 if (!(mdic & E1000_MDIC_READY)) { in e1000e_read_phy_reg_mdic()
170 if (mdic & E1000_MDIC_ERROR) { in e1000e_read_phy_reg_mdic()
174 if (FIELD_GET(E1000_MDIC_REG_MASK, mdic) != offset) { in e1000e_read_phy_reg_mdic()
176 offset, FIELD_GET(E1000_MDIC_REG_MASK, mdic)); in e1000e_read_phy_reg_mdic()
187 *data = (u16)mdic; in e1000e_read_phy_reg_mdic()
[all …]
/linux-6.12.1/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.c827 u32 mdic; in igb_get_phy_id_82575() local
849 mdic = rd32(E1000_MDIC); in igb_get_phy_id_82575()
850 mdic &= E1000_MDIC_PHY_MASK; in igb_get_phy_id_82575()
851 phy->addr = mdic >> E1000_MDIC_PHY_SHIFT; in igb_get_phy_id_82575()
858 mdic = rd32(E1000_MDICNFG); in igb_get_phy_id_82575()
859 mdic &= E1000_MDICNFG_PHY_MASK; in igb_get_phy_id_82575()
860 phy->addr = mdic >> E1000_MDICNFG_PHY_SHIFT; in igb_get_phy_id_82575()