Lines Matching refs:plat_dat
38 int (*set_intf_mode)(struct plat_stmmacenet_data *plat_dat);
50 struct plat_stmmacenet_data *plat_dat; member
53 static int imx8mp_set_intf_mode(struct plat_stmmacenet_data *plat_dat) in imx8mp_set_intf_mode() argument
55 struct imx_priv_data *dwmac = plat_dat->bsp_priv; in imx8mp_set_intf_mode()
58 switch (plat_dat->interface) { in imx8mp_set_intf_mode()
75 plat_dat->interface); in imx8mp_set_intf_mode()
85 imx8dxl_set_intf_mode(struct plat_stmmacenet_data *plat_dat) in imx8dxl_set_intf_mode() argument
95 struct plat_stmmacenet_data *plat_dat; in imx_dwmac_init() local
99 plat_dat = dwmac->plat_dat; in imx_dwmac_init()
114 ret = dwmac->ops->set_intf_mode(plat_dat); in imx_dwmac_init()
138 struct plat_stmmacenet_data *plat_dat; in imx_dwmac_fix_speed() local
143 plat_dat = dwmac->plat_dat; in imx_dwmac_fix_speed()
146 (plat_dat->interface == PHY_INTERFACE_MODE_RMII) || in imx_dwmac_fix_speed()
147 (plat_dat->interface == PHY_INTERFACE_MODE_MII)) in imx_dwmac_fix_speed()
215 struct plat_stmmacenet_data *plat_dat; in imx_dwmac_probe() local
229 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in imx_dwmac_probe()
230 if (IS_ERR(plat_dat)) in imx_dwmac_probe()
231 return PTR_ERR(plat_dat); in imx_dwmac_probe()
249 plat_dat->addr64 = dwmac->ops->addr_width; in imx_dwmac_probe()
250 plat_dat->init = imx_dwmac_init; in imx_dwmac_probe()
251 plat_dat->exit = imx_dwmac_exit; in imx_dwmac_probe()
252 plat_dat->fix_mac_speed = imx_dwmac_fix_speed; in imx_dwmac_probe()
253 plat_dat->bsp_priv = dwmac; in imx_dwmac_probe()
254 dwmac->plat_dat = plat_dat; in imx_dwmac_probe()
260 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in imx_dwmac_probe()
268 imx_dwmac_exit(pdev, plat_dat->bsp_priv); in imx_dwmac_probe()
271 stmmac_remove_config_dt(pdev, plat_dat); in imx_dwmac_probe()