Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/can/
Ddev.c96 unsigned int tseg1, tseg2; in can_update_sample_point() local
102 tseg1 = tseg - tseg2; in can_update_sample_point()
103 if (tseg1 > btc->tseg1_max) { in can_update_sample_point()
104 tseg1 = btc->tseg1_max; in can_update_sample_point()
105 tseg2 = tseg - tseg1; in can_update_sample_point()
114 *tseg1_ptr = tseg1; in can_update_sample_point()
137 unsigned int brp, tsegall, tseg, tseg1 = 0, tseg2 = 0; in can_calc_bittiming() local
176 can_update_sample_point(btc, sample_point_nominal, tseg / 2, &tseg1, &tseg2, &sample_point_error); in can_calc_bittiming()
206 &tseg1, &tseg2, NULL); in can_calc_bittiming()
211 bt->prop_seg = tseg1 / 2; in can_calc_bittiming()
[all …]
/Linux-v4.19/drivers/net/can/mscan/
Dmscan.h264 #define BTR1_SET_TSEG1(tseg1) (((tseg1) - 1) & BTR1_TSEG1_MASK) argument
/Linux-v4.19/include/linux/can/dev/
Dpeak_canfd.h82 u8 tseg1; /* Timing SEGment 1 */ member
109 u8 tseg1; /* Timing SEGment 1 */ member
/Linux-v4.19/drivers/net/can/peak_canfd/
Dpeak_canfd.c134 cmd->tseg1 = PUCAN_TSLOW_TSEG1(pbt->prop_seg + pbt->phase_seg1 - 1); in pucan_set_timing_slow()
142 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw_t); in pucan_set_timing_slow()
155 cmd->tseg1 = PUCAN_TFAST_TSEG1(pbt->prop_seg + pbt->phase_seg1 - 1); in pucan_set_timing_fast()
161 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw); in pucan_set_timing_fast()
/Linux-v4.19/drivers/net/can/ifi_canfd/
Difi_canfd.c660 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local
665 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in ifi_canfd_set_bittiming()
668 (tseg1 << IFI_CANFD_TIME_TIMEA_OFF) | in ifi_canfd_set_bittiming()
676 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in ifi_canfd_set_bittiming()
679 (tseg1 << IFI_CANFD_TIME_TIMEA_OFF) | in ifi_canfd_set_bittiming()
/Linux-v4.19/drivers/net/can/rcar/
Drcar_canfd.c1186 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local
1193 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in rcar_canfd_set_bittiming()
1198 cfg = (RCANFD_NCFG_NTSEG1(tseg1) | RCANFD_NCFG_NBRP(brp) | in rcar_canfd_set_bittiming()
1203 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1208 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in rcar_canfd_set_bittiming()
1211 cfg = (RCANFD_DCFG_DTSEG1(tseg1) | RCANFD_DCFG_DBRP(brp) | in rcar_canfd_set_bittiming()
1216 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1219 cfg = (RCANFD_CFG_TSEG1(tseg1) | RCANFD_CFG_BRP(brp) | in rcar_canfd_set_bittiming()
1225 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
/Linux-v4.19/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c197 u8 tseg1; member
1499 int tseg1 = bt->prop_seg + bt->phase_seg1; in kvaser_usb_hydra_set_bittiming() local
1511 cmd->set_busparams_req.tseg1 = (u8)tseg1; in kvaser_usb_hydra_set_bittiming()
1533 int tseg1 = dbt->prop_seg + dbt->phase_seg1; in kvaser_usb_hydra_set_data_bittiming() local
1545 cmd->set_busparams_req.tseg1_d = (u8)tseg1; in kvaser_usb_hydra_set_data_bittiming()
Dkvaser_usb_leaf.c168 u8 tseg1; member
1264 cmd->u.busparams.tseg1 = bt->prop_seg + bt->phase_seg1; in kvaser_usb_leaf_set_bittiming()
/Linux-v4.19/drivers/net/can/m_can/
Dm_can.c983 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
988 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in m_can_set_bittiming()
991 (tseg1 << NBTP_NTSEG1_SHIFT) | (tseg2 << NBTP_NTSEG2_SHIFT); in m_can_set_bittiming()
998 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in m_can_set_bittiming()
1033 (tseg1 << DBTP_DTSEG1_SHIFT) | in m_can_set_bittiming()
/Linux-v4.19/drivers/net/can/c_can/
Dc_can.c512 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local
524 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in c_can_set_bittiming()
526 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | in c_can_set_bittiming()
/Linux-v4.19/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c407 cmd->tseg1 = PUCAN_TSLOW_TSEG1(bt->prop_seg + bt->phase_seg1 - 1); in pcan_usb_fd_set_bittiming_slow()
426 cmd->tseg1 = PUCAN_TFAST_TSEG1(bt->prop_seg + bt->phase_seg1 - 1); in pcan_usb_fd_set_bittiming_fast()
/Linux-v4.19/Documentation/networking/
Dcan.rst1208 sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
1248 "sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 clock 8000000"
1289 sja1000: clock 8000000 tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
1385 pcan_usb_pro_fd: tseg1 1..64 tseg2 1..16 sjw 1..16 brp 1..1024 \