Lines Matching refs:dpmac_state
179 struct dpmac_link_state *dpmac_state = &mac->state; in dpaa2_mac_config() local
183 dpmac_state->options |= DPMAC_LINK_OPT_AUTONEG; in dpaa2_mac_config()
185 dpmac_state->options &= ~DPMAC_LINK_OPT_AUTONEG; in dpaa2_mac_config()
188 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_config()
201 struct dpmac_link_state *dpmac_state = &mac->state; in dpaa2_mac_link_up() local
204 dpmac_state->up = 1; in dpaa2_mac_link_up()
206 dpmac_state->rate = speed; in dpaa2_mac_link_up()
209 dpmac_state->options |= DPMAC_LINK_OPT_HALF_DUPLEX; in dpaa2_mac_link_up()
211 dpmac_state->options &= ~DPMAC_LINK_OPT_HALF_DUPLEX; in dpaa2_mac_link_up()
214 dpmac_state->options |= DPMAC_LINK_OPT_PAUSE; in dpaa2_mac_link_up()
216 dpmac_state->options &= ~DPMAC_LINK_OPT_PAUSE; in dpaa2_mac_link_up()
219 dpmac_state->options |= DPMAC_LINK_OPT_ASYM_PAUSE; in dpaa2_mac_link_up()
221 dpmac_state->options &= ~DPMAC_LINK_OPT_ASYM_PAUSE; in dpaa2_mac_link_up()
224 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_up()
235 struct dpmac_link_state *dpmac_state = &mac->state; in dpaa2_mac_link_down() local
238 dpmac_state->up = 0; in dpaa2_mac_link_down()
240 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_down()