Lines Matching refs:variant
51 const struct mediatek_dwmac_variant *variant; member
94 plat->num_clks_to_config = plat->variant->num_clks - 1; in mt2712_set_interface()
290 if (tx_delay_ps < plat->variant->tx_delay_max) { in mediatek_dwmac_config_dt()
299 if (rx_delay_ps < plat->variant->rx_delay_max) { in mediatek_dwmac_config_dt()
317 const struct mediatek_dwmac_variant *variant = plat->variant; in mediatek_dwmac_clk_init() local
318 int i, num = variant->num_clks; in mediatek_dwmac_clk_init()
325 plat->clks[i].id = variant->clk_list[i]; in mediatek_dwmac_clk_init()
327 plat->num_clks_to_config = variant->num_clks; in mediatek_dwmac_clk_init()
335 const struct mediatek_dwmac_variant *variant = plat->variant; in mediatek_dwmac_init() local
338 ret = dma_set_mask_and_coherent(plat->dev, DMA_BIT_MASK(variant->dma_bit_mask)); in mediatek_dwmac_init()
344 ret = variant->dwmac_set_phy_interface(plat); in mediatek_dwmac_init()
350 ret = variant->dwmac_set_delay(plat); in mediatek_dwmac_init()
389 priv_plat->variant = of_device_get_match_data(&pdev->dev); in mediatek_dwmac_probe()
390 if (!priv_plat->variant) { in mediatek_dwmac_probe()