/linux-6.1.9/drivers/net/can/dev/ |
D | calc_bittiming.c | 77 unsigned int brp, tsegall, tseg, tseg1 = 0, tseg2 = 0; in can_calc_bittiming() local 98 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming() 101 brp = (brp / btc->brp_inc) * btc->brp_inc; in can_calc_bittiming() 102 if (brp < btc->brp_min || brp > btc->brp_max) in can_calc_bittiming() 105 bitrate = priv->clock.freq / (brp * tsegall); in can_calc_bittiming() 124 best_brp = brp; in can_calc_bittiming() 169 bt->brp = best_brp; in can_calc_bittiming() 173 (bt->brp * (CAN_SYNC_SEG + tseg1 + tseg2)); in can_calc_bittiming() 192 if (dbt->brp == 1 || dbt->brp == 2) { in can_calc_tdco() 195 dbt->phase_seg1) * dbt->brp; in can_calc_tdco()
|
D | bittiming.c | 36 bt->brp = (u32)brp64; in can_fixup_bittiming() 38 if (bt->brp < btc->brp_min || bt->brp > btc->brp_max) in can_fixup_bittiming() 42 bt->bitrate = priv->clock.freq / (bt->brp * alltseg); in can_fixup_bittiming()
|
/linux-6.1.9/arch/ia64/lib/ |
D | memcpy.S | 100 brp.loop.imp 1b, 2f 123 brp.loop.imp 1f, 2f 144 brp.loop.imp 1b, 2f 281 brp.loop.imp 1b, 2f \
|
D | do_csum.S | 217 brp.loop.imp 1f,2f
|
/linux-6.1.9/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 652 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local 655 brp = bt->brp - 2; in ifi_canfd_set_bittiming() 661 (brp << IFI_CANFD_TIME_PRESCALE_OFF) | in ifi_canfd_set_bittiming() 666 brp = dbt->brp - 2; in ifi_canfd_set_bittiming() 672 (brp << IFI_CANFD_TIME_PRESCALE_OFF) | in ifi_canfd_set_bittiming() 677 tdc = dbt->brp * (dbt->prop_seg + dbt->phase_seg1); in ifi_canfd_set_bittiming()
|
/linux-6.1.9/drivers/net/can/peak_canfd/ |
D | peak_canfd.c | 129 cmd->brp = cpu_to_le16(PUCAN_TSLOW_BRP(pbt->brp - 1)); in pucan_set_timing_slow() 135 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw_t); in pucan_set_timing_slow() 150 cmd->brp = cpu_to_le16(PUCAN_TFAST_BRP(pbt->brp - 1)); in pucan_set_timing_fast() 154 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw); in pucan_set_timing_fast()
|
/linux-6.1.9/drivers/net/can/mscan/ |
D | mscan.h | 249 #define BTR0_SET_BRP(brp) (((brp) - 1) & BTR0_BRP_MASK) argument
|
/linux-6.1.9/include/linux/can/dev/ |
D | peak_canfd.h | 76 __le16 brp; /* BaudRate Prescaler */ member 103 __le16 brp; /* BaudRate Prescaler */ member
|
/linux-6.1.9/drivers/net/can/rcar/ |
D | rcar_canfd.c | 1301 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local 1306 brp = bt->brp - 1; in rcar_canfd_set_bittiming() 1313 cfg = (RCANFD_NCFG_NTSEG1(gpriv, tseg1) | RCANFD_NCFG_NBRP(brp) | in rcar_canfd_set_bittiming() 1318 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming() 1321 brp = dbt->brp - 1; in rcar_canfd_set_bittiming() 1326 cfg = (RCANFD_DCFG_DTSEG1(gpriv, tseg1) | RCANFD_DCFG_DBRP(brp) | in rcar_canfd_set_bittiming() 1334 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming() 1339 RCANFD_NCFG_NBRP(brp) | in rcar_canfd_set_bittiming() 1344 RCANFD_CFG_BRP(brp) | in rcar_canfd_set_bittiming() 1352 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
|
/linux-6.1.9/include/uapi/linux/can/ |
D | netlink.h | 39 __u32 brp; /* Bit-rate prescaler */ member
|
/linux-6.1.9/drivers/net/can/usb/etas_es58x/ |
D | es58x_fd.h | 85 __le16 brp; /* range: [brp_min-1..brp_max-1] */ member
|
D | es58x_fd.c | 392 es58x_fd_bt->brp = cpu_to_le16(bt->brp - offset); in es58x_fd_convert_bittiming()
|
/linux-6.1.9/include/linux/can/ |
D | dev.h | 119 dbt->phase_seg1) * dbt->brp; in can_get_relative_tdco()
|
/linux-6.1.9/drivers/net/can/m_can/ |
D | m_can.c | 1165 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local 1168 brp = bt->brp - 1; in m_can_set_bittiming() 1172 reg_btp = FIELD_PREP(NBTP_NBRP_MASK, brp) | in m_can_set_bittiming() 1180 brp = dbt->brp - 1; in m_can_set_bittiming() 1215 reg_btp |= FIELD_PREP(DBTP_DBRP_MASK, brp) | in m_can_set_bittiming()
|
/linux-6.1.9/drivers/net/can/flexcan/ |
D | flexcan-core.c | 1168 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-6.1.9/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 412 cmd->brp = cpu_to_le16(PUCAN_TSLOW_BRP(bt->brp - 1)); in pcan_usb_fd_set_bittiming_slow() 431 cmd->brp = cpu_to_le16(PUCAN_TFAST_BRP(bt->brp - 1)); in pcan_usb_fd_set_bittiming_fast()
|
/linux-6.1.9/drivers/net/can/usb/ |
D | gs_usb.c | 154 __le32 brp; member 668 .brp = cpu_to_le32(bt->brp), in gs_usb_set_bittiming() 688 .brp = cpu_to_le32(bt->brp), in gs_usb_set_data_bittiming()
|
D | ucan.c | 142 __le16 brp; /* TQ Prescaler */ member 1254 cmd_set_bittiming->brp = cpu_to_le16(up->can.bittiming.brp); in ucan_set_bittiming()
|
/linux-6.1.9/drivers/net/can/c_can/ |
D | c_can_main.c | 504 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-6.1.9/drivers/scsi/libfc/ |
D | fc_fcp.c | 734 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-6.1.9/scripts/package/ |
D | mkspec | 55 %define __spec_install_post /usr/lib/rpm/brp-compress || :
|
/linux-6.1.9/drivers/net/can/softing/ |
D | softing_fw.c | 494 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-6.1.9/drivers/net/can/ |
D | ti_hecc.c | 265 if (bit_timing->brp > 4) in ti_hecc_set_btc() 272 can_btc |= ((bit_timing->brp - 1) & 0xFF) << 16; in ti_hecc_set_btc()
|
/linux-6.1.9/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-core.c | 545 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-6.1.9/Documentation/networking/ |
D | can.rst | 1246 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
|