Lines Matching full:variant

77 	const struct mediatek_dwmac_variant *variant;  member
498 if (tx_delay_ps < plat->variant->tx_delay_max) { in mediatek_dwmac_config_dt()
507 if (rx_delay_ps < plat->variant->rx_delay_max) { in mediatek_dwmac_config_dt()
526 const struct mediatek_dwmac_variant *variant = plat->variant; in mediatek_dwmac_clk_init() local
529 plat->clks = devm_kcalloc(plat->dev, variant->num_clks, sizeof(*plat->clks), GFP_KERNEL); in mediatek_dwmac_clk_init()
533 for (i = 0; i < variant->num_clks; i++) in mediatek_dwmac_clk_init()
534 plat->clks[i].id = variant->clk_list[i]; in mediatek_dwmac_clk_init()
536 ret = devm_clk_bulk_get(plat->dev, variant->num_clks, plat->clks); in mediatek_dwmac_clk_init()
560 const struct mediatek_dwmac_variant *variant = plat->variant; in mediatek_dwmac_init() local
563 if (variant->dwmac_set_phy_interface) { in mediatek_dwmac_init()
564 ret = variant->dwmac_set_phy_interface(plat); in mediatek_dwmac_init()
571 if (variant->dwmac_set_delay) { in mediatek_dwmac_init()
572 ret = variant->dwmac_set_delay(plat); in mediatek_dwmac_init()
585 const struct mediatek_dwmac_variant *variant = plat->variant; in mediatek_dwmac_clks_config() local
589 ret = clk_bulk_prepare_enable(variant->num_clks, plat->clks); in mediatek_dwmac_clks_config()
602 clk_bulk_disable_unprepare(variant->num_clks, plat->clks); in mediatek_dwmac_clks_config()
618 plat->addr64 = priv_plat->variant->dma_bit_mask; in mediatek_dwmac_common_data()
622 if (priv_plat->variant->dwmac_fix_mac_speed) in mediatek_dwmac_common_data()
623 plat->fix_mac_speed = priv_plat->variant->dwmac_fix_mac_speed; in mediatek_dwmac_common_data()
661 priv_plat->variant = of_device_get_match_data(&pdev->dev); in mediatek_dwmac_probe()
662 if (!priv_plat->variant) { in mediatek_dwmac_probe()
663 dev_err(&pdev->dev, "Missing dwmac-mediatek variant\n"); in mediatek_dwmac_probe()