Home
last modified time | relevance | path

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

12

/drivers/net/can/dev/
Dbittiming.c158 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()
216 if (!bt->sjw) in can_fixup_bittiming()
217 bt->sjw = 1; in can_fixup_bittiming()
218 if (bt->sjw > btc->sjw_max || in can_fixup_bittiming()
/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_core.c546 int sjw = bt->sjw; in kvaser_usb_set_bittiming() local
550 busparams.sjw = (u8)sjw; in kvaser_usb_set_bittiming()
591 int sjw = dbt->sjw; in kvaser_usb_set_data_bittiming() local
599 busparams.sjw = (u8)sjw; in kvaser_usb_set_data_bittiming()
Dkvaser_usb.h83 u8 sjw; member
/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()
/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()
/drivers/net/can/rcar/
Drcar_canfd.c1256 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local
1262 sjw = bt->sjw - 1; in rcar_canfd_set_bittiming()
1269 RCANFD_NCFG_NSJW(sjw) | RCANFD_NCFG_NTSEG2(tseg2)); in rcar_canfd_set_bittiming()
1273 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1277 sjw = dbt->sjw - 1; in rcar_canfd_set_bittiming()
1282 RCANFD_DCFG_DSJW(sjw) | RCANFD_DCFG_DTSEG2(tseg2)); in rcar_canfd_set_bittiming()
1286 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1290 RCANFD_CFG_SJW(sjw) | RCANFD_CFG_TSEG2(tseg2)); in rcar_canfd_set_bittiming()
1295 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
/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()
/drivers/net/can/m_can/
Dm_can.c1180 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
1184 sjw = bt->sjw - 1; in m_can_set_bittiming()
1188 FIELD_PREP(NBTP_NSJW_MASK, sjw) | in m_can_set_bittiming()
1196 sjw = dbt->sjw - 1; in m_can_set_bittiming()
1231 FIELD_PREP(DBTP_DSJW_MASK, sjw) | in m_can_set_bittiming()
/drivers/net/can/usb/etas_es58x/
Des581_4.h69 __le32 sjw; member
Des58x_fd.h86 __le16 sjw; /* range: [0..sjw_max-1] */ member
Des581_4.c403 tx_conf_msg.sjw = cpu_to_le32(bt->sjw); in es581_4_set_bittiming()
Des58x_fd.c391 es58x_fd_bt->sjw = cpu_to_le16(bt->sjw - offset); in es58x_fd_convert_bittiming()
/drivers/net/can/c_can/
Dc_can_main.c506 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local
517 sjw = bt->sjw - 1; in c_can_set_bittiming()
520 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | in c_can_set_bittiming()
/drivers/net/can/usb/
Dgs_usb.c111 __le32 sjw; member
435 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()
Dusb_8dev.c257 outmsg.data[2] = bt->sjw; in usb_8dev_cmd_open()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c393 cmd->sjw_t = PUCAN_TSLOW_SJW_T(bt->sjw - 1, in pcan_usb_fd_set_bittiming_slow()
414 cmd->sjw = PUCAN_TFAST_SJW(bt->sjw - 1); in pcan_usb_fd_set_bittiming_fast()
Dpcan_usb.c278 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming()
/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()
/drivers/net/can/
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()
DKconfig71 arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".
Dflexcan.c1267 FLEXCAN_CTRL_RJW(bt->sjw - 1) | in flexcan_set_bittiming_ctrl()
1300 FIELD_PREP(FLEXCAN_CBT_ERJW_MASK, bt->sjw - 1) | in flexcan_set_bittiming_cbt()
1336 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()
/drivers/net/can/sja1000/
Dsja1000.c250 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming()

12