Lines Matching refs:speed
162 uint16_t speed, duplex; in qc_ar8031_update_link_state() local
186 speed = reg_value & SPEC_STATUS_REG_SPEED_MASK; in qc_ar8031_update_link_state()
189 switch (speed | duplex) { in qc_ar8031_update_link_state()
191 data->state.speed = LINK_FULL_10BASE_T; in qc_ar8031_update_link_state()
194 data->state.speed = LINK_HALF_10BASE_T; in qc_ar8031_update_link_state()
197 data->state.speed = LINK_FULL_100BASE_T; in qc_ar8031_update_link_state()
200 data->state.speed = LINK_HALF_100BASE_T; in qc_ar8031_update_link_state()
203 data->state.speed = LINK_FULL_1000BASE_T; in qc_ar8031_update_link_state()
206 data->state.speed = LINK_HALF_1000BASE_T; in qc_ar8031_update_link_state()
211 PHY_LINK_IS_SPEED_1000M(data->state.speed) in qc_ar8031_update_link_state()
213 : (PHY_LINK_IS_SPEED_100M(data->state.speed) ? "100" : "10"), in qc_ar8031_update_link_state()
214 PHY_LINK_IS_FULL_DUPLEX(data->state.speed) ? "full" : "half"); in qc_ar8031_update_link_state()
470 data->state.speed = speed_to_phy_link_speed[cfg->fixed_speed]; in qc_ar8031_init()