Lines Matching refs:btr
209 u32 btr = 0; in ctucan_set_btr() local
234 btr = FIELD_PREP(REG_BTR_PROP, prop_seg); in ctucan_set_btr()
235 btr |= FIELD_PREP(REG_BTR_PH1, phase_seg1); in ctucan_set_btr()
236 btr |= FIELD_PREP(REG_BTR_PH2, bt->phase_seg2); in ctucan_set_btr()
237 btr |= FIELD_PREP(REG_BTR_BRP, bt->brp); in ctucan_set_btr()
238 btr |= FIELD_PREP(REG_BTR_SJW, bt->sjw); in ctucan_set_btr()
240 ctucan_write32(priv, CTUCANFD_BTR, btr); in ctucan_set_btr()
242 btr = FIELD_PREP(REG_BTR_FD_PROP_FD, prop_seg); in ctucan_set_btr()
243 btr |= FIELD_PREP(REG_BTR_FD_PH1_FD, phase_seg1); in ctucan_set_btr()
244 btr |= FIELD_PREP(REG_BTR_FD_PH2_FD, bt->phase_seg2); in ctucan_set_btr()
245 btr |= FIELD_PREP(REG_BTR_FD_BRP_FD, bt->brp); in ctucan_set_btr()
246 btr |= FIELD_PREP(REG_BTR_FD_SJW_FD, bt->sjw); in ctucan_set_btr()
248 ctucan_write32(priv, CTUCANFD_BTR_FD, btr); in ctucan_set_btr()