Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-mt65xx.c579 static int mtk_i2c_max_step_cnt(unsigned int target_speed) in mtk_i2c_max_step_cnt() argument
581 if (target_speed > I2C_MAX_FAST_MODE_PLUS_FREQ) in mtk_i2c_max_step_cnt()
701 unsigned int target_speed, in mtk_i2c_calculate_speed() argument
715 if (target_speed > I2C_MAX_HIGH_SPEED_MODE_FREQ) in mtk_i2c_calculate_speed()
716 target_speed = I2C_MAX_HIGH_SPEED_MODE_FREQ; in mtk_i2c_calculate_speed()
718 max_step_cnt = mtk_i2c_max_step_cnt(target_speed); in mtk_i2c_calculate_speed()
721 opt_div = DIV_ROUND_UP(clk_src >> 1, target_speed); in mtk_i2c_calculate_speed()
738 target_speed, step_cnt - 1, sample_cnt - 1); in mtk_i2c_calculate_speed()
756 if ((clk_src / (2 * sample_cnt * step_cnt)) > target_speed) { in mtk_i2c_calculate_speed()
760 dev_dbg(i2c->dev, "Unsupported speed (%uhz)\n", target_speed); in mtk_i2c_calculate_speed()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dpcie.c1003 u16 target_vector, target_speed; in do_pcie_gen3_transition() local
1018 target_speed = 2500; in do_pcie_gen3_transition()
1021 target_speed = 5000; in do_pcie_gen3_transition()
1024 target_speed = 8000; in do_pcie_gen3_transition()
1032 if (dd->lbus_speed == target_speed) { in do_pcie_gen3_transition()
1421 if (dd->lbus_speed != target_speed || in do_pcie_gen3_transition()
/kernel/linux/linux-5.10/drivers/hwmon/
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.c1185 u32 target_speed[NUM_FAN]; member
1714 if (!data->target_speed[i] || in nct6775_update_pwm_limits()
1720 data->target_speed[i] = reg_t; in nct6775_update_pwm_limits()
2660 data->target_speed[nr] & 0xff); in pwm_update_registers()
2662 reg = (data->target_speed[nr] >> 8) & 0x0f; in pwm_update_registers()
2885 fan_from_reg16(data->target_speed[nr], in show_target_speed()
2908 data->target_speed[nr] = speed; in store_target_speed()
2970 int target = data->target_speed[nr]; in show_speed_tolerance()
3006 high = fan_from_reg16(data->target_speed[nr], in store_speed_tolerance()
3008 low = fan_from_reg16(data->target_speed[nr], in store_speed_tolerance()
/kernel/linux/linux-5.10/sound/pci/rme9652/
Dhdspm.c1635 int current_speed, target_speed; in hdspm_set_rate() local
1695 target_speed = HDSPM_SPEED_SINGLE; in hdspm_set_rate()
1697 target_speed = HDSPM_SPEED_DOUBLE; in hdspm_set_rate()
1699 target_speed = HDSPM_SPEED_QUAD; in hdspm_set_rate()
1733 if (current_speed != target_speed in hdspm_set_rate()
1738 hdspm_speed_names[target_speed], in hdspm_set_rate()