Searched refs:smi_reg (Results 1 – 3 of 3) sorted by relevance
63 u32 smi_reg; in __mvgbe_mdio_read() local91 smi_reg = (phy_adr << MVGBE_PHY_SMI_DEV_ADDR_OFFS) in __mvgbe_mdio_read()96 MVGBE_REG_WR(MVGBE_SMI_REG, smi_reg); in __mvgbe_mdio_read()103 smi_reg = MVGBE_REG_RD(MVGBE_SMI_REG); in __mvgbe_mdio_read()109 } while (!(smi_reg & MVGBE_PHY_SMI_READ_VALID_MASK)); in __mvgbe_mdio_read()145 u32 smi_reg; in __mvgbe_mdio_write() local169 smi_reg = (data << MVGBE_PHY_SMI_DATA_OFFS); in __mvgbe_mdio_write()170 smi_reg |= (phy_adr << MVGBE_PHY_SMI_DEV_ADDR_OFFS) in __mvgbe_mdio_write()172 smi_reg &= ~MVGBE_PHY_SMI_OPCODE_READ; in __mvgbe_mdio_write()175 MVGBE_REG_WR(MVGBE_SMI_REG, smi_reg); in __mvgbe_mdio_write()
1422 u32 smi_reg; in smi_wait_ready() local1427 smi_reg = mvreg_read(pp, MVNETA_SMI); in smi_wait_ready()1432 } while (smi_reg & MVNETA_SMI_BUSY); in smi_wait_ready()1445 u32 smi_reg; in mvneta_mdio_read() local1464 smi_reg = (addr << MVNETA_SMI_DEV_ADDR_OFFS) in mvneta_mdio_read()1469 mvreg_write(pp, MVNETA_SMI, smi_reg); in mvneta_mdio_read()1476 smi_reg = mvreg_read(pp, MVNETA_SMI); in mvneta_mdio_read()1481 } while (!(smi_reg & MVNETA_SMI_READ_VALID)); in mvneta_mdio_read()1500 u32 smi_reg; in mvneta_mdio_write() local1518 smi_reg = value << MVNETA_SMI_DATA_OFFS; in mvneta_mdio_write()[all …]
5059 u32 smi_reg; in smi_wait_ready() local5064 smi_reg = readl(priv->mdio_base); in smi_wait_ready()5069 } while (smi_reg & MVPP2_SMI_BUSY); in smi_wait_ready()5082 u32 smi_reg; in mpp2_mdio_read() local5101 smi_reg = (addr << MVPP2_SMI_DEV_ADDR_OFFS) in mpp2_mdio_read()5106 writel(smi_reg, priv->mdio_base); in mpp2_mdio_read()5113 smi_reg = readl(priv->mdio_base); in mpp2_mdio_read()5118 } while (!(smi_reg & MVPP2_SMI_READ_VALID)); in mpp2_mdio_read()5137 u32 smi_reg; in mpp2_mdio_write() local5155 smi_reg = value << MVPP2_SMI_DATA_OFFS; in mpp2_mdio_write()[all …]