Home
last modified time | relevance | path

Searched refs:phycr (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/faraday/
Dftmac100.c792 unsigned int phycr; in ftmac100_mdio_read() local
795 phycr = FTMAC100_PHYCR_PHYAD(phy_id) | in ftmac100_mdio_read()
799 iowrite32(phycr, priv->base + FTMAC100_OFFSET_PHYCR); in ftmac100_mdio_read()
802 phycr = ioread32(priv->base + FTMAC100_OFFSET_PHYCR); in ftmac100_mdio_read()
804 if ((phycr & FTMAC100_PHYCR_MIIRD) == 0) in ftmac100_mdio_read()
805 return phycr & FTMAC100_PHYCR_MIIRDATA; in ftmac100_mdio_read()
818 unsigned int phycr; in ftmac100_mdio_write() local
821 phycr = FTMAC100_PHYCR_PHYAD(phy_id) | in ftmac100_mdio_write()
828 iowrite32(phycr, priv->base + FTMAC100_OFFSET_PHYCR); in ftmac100_mdio_write()
831 phycr = ioread32(priv->base + FTMAC100_OFFSET_PHYCR); in ftmac100_mdio_write()
[all …]
Dftgmac100.c1002 unsigned int phycr; in ftgmac100_mdiobus_read() local
1005 phycr = ioread32(priv->base + FTGMAC100_OFFSET_PHYCR); in ftgmac100_mdiobus_read()
1008 phycr &= FTGMAC100_PHYCR_MDC_CYCTHR_MASK; in ftgmac100_mdiobus_read()
1010 phycr |= FTGMAC100_PHYCR_PHYAD(phy_addr) | in ftgmac100_mdiobus_read()
1014 iowrite32(phycr, priv->base + FTGMAC100_OFFSET_PHYCR); in ftgmac100_mdiobus_read()
1017 phycr = ioread32(priv->base + FTGMAC100_OFFSET_PHYCR); in ftgmac100_mdiobus_read()
1019 if ((phycr & FTGMAC100_PHYCR_MIIRD) == 0) { in ftgmac100_mdiobus_read()
1038 unsigned int phycr; in ftgmac100_mdiobus_write() local
1042 phycr = ioread32(priv->base + FTGMAC100_OFFSET_PHYCR); in ftgmac100_mdiobus_write()
1045 phycr &= FTGMAC100_PHYCR_MDC_CYCTHR_MASK; in ftgmac100_mdiobus_write()
[all …]
/Linux-v6.6/drivers/ata/
Dsata_dwc_460ex.c64 u32 phycr; /* PHY Control */ member