Home
last modified time | relevance | path

Searched refs:new_speed (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/macintosh/
Dtherm_adt746x.c241 int new_speed = 0; in update_fans_speed() local
249 new_speed = fan_speed + ((var-1)*step); in update_fans_speed()
251 if (new_speed < fan_speed) in update_fans_speed()
252 new_speed = fan_speed; in update_fans_speed()
253 if (new_speed > 255) in update_fans_speed()
254 new_speed = 255; in update_fans_speed()
259 new_speed, var, in update_fans_speed()
261 write_both_fan_speed(th, new_speed); in update_fans_speed()
/linux-6.6.21/drivers/media/pci/ivtv/
Divtv-ioctl.c192 static int ivtv_validate_speed(int cur_speed, int new_speed) in ivtv_validate_speed() argument
194 int fact = new_speed < 0 ? -1 : 1; in ivtv_validate_speed()
199 if (new_speed < 0) in ivtv_validate_speed()
200 new_speed = -new_speed; in ivtv_validate_speed()
204 if (cur_speed <= new_speed) { in ivtv_validate_speed()
205 if (new_speed > 1500) in ivtv_validate_speed()
207 if (new_speed > 1000) in ivtv_validate_speed()
211 if (new_speed >= 2000) in ivtv_validate_speed()
213 if (new_speed >= 1500) in ivtv_validate_speed()
215 if (new_speed >= 1000) in ivtv_validate_speed()
[all …]
/linux-6.6.21/drivers/net/pcs/
Dpcs-xpcs.c542 int new_speed = SPEED_UNKNOWN; in xpcs_get_max_xlgmii_speed() local
548 new_speed = SPEED_25000; in xpcs_get_max_xlgmii_speed()
554 new_speed = SPEED_40000; in xpcs_get_max_xlgmii_speed()
564 new_speed = SPEED_50000; in xpcs_get_max_xlgmii_speed()
575 new_speed = SPEED_100000; in xpcs_get_max_xlgmii_speed()
581 if (new_speed > speed) in xpcs_get_max_xlgmii_speed()
582 speed = new_speed; in xpcs_get_max_xlgmii_speed()
/linux-6.6.21/drivers/message/fusion/
Dmptfc.c684 u8 old_speed, new_speed, state; in mptfc_display_port_link_speed() local
691 new_speed = pp0dest->CurrentSpeed; in mptfc_display_port_link_speed()
695 new_speed != MPI_FCPORTPAGE0_CURRENT_SPEED_UNKNOWN) { in mptfc_display_port_link_speed()
701 new = new_speed == MPI_FCPORTPAGE0_CURRENT_SPEED_1GBIT ? "1 Gbps" : in mptfc_display_port_link_speed()
702 new_speed == MPI_FCPORTPAGE0_CURRENT_SPEED_2GBIT ? "2 Gbps" : in mptfc_display_port_link_speed()
703 new_speed == MPI_FCPORTPAGE0_CURRENT_SPEED_4GBIT ? "4 Gbps" : in mptfc_display_port_link_speed()
709 else if (old_speed != new_speed) in mptfc_display_port_link_speed()
714 ioc->fc_link_speed[portnum] = new_speed; in mptfc_display_port_link_speed()
/linux-6.6.21/drivers/net/ethernet/faraday/
Dftgmac100.c1368 int new_speed; in ftgmac100_adjust_link() local
1372 new_speed = 0; in ftgmac100_adjust_link()
1374 new_speed = phydev->speed; in ftgmac100_adjust_link()
1396 if (new_speed || priv->cur_speed) in ftgmac100_adjust_link()
1399 priv->cur_speed = new_speed; in ftgmac100_adjust_link()
1405 if (!new_speed) in ftgmac100_adjust_link()
/linux-6.6.21/drivers/hid/
Dwacom_sys.c1832 u8 new_speed; in wacom_store_speed() local
1834 if (kstrtou8(buf, 0, &new_speed)) in wacom_store_speed()
1837 if (new_speed != 0 && new_speed != 1) in wacom_store_speed()
1840 wacom_bt_query_tablet_data(hdev, new_speed, &wacom->wacom_wac.features); in wacom_store_speed()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_main.c7241 enum i40e_aq_link_speed new_speed; in i40e_print_link_message() local
7250 new_speed = pf->hw.phy.link_info.link_speed; in i40e_print_link_message()
7252 new_speed = I40E_LINK_SPEED_UNKNOWN; in i40e_print_link_message()
7254 if ((vsi->current_isup == isup) && (vsi->current_speed == new_speed)) in i40e_print_link_message()
7257 vsi->current_speed = new_speed; in i40e_print_link_message()