Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/can/dev/
Dbittiming.c19 u64 brp64; in can_fixup_bittiming() local
29 brp64 = (u64)priv->clock.freq * (u64)bt->tq; in can_fixup_bittiming()
31 do_div(brp64, btc->brp_inc); in can_fixup_bittiming()
32 brp64 += 500000000UL - 1; in can_fixup_bittiming()
33 do_div(brp64, 1000000000UL); /* the practicable BRP */ in can_fixup_bittiming()
35 brp64 *= btc->brp_inc; in can_fixup_bittiming()
36 bt->brp = (u32)brp64; in can_fixup_bittiming()