Lines Matching refs:mdio_stat

33 	__be32	mdio_stat;	/* MDIO configuration and status */  member
92 while ((xgmac_read32(&regs->mdio_stat, is_little_endian) & in xgmac_wait_until_free()
117 while ((xgmac_read32(&regs->mdio_stat, is_little_endian) & in xgmac_wait_until_done()
138 u32 mdio_ctl, mdio_stat; in xgmac_mdio_write_c22() local
141 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_write_c22()
142 mdio_stat &= ~MDIO_STAT_ENC; in xgmac_mdio_write_c22()
143 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_write_c22()
169 u32 mdio_ctl, mdio_stat; in xgmac_mdio_write_c45() local
172 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_write_c45()
173 mdio_stat |= MDIO_STAT_ENC; in xgmac_mdio_write_c45()
175 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_write_c45()
213 uint32_t mdio_stat; in xgmac_mdio_read_c22() local
217 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_read_c22()
218 mdio_stat &= ~MDIO_STAT_ENC; in xgmac_mdio_read_c22()
219 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_read_c22()
243 if ((xgmac_read32(&regs->mdio_stat, endian) & MDIO_STAT_RD_ER) && in xgmac_mdio_read_c22()
271 u32 mdio_stat, mdio_ctl; in xgmac_mdio_read_c45() local
275 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_read_c45()
276 mdio_stat |= MDIO_STAT_ENC; in xgmac_mdio_read_c45()
278 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_read_c45()
309 if ((xgmac_read32(&regs->mdio_stat, endian) & MDIO_STAT_RD_ER) && in xgmac_mdio_read_c45()
332 u32 mdio_stat, div; in xgmac_mdio_set_mdc_freq() local
349 mdio_stat = xgmac_read32(&regs->mdio_stat, priv->is_little_endian); in xgmac_mdio_set_mdc_freq()
350 mdio_stat &= ~MDIO_STAT_CLKDIV(0x1ff); in xgmac_mdio_set_mdc_freq()
351 mdio_stat |= MDIO_STAT_CLKDIV(div); in xgmac_mdio_set_mdc_freq()
352 xgmac_write32(mdio_stat, &regs->mdio_stat, priv->is_little_endian); in xgmac_mdio_set_mdc_freq()
361 u32 mdio_stat; in xgmac_mdio_set_suppress_preamble() local
366 mdio_stat = xgmac_read32(&regs->mdio_stat, priv->is_little_endian); in xgmac_mdio_set_suppress_preamble()
367 mdio_stat |= MDIO_STAT_PRE_DIS; in xgmac_mdio_set_suppress_preamble()
368 xgmac_write32(mdio_stat, &regs->mdio_stat, priv->is_little_endian); in xgmac_mdio_set_suppress_preamble()