Searched refs:mii_cmd (Results 1 – 5 of 5) sorted by relevance
202 u32 mii_cmd; in sun8i_mdio_read() local205 mii_cmd = (reg << MDIO_CMD_MII_PHY_REG_ADDR_SHIFT) & in sun8i_mdio_read()207 mii_cmd |= (addr << MDIO_CMD_MII_PHY_ADDR_SHIFT) & in sun8i_mdio_read()216 mii_cmd |= MDIO_CMD_MII_BUSY; in sun8i_mdio_read()218 writel(mii_cmd, priv->mac_reg + EMAC_MII_CMD); in sun8i_mdio_read()234 u32 mii_cmd; in sun8i_mdio_write() local236 mii_cmd = (reg << MDIO_CMD_MII_PHY_REG_ADDR_SHIFT) & in sun8i_mdio_write()238 mii_cmd |= (addr << MDIO_CMD_MII_PHY_ADDR_SHIFT) & in sun8i_mdio_write()247 mii_cmd |= MDIO_CMD_MII_WRITE; in sun8i_mdio_write()248 mii_cmd |= MDIO_CMD_MII_BUSY; in sun8i_mdio_write()[all …]
90 uint mii_send(uint mii_cmd) in mii_send() argument112 ep->mmfr = mii_cmd; /* command to phy */ in mii_send()128 __FILE__, __LINE__, __FUNCTION__, mii_cmd, mii_reply); in mii_send()
476 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | addr; in mdio_read() local481 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_read()503 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (addr << 18) | value; in mdio_write() local508 int dataval = (mii_cmd & (1 << i)) ? MDIO_WRITE1 : MDIO_WRITE0; in mdio_write()
727 mii_send(uint mii_cmd) in mii_send() argument736 out_be32(&ep->fec_mii_data, mii_cmd); /* command to phy */ in mii_send()
355 uint mii_send(uint mii_cmd);
Completed in 12 milliseconds