Lines Matching refs:ndev
75 struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); in xgene_enet_ring_wr32()
83 struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); in xgene_enet_ring_rd32()
286 netdev_err(pdata->ndev, "MCX mac write failed, addr: %04x\n", in xgene_enet_wr_mcx_mac()
348 netdev_err(pdata->ndev, "MCX mac read failed, addr: %04x\n", in xgene_enet_rd_mcx_mac()
371 netdev_err(pdata->ndev, "MII_MGMT write failed\n"); in xgene_mii_phy_write()
395 netdev_err(pdata->ndev, "MII_MGMT read failed\n"); in xgene_mii_phy_read()
408 u8 *dev_addr = pdata->ndev->dev_addr; in xgene_gmac_set_mac_addr()
420 struct net_device *ndev = pdata->ndev; in xgene_enet_ecc_init() local
431 netdev_err(ndev, "Failed to release memory from shutdown\n"); in xgene_enet_ecc_init()
624 netdev_dbg(pdata->ndev, "mdio_rd: bus=%d reg=%d val=%x\n", in xgene_enet_mdio_read()
635 netdev_dbg(pdata->ndev, "mdio_wr: bus=%d reg=%d val=%x\n", in xgene_enet_mdio_write()
640 static void xgene_enet_adjust_link(struct net_device *ndev) in xgene_enet_adjust_link() argument
642 struct xgene_enet_pdata *pdata = netdev_priv(ndev); in xgene_enet_adjust_link()
661 static int xgene_enet_phy_connect(struct net_device *ndev) in xgene_enet_phy_connect() argument
663 struct xgene_enet_pdata *pdata = netdev_priv(ndev); in xgene_enet_phy_connect()
671 netdev_dbg(ndev, "No phy-handle found in DT\n"); in xgene_enet_phy_connect()
680 phy_connect_direct(ndev, phy_dev, &xgene_enet_adjust_link, in xgene_enet_phy_connect()
682 netdev_err(ndev, "Could not connect to PHY\n"); in xgene_enet_phy_connect()
699 struct net_device *ndev = pdata->ndev; in xgene_mdiobus_register() local
716 netdev_dbg(ndev, "No mdio node in the dts\n"); in xgene_mdiobus_register()
752 struct net_device *ndev = pdata->ndev; in xgene_enet_mdio_config() local
764 ndev->name); in xgene_enet_mdio_config()
767 mdio_bus->parent = &ndev->dev; in xgene_enet_mdio_config()
771 netdev_err(ndev, "Failed to register MDIO bus\n"); in xgene_enet_mdio_config()
777 ret = xgene_enet_phy_connect(ndev); in xgene_enet_mdio_config()