Lines Matching refs:phydev

19 static int xilinxgmiitorgmii_config(struct phy_device *phydev)  in xilinxgmiitorgmii_config()  argument
21 struct phy_device *ext_phydev = phydev->priv; in xilinxgmiitorgmii_config()
30 static int xilinxgmiitorgmii_extread(struct phy_device *phydev, int addr, in xilinxgmiitorgmii_extread() argument
33 struct phy_device *ext_phydev = phydev->priv; in xilinxgmiitorgmii_extread()
42 static int xilinxgmiitorgmii_extwrite(struct phy_device *phydev, int addr, in xilinxgmiitorgmii_extwrite() argument
46 struct phy_device *ext_phydev = phydev->priv; in xilinxgmiitorgmii_extwrite()
56 static int xilinxgmiitorgmii_startup(struct phy_device *phydev) in xilinxgmiitorgmii_startup() argument
59 struct phy_device *ext_phydev = phydev->priv; in xilinxgmiitorgmii_startup()
62 ext_phydev->dev = phydev->dev; in xilinxgmiitorgmii_startup()
66 val = phy_read(phydev, phydev->addr, ZYNQ_GMII2RGMII_REG); in xilinxgmiitorgmii_startup()
74 phy_write(phydev, phydev->addr, ZYNQ_GMII2RGMII_REG, val | in xilinxgmiitorgmii_startup()
77 phydev->duplex = ext_phydev->duplex; in xilinxgmiitorgmii_startup()
78 phydev->speed = ext_phydev->speed; in xilinxgmiitorgmii_startup()
79 phydev->link = ext_phydev->link; in xilinxgmiitorgmii_startup()
84 static int xilinxgmiitorgmii_probe(struct phy_device *phydev) in xilinxgmiitorgmii_probe() argument
86 int ofnode = phydev->addr; in xilinxgmiitorgmii_probe()
93 if (phydev->interface != PHY_INTERFACE_MODE_GMII) { in xilinxgmiitorgmii_probe()
102 phydev->addr = fdtdec_get_int(gd->fdt_blob, ofnode, "reg", -1); in xilinxgmiitorgmii_probe()
109 ext_phydev = phy_find_by_mask(phydev->bus, in xilinxgmiitorgmii_probe()
118 phydev->priv = ext_phydev; in xilinxgmiitorgmii_probe()
120 debug("%s, gmii2rgmmi:0x%x, extphy:0x%x\n", __func__, phydev->addr, in xilinxgmiitorgmii_probe()
123 phydev->flags |= PHY_FLAG_BROKEN_RESET; in xilinxgmiitorgmii_probe()