Lines Matching refs:plat
204 struct plat_stmmacenet_data *plat; in tegra_mgbe_probe() local
286 plat = stmmac_probe_config_dt(pdev, res.mac); in tegra_mgbe_probe()
287 if (IS_ERR(plat)) { in tegra_mgbe_probe()
288 err = PTR_ERR(plat); in tegra_mgbe_probe()
292 plat->has_xgmac = 1; in tegra_mgbe_probe()
293 plat->tso_en = 1; in tegra_mgbe_probe()
294 plat->pmt = 1; in tegra_mgbe_probe()
295 plat->bsp_priv = mgbe; in tegra_mgbe_probe()
297 if (!plat->mdio_node) in tegra_mgbe_probe()
298 plat->mdio_node = of_get_child_by_name(pdev->dev.of_node, "mdio"); in tegra_mgbe_probe()
300 if (!plat->mdio_bus_data) { in tegra_mgbe_probe()
301 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, sizeof(*plat->mdio_bus_data), in tegra_mgbe_probe()
303 if (!plat->mdio_bus_data) { in tegra_mgbe_probe()
309 plat->mdio_bus_data->needs_reset = true; in tegra_mgbe_probe()
326 plat->serdes_powerup = mgbe_uphy_lane_bringup_serdes_up; in tegra_mgbe_probe()
327 plat->serdes_powerdown = mgbe_uphy_lane_bringup_serdes_down; in tegra_mgbe_probe()
330 plat->tx_fifo_size = 131072; in tegra_mgbe_probe()
332 plat->rx_fifo_size = 196608; in tegra_mgbe_probe()
340 plat->serdes_up_after_phy_linkup = 1; in tegra_mgbe_probe()
342 err = stmmac_dvr_probe(&pdev->dev, plat, &res); in tegra_mgbe_probe()
349 stmmac_remove_config_dt(pdev, plat); in tegra_mgbe_probe()