Home
last modified time | relevance | path

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

/drivers/net/can/
Ddev.c108 int best_tseg = 0, best_brp = 0, brp = 0; in can_calc_bittiming() local
131 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming()
133 brp = (brp / btc->brp_inc) * btc->brp_inc; in can_calc_bittiming()
134 if ((brp < btc->brp_min) || (brp > btc->brp_max)) in can_calc_bittiming()
136 rate = priv->clock.freq / (brp * tsegall); in can_calc_bittiming()
155 best_brp = brp; in can_calc_bittiming()
197 bt->brp = best_brp; in can_calc_bittiming()
199 bt->bitrate = priv->clock.freq / (bt->brp * (tseg1 + tseg2 + 1)); in can_calc_bittiming()
240 bt->brp = (u32)brp64; in can_fixup_bittiming()
242 if (bt->brp < btc->brp_min || bt->brp > btc->brp_max) in can_fixup_bittiming()
[all …]
Dti_hecc.c297 if (bit_timing->brp > 4) in ti_hecc_set_btc()
304 can_btc |= ((bit_timing->brp - 1) & 0xFF) << 16; in ti_hecc_set_btc()
Dpch_can.c793 canbit = (bt->brp - 1) & PCH_MSK_BITT_BRP; in pch_set_bittiming()
797 bepe = ((bt->brp - 1) & PCH_MSK_BRPE_BRPE) >> PCH_BIT_BRPE_BRPE_SHIFT; in pch_set_bittiming()
Dbfin_can.c70 clk = bt->brp - 1; in bfin_can_set_bittiming()
Dxilinx_can.c269 btr0 = (bt->brp - 1); in xcan_set_bittiming()
Drcar_can.c429 RCAR_CAN_BCR_BPR(bt->brp - 1) | RCAR_CAN_BCR_SJW(bt->sjw - 1) | in rcar_can_set_bittiming()
Dat91_can.c383 ((bt->brp - 1) << 16) | ((bt->sjw - 1) << 12) | in at91_set_bittiming()
Dflexcan.c854 reg |= FLEXCAN_CTRL_PRESDIV(bt->brp - 1) | in flexcan_set_bittiming()
Dgrcan.c425 scaler = (bt->brp - 1); in grcan_set_bittiming()
Djanz-ican3.c1630 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ican3_set_bittiming()
/drivers/net/can/mscan/
Dmscan.h260 #define BTR0_SET_BRP(brp) (((brp) - 1) & BTR0_BRP_MASK) argument
Dmscan.c544 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); in mscan_do_set_bittiming()
/drivers/net/can/m_can/
Dm_can.c809 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
812 brp = bt->brp - 1; in m_can_set_bittiming()
816 reg_btp = (brp << BTR_BRP_SHIFT) | (sjw << BTR_SJW_SHIFT) | in m_can_set_bittiming()
821 brp = dbt->brp - 1; in m_can_set_bittiming()
825 reg_btp = (brp << FBTR_FBRP_SHIFT) | (sjw << FBTR_FSJW_SHIFT) | in m_can_set_bittiming()
/drivers/net/can/usb/
Dgs_usb.c101 u32 brp; member
414 dbt->brp = bt->brp; in gs_usb_set_bittiming()
Dusb_8dev.c270 bebrp = cpu_to_be16((u16)bt->brp); in usb_8dev_cmd_open()
Dems_usb.c934 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ems_usb_set_bittiming()
Desd_usb2.c919 canbtr |= (bt->brp - 1) & (ESD_USB2_BRP_MAX - 1); in esd_usb2_set_bittiming()
/drivers/net/can/c_can/
Dc_can.c511 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local
518 ten_bit_brp = bt->brp - 1; in c_can_set_bittiming()
519 brp = ten_bit_brp & BTR_BRP_MASK; in c_can_set_bittiming()
525 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | in c_can_set_bittiming()
/drivers/scsi/libfc/
Dfc_fcp.c709 struct fc_ba_rjt *brp; in fc_fcp_abts_resp() local
717 brp = fc_frame_payload_get(fp, sizeof(*brp)); in fc_fcp_abts_resp()
718 if (brp && brp->br_reason == FC_BA_RJT_LOG_ERR) in fc_fcp_abts_resp()
/drivers/net/can/softing/
Dsofting_fw.c505 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
545 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
/drivers/net/can/usb/peak_usb/
Dpcan_usb.c222 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming()
Dpcan_usb_pro.c471 ccbt |= bt->brp - 1; in pcan_usb_pro_set_bittiming()
/drivers/net/can/sja1000/
Dsja1000.c247 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming()
/drivers/net/can/cc770/
Dcc770.c368 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in cc770_set_bittiming()
/drivers/net/can/spi/
Dmcp251x.c598 (bt->brp - 1)); in mcp251x_do_set_bittiming()