Lines Matching refs:eth_ctx
247 struct eth_context *eth_ctx = dev->data; in eth_mcux_device_pm_action() local
250 if (!device_is_ready(eth_ctx->clock_dev)) { in eth_mcux_device_pm_action()
261 ret = net_if_suspend(eth_ctx->iface); in eth_mcux_device_pm_action()
266 eth_mcux_phy_enter_reset(eth_ctx); in eth_mcux_device_pm_action()
267 eth_mcux_phy_stop(eth_ctx); in eth_mcux_device_pm_action()
269 ENET_Reset(eth_ctx->base); in eth_mcux_device_pm_action()
270 ENET_Deinit(eth_ctx->base); in eth_mcux_device_pm_action()
271 clock_control_off(eth_ctx->clock_dev, in eth_mcux_device_pm_action()
272 (clock_control_subsys_t)eth_ctx->clock); in eth_mcux_device_pm_action()
277 clock_control_on(eth_ctx->clock_dev, in eth_mcux_device_pm_action()
278 (clock_control_subsys_t)eth_ctx->clock); in eth_mcux_device_pm_action()
280 net_if_resume(eth_ctx->iface); in eth_mcux_device_pm_action()