Lines Matching refs:mdic
131 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()
210 u32 i, mdic = 0, retry_counter, retry_max; in e1000e_write_phy_reg_mdic() local
228 mdic = (((u32)data) | in e1000e_write_phy_reg_mdic()
233 ew32(MDIC, mdic); in e1000e_write_phy_reg_mdic()
241 mdic = er32(MDIC); in e1000e_write_phy_reg_mdic()
242 if (mdic & E1000_MDIC_READY) in e1000e_write_phy_reg_mdic()
245 if (!(mdic & E1000_MDIC_READY)) { in e1000e_write_phy_reg_mdic()
250 if (mdic & E1000_MDIC_ERROR) { in e1000e_write_phy_reg_mdic()
254 if (FIELD_GET(E1000_MDIC_REG_MASK, mdic) != offset) { in e1000e_write_phy_reg_mdic()
256 offset, FIELD_GET(E1000_MDIC_REG_MASK, mdic)); in e1000e_write_phy_reg_mdic()