Lines Matching defs:context
420 struct at803x_context *context)
422 context->bmcr = phy_read(phydev, MII_BMCR);
423 context->advertise = phy_read(phydev, MII_ADVERTISE);
424 context->control1000 = phy_read(phydev, MII_CTRL1000);
425 context->int_enable = phy_read(phydev, AT803X_INTR_ENABLE);
426 context->smart_speed = phy_read(phydev, AT803X_SMART_SPEED);
427 context->led_control = phy_read(phydev, AT803X_LED_CONTROL);
432 const struct at803x_context *context)
434 phy_write(phydev, MII_BMCR, context->bmcr);
435 phy_write(phydev, MII_ADVERTISE, context->advertise);
436 phy_write(phydev, MII_CTRL1000, context->control1000);
437 phy_write(phydev, AT803X_INTR_ENABLE, context->int_enable);
438 phy_write(phydev, AT803X_SMART_SPEED, context->smart_speed);
439 phy_write(phydev, AT803X_LED_CONTROL, context->led_control);
1152 struct at803x_context context;
1154 at803x_context_save(phydev, &context);
1161 at803x_context_restore(phydev, &context);