Lines Matching refs:phycr
48 int phycr; in ftgmac100_mdiobus_read() local
51 phycr = readl(&ftgmac100->phycr); in ftgmac100_mdiobus_read()
54 phycr &= FTGMAC100_PHYCR_MDC_CYCTHR_MASK; in ftgmac100_mdiobus_read()
56 phycr |= FTGMAC100_PHYCR_PHYAD(phy_addr) in ftgmac100_mdiobus_read()
60 writel(phycr, &ftgmac100->phycr); in ftgmac100_mdiobus_read()
63 phycr = readl(&ftgmac100->phycr); in ftgmac100_mdiobus_read()
65 if ((phycr & FTGMAC100_PHYCR_MIIRD) == 0) { in ftgmac100_mdiobus_read()
83 int phycr; in ftgmac100_mdiobus_write() local
87 phycr = readl(&ftgmac100->phycr); in ftgmac100_mdiobus_write()
90 phycr &= FTGMAC100_PHYCR_MDC_CYCTHR_MASK; in ftgmac100_mdiobus_write()
92 phycr |= FTGMAC100_PHYCR_PHYAD(phy_addr) in ftgmac100_mdiobus_write()
99 writel(phycr, &ftgmac100->phycr); in ftgmac100_mdiobus_write()
102 phycr = readl(&ftgmac100->phycr); in ftgmac100_mdiobus_write()
104 if ((phycr & FTGMAC100_PHYCR_MIIWR) == 0) { in ftgmac100_mdiobus_write()