Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/can/dev/
H A Dcalc_bittiming.c30 unsigned int sample_point_error, best_sample_point_error = UINT_MAX; in can_update_sample_point() local
48 sample_point_error = abs(sample_point_nominal - sample_point); in can_update_sample_point()
51 sample_point_error < best_sample_point_error) { in can_update_sample_point()
53 best_sample_point_error = sample_point_error; in can_update_sample_point()
72 unsigned int sample_point_error; /* difference between current and nominal value */ in can_calc_bittiming() local
118 &tseg1, &tseg2, &sample_point_error); in can_calc_bittiming()
119 if (sample_point_error >= best_sample_point_error) in can_calc_bittiming()
122 best_sample_point_error = sample_point_error; in can_calc_bittiming()
127 if (bitrate_error == 0 && sample_point_error == 0) in can_calc_bittiming()