Lines Matching refs:timing_data
226 int can_mcan_set_timing_data(const struct device *dev, const struct can_timing *timing_data) in can_mcan_set_timing_data() argument
240 dbtp |= FIELD_PREP(CAN_MCAN_DBTP_DSJW, timing_data->sjw - 1UL) | in can_mcan_set_timing_data()
241 FIELD_PREP(CAN_MCAN_DBTP_DTSEG1, timing_data->phase_seg1 - 1UL) | in can_mcan_set_timing_data()
242 FIELD_PREP(CAN_MCAN_DBTP_DTSEG2, timing_data->phase_seg2 - 1UL) | in can_mcan_set_timing_data()
243 FIELD_PREP(CAN_MCAN_DBTP_DBRP, timing_data->prescaler - 1UL); in can_mcan_set_timing_data()
245 if (timing_data->prescaler == 1U || timing_data->prescaler == 2U) { in can_mcan_set_timing_data()
250 tdco = CAN_CALC_TDCO(timing_data, 0U, tdco_max); in can_mcan_set_timing_data()
259 timing_data->prescaler); in can_mcan_set_timing_data()
1376 struct can_timing timing_data = { 0 }; in can_mcan_init() local
1480 err = can_calc_timing_data(dev, &timing_data, config->common.bitrate_data, in can_mcan_init()
1497 err = can_set_timing_data(dev, &timing_data); in can_mcan_init()