Home
last modified time | relevance | path

Searched refs:sjw (Results 1 – 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/can/dev/
Ddev.c210 if (!bt->sjw || !btc->sjw_max) { in can_calc_bittiming()
211 bt->sjw = 1; in can_calc_bittiming()
214 if (bt->sjw > btc->sjw_max) in can_calc_bittiming()
215 bt->sjw = btc->sjw_max; in can_calc_bittiming()
217 if (tseg2 < bt->sjw) in can_calc_bittiming()
218 bt->sjw = tseg2; in can_calc_bittiming()
251 if (!bt->sjw) in can_fixup_bittiming()
252 bt->sjw = 1; in can_fixup_bittiming()
253 if (bt->sjw > btc->sjw_max || in can_fixup_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/ifi_canfd/
Difi_canfd.c660 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local
664 sjw = bt->sjw - 1; in ifi_canfd_set_bittiming()
670 (sjw << IFI_CANFD_TIME_SJW_OFF_7_9_8_8), in ifi_canfd_set_bittiming()
675 sjw = dbt->sjw - 1; in ifi_canfd_set_bittiming()
681 (sjw << IFI_CANFD_TIME_SJW_OFF_7_9_8_8), in ifi_canfd_set_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/mscan/
Dmscan.h250 #define BTR0_SET_SJW(sjw) ((((sjw) - 1) << BTR0_SJW_SHIFT) & \ argument
Dmscan.c513 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); in mscan_do_set_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/rcar/
Drcar_canfd.c1182 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local
1188 sjw = bt->sjw - 1; in rcar_canfd_set_bittiming()
1195 RCANFD_NCFG_NSJW(sjw) | RCANFD_NCFG_NTSEG2(tseg2)); in rcar_canfd_set_bittiming()
1199 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1203 sjw = dbt->sjw - 1; in rcar_canfd_set_bittiming()
1208 RCANFD_DCFG_DSJW(sjw) | RCANFD_DCFG_DTSEG2(tseg2)); in rcar_canfd_set_bittiming()
1212 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1216 RCANFD_CFG_SJW(sjw) | RCANFD_CFG_TSEG2(tseg2)); in rcar_canfd_set_bittiming()
1221 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/can/
Dnetlink.h29 __u32 sjw; member
/kernel/linux/linux-5.10/include/uapi/linux/can/
Dnetlink.h38 __u32 sjw; /* Synchronisation jump width in TQs */ member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/can/
Dnetlink.h16 __u32 sjw; member
/kernel/linux/linux-5.10/drivers/net/can/peak_canfd/
Dpeak_canfd.c123 cmd->sjw_t = PUCAN_TSLOW_SJW_T(pbt->sjw - 1, in pucan_set_timing_slow()
146 cmd->sjw = PUCAN_TFAST_SJW(pbt->sjw - 1); in pucan_set_timing_fast()
153 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw); in pucan_set_timing_fast()
/kernel/linux/linux-5.10/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c199 u8 sjw; member
1501 int sjw = bt->sjw; in kvaser_usb_hydra_set_bittiming() local
1510 cmd->set_busparams_req.sjw = (u8)sjw; in kvaser_usb_hydra_set_bittiming()
1535 int sjw = dbt->sjw; in kvaser_usb_hydra_set_data_bittiming() local
1544 cmd->set_busparams_req.sjw_d = (u8)sjw; in kvaser_usb_hydra_set_data_bittiming()
Dkvaser_usb_leaf.c172 u8 sjw; member
1316 cmd->u.busparams.sjw = bt->sjw; in kvaser_usb_leaf_set_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/m_can/
Dm_can.c1052 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
1056 sjw = bt->sjw - 1; in m_can_set_bittiming()
1059 reg_btp = (brp << NBTP_NBRP_SHIFT) | (sjw << NBTP_NSJW_SHIFT) | in m_can_set_bittiming()
1066 sjw = dbt->sjw - 1; in m_can_set_bittiming()
1101 (sjw << DBTP_DSJW_SHIFT) | in m_can_set_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/c_can/
Dc_can.c495 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local
506 sjw = bt->sjw - 1; in c_can_set_bittiming()
509 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | in c_can_set_bittiming()
/kernel/linux/linux-5.10/include/linux/can/dev/
Dpeak_canfd.h99 u8 sjw; /* Sync Jump Width */ member
/kernel/linux/linux-5.10/drivers/net/can/usb/
Dgs_usb.c110 __le32 sjw; member
431 dbt->sjw = cpu_to_le32(bt->sjw); in gs_usb_set_bittiming()
Ducan.c146 u8 sjw; /* Synchronisation jump width in TQs */ member
1256 cmd_set_bittiming->sjw = up->can.bittiming.sjw; in ucan_set_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c395 cmd->sjw_t = PUCAN_TSLOW_SJW_T(bt->sjw - 1, in pcan_usb_fd_set_bittiming_slow()
416 cmd->sjw = PUCAN_TFAST_SJW(bt->sjw - 1); in pcan_usb_fd_set_bittiming_fast()
Dpcan_usb.c263 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/softing/
Dsofting_fw.c495 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()
/kernel/linux/linux-5.10/Documentation/networking/
Dcan.rst1173 phase-seg2 PHASE-SEG2 [ sjw SJW ] ]
1207 tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
1208 sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
1241 "tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1"
1248 "sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 clock 8000000"
1268 and "sjw"::
1271 phase-seg1 7 phase-seg2 2 sjw 1
1289 sja1000: clock 8000000 tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
1384 tq 50 prop-seg 14 phase-seg1 15 phase-seg2 10 sjw 1
1385 pcan_usb_pro_fd: tseg1 1..64 tseg2 1..16 sjw 1..16 brp 1..1024 \
/kernel/linux/linux-5.10/drivers/net/can/
DKconfig71 arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".
Dxilinx_can.c419 btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming()
436 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming()
Dflexcan.c1181 FLEXCAN_CTRL_RJW(bt->sjw - 1) | in flexcan_set_bittiming_ctrl()
1214 FIELD_PREP(FLEXCAN_CBT_ERJW_MASK, bt->sjw - 1) | in flexcan_set_bittiming_cbt()
1250 FIELD_PREP(FLEXCAN_FDCBT_FRJW_MASK, dbt->sjw - 1) | in flexcan_set_bittiming_cbt()
Dsun4i_can.c281 (((bt->sjw - 1) & 0x3) << 14) | in sun4ican_set_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/sja1000/
Dsja1000.c250 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming()

12