/linux-4.1.27/drivers/net/can/ |
H A D | dev.c | 184 /* 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 D | bfin_can.c | 179 timing = ((bt->sjw - 1) << 8) | (bt->prop_seg + bt->phase_seg1 - 1) | bfin_can_set_bittiming()
|
H A D | at91_can.c | 382 ((bt->brp - 1) << 16) | ((bt->sjw - 1) << 12) | at91_set_bittiming()
|
H A D | flexcan.c | 790 FLEXCAN_CTRL_RJW(bt->sjw - 1) | flexcan_set_bittiming()
|
H A D | pch_can.c | 795 canbit |= (bt->sjw - 1) << PCH_BIT_SJW_SHIFT; pch_set_bittiming()
|
H A D | rcar_can.c | 430 RCAR_CAN_BCR_BPR(bt->brp - 1) | RCAR_CAN_BCR_SJW(bt->sjw - 1) | rcar_can_set_bittiming()
|
H A D | ti_hecc.c | 303 can_btc |= ((bit_timing->sjw - 1) & 0x3) << 8; ti_hecc_set_btc()
|
H A D | xilinx_can.c | 278 btr1 |= (bt->sjw - 1) << XCAN_BTR_SJW_SHIFT; xcan_set_bittiming()
|
H A D | grcan.c | 422 rsj = bt->sjw; grcan_set_bittiming()
|
H A D | janz-ican3.c | 1631 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); ican3_set_bittiming()
|
/linux-4.1.27/include/uapi/linux/can/ |
H A D | netlink.h | 37 __u32 sjw; /* Synchronisation jump width in TQs */ member in struct:can_bittiming
|
/linux-4.1.27/drivers/net/can/mscan/ |
H A D | mscan.h | 261 #define BTR0_SET_SJW(sjw) ((((sjw) - 1) << BTR0_SJW_SHIFT) & \
|
H A D | mscan.c | 524 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 D | m_can.c | 810 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 D | pcan_ucan.h | 73 u8 sjw; /* Sync Jump Width */ member in struct:pucan_timing_fast
|
H A D | pcan_usb_fd.c | 401 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 D | pcan_usb.c | 222 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); pcan_usb_set_bittiming()
|
H A D | pcan_usb_pro.c | 460 ccbt |= (bt->sjw - 1) << 24; pcan_usb_pro_set_bittiming()
|
/linux-4.1.27/drivers/net/can/usb/ |
H A D | gs_usb.c | 100 u32 sjw; member in struct:gs_device_bittiming 409 dbt->sjw = bt->sjw; gs_usb_set_bittiming()
|
H A D | kvaser_usb.c | 252 u8 sjw; member in struct:kvaser_msg_busparams 1818 msg->u.busparams.sjw = bt->sjw; kvaser_usb_set_bittiming()
|
H A D | usb_8dev.c | 267 outmsg.data[2] = bt->sjw; usb_8dev_cmd_open()
|
H A D | ems_usb.c | 930 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); ems_usb_set_bittiming()
|
H A D | esd_usb2.c | 926 canbtr |= ((bt->sjw - 1) & (ESD_USB2_SJW_MAX - 1)) esd_usb2_set_bittiming()
|
/linux-4.1.27/drivers/net/can/c_can/ |
H A D | c_can.c | 488 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 D | softing_fw.c | 506 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 D | cc770.c | 368 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); cc770_set_bittiming()
|
/linux-4.1.27/drivers/net/can/sja1000/ |
H A D | sja1000.c | 250 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); sja1000_set_bittiming()
|
/linux-4.1.27/drivers/net/can/spi/ |
H A D | mcp251x.c | 597 mcp251x_write_reg(spi, CNF1, ((bt->sjw - 1) << CNF1_SJW_SHIFT) | mcp251x_do_set_bittiming()
|