Lines Matching refs:brp
108 int best_tseg = 0, best_brp = 0, brp = 0; in can_calc_bittiming() local
131 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming()
133 brp = (brp / btc->brp_inc) * btc->brp_inc; in can_calc_bittiming()
134 if ((brp < btc->brp_min) || (brp > btc->brp_max)) in can_calc_bittiming()
136 rate = priv->clock.freq / (brp * tsegall); in can_calc_bittiming()
155 best_brp = brp; in can_calc_bittiming()
197 bt->brp = best_brp; in can_calc_bittiming()
199 bt->bitrate = priv->clock.freq / (bt->brp * (tseg1 + tseg2 + 1)); in can_calc_bittiming()
240 bt->brp = (u32)brp64; in can_fixup_bittiming()
242 if (bt->brp < btc->brp_min || bt->brp > btc->brp_max) in can_fixup_bittiming()
246 bt->bitrate = priv->clock.freq / (bt->brp * alltseg); in can_fixup_bittiming()