Home
last modified time | relevance | path

Searched refs:target_speed (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/i2c/busses/
Di2c-mt65xx.c651 static int mtk_i2c_max_step_cnt(unsigned int target_speed) in mtk_i2c_max_step_cnt() argument
653 if (target_speed > I2C_MAX_FAST_MODE_PLUS_FREQ) in mtk_i2c_max_step_cnt()
799 unsigned int target_speed, in mtk_i2c_calculate_speed() argument
814 if (target_speed > I2C_MAX_HIGH_SPEED_MODE_FREQ) in mtk_i2c_calculate_speed()
815 target_speed = I2C_MAX_HIGH_SPEED_MODE_FREQ; in mtk_i2c_calculate_speed()
817 max_step_cnt = mtk_i2c_max_step_cnt(target_speed); in mtk_i2c_calculate_speed()
820 opt_div = DIV_ROUND_UP(clk_src >> 1, target_speed); in mtk_i2c_calculate_speed()
838 target_speed, step_cnt - 1, sample_cnt - 1); in mtk_i2c_calculate_speed()
857 target_speed) { in mtk_i2c_calculate_speed()
861 dev_dbg(i2c->dev, "Unsupported speed (%uhz)\n", target_speed); in mtk_i2c_calculate_speed()
[all …]
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dpcie.c947 u16 target_vector, target_speed; in do_pcie_gen3_transition() local
962 target_speed = 2500; in do_pcie_gen3_transition()
965 target_speed = 5000; in do_pcie_gen3_transition()
968 target_speed = 8000; in do_pcie_gen3_transition()
976 if (dd->lbus_speed == target_speed) { in do_pcie_gen3_transition()
1365 if (dd->lbus_speed != target_speed || in do_pcie_gen3_transition()
/linux-6.6.21/drivers/hwmon/
Dnct6775.h143 u32 target_speed[NUM_FAN]; member
Dw83795.c368 u16 target_speed[8]; /* member
547 for (i = 0; i < ARRAY_SIZE(data->target_speed); i++) { in w83795_update_pwm_config()
548 data->target_speed[i] = in w83795_update_pwm_config()
550 data->target_speed[i] |= in w83795_update_pwm_config()
1137 tmp = fan_from_reg(data->target_speed[index]); in show_fanin()
1168 data->target_speed[index] = val; in store_fanin()
Dnct6775-core.c1500 if (!data->target_speed[i] || in nct6775_update_pwm_limits()
1508 data->target_speed[i] = reg_t; in nct6775_update_pwm_limits()
2630 data->target_speed[nr] & 0xff); in pwm_update_registers()
2634 reg = (data->target_speed[nr] >> 8) & 0x0f; in pwm_update_registers()
2902 fan_from_reg16(data->target_speed[nr], in show_target_speed()
2925 data->target_speed[nr] = speed; in store_target_speed()
2993 target = data->target_speed[nr]; in show_speed_tolerance()
3028 high = fan_from_reg16(data->target_speed[nr], data->fan_div[nr]) + val; in store_speed_tolerance()
3029 low = fan_from_reg16(data->target_speed[nr], data->fan_div[nr]) - val; in store_speed_tolerance()
/linux-6.6.21/sound/pci/rme9652/
Dhdspm.c1634 int current_speed, target_speed; in hdspm_set_rate() local
1694 target_speed = HDSPM_SPEED_SINGLE; in hdspm_set_rate()
1696 target_speed = HDSPM_SPEED_DOUBLE; in hdspm_set_rate()
1698 target_speed = HDSPM_SPEED_QUAD; in hdspm_set_rate()
1732 if (current_speed != target_speed in hdspm_set_rate()
1737 hdspm_speed_names[target_speed], in hdspm_set_rate()