Lines Matching refs:speed

85 static int aq_fw2x_set_link_speed(struct aq_hw_s *self, u32 speed);
125 static enum hw_atl_fw2x_rate link_speed_mask_2fw2x_ratemask(u32 speed) in link_speed_mask_2fw2x_ratemask() argument
129 if (speed & AQ_NIC_RATE_10G) in link_speed_mask_2fw2x_ratemask()
132 if (speed & AQ_NIC_RATE_5G) in link_speed_mask_2fw2x_ratemask()
135 if (speed & AQ_NIC_RATE_2G5) in link_speed_mask_2fw2x_ratemask()
138 if (speed & AQ_NIC_RATE_1G) in link_speed_mask_2fw2x_ratemask()
141 if (speed & AQ_NIC_RATE_100M) in link_speed_mask_2fw2x_ratemask()
147 static u32 fw2x_to_eee_mask(u32 speed) in fw2x_to_eee_mask() argument
151 if (speed & HW_ATL_FW2X_CAP_EEE_10G_MASK) in fw2x_to_eee_mask()
153 if (speed & HW_ATL_FW2X_CAP_EEE_5G_MASK) in fw2x_to_eee_mask()
155 if (speed & HW_ATL_FW2X_CAP_EEE_2G5_MASK) in fw2x_to_eee_mask()
157 if (speed & HW_ATL_FW2X_CAP_EEE_1G_MASK) in fw2x_to_eee_mask()
163 static u32 eee_mask_to_fw2x(u32 speed) in eee_mask_to_fw2x() argument
167 if (speed & AQ_NIC_RATE_EEE_10G) in eee_mask_to_fw2x()
169 if (speed & AQ_NIC_RATE_EEE_5G) in eee_mask_to_fw2x()
171 if (speed & AQ_NIC_RATE_EEE_2G5) in eee_mask_to_fw2x()
173 if (speed & AQ_NIC_RATE_EEE_1G) in eee_mask_to_fw2x()
179 static int aq_fw2x_set_link_speed(struct aq_hw_s *self, u32 speed) in aq_fw2x_set_link_speed() argument
181 u32 val = link_speed_mask_2fw2x_ratemask(speed); in aq_fw2x_set_link_speed()
251 u32 speed; in aq_fw2x_update_link_status() local
254 speed = mpi_state & (FW2X_RATE_100M | FW2X_RATE_1G | in aq_fw2x_update_link_status()
258 if (speed) { in aq_fw2x_update_link_status()
259 if (speed & FW2X_RATE_10G) in aq_fw2x_update_link_status()
261 else if (speed & FW2X_RATE_5G) in aq_fw2x_update_link_status()
263 else if (speed & FW2X_RATE_2G5) in aq_fw2x_update_link_status()
265 else if (speed & FW2X_RATE_1G) in aq_fw2x_update_link_status()
267 else if (speed & FW2X_RATE_100M) in aq_fw2x_update_link_status()
479 static int aq_fw2x_set_eee_rate(struct aq_hw_s *self, u32 speed) in aq_fw2x_set_eee_rate() argument
483 aq_fw2x_upd_eee_rate_bits(self, &mpi_opts, speed); in aq_fw2x_set_eee_rate()