Home
last modified time | relevance | path

Searched refs:phase_seg2 (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.6.21/drivers/net/can/dev/
Dbittiming.c15 bt->sjw = max(1U, min(bt->phase_seg1, bt->phase_seg2 / 2)); in can_sjw_set_default()
34 if (bt->sjw > bt->phase_seg2) { in can_sjw_check()
37 bt->sjw, bt->phase_seg2); in can_sjw_check()
68 if (bt->phase_seg2 < btc->tseg2_min) { in can_fixup_bittiming()
70 bt->phase_seg2, btc->tseg2_min); in can_fixup_bittiming()
73 if (bt->phase_seg2 > btc->tseg2_max) { in can_fixup_bittiming()
75 bt->phase_seg2, btc->tseg2_max); in can_fixup_bittiming()
Dcalc_bittiming.c157 bt->phase_seg2 = tseg2; in can_calc_bittiming()
/linux-6.6.21/include/linux/can/
Dbittiming.h162 return CAN_SYNC_SEG + bt->prop_seg + bt->phase_seg1 + bt->phase_seg2; in can_bit_time()
/linux-6.6.21/include/uapi/linux/can/
Dnetlink.h37 __u32 phase_seg2; /* Phase buffer segment 2 in TQs */ member
/linux-6.6.21/drivers/net/can/usb/
Dgs_usb.c157 __le32 phase_seg2; member
710 .phase_seg2 = cpu_to_le32(bt->phase_seg2), in gs_usb_set_bittiming()
729 .phase_seg2 = cpu_to_le32(bt->phase_seg2), in gs_usb_set_data_bittiming()
Ducan.c146 u8 phase_seg2; /* Phase buffer segment 2 in TQs */ member
1259 cmd_set_bittiming->phase_seg2 = up->can.bittiming.phase_seg2; in ucan_set_bittiming()
Desd_usb.c1040 canbtr |= ((bt->phase_seg2 - 1) & (btc->tseg2_max - 1)) in esd_usb_2_set_bittiming()
1126 baud_x->nom.tseg2 = cpu_to_le16(nom_bt->phase_seg2 & (nom_btc->tseg2_max - 1)); in esd_usb_3_set_bittiming()
1133 baud_x->data.tseg2 = cpu_to_le16(data_bt->phase_seg2 & (data_btc->tseg2_max - 1)); in esd_usb_3_set_bittiming()
Dusb_8dev.c253 outmsg.data[1] = bt->phase_seg2; in usb_8dev_cmd_open()
Dems_usb.c927 (((bt->phase_seg2 - 1) & 0x7) << 4); in ems_usb_set_bittiming()
/linux-6.6.21/drivers/net/can/peak_canfd/
Dpeak_canfd.c128 cmd->tseg2 = PUCAN_TSLOW_TSEG2(pbt->phase_seg2 - 1); in pucan_set_timing_slow()
149 cmd->tseg2 = PUCAN_TFAST_TSEG2(pbt->phase_seg2 - 1); in pucan_set_timing_fast()
/linux-6.6.21/drivers/net/can/softing/
Dsofting_fw.c498 iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop()
538 iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop()
/linux-6.6.21/drivers/net/can/ifi_canfd/
Difi_canfd.c657 tseg2 = bt->phase_seg2 - 2; in ifi_canfd_set_bittiming()
668 tseg2 = dbt->phase_seg2 - 2; in ifi_canfd_set_bittiming()
/linux-6.6.21/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_core.c541 int tseg2 = bt->phase_seg2; in kvaser_usb_set_bittiming()
585 int tseg2 = dbt->phase_seg2; in kvaser_usb_set_data_bittiming()
/linux-6.6.21/drivers/net/can/usb/etas_es58x/
Des58x_fd.c391 es58x_fd_bt->tseg2 = cpu_to_le16(bt->phase_seg2 - offset); in es58x_fd_convert_bittiming()
/linux-6.6.21/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c428 cmd->tseg2 = PUCAN_TSLOW_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_slow()
447 cmd->tseg2 = PUCAN_TFAST_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_fast()
Dpcan_usb.c282 (((bt->phase_seg2 - 1) & 0x7) << 4); in pcan_usb_set_bittiming()
/linux-6.6.21/drivers/net/can/ctucanfd/
Dctucanfd_base.c236 btr |= FIELD_PREP(REG_BTR_PH2, bt->phase_seg2); in ctucan_set_btr()
244 btr |= FIELD_PREP(REG_BTR_FD_PH2_FD, bt->phase_seg2); in ctucan_set_btr()
/linux-6.6.21/drivers/net/can/sja1000/
Dsja1000.c254 (((bt->phase_seg2 - 1) & 0x7) << 4); in sja1000_set_bittiming()
/linux-6.6.21/drivers/net/can/
Dxilinx_can.c447 btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming()
472 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming()
DKconfig79 arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".
Dsun4i_can.c298 (((bt->phase_seg2 - 1) & 0x7) << 20); in sun4ican_set_bittiming()
/linux-6.6.21/drivers/net/can/flexcan/
Dflexcan-core.c1179 FLEXCAN_CTRL_PSEG2(bt->phase_seg2 - 1) | in flexcan_set_bittiming_ctrl()
1216 FIELD_PREP(FLEXCAN_CBT_EPSEG2_MASK, bt->phase_seg2 - 1); in flexcan_set_bittiming_cbt()
1252 FIELD_PREP(FLEXCAN_FDCBT_FPSEG2_MASK, dbt->phase_seg2 - 1); in flexcan_set_bittiming_cbt()
/linux-6.6.21/drivers/net/can/mscan/
Dmscan.c517 BTR1_SET_TSEG2(bt->phase_seg2) | in mscan_do_set_bittiming()
/linux-6.6.21/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-core.c555 bt->phase_seg2 - 1) | in mcp251xfd_set_bittiming()
570 dbt->phase_seg2 - 1) | in mcp251xfd_set_bittiming()
/linux-6.6.21/drivers/net/can/cc770/
Dcc770.c363 (((bt->phase_seg2 - 1) & 0x7) << 4); in cc770_set_bittiming()

12