Lines Matching refs:mdic
560 u32 i, mdic = 0; in igc_read_phy_reg_mdic() local
573 mdic = ((offset << IGC_MDIC_REG_SHIFT) | in igc_read_phy_reg_mdic()
577 wr32(IGC_MDIC, mdic); in igc_read_phy_reg_mdic()
585 mdic = rd32(IGC_MDIC); in igc_read_phy_reg_mdic()
586 if (mdic & IGC_MDIC_READY) in igc_read_phy_reg_mdic()
589 if (!(mdic & IGC_MDIC_READY)) { in igc_read_phy_reg_mdic()
594 if (mdic & IGC_MDIC_ERROR) { in igc_read_phy_reg_mdic()
599 *data = (u16)mdic; in igc_read_phy_reg_mdic()
616 u32 i, mdic = 0; in igc_write_phy_reg_mdic() local
629 mdic = (((u32)data) | in igc_write_phy_reg_mdic()
634 wr32(IGC_MDIC, mdic); in igc_write_phy_reg_mdic()
642 mdic = rd32(IGC_MDIC); in igc_write_phy_reg_mdic()
643 if (mdic & IGC_MDIC_READY) in igc_write_phy_reg_mdic()
646 if (!(mdic & IGC_MDIC_READY)) { in igc_write_phy_reg_mdic()
651 if (mdic & IGC_MDIC_ERROR) { in igc_write_phy_reg_mdic()