Searched refs:tseg2 (Results 1 – 2 of 2) sorted by relevance
114 uint16_t tseg1, tseg2; in update_sampling_pnt() local117 tseg2 = total_tq - (total_tq * sample_pnt) / 1000; in update_sampling_pnt()118 tseg2 = CLAMP(tseg2, min->phase_seg2, max->phase_seg2); in update_sampling_pnt()121 tseg1 = total_tq - CAN_SYNC_SEG - tseg2; in update_sampling_pnt()125 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sampling_pnt()126 if (tseg2 > max->phase_seg2) { in update_sampling_pnt()132 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sampling_pnt()133 if (tseg2 < min->phase_seg2) { in update_sampling_pnt()138 res->phase_seg2 = tseg2; in update_sampling_pnt()
107 #define CAN_SJA1000_BTR1_TSEG2_PREP(tseg2) FIELD_PREP(CAN_SJA1000_BTR1_TSEG2_MASK, tseg2) argument