Home
last modified time | relevance | path

Searched refs:sjw (Results 1 – 25 of 26) 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".
Dbfin_can.c71 timing = ((bt->sjw - 1) << 8) | (bt->prop_seg + bt->phase_seg1 - 1) | in bfin_can_set_bittiming()
Dxilinx_can.c278 btr1 |= (bt->sjw - 1) << XCAN_BTR_SJW_SHIFT; in xcan_set_bittiming()
Drcar_can.c429 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()
Dat91_can.c383 ((bt->brp - 1) << 16) | ((bt->sjw - 1) << 12) | in at91_set_bittiming()
Dflexcan.c857 FLEXCAN_CTRL_RJW(bt->sjw - 1) | in flexcan_set_bittiming()
Dpch_can.c794 canbit |= (bt->sjw - 1) << PCH_BIT_SJW_SHIFT; in pch_set_bittiming()
Dgrcan.c422 rsj = bt->sjw; in grcan_set_bittiming()
/drivers/net/can/mscan/
Dmscan.h261 #define BTR0_SET_SJW(sjw) ((((sjw) - 1) << BTR0_SJW_SHIFT) & \ argument
Dmscan.c544 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); in mscan_do_set_bittiming()
/drivers/net/can/m_can/
Dm_can.c809 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
813 sjw = bt->sjw - 1; in m_can_set_bittiming()
816 reg_btp = (brp << BTR_BRP_SHIFT) | (sjw << BTR_SJW_SHIFT) | in m_can_set_bittiming()
822 sjw = dbt->sjw - 1; in m_can_set_bittiming()
825 reg_btp = (brp << FBTR_FBRP_SHIFT) | (sjw << FBTR_FSJW_SHIFT) | in m_can_set_bittiming()
/drivers/net/can/usb/
Dgs_usb.c100 u32 sjw; member
413 dbt->sjw = bt->sjw; in gs_usb_set_bittiming()
Dkvaser_usb.c184 u8 sjw; member
1449 msg->u.busparams.sjw = bt->sjw; in kvaser_usb_set_bittiming()
Dusb_8dev.c267 outmsg.data[2] = bt->sjw; in usb_8dev_cmd_open()
Dems_usb.c934 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ems_usb_set_bittiming()
Desd_usb2.c927 canbtr |= ((bt->sjw - 1) & (ESD_USB2_SJW_MAX - 1)) in esd_usb2_set_bittiming()
/drivers/net/can/c_can/
Dc_can.c511 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local
522 sjw = bt->sjw - 1; in c_can_set_bittiming()
525 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | in c_can_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/usb/peak_usb/
Dpcan_usb.c222 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming()
Dpcan_usb_pro.c468 ccbt |= (bt->sjw - 1) << 24; in pcan_usb_pro_set_bittiming()
/drivers/net/can/sja1000/
Dsja1000.c247 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.c597 mcp251x_write_reg(spi, CNF1, ((bt->sjw - 1) << CNF1_SJW_SHIFT) | in mcp251x_do_set_bittiming()

12