Lines Matching defs:eth

108  * @eth: Ethernet quirks
111 struct at91_pm_quirk_eth eth[AT91_PM_MAX_ETH];
321 static bool at91_pm_eth_quirk_is_valid(struct at91_pm_quirk_eth *eth)
326 if (!eth->np)
330 if (!(eth->modes & BIT(soc_pm.data.mode)))
333 if (!eth->dev) {
335 pdev = of_find_device_by_node(eth->np);
338 /* put_device(eth->dev) is called at the end of suspend. */
339 eth->dev = &pdev->dev;
343 if (!device_may_wakeup(eth->dev))
351 struct at91_pm_quirk_eth *eth;
356 * soc_pm.quirks.eth[].np cannot handle WoL packets while in ULP0, ULP1
365 eth = &soc_pm.quirks.eth[i];
367 if (!at91_pm_eth_quirk_is_valid(eth))
376 if (suspend && eth->dns_modes & BIT(soc_pm.data.mode)) {
382 if (ws->dev == eth->dev)
398 put_device(eth->dev);
399 eth->dev = NULL;
400 /* No need to revert clock settings for this eth. */
407 clk_bulk_disable_unprepare(AT91_PM_ETH_MAX_CLK, eth->clks);
410 eth->clks);
414 * Release the reference to eth->dev taken in
417 put_device(eth->dev);
418 eth->dev = NULL;
431 eth = &soc_pm.quirks.eth[j];
433 if (!at91_pm_eth_quirk_is_valid(eth))
436 tmp = clk_bulk_prepare_enable(AT91_PM_ETH_MAX_CLK, eth->clks);
439 j == AT91_PM_G_ETH ? "geth" : "eth");
444 * Release the reference to eth->dev taken in
447 put_device(eth->dev);
448 eth->dev = NULL;
1222 struct at91_pm_quirk_eth *gmac = &soc_pm.quirks.eth[AT91_PM_G_ETH];
1223 struct at91_pm_quirk_eth *emac = &soc_pm.quirks.eth[AT91_PM_E_ETH];
1547 soc_pm.quirks.eth[AT91_PM_G_ETH].modes = BIT(AT91_PM_ULP0) |
1551 soc_pm.quirks.eth[AT91_PM_G_ETH].dns_modes = BIT(AT91_PM_ULP0) |
1598 soc_pm.quirks.eth[AT91_PM_G_ETH].modes = BIT(AT91_PM_ULP0) |
1605 soc_pm.quirks.eth[AT91_PM_G_ETH].dns_modes = BIT(AT91_PM_ULP0) |
1645 soc_pm.quirks.eth[AT91_PM_E_ETH].modes = BIT(AT91_PM_ULP1);
1646 soc_pm.quirks.eth[AT91_PM_G_ETH].modes = BIT(AT91_PM_ULP1);