Home
last modified time | relevance | path

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

/drivers/net/can/dev/
Ddev.c122 unsigned int bitrate_error; /* difference between current and nominal value */ in can_calc_bittiming() local
158 bitrate_error = abs(bt->bitrate - bitrate); in can_calc_bittiming()
161 if (bitrate_error > best_bitrate_error) in can_calc_bittiming()
165 if (bitrate_error < best_bitrate_error) in can_calc_bittiming()
174 best_bitrate_error = bitrate_error; in can_calc_bittiming()
178 if (bitrate_error == 0 && sample_point_error == 0) in can_calc_bittiming()
186 bitrate_error = (u32)v64; in can_calc_bittiming()
187 if (bitrate_error > CAN_CALC_MAX_ERROR) { in can_calc_bittiming()
190 bitrate_error / 10, bitrate_error % 10); in can_calc_bittiming()
194 bitrate_error / 10, bitrate_error % 10); in can_calc_bittiming()