Lines Matching refs:context
66 struct at803x_context *context) in at803x_context_save() argument
68 context->bmcr = phy_read(phydev, MII_BMCR); in at803x_context_save()
69 context->advertise = phy_read(phydev, MII_ADVERTISE); in at803x_context_save()
70 context->control1000 = phy_read(phydev, MII_CTRL1000); in at803x_context_save()
71 context->int_enable = phy_read(phydev, AT803X_INTR_ENABLE); in at803x_context_save()
72 context->smart_speed = phy_read(phydev, AT803X_SMART_SPEED); in at803x_context_save()
73 context->led_control = phy_read(phydev, AT803X_LED_CONTROL); in at803x_context_save()
78 const struct at803x_context *context) in at803x_context_restore() argument
80 phy_write(phydev, MII_BMCR, context->bmcr); in at803x_context_restore()
81 phy_write(phydev, MII_ADVERTISE, context->advertise); in at803x_context_restore()
82 phy_write(phydev, MII_CTRL1000, context->control1000); in at803x_context_restore()
83 phy_write(phydev, AT803X_INTR_ENABLE, context->int_enable); in at803x_context_restore()
84 phy_write(phydev, AT803X_SMART_SPEED, context->smart_speed); in at803x_context_restore()
85 phy_write(phydev, AT803X_LED_CONTROL, context->led_control); in at803x_context_restore()
273 struct at803x_context context; in at803x_link_change_notify() local
275 at803x_context_save(phydev, &context); in at803x_link_change_notify()
282 at803x_context_restore(phydev, &context); in at803x_link_change_notify()