Lines Matching refs:plat_dat
142 static int visconti_eth_init_hw(struct platform_device *pdev, struct plat_stmmacenet_data *plat_dat) in visconti_eth_init_hw() argument
144 struct visconti_eth *dwmac = plat_dat->bsp_priv; in visconti_eth_init_hw()
147 switch (plat_dat->phy_interface) { in visconti_eth_init_hw()
161 dev_err(&pdev->dev, "Unsupported phy-mode (%d)\n", plat_dat->phy_interface); in visconti_eth_init_hw()
183 struct plat_stmmacenet_data *plat_dat) in visconti_eth_clock_probe() argument
185 struct visconti_eth *dwmac = plat_dat->bsp_priv; in visconti_eth_clock_probe()
214 struct plat_stmmacenet_data *plat_dat; in visconti_eth_dwmac_probe() local
223 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in visconti_eth_dwmac_probe()
224 if (IS_ERR(plat_dat)) in visconti_eth_dwmac_probe()
225 return PTR_ERR(plat_dat); in visconti_eth_dwmac_probe()
236 plat_dat->bsp_priv = dwmac; in visconti_eth_dwmac_probe()
237 plat_dat->fix_mac_speed = visconti_eth_fix_mac_speed; in visconti_eth_dwmac_probe()
239 ret = visconti_eth_clock_probe(pdev, plat_dat); in visconti_eth_dwmac_probe()
243 visconti_eth_init_hw(pdev, plat_dat); in visconti_eth_dwmac_probe()
245 plat_dat->dma_cfg->aal = 1; in visconti_eth_dwmac_probe()
247 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in visconti_eth_dwmac_probe()
256 stmmac_remove_config_dt(pdev, plat_dat); in visconti_eth_dwmac_probe()