Lines Matching full:plat
52 struct plat_stmmacenet_data *plat; member
57 static int thead_dwmac_set_phy_if(struct plat_stmmacenet_data *plat) in thead_dwmac_set_phy_if() argument
59 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_phy_if()
62 switch (plat->mac_interface) { in thead_dwmac_set_phy_if()
74 plat->mac_interface); in thead_dwmac_set_phy_if()
82 static int thead_dwmac_set_txclk_dir(struct plat_stmmacenet_data *plat) in thead_dwmac_set_txclk_dir() argument
84 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_txclk_dir()
87 switch (plat->mac_interface) { in thead_dwmac_set_txclk_dir()
99 plat->mac_interface); in thead_dwmac_set_txclk_dir()
109 struct plat_stmmacenet_data *plat; in thead_dwmac_fix_speed() local
114 plat = dwmac->plat; in thead_dwmac_fix_speed()
116 switch (plat->mac_interface) { in thead_dwmac_fix_speed()
125 rate = clk_get_rate(plat->stmmac_clk); in thead_dwmac_fix_speed()
155 plat->mac_interface); in thead_dwmac_fix_speed()
160 static int thead_dwmac_enable_clk(struct plat_stmmacenet_data *plat) in thead_dwmac_enable_clk() argument
162 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_enable_clk()
165 switch (plat->mac_interface) { in thead_dwmac_enable_clk()
182 plat->mac_interface); in thead_dwmac_enable_clk()
196 ret = thead_dwmac_set_phy_if(dwmac->plat); in thead_dwmac_init()
200 ret = thead_dwmac_set_txclk_dir(dwmac->plat); in thead_dwmac_init()
214 return thead_dwmac_enable_clk(dwmac->plat); in thead_dwmac_init()
220 struct plat_stmmacenet_data *plat; in thead_dwmac_probe() local
230 plat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac); in thead_dwmac_probe()
231 if (IS_ERR(plat)) in thead_dwmac_probe()
232 return dev_err_probe(&pdev->dev, PTR_ERR(plat), in thead_dwmac_probe()
245 dwmac->plat = plat; in thead_dwmac_probe()
247 plat->bsp_priv = dwmac; in thead_dwmac_probe()
248 plat->fix_mac_speed = thead_dwmac_fix_speed; in thead_dwmac_probe()
249 plat->init = thead_dwmac_init; in thead_dwmac_probe()
251 return devm_stmmac_pltfr_probe(pdev, plat, &stmmac_res); in thead_dwmac_probe()