Home
last modified time | relevance | path

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

12

/drivers/net/can/
Ddev.c186 if (!bt->sjw || !btc->sjw_max) in can_calc_bittiming()
187 bt->sjw = 1; in can_calc_bittiming()
190 if (bt->sjw > btc->sjw_max) in can_calc_bittiming()
191 bt->sjw = btc->sjw_max; in can_calc_bittiming()
193 if (tseg2 < bt->sjw) in can_calc_bittiming()
194 bt->sjw = tseg2; in can_calc_bittiming()
226 if (!bt->sjw) in can_fixup_bittiming()
227 bt->sjw = 1; in can_fixup_bittiming()
228 if (bt->sjw > btc->sjw_max || in can_fixup_bittiming()
DKconfig52 arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".
Dsun4i_can.c281 (((bt->sjw - 1) & 0x3) << 14) | in sun4ican_set_bittiming()
Dbfin_can.c179 timing = ((bt->sjw - 1) << 8) | (bt->prop_seg + bt->phase_seg1 - 1) | in bfin_can_set_bittiming()
Drcar_can.c432 RCAR_CAN_BCR_BPR(bt->brp - 1) | RCAR_CAN_BCR_SJW(bt->sjw - 1) | in rcar_can_set_bittiming()
Dti_hecc.c303 can_btc |= ((bit_timing->sjw - 1) & 0x3) << 8; in ti_hecc_set_btc()
Dxilinx_can.c292 btr1 |= (bt->sjw - 1) << XCAN_BTR_SJW_SHIFT; in xcan_set_bittiming()
Dat91_can.c363 ((bt->brp - 1) << 16) | ((bt->sjw - 1) << 12) | in at91_set_bittiming()
/drivers/net/can/mscan/
Dmscan.h261 #define BTR0_SET_SJW(sjw) ((((sjw) - 1) << BTR0_SJW_SHIFT) & \ argument
Dmscan.c523 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); in mscan_do_set_bittiming()
/drivers/net/can/m_can/
Dm_can.c804 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
808 sjw = bt->sjw - 1; in m_can_set_bittiming()
811 reg_btp = (brp << BTR_BRP_SHIFT) | (sjw << BTR_SJW_SHIFT) | in m_can_set_bittiming()
817 sjw = dbt->sjw - 1; in m_can_set_bittiming()
820 reg_btp = (brp << FBTR_FBRP_SHIFT) | (sjw << FBTR_FSJW_SHIFT) | in m_can_set_bittiming()
/drivers/net/can/usb/peak_usb/
Dpcan_ucan.h73 u8 sjw; /* Sync Jump Width */ member
Dpcan_usb_fd.c402 cmd->sjw_t = PUCAN_TSLOW_SJW_T(bt->sjw - 1, in pcan_usb_fd_set_bittiming_slow()
423 cmd->sjw = PUCAN_TFAST_SJW(bt->sjw - 1); in pcan_usb_fd_set_bittiming_fast()
Dpcan_usb.c222 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming()
Dpcan_usb_pro.c460 ccbt |= (bt->sjw - 1) << 24; in pcan_usb_pro_set_bittiming()
/drivers/net/can/c_can/
Dc_can.c504 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()
/drivers/net/can/usb/
Dgs_usb.c100 u32 sjw; member
414 dbt->sjw = bt->sjw; in gs_usb_set_bittiming()
Dkvaser_usb.c262 u8 sjw; member
1860 msg->u.busparams.sjw = bt->sjw; in kvaser_usb_set_bittiming()
Dems_usb.c941 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ems_usb_set_bittiming()
Dusb_8dev.c268 outmsg.data[2] = bt->sjw; in usb_8dev_cmd_open()
Desd_usb2.c939 canbtr |= ((bt->sjw - 1) & (ESD_USB2_SJW_MAX - 1)) in esd_usb2_set_bittiming()
/drivers/net/can/softing/
Dsofting_fw.c506 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
546 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
/drivers/net/can/sja1000/
Dsja1000.c250 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming()
/drivers/net/can/cc770/
Dcc770.c368 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in cc770_set_bittiming()
/drivers/net/can/spi/
Dmcp251x.c598 mcp251x_write_reg(spi, CNF1, ((bt->sjw - 1) << CNF1_SJW_SHIFT) | in mcp251x_do_set_bittiming()

12