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()
90 struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); in xgene_enet_write_ring_state()
304 netdev_err(pdata->ndev, "MCX mac write failed, addr: %04x\n", in xgene_enet_wr_mcx_mac()
366 netdev_err(pdata->ndev, "MCX mac read failed, addr: %04x\n", in xgene_enet_rd_mcx_mac()
389 netdev_err(pdata->ndev, "MII_MGMT write failed\n"); in xgene_mii_phy_write()
413 netdev_err(pdata->ndev, "MII_MGMT read failed\n"); in xgene_mii_phy_read()
426 u8 *dev_addr = pdata->ndev->dev_addr; in xgene_gmac_set_mac_addr()
438 struct net_device *ndev = pdata->ndev; in xgene_enet_ecc_init() local
449 netdev_err(ndev, "Failed to release memory from shutdown\n"); in xgene_enet_ecc_init()
694 netdev_dbg(pdata->ndev, "mdio_rd: bus=%d reg=%d val=%x\n", in xgene_enet_mdio_read()
705 netdev_dbg(pdata->ndev, "mdio_wr: bus=%d reg=%d val=%x\n", in xgene_enet_mdio_write()
710 static void xgene_enet_adjust_link(struct net_device *ndev) in xgene_enet_adjust_link() argument
712 struct xgene_enet_pdata *pdata = netdev_priv(ndev); in xgene_enet_adjust_link()
731 static int xgene_enet_phy_connect(struct net_device *ndev) in xgene_enet_phy_connect() argument
733 struct xgene_enet_pdata *pdata = netdev_priv(ndev); in xgene_enet_phy_connect()
741 netdev_dbg(ndev, "No phy-handle found in DT\n"); in xgene_enet_phy_connect()
745 phy_dev = of_phy_connect(ndev, phy_np, &xgene_enet_adjust_link, in xgene_enet_phy_connect()
748 netdev_err(ndev, "Could not connect to PHY\n"); in xgene_enet_phy_connect()
757 phy_connect_direct(ndev, phy_dev, &xgene_enet_adjust_link, in xgene_enet_phy_connect()
759 netdev_err(ndev, "Could not connect to PHY\n"); in xgene_enet_phy_connect()
777 struct net_device *ndev = pdata->ndev; in xgene_mdiobus_register() local
794 netdev_dbg(ndev, "No mdio node in the dts\n"); in xgene_mdiobus_register()
830 struct net_device *ndev = pdata->ndev; in xgene_enet_mdio_config() local
842 ndev->name); in xgene_enet_mdio_config()
845 mdio_bus->parent = &ndev->dev; in xgene_enet_mdio_config()
849 netdev_err(ndev, "Failed to register MDIO bus\n"); in xgene_enet_mdio_config()
855 ret = xgene_enet_phy_connect(ndev); in xgene_enet_mdio_config()