Lines Matching full:plat
49 struct plat_stmmacenet_data *plat; member
54 static int thead_dwmac_set_phy_if(struct plat_stmmacenet_data *plat) in thead_dwmac_set_phy_if() argument
56 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_phy_if()
59 switch (plat->mac_interface) { in thead_dwmac_set_phy_if()
71 plat->mac_interface); in thead_dwmac_set_phy_if()
79 static int thead_dwmac_set_txclk_dir(struct plat_stmmacenet_data *plat) in thead_dwmac_set_txclk_dir() argument
81 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_txclk_dir()
84 switch (plat->mac_interface) { in thead_dwmac_set_txclk_dir()
96 plat->mac_interface); in thead_dwmac_set_txclk_dir()
108 struct plat_stmmacenet_data *plat; in thead_set_clk_tx_rate() local
113 plat = dwmac->plat; in thead_set_clk_tx_rate()
115 switch (plat->mac_interface) { in thead_set_clk_tx_rate()
124 rate = clk_get_rate(plat->stmmac_clk); in thead_set_clk_tx_rate()
147 plat->mac_interface); in thead_set_clk_tx_rate()
152 static int thead_dwmac_enable_clk(struct plat_stmmacenet_data *plat) in thead_dwmac_enable_clk() argument
154 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_enable_clk()
157 switch (plat->mac_interface) { in thead_dwmac_enable_clk()
174 plat->mac_interface); in thead_dwmac_enable_clk()
188 ret = thead_dwmac_set_phy_if(dwmac->plat); in thead_dwmac_init()
192 ret = thead_dwmac_set_txclk_dir(dwmac->plat); in thead_dwmac_init()
206 return thead_dwmac_enable_clk(dwmac->plat); in thead_dwmac_init()
212 struct plat_stmmacenet_data *plat; in thead_dwmac_probe() local
222 plat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac); in thead_dwmac_probe()
223 if (IS_ERR(plat)) in thead_dwmac_probe()
224 return dev_err_probe(&pdev->dev, PTR_ERR(plat), in thead_dwmac_probe()
237 dwmac->plat = plat; in thead_dwmac_probe()
239 plat->bsp_priv = dwmac; in thead_dwmac_probe()
240 plat->set_clk_tx_rate = thead_set_clk_tx_rate; in thead_dwmac_probe()
241 plat->init = thead_dwmac_init; in thead_dwmac_probe()
243 return devm_stmmac_pltfr_probe(pdev, plat, &stmmac_res); in thead_dwmac_probe()