/drivers/net/can/dev/ |
D | calc_bittiming.c | 32 unsigned int tseg1, tseg2; in can_update_sample_point() local 36 tseg2 = tseg + CAN_SYNC_SEG - in can_update_sample_point() 39 tseg2 = clamp(tseg2, btc->tseg2_min, btc->tseg2_max); in can_update_sample_point() 40 tseg1 = tseg - tseg2; in can_update_sample_point() 43 tseg2 = tseg - tseg1; in can_update_sample_point() 46 sample_point = 1000 * (tseg + CAN_SYNC_SEG - tseg2) / in can_update_sample_point() 55 *tseg2_ptr = tseg2; in can_update_sample_point() 77 unsigned int brp, tsegall, tseg, tseg1 = 0, tseg2 = 0; in can_calc_bittiming() local 117 &tseg1, &tseg2, &sample_point_error); in can_calc_bittiming() 147 best_tseg, &tseg1, &tseg2, in can_calc_bittiming() [all …]
|
/drivers/net/can/mscan/ |
D | mscan.h | 254 #define BTR1_SET_TSEG2(tseg2) ((((tseg2) - 1) << BTR1_TSEG2_SHIFT) & \ argument
|
/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_core.c | 542 int tseg2 = bt->phase_seg2; in kvaser_usb_set_bittiming() local 549 busparams.tseg2 = (u8)tseg2; in kvaser_usb_set_bittiming() 587 int tseg2 = dbt->phase_seg2; in kvaser_usb_set_data_bittiming() local 598 busparams.tseg2 = (u8)tseg2; in kvaser_usb_set_data_bittiming()
|
D | kvaser_usb.h | 82 u8 tseg2; member
|
/drivers/net/can/peak_canfd/ |
D | peak_canfd.c | 128 cmd->tseg2 = PUCAN_TSLOW_TSEG2(pbt->phase_seg2 - 1); in pucan_set_timing_slow() 135 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw_t); in pucan_set_timing_slow() 149 cmd->tseg2 = PUCAN_TFAST_TSEG2(pbt->phase_seg2 - 1); in pucan_set_timing_fast() 154 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw); in pucan_set_timing_fast()
|
/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 652 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local 658 tseg2 = bt->phase_seg2 - 2; in ifi_canfd_set_bittiming() 659 writel((tseg2 << IFI_CANFD_TIME_TIMEB_OFF) | in ifi_canfd_set_bittiming() 669 tseg2 = dbt->phase_seg2 - 2; in ifi_canfd_set_bittiming() 670 writel((tseg2 << IFI_CANFD_TIME_TIMEB_OFF) | in ifi_canfd_set_bittiming()
|
/drivers/net/can/rcar/ |
D | rcar_canfd.c | 1301 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local 1309 tseg2 = bt->phase_seg2 - 1; in rcar_canfd_set_bittiming() 1314 RCANFD_NCFG_NSJW(gpriv, sjw) | RCANFD_NCFG_NTSEG2(gpriv, tseg2)); in rcar_canfd_set_bittiming() 1318 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming() 1324 tseg2 = dbt->phase_seg2 - 1; in rcar_canfd_set_bittiming() 1327 RCANFD_DCFG_DSJW(sjw) | RCANFD_DCFG_DTSEG2(gpriv, tseg2)); in rcar_canfd_set_bittiming() 1334 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming() 1341 RCANFD_NCFG_NTSEG2(gpriv, tseg2)); in rcar_canfd_set_bittiming() 1346 RCANFD_CFG_TSEG2(tseg2)); in rcar_canfd_set_bittiming() 1352 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
|
/drivers/net/can/usb/etas_es58x/ |
D | es58x_fd.h | 84 __le16 tseg2; /* range: [tseg2_min-1..tseg2_max-1] */ member
|
D | es58x_fd.c | 391 es58x_fd_bt->tseg2 = cpu_to_le16(bt->phase_seg2 - offset); in es58x_fd_convert_bittiming()
|
/drivers/net/can/m_can/ |
D | m_can.c | 1165 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local 1171 tseg2 = bt->phase_seg2 - 1; in m_can_set_bittiming() 1175 FIELD_PREP(NBTP_NTSEG2_MASK, tseg2); in m_can_set_bittiming() 1183 tseg2 = dbt->phase_seg2 - 1; in m_can_set_bittiming() 1218 FIELD_PREP(DBTP_DTSEG2_MASK, tseg2); in m_can_set_bittiming()
|
/drivers/net/can/c_can/ |
D | c_can_main.c | 504 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local 517 tseg2 = bt->phase_seg2 - 1; in c_can_set_bittiming() 519 (tseg2 << BTR_TSEG2_SHIFT); in c_can_set_bittiming()
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 410 cmd->tseg2 = PUCAN_TSLOW_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_slow() 429 cmd->tseg2 = PUCAN_TFAST_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_fast()
|