Lines Matching refs:plat_dat
101 int (*set_mode)(struct plat_stmmacenet_data *plat_dat);
110 static int stm32_dwmac_init(struct plat_stmmacenet_data *plat_dat) in stm32_dwmac_init() argument
112 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32_dwmac_init()
116 ret = dwmac->ops->set_mode(plat_dat); in stm32_dwmac_init()
167 static int stm32mp1_set_mode(struct plat_stmmacenet_data *plat_dat) in stm32mp1_set_mode() argument
169 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32mp1_set_mode()
175 switch (plat_dat->interface) { in stm32mp1_set_mode()
214 plat_dat->interface); in stm32mp1_set_mode()
228 static int stm32mcu_set_mode(struct plat_stmmacenet_data *plat_dat) in stm32mcu_set_mode() argument
230 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32mcu_set_mode()
234 switch (plat_dat->interface) { in stm32mcu_set_mode()
245 plat_dat->interface); in stm32mcu_set_mode()
364 struct plat_stmmacenet_data *plat_dat; in stm32_dwmac_probe() local
374 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in stm32_dwmac_probe()
375 if (IS_ERR(plat_dat)) in stm32_dwmac_probe()
376 return PTR_ERR(plat_dat); in stm32_dwmac_probe()
400 plat_dat->bsp_priv = dwmac; in stm32_dwmac_probe()
402 ret = stm32_dwmac_init(plat_dat); in stm32_dwmac_probe()
406 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in stm32_dwmac_probe()
415 stmmac_remove_config_dt(pdev, plat_dat); in stm32_dwmac_probe()