Home
last modified time | relevance | path

Searched refs:brp (Results 1 – 25 of 43) sorted by relevance

12

/linux-5.19.10/drivers/net/can/dev/
Dbittiming.c78 unsigned int brp, tsegall, tseg, tseg1 = 0, tseg2 = 0; in can_calc_bittiming() local
99 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming()
102 brp = (brp / btc->brp_inc) * btc->brp_inc; in can_calc_bittiming()
103 if (brp < btc->brp_min || brp > btc->brp_max) in can_calc_bittiming()
106 bitrate = priv->clock.freq / (brp * tsegall); in can_calc_bittiming()
125 best_brp = brp; in can_calc_bittiming()
170 bt->brp = best_brp; in can_calc_bittiming()
174 (bt->brp * (CAN_SYNC_SEG + tseg1 + tseg2)); in can_calc_bittiming()
193 if (dbt->brp == 1 || dbt->brp == 2) { in can_calc_tdco()
196 dbt->phase_seg1) * dbt->brp; in can_calc_tdco()
[all …]
/linux-5.19.10/arch/ia64/lib/
Dmemcpy.S100 brp.loop.imp 1b, 2f
123 brp.loop.imp 1f, 2f
144 brp.loop.imp 1b, 2f
281 brp.loop.imp 1b, 2f \
Ddo_csum.S217 brp.loop.imp 1f,2f
/linux-5.19.10/drivers/net/can/ifi_canfd/
Difi_canfd.c651 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local
654 brp = bt->brp - 2; in ifi_canfd_set_bittiming()
660 (brp << IFI_CANFD_TIME_PRESCALE_OFF) | in ifi_canfd_set_bittiming()
665 brp = dbt->brp - 2; in ifi_canfd_set_bittiming()
671 (brp << IFI_CANFD_TIME_PRESCALE_OFF) | in ifi_canfd_set_bittiming()
676 tdc = dbt->brp * (dbt->prop_seg + dbt->phase_seg1); in ifi_canfd_set_bittiming()
/linux-5.19.10/drivers/net/can/peak_canfd/
Dpeak_canfd.c128 cmd->brp = cpu_to_le16(PUCAN_TSLOW_BRP(pbt->brp - 1)); in pucan_set_timing_slow()
134 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw_t); in pucan_set_timing_slow()
149 cmd->brp = cpu_to_le16(PUCAN_TFAST_BRP(pbt->brp - 1)); in pucan_set_timing_fast()
153 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw); in pucan_set_timing_fast()
/linux-5.19.10/drivers/net/can/mscan/
Dmscan.h249 #define BTR0_SET_BRP(brp) (((brp) - 1) & BTR0_BRP_MASK) argument
/linux-5.19.10/include/linux/can/dev/
Dpeak_canfd.h76 __le16 brp; /* BaudRate Prescaler */ member
103 __le16 brp; /* BaudRate Prescaler */ member
/linux-5.19.10/drivers/net/can/rcar/
Drcar_canfd.c1307 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local
1312 brp = bt->brp - 1; in rcar_canfd_set_bittiming()
1319 cfg = (RCANFD_NCFG_NTSEG1(gpriv, tseg1) | RCANFD_NCFG_NBRP(brp) | in rcar_canfd_set_bittiming()
1324 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1327 brp = dbt->brp - 1; in rcar_canfd_set_bittiming()
1332 cfg = (RCANFD_DCFG_DTSEG1(gpriv, tseg1) | RCANFD_DCFG_DBRP(brp) | in rcar_canfd_set_bittiming()
1340 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1345 RCANFD_NCFG_NBRP(brp) | in rcar_canfd_set_bittiming()
1350 RCANFD_CFG_BRP(brp) | in rcar_canfd_set_bittiming()
1358 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
/linux-5.19.10/include/uapi/linux/can/
Dnetlink.h39 __u32 brp; /* Bit-rate prescaler */ member
/linux-5.19.10/drivers/net/can/usb/etas_es58x/
Des58x_fd.h85 __le16 brp; /* range: [brp_min-1..brp_max-1] */ member
Des58x_fd.c392 es58x_fd_bt->brp = cpu_to_le16(bt->brp - offset); in es58x_fd_convert_bittiming()
/linux-5.19.10/include/linux/can/
Ddev.h118 dbt->phase_seg1) * dbt->brp; in can_get_relative_tdco()
/linux-5.19.10/drivers/net/can/usb/
Dgs_usb.c131 __le32 brp; member
526 dbt->brp = cpu_to_le32(bt->brp); in gs_usb_set_bittiming()
561 dbt->brp = cpu_to_le32(bt->brp); in gs_usb_set_data_bittiming()
Ducan.c141 __le16 brp; /* TQ Prescaler */ member
1249 cmd_set_bittiming->brp = cpu_to_le16(up->can.bittiming.brp); in ucan_set_bittiming()
/linux-5.19.10/drivers/net/can/m_can/
Dm_can.c1164 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
1167 brp = bt->brp - 1; in m_can_set_bittiming()
1171 reg_btp = FIELD_PREP(NBTP_NBRP_MASK, brp) | in m_can_set_bittiming()
1179 brp = dbt->brp - 1; in m_can_set_bittiming()
1214 reg_btp |= FIELD_PREP(DBTP_DBRP_MASK, brp) | in m_can_set_bittiming()
/linux-5.19.10/drivers/net/can/flexcan/
Dflexcan-core.c1168 reg |= FLEXCAN_CTRL_PRESDIV(bt->brp - 1) | in flexcan_set_bittiming_ctrl()
1203 FIELD_PREP(FLEXCAN_CBT_EPRESDIV_MASK, bt->brp - 1) | in flexcan_set_bittiming_cbt()
1215 if (bt->brp != dbt->brp) in flexcan_set_bittiming_cbt()
1217 dbt->brp, bt->brp); in flexcan_set_bittiming_cbt()
1239 reg_fdcbt |= FIELD_PREP(FLEXCAN_FDCBT_FPRESDIV_MASK, dbt->brp - 1) | in flexcan_set_bittiming_cbt()
1274 ((dbt->brp - 1 ) + 1)); in flexcan_set_bittiming_cbt()
/linux-5.19.10/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c398 cmd->brp = cpu_to_le16(PUCAN_TSLOW_BRP(bt->brp - 1)); in pcan_usb_fd_set_bittiming_slow()
417 cmd->brp = cpu_to_le16(PUCAN_TFAST_BRP(bt->brp - 1)); in pcan_usb_fd_set_bittiming_fast()
/linux-5.19.10/drivers/net/can/c_can/
Dc_can_main.c504 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local
511 ten_bit_brp = bt->brp - 1; in c_can_set_bittiming()
512 brp = ten_bit_brp & BTR_BRP_MASK; in c_can_set_bittiming()
518 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | in c_can_set_bittiming()
/linux-5.19.10/drivers/scsi/libfc/
Dfc_fcp.c734 struct fc_ba_rjt *brp; in fc_fcp_abts_resp() local
742 brp = fc_frame_payload_get(fp, sizeof(*brp)); in fc_fcp_abts_resp()
743 if (brp && brp->br_reason == FC_BA_RJT_LOG_ERR) in fc_fcp_abts_resp()
/linux-5.19.10/scripts/package/
Dmkspec52 %define __spec_install_post /usr/lib/rpm/brp-compress || :
/linux-5.19.10/drivers/net/can/softing/
Dsofting_fw.c494 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
534 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
/linux-5.19.10/drivers/net/can/
Dti_hecc.c273 if (bit_timing->brp > 4) in ti_hecc_set_btc()
280 can_btc |= ((bit_timing->brp - 1) & 0xFF) << 16; in ti_hecc_set_btc()
/linux-5.19.10/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-core.c545 val = FIELD_PREP(MCP251XFD_REG_NBTCFG_BRP_MASK, bt->brp - 1) | in mcp251xfd_set_bittiming()
560 val = FIELD_PREP(MCP251XFD_REG_DBTCFG_BRP_MASK, dbt->brp - 1) | in mcp251xfd_set_bittiming()
572 tdco = clamp_t(int, dbt->brp * (dbt->prop_seg + dbt->phase_seg1), in mcp251xfd_set_bittiming()
/linux-5.19.10/Documentation/networking/
Dcan.rst1246 sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
1286 "sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 clock 8000000"
1327 sja1000: clock 8000000 tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
1423 pcan_usb_pro_fd: tseg1 1..64 tseg2 1..16 sjw 1..16 brp 1..1024 \
1424 brp-inc 1
/linux-5.19.10/drivers/net/can/ctucanfd/
Dctucanfd_base.c236 btr |= FIELD_PREP(REG_BTR_BRP, bt->brp); in ctucan_set_btr()
244 btr |= FIELD_PREP(REG_BTR_FD_BRP_FD, bt->brp); in ctucan_set_btr()

12