Lines Matching refs:read_reg
213 u32 (*read_reg)(const struct xcan_priv *priv, enum xcan_reg reg); member
399 while (!(priv->read_reg(priv, XCAN_SR_OFFSET) & XCAN_SR_CONFIG_MASK)) { in set_reset_mode()
432 is_config_mode = priv->read_reg(priv, XCAN_SR_OFFSET) & in xcan_set_bittiming()
482 priv->read_reg(priv, XCAN_BRPR_OFFSET), in xcan_set_bittiming()
483 priv->read_reg(priv, XCAN_BTR_OFFSET)); in xcan_set_bittiming()
547 priv->read_reg(priv, XCAN_SR_OFFSET)); in xcan_chip_start()
686 if (unlikely(priv->read_reg(priv, XCAN_SR_OFFSET) & in xcan_start_xmit_fifo()
719 if (unlikely(priv->read_reg(priv, XCAN_TRR_OFFSET) & in xcan_start_xmit_mailbox()
795 id_xcan = priv->read_reg(priv, XCAN_FRAME_ID_OFFSET(frame_base)); in xcan_rx()
796 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)) >> in xcan_rx()
820 data[0] = priv->read_reg(priv, XCAN_FRAME_DW1_OFFSET(frame_base)); in xcan_rx()
821 data[1] = priv->read_reg(priv, XCAN_FRAME_DW2_OFFSET(frame_base)); in xcan_rx()
858 id_xcan = priv->read_reg(priv, XCAN_FRAME_ID_OFFSET(frame_base)); in xcanfd_rx()
859 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)); in xcanfd_rx()
903 data[0] = priv->read_reg(priv, dw_offset); in xcanfd_rx()
910 data[0] = priv->read_reg(priv, dw_offset + i); in xcanfd_rx()
938 u32 status = priv->read_reg(priv, XCAN_SR_OFFSET); in xcan_current_error_state()
962 u32 ecr = priv->read_reg(priv, XCAN_ECR_OFFSET); in xcan_set_error_state()
1033 err_status = priv->read_reg(priv, XCAN_ESR_OFFSET); in xcan_err_interrupt()
1142 __func__, priv->read_reg(priv, XCAN_ESR_OFFSET)); in xcan_err_interrupt()
1184 fsr = priv->read_reg(priv, XCAN_FSR_OFFSET); in xcan_rx_fifo_get_next_frame()
1204 if (!(priv->read_reg(priv, XCAN_ISR_OFFSET) & in xcan_rx_fifo_get_next_frame()
1257 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_rx_poll()
1316 isr = priv->read_reg(priv, XCAN_ISR_OFFSET); in xcan_tx_interrupt()
1362 isr = priv->read_reg(priv, XCAN_ISR_OFFSET); in xcan_interrupt()
1388 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_interrupt()
1524 bec->txerr = priv->read_reg(priv, XCAN_ECR_OFFSET) & XCAN_ECR_TEC_MASK; in xcan_get_berr_counter()
1525 bec->rxerr = ((priv->read_reg(priv, XCAN_ECR_OFFSET) & in xcan_get_berr_counter()
1544 *tdcv = FIELD_GET(XCAN_SR_TDCV_MASK, priv->read_reg(priv, XCAN_SR_OFFSET)); in xcan_get_auto_tdcv()
1878 priv->read_reg = xcan_read_reg_le; in xcan_probe()
1888 if (priv->read_reg(priv, XCAN_SR_OFFSET) != XCAN_SR_CONFIG_MASK) { in xcan_probe()
1890 priv->read_reg = xcan_read_reg_be; in xcan_probe()