brp 359 drivers/net/can/at91_can.c ((bt->brp - 1) << 16) | ((bt->sjw - 1) << 12) | brp 516 drivers/net/can/c_can/c_can.c u8 brp, brpe, sjw, tseg1, tseg2; brp 523 drivers/net/can/c_can/c_can.c ten_bit_brp = bt->brp - 1; brp 524 drivers/net/can/c_can/c_can.c brp = ten_bit_brp & BTR_BRP_MASK; brp 530 drivers/net/can/c_can/c_can.c reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | brp 360 drivers/net/can/cc770/cc770.c btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); brp 130 drivers/net/can/dev.c unsigned int brp, tsegall, tseg, tseg1 = 0, tseg2 = 0; brp 151 drivers/net/can/dev.c brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; brp 154 drivers/net/can/dev.c brp = (brp / btc->brp_inc) * btc->brp_inc; brp 155 drivers/net/can/dev.c if (brp < btc->brp_min || brp > btc->brp_max) brp 158 drivers/net/can/dev.c bitrate = priv->clock.freq / (brp * tsegall); brp 177 drivers/net/can/dev.c best_brp = brp; brp 222 drivers/net/can/dev.c bt->brp = best_brp; brp 226 drivers/net/can/dev.c (bt->brp * (CAN_CALC_SYNC_SEG + tseg1 + tseg2)); brp 266 drivers/net/can/dev.c bt->brp = (u32)brp64; brp 268 drivers/net/can/dev.c if (bt->brp < btc->brp_min || bt->brp > btc->brp_max) brp 272 drivers/net/can/dev.c bt->bitrate = priv->clock.freq / (bt->brp * alltseg); brp 1013 drivers/net/can/flexcan.c reg |= FLEXCAN_CTRL_PRESDIV(bt->brp - 1) | brp 421 drivers/net/can/grcan.c scaler = (bt->brp - 1); brp 660 drivers/net/can/ifi_canfd/ifi_canfd.c u16 brp, sjw, tseg1, tseg2, tdc; brp 663 drivers/net/can/ifi_canfd/ifi_canfd.c brp = bt->brp - 2; brp 669 drivers/net/can/ifi_canfd/ifi_canfd.c (brp << IFI_CANFD_TIME_PRESCALE_OFF) | brp 674 drivers/net/can/ifi_canfd/ifi_canfd.c brp = dbt->brp - 2; brp 680 drivers/net/can/ifi_canfd/ifi_canfd.c (brp << IFI_CANFD_TIME_PRESCALE_OFF) | brp 685 drivers/net/can/ifi_canfd/ifi_canfd.c tdc = dbt->brp * (dbt->prop_seg + dbt->phase_seg1); brp 786 drivers/net/can/janz-ican3.c btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); brp 836 drivers/net/can/kvaser_pciefd.c ((bt->brp - 1) & 0x1fff); brp 1016 drivers/net/can/m_can/m_can.c u16 brp, sjw, tseg1, tseg2; brp 1019 drivers/net/can/m_can/m_can.c brp = bt->brp - 1; brp 1023 drivers/net/can/m_can/m_can.c reg_btp = (brp << NBTP_NBRP_SHIFT) | (sjw << NBTP_NSJW_SHIFT) | brp 1029 drivers/net/can/m_can/m_can.c brp = dbt->brp - 1; brp 1064 drivers/net/can/m_can/m_can.c reg_btp |= (brp << DBTP_DBRP_SHIFT) | brp 512 drivers/net/can/mscan/mscan.c btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); brp 249 drivers/net/can/mscan/mscan.h #define BTR0_SET_BRP(brp) (((brp) - 1) & BTR0_BRP_MASK) brp 782 drivers/net/can/pch_can.c canbit = (bt->brp - 1) & PCH_MSK_BITT_BRP; brp 786 drivers/net/can/pch_can.c bepe = ((bt->brp - 1) & PCH_MSK_BRPE_BRPE) >> PCH_BIT_BRPE_BRPE_SHIFT; brp 128 drivers/net/can/peak_canfd/peak_canfd.c cmd->brp = cpu_to_le16(PUCAN_TSLOW_BRP(pbt->brp - 1)); brp 134 drivers/net/can/peak_canfd/peak_canfd.c le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw_t); brp 149 drivers/net/can/peak_canfd/peak_canfd.c cmd->brp = cpu_to_le16(PUCAN_TFAST_BRP(pbt->brp - 1)); brp 153 drivers/net/can/peak_canfd/peak_canfd.c le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw); brp 434 drivers/net/can/rcar/rcar_can.c RCAR_CAN_BCR_BPR(bt->brp - 1) | RCAR_CAN_BCR_SJW(bt->sjw - 1) | brp 1182 drivers/net/can/rcar/rcar_canfd.c u16 brp, sjw, tseg1, tseg2; brp 1187 drivers/net/can/rcar/rcar_canfd.c brp = bt->brp - 1; brp 1194 drivers/net/can/rcar/rcar_canfd.c cfg = (RCANFD_NCFG_NTSEG1(tseg1) | RCANFD_NCFG_NBRP(brp) | brp 1199 drivers/net/can/rcar/rcar_canfd.c brp, sjw, tseg1, tseg2); brp 1202 drivers/net/can/rcar/rcar_canfd.c brp = dbt->brp - 1; brp 1207 drivers/net/can/rcar/rcar_canfd.c cfg = (RCANFD_DCFG_DTSEG1(tseg1) | RCANFD_DCFG_DBRP(brp) | brp 1212 drivers/net/can/rcar/rcar_canfd.c brp, sjw, tseg1, tseg2); brp 1215 drivers/net/can/rcar/rcar_canfd.c cfg = (RCANFD_CFG_TSEG1(tseg1) | RCANFD_CFG_BRP(brp) | brp 1221 drivers/net/can/rcar/rcar_canfd.c brp, sjw, tseg1, tseg2); brp 250 drivers/net/can/sja1000/sja1000.c btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); brp 494 drivers/net/can/softing/softing_fw.c iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); brp 534 drivers/net/can/softing/softing_fw.c iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); brp 459 drivers/net/can/spi/hi311x.c ((bt->brp - 1) << HI3110_BTR0_BRP_SHIFT)); brp 543 drivers/net/can/spi/mcp251x.c (bt->brp - 1)); brp 280 drivers/net/can/sun4i_can.c cfg = ((bt->brp - 1) & 0x3FF) | brp 274 drivers/net/can/ti_hecc.c if (bit_timing->brp > 4) brp 281 drivers/net/can/ti_hecc.c can_btc |= ((bit_timing->brp - 1) & 0xFF) << 16; brp 913 drivers/net/can/usb/ems_usb.c btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); brp 902 drivers/net/can/usb/esd_usb2.c canbtr |= (bt->brp - 1) & (ESD_USB2_BRP_MAX - 1); brp 105 drivers/net/can/usb/gs_usb.c u32 brp; brp 425 drivers/net/can/usb/gs_usb.c dbt->brp = bt->brp; brp 214 drivers/net/can/usb/peak_usb/pcan_usb.c btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); brp 400 drivers/net/can/usb/peak_usb/pcan_usb_fd.c cmd->brp = cpu_to_le16(PUCAN_TSLOW_BRP(bt->brp - 1)); brp 419 drivers/net/can/usb/peak_usb/pcan_usb_fd.c cmd->brp = cpu_to_le16(PUCAN_TFAST_BRP(bt->brp - 1)); brp 457 drivers/net/can/usb/peak_usb/pcan_usb_pro.c ccbt |= bt->brp - 1; brp 141 drivers/net/can/usb/ucan.c __le16 brp; /* TQ Prescaler */ brp 1250 drivers/net/can/usb/ucan.c cmd_set_bittiming->brp = cpu_to_le16(up->can.bittiming.brp); brp 259 drivers/net/can/usb/usb_8dev.c bebrp = cpu_to_be16((u16)bt->brp); brp 410 drivers/net/can/xilinx_can.c btr0 = (bt->brp - 1); brp 427 drivers/net/can/xilinx_can.c btr0 = dbt->brp - 1; brp 743 drivers/scsi/libfc/fc_fcp.c struct fc_ba_rjt *brp; brp 751 drivers/scsi/libfc/fc_fcp.c brp = fc_frame_payload_get(fp, sizeof(*brp)); brp 752 drivers/scsi/libfc/fc_fcp.c if (brp && brp->br_reason == FC_BA_RJT_LOG_ERR) brp 76 include/linux/can/dev/peak_canfd.h __le16 brp; /* BaudRate Prescaler */ brp 103 include/linux/can/dev/peak_canfd.h __le16 brp; /* BaudRate Prescaler */ brp 39 include/uapi/linux/can/netlink.h __u32 brp; /* Bit-rate prescaler */