/linux-6.1.9/drivers/net/can/dev/ |
D | calc_bittiming.c | 158 if (!bt->sjw || !btc->sjw_max) { in can_calc_bittiming() 159 bt->sjw = 1; in can_calc_bittiming() 162 if (bt->sjw > btc->sjw_max) in can_calc_bittiming() 163 bt->sjw = btc->sjw_max; in can_calc_bittiming() 165 if (tseg2 < bt->sjw) in can_calc_bittiming() 166 bt->sjw = tseg2; in can_calc_bittiming()
|
D | bittiming.c | 22 if (!bt->sjw) in can_fixup_bittiming() 23 bt->sjw = 1; in can_fixup_bittiming() 24 if (bt->sjw > btc->sjw_max || in can_fixup_bittiming()
|
/linux-6.1.9/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_core.c | 543 int sjw = bt->sjw; in kvaser_usb_set_bittiming() local 547 busparams.sjw = (u8)sjw; in kvaser_usb_set_bittiming() 588 int sjw = dbt->sjw; in kvaser_usb_set_data_bittiming() local 596 busparams.sjw = (u8)sjw; in kvaser_usb_set_data_bittiming()
|
D | kvaser_usb.h | 83 u8 sjw; member
|
/linux-6.1.9/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 652 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local 656 sjw = bt->sjw - 1; in ifi_canfd_set_bittiming() 662 (sjw << IFI_CANFD_TIME_SJW_OFF_7_9_8_8), in ifi_canfd_set_bittiming() 667 sjw = dbt->sjw - 1; in ifi_canfd_set_bittiming() 673 (sjw << IFI_CANFD_TIME_SJW_OFF_7_9_8_8), in ifi_canfd_set_bittiming()
|
/linux-6.1.9/drivers/net/can/mscan/ |
D | mscan.h | 250 #define BTR0_SET_SJW(sjw) ((((sjw) - 1) << BTR0_SJW_SHIFT) & \ argument
|
/linux-6.1.9/drivers/net/can/rcar/ |
D | rcar_canfd.c | 1301 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local 1307 sjw = bt->sjw - 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() 1322 sjw = dbt->sjw - 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() 1340 RCANFD_NCFG_NSJW(gpriv, sjw) | in rcar_canfd_set_bittiming() 1345 RCANFD_CFG_SJW(sjw) | in rcar_canfd_set_bittiming() 1352 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
|
/linux-6.1.9/include/uapi/linux/can/ |
D | netlink.h | 38 __u32 sjw; /* Synchronisation jump width in TQs */ member
|
/linux-6.1.9/drivers/net/can/peak_canfd/ |
D | peak_canfd.c | 124 cmd->sjw_t = PUCAN_TSLOW_SJW_T(pbt->sjw - 1, in pucan_set_timing_slow() 147 cmd->sjw = PUCAN_TFAST_SJW(pbt->sjw - 1); in pucan_set_timing_fast() 154 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw); in pucan_set_timing_fast()
|
/linux-6.1.9/drivers/net/can/usb/etas_es58x/ |
D | es581_4.h | 69 __le32 sjw; member
|
D | es58x_fd.h | 86 __le16 sjw; /* range: [0..sjw_max-1] */ member
|
D | es581_4.c | 404 tx_conf_msg.sjw = cpu_to_le32(bt->sjw); in es581_4_set_bittiming()
|
D | es58x_fd.c | 393 es58x_fd_bt->sjw = cpu_to_le16(bt->sjw - offset); in es58x_fd_convert_bittiming()
|
/linux-6.1.9/drivers/net/can/m_can/ |
D | m_can.c | 1165 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local 1169 sjw = bt->sjw - 1; in m_can_set_bittiming() 1173 FIELD_PREP(NBTP_NSJW_MASK, sjw) | in m_can_set_bittiming() 1181 sjw = dbt->sjw - 1; in m_can_set_bittiming() 1216 FIELD_PREP(DBTP_DSJW_MASK, sjw) | in m_can_set_bittiming()
|
/linux-6.1.9/drivers/net/can/usb/ |
D | gs_usb.c | 153 __le32 sjw; member 667 .sjw = cpu_to_le32(bt->sjw), in gs_usb_set_bittiming() 687 .sjw = cpu_to_le32(bt->sjw), in gs_usb_set_data_bittiming()
|
D | ucan.c | 147 u8 sjw; /* Synchronisation jump width in TQs */ member 1260 cmd_set_bittiming->sjw = up->can.bittiming.sjw; in ucan_set_bittiming()
|
/linux-6.1.9/include/linux/can/dev/ |
D | peak_canfd.h | 99 u8 sjw; /* Sync Jump Width */ member
|
/linux-6.1.9/drivers/net/can/c_can/ |
D | c_can_main.c | 504 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local 515 sjw = bt->sjw - 1; in c_can_set_bittiming() 518 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | in c_can_set_bittiming()
|
/linux-6.1.9/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 407 cmd->sjw_t = PUCAN_TSLOW_SJW_T(bt->sjw - 1, in pcan_usb_fd_set_bittiming_slow() 428 cmd->sjw = PUCAN_TFAST_SJW(bt->sjw - 1); in pcan_usb_fd_set_bittiming_fast()
|
/linux-6.1.9/drivers/net/can/softing/ |
D | softing_fw.c | 495 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop() 535 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
|
/linux-6.1.9/Documentation/networking/ |
D | can.rst | 1210 phase-seg2 PHASE-SEG2 [ sjw SJW ] ] 1245 tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1 1246 sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 1279 "tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1" 1286 "sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 clock 8000000" 1306 and "sjw":: 1309 phase-seg1 7 phase-seg2 2 sjw 1 1327 sja1000: clock 8000000 tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 1422 tq 50 prop-seg 14 phase-seg1 15 phase-seg2 10 sjw 1 1423 pcan_usb_pro_fd: tseg1 1..64 tseg2 1..16 sjw 1..16 brp 1..1024 \
|
/linux-6.1.9/drivers/net/can/ctucanfd/ |
D | ctucanfd_base.c | 238 btr |= FIELD_PREP(REG_BTR_SJW, bt->sjw); in ctucan_set_btr() 246 btr |= FIELD_PREP(REG_BTR_FD_SJW_FD, bt->sjw); in ctucan_set_btr()
|
/linux-6.1.9/drivers/net/can/sja1000/ |
D | sja1000.c | 252 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming()
|
/linux-6.1.9/drivers/net/can/ |
D | xilinx_can.c | 444 btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 469 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming()
|
/linux-6.1.9/drivers/net/can/flexcan/ |
D | flexcan-core.c | 1171 FLEXCAN_CTRL_RJW(bt->sjw - 1) | in flexcan_set_bittiming_ctrl() 1204 FIELD_PREP(FLEXCAN_CBT_ERJW_MASK, bt->sjw - 1) | in flexcan_set_bittiming_cbt() 1240 FIELD_PREP(FLEXCAN_FDCBT_FRJW_MASK, dbt->sjw - 1) | in flexcan_set_bittiming_cbt()
|