Lines Matching defs:state
87 * @state: software phy status
89 * This checks that we can represent the state stored in @state can be
93 int swphy_validate_state(const struct fixed_phy_status *state)
97 if (state->link) {
98 err = swphy_decode_speed(state->speed);
109 * swphy_read_reg - return a MII register from the fixed phy state
111 * @state: fixed phy status
113 * Return the MII @reg register generated from the fixed phy state @state.
115 int swphy_read_reg(int reg, const struct fixed_phy_status *state)
126 speed_index = swphy_decode_speed(state->speed);
130 duplex_index = state->duplex ? SWMII_DUPLEX_FULL : SWMII_DUPLEX_HALF;
135 if (state->link) {
141 if (state->pause)
144 if (state->asym_pause)