Searched refs:sjw (Results 1 - 28 of 28) sorted by relevance

/linux-4.1.27/drivers/net/can/
H A Ddev.c184 /* check for sjw user settings */ can_calc_bittiming()
185 if (!bt->sjw || !btc->sjw_max) can_calc_bittiming()
186 bt->sjw = 1; can_calc_bittiming()
188 /* bt->sjw is at least 1 -> sanitize upper bound to sjw_max */ can_calc_bittiming()
189 if (bt->sjw > btc->sjw_max) can_calc_bittiming()
190 bt->sjw = btc->sjw_max; can_calc_bittiming()
191 /* bt->sjw must not be higher than tseg2 */ can_calc_bittiming()
192 if (tseg2 < bt->sjw) can_calc_bittiming()
193 bt->sjw = tseg2; can_calc_bittiming()
213 * phase_seg1, phase_seg2 and sjw and tries to determine the bitrate
225 if (!bt->sjw) can_fixup_bittiming()
226 bt->sjw = 1; can_fixup_bittiming()
227 if (bt->sjw > btc->sjw_max || can_fixup_bittiming()
H A Dbfin_can.c179 timing = ((bt->sjw - 1) << 8) | (bt->prop_seg + bt->phase_seg1 - 1) | bfin_can_set_bittiming()
H A Dat91_can.c382 ((bt->brp - 1) << 16) | ((bt->sjw - 1) << 12) | at91_set_bittiming()
H A Dflexcan.c790 FLEXCAN_CTRL_RJW(bt->sjw - 1) | flexcan_set_bittiming()
H A Dpch_can.c795 canbit |= (bt->sjw - 1) << PCH_BIT_SJW_SHIFT; pch_set_bittiming()
H A Drcar_can.c430 RCAR_CAN_BCR_BPR(bt->brp - 1) | RCAR_CAN_BCR_SJW(bt->sjw - 1) | rcar_can_set_bittiming()
H A Dti_hecc.c303 can_btc |= ((bit_timing->sjw - 1) & 0x3) << 8; ti_hecc_set_btc()
H A Dxilinx_can.c278 btr1 |= (bt->sjw - 1) << XCAN_BTR_SJW_SHIFT; xcan_set_bittiming()
H A Dgrcan.c422 rsj = bt->sjw; grcan_set_bittiming()
H A Djanz-ican3.c1631 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); ican3_set_bittiming()
/linux-4.1.27/include/uapi/linux/can/
H A Dnetlink.h37 __u32 sjw; /* Synchronisation jump width in TQs */ member in struct:can_bittiming
/linux-4.1.27/drivers/net/can/mscan/
H A Dmscan.h261 #define BTR0_SET_SJW(sjw) ((((sjw) - 1) << BTR0_SJW_SHIFT) & \
H A Dmscan.c524 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); mscan_do_set_bittiming()
/linux-4.1.27/drivers/net/can/m_can/
H A Dm_can.c810 u16 brp, sjw, tseg1, tseg2; m_can_set_bittiming() local
814 sjw = bt->sjw - 1; m_can_set_bittiming()
817 reg_btp = (brp << BTR_BRP_SHIFT) | (sjw << BTR_SJW_SHIFT) | m_can_set_bittiming()
823 sjw = dbt->sjw - 1; m_can_set_bittiming()
826 reg_btp = (brp << FBTR_FBRP_SHIFT) | (sjw << FBTR_FSJW_SHIFT) | m_can_set_bittiming()
/linux-4.1.27/drivers/net/can/usb/peak_usb/
H A Dpcan_ucan.h73 u8 sjw; /* Sync Jump Width */ member in struct:pucan_timing_fast
H A Dpcan_usb_fd.c401 cmd->sjw_t = PUCAN_TSLOW_SJW_T(bt->sjw - 1, pcan_usb_fd_set_bittiming_slow()
422 cmd->sjw = PUCAN_TFAST_SJW(bt->sjw - 1); pcan_usb_fd_set_bittiming_fast()
H A Dpcan_usb.c222 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); pcan_usb_set_bittiming()
H A Dpcan_usb_pro.c460 ccbt |= (bt->sjw - 1) << 24; pcan_usb_pro_set_bittiming()
/linux-4.1.27/drivers/net/can/usb/
H A Dgs_usb.c100 u32 sjw; member in struct:gs_device_bittiming
409 dbt->sjw = bt->sjw; gs_usb_set_bittiming()
H A Dkvaser_usb.c252 u8 sjw; member in struct:kvaser_msg_busparams
1818 msg->u.busparams.sjw = bt->sjw; kvaser_usb_set_bittiming()
H A Dusb_8dev.c267 outmsg.data[2] = bt->sjw; usb_8dev_cmd_open()
H A Dems_usb.c930 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); ems_usb_set_bittiming()
H A Desd_usb2.c926 canbtr |= ((bt->sjw - 1) & (ESD_USB2_SJW_MAX - 1)) esd_usb2_set_bittiming()
/linux-4.1.27/drivers/net/can/c_can/
H A Dc_can.c488 u8 brp, brpe, sjw, tseg1, tseg2; c_can_set_bittiming() local
499 sjw = bt->sjw - 1; c_can_set_bittiming()
502 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | c_can_set_bittiming()
/linux-4.1.27/drivers/net/can/softing/
H A Dsofting_fw.c506 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); softing_startstop()
546 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); softing_startstop()
/linux-4.1.27/drivers/net/can/cc770/
H A Dcc770.c368 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); cc770_set_bittiming()
/linux-4.1.27/drivers/net/can/sja1000/
H A Dsja1000.c250 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); sja1000_set_bittiming()
/linux-4.1.27/drivers/net/can/spi/
H A Dmcp251x.c597 mcp251x_write_reg(spi, CNF1, ((bt->sjw - 1) << CNF1_SJW_SHIFT) | mcp251x_do_set_bittiming()

Completed in 386 milliseconds