Lines Matching refs:mdic
547 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()
621 wr32(IGC_MDIC, mdic); in igc_write_phy_reg_mdic()
629 mdic = rd32(IGC_MDIC); in igc_write_phy_reg_mdic()
630 if (mdic & IGC_MDIC_READY) in igc_write_phy_reg_mdic()
633 if (!(mdic & IGC_MDIC_READY)) { in igc_write_phy_reg_mdic()
638 if (mdic & IGC_MDIC_ERROR) { in igc_write_phy_reg_mdic()