Home
last modified time | relevance | path

Searched refs:sample_cnt (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/i2c/busses/
Di2c-mt65xx.c445 unsigned int sample_cnt; in mtk_i2c_calculate_speed() local
472 for (sample_cnt = 1; sample_cnt <= MAX_SAMPLE_CNT_DIV; sample_cnt++) { in mtk_i2c_calculate_speed()
473 step_cnt = DIV_ROUND_UP(opt_div, sample_cnt); in mtk_i2c_calculate_speed()
474 cnt_mul = step_cnt * sample_cnt; in mtk_i2c_calculate_speed()
480 base_sample_cnt = sample_cnt; in mtk_i2c_calculate_speed()
487 sample_cnt = base_sample_cnt; in mtk_i2c_calculate_speed()
490 if ((clk_src / (2 * sample_cnt * step_cnt)) > target_speed) { in mtk_i2c_calculate_speed()
499 *timing_sample_cnt = sample_cnt - 1; in mtk_i2c_calculate_speed()
508 unsigned int sample_cnt; in mtk_i2c_set_speed() local
528 &step_cnt, &sample_cnt); in mtk_i2c_set_speed()
[all …]
/Linux-v5.4/net/ipv4/
Dtcp_cdg.c91 u16 sample_cnt; member
172 if (ca->sample_cnt < 8) { in tcp_cdg_hystart_update()
173 ca->sample_cnt++; in tcp_cdg_hystart_update()
281 ca->sample_cnt = 0; in tcp_cdg_cong_avoid()
Dtcp_cubic.c97 u8 sample_cnt; /* number of samples to decide curr_rtt */ member
137 ca->sample_cnt = 0; in bictcp_hystart_reset()
407 if (ca->sample_cnt < HYSTART_MIN_SAMPLES) { in hystart_update()
411 ca->sample_cnt++; in hystart_update()