Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/cpufreq/
Dsa1100-cpufreq.c113 static void sa1100_update_dram_timings(int current_speed, int new_speed) in sa1100_update_dram_timings() argument
119 if (new_speed == settings->speed) in sa1100_update_dram_timings()
127 __func__, new_speed); in sa1100_update_dram_timings()
131 if (new_speed > current_speed) { in sa1100_update_dram_timings()
/Linux-v5.15/drivers/macintosh/
Dtherm_adt746x.c240 int new_speed = 0; in update_fans_speed() local
248 new_speed = fan_speed + ((var-1)*step); in update_fans_speed()
250 if (new_speed < fan_speed) in update_fans_speed()
251 new_speed = fan_speed; in update_fans_speed()
252 if (new_speed > 255) in update_fans_speed()
253 new_speed = 255; in update_fans_speed()
258 new_speed, var, in update_fans_speed()
260 write_both_fan_speed(th, new_speed); in update_fans_speed()
/Linux-v5.15/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-v5.15/drivers/net/pcs/
Dpcs-xpcs.c570 int new_speed = SPEED_UNKNOWN; in xpcs_get_max_xlgmii_speed() local
576 new_speed = SPEED_25000; in xpcs_get_max_xlgmii_speed()
582 new_speed = SPEED_40000; in xpcs_get_max_xlgmii_speed()
592 new_speed = SPEED_50000; in xpcs_get_max_xlgmii_speed()
603 new_speed = SPEED_100000; in xpcs_get_max_xlgmii_speed()
609 if (new_speed > speed) in xpcs_get_max_xlgmii_speed()
610 speed = new_speed; in xpcs_get_max_xlgmii_speed()
/Linux-v5.15/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-v5.15/drivers/net/ethernet/faraday/
Dftgmac100.c1000 int new_speed; in ftgmac100_adjust_link() local
1004 new_speed = 0; in ftgmac100_adjust_link()
1006 new_speed = phydev->speed; in ftgmac100_adjust_link()
1028 if (new_speed || priv->cur_speed) in ftgmac100_adjust_link()
1031 priv->cur_speed = new_speed; in ftgmac100_adjust_link()
1037 if (!new_speed) in ftgmac100_adjust_link()
/Linux-v5.15/drivers/hid/
Dwacom_sys.c1837 u8 new_speed; in wacom_store_speed() local
1839 if (kstrtou8(buf, 0, &new_speed)) in wacom_store_speed()
1842 if (new_speed != 0 && new_speed != 1) in wacom_store_speed()
1845 wacom_bt_query_tablet_data(hdev, new_speed, &wacom->wacom_wac.features); in wacom_store_speed()
/Linux-v5.15/drivers/net/ethernet/intel/i40e/
Di40e_main.c6903 enum i40e_aq_link_speed new_speed; in i40e_print_link_message() local
6912 new_speed = pf->hw.phy.link_info.link_speed; in i40e_print_link_message()
6914 new_speed = I40E_LINK_SPEED_UNKNOWN; in i40e_print_link_message()
6916 if ((vsi->current_isup == isup) && (vsi->current_speed == new_speed)) in i40e_print_link_message()
6919 vsi->current_speed = new_speed; in i40e_print_link_message()