Lines Matching refs:FIELD_GET

151 #define CTU_CAN_FD_TXTNF(priv) (!!FIELD_GET(REG_STATUS_TXNF, ctucan_read32(priv, CTUCANFD_STATUS)))
152 #define CTU_CAN_FD_ENABLED(priv) (!!FIELD_GET(REG_MODE_ENA, ctucan_read32(priv, CTUCANFD_MODE)))
184 u16 device_id = FIELD_GET(REG_DEVICE_ID_DEVICE_ID, in ctucan_reset()
654 if (FIELD_GET(REG_FRAME_FORMAT_W_IDE, ffw)) in ctucan_read_rx_frame()
660 if (FIELD_GET(REG_FRAME_FORMAT_W_FDF, ffw)) { in ctucan_read_rx_frame()
661 if (FIELD_GET(REG_FRAME_FORMAT_W_BRS, ffw)) in ctucan_read_rx_frame()
663 if (FIELD_GET(REG_FRAME_FORMAT_W_ESI_RSV, ffw)) in ctucan_read_rx_frame()
665 } else if (FIELD_GET(REG_FRAME_FORMAT_W_RTR, ffw)) { in ctucan_read_rx_frame()
669 wc = FIELD_GET(REG_FRAME_FORMAT_W_RWCNT, ffw) - 3; in ctucan_read_rx_frame()
672 if (FIELD_GET(REG_FRAME_FORMAT_W_DLC, ffw) <= 8) { in ctucan_read_rx_frame()
673 len = FIELD_GET(REG_FRAME_FORMAT_W_DLC, ffw); in ctucan_read_rx_frame()
675 if (FIELD_GET(REG_FRAME_FORMAT_W_FDF, ffw)) in ctucan_read_rx_frame()
724 if (!FIELD_GET(REG_FRAME_FORMAT_W_RWCNT, ffw)) in ctucan_rx()
727 if (FIELD_GET(REG_FRAME_FORMAT_W_FDF, ffw)) in ctucan_rx()
761 ewl = FIELD_GET(REG_EWL_EW_LIMIT, fs); in ctucan_read_fault_state()
763 if (FIELD_GET(REG_EWL_ERA, fs)) { in ctucan_read_fault_state()
764 if (ewl > FIELD_GET(REG_REC_REC_VAL, rec_tec) && in ctucan_read_fault_state()
765 ewl > FIELD_GET(REG_REC_TEC_VAL, rec_tec)) in ctucan_read_fault_state()
769 } else if (FIELD_GET(REG_EWL_ERP, fs)) { in ctucan_read_fault_state()
771 } else if (FIELD_GET(REG_EWL_BOF, fs)) { in ctucan_read_fault_state()
788 bec->rxerr = FIELD_GET(REG_REC_REC_VAL, err_ctrs); in ctucan_get_rec_tec()
789 bec->txerr = FIELD_GET(REG_REC_TEC_VAL, err_ctrs); in ctucan_get_rec_tec()
818 FIELD_GET(REG_ERR_CAPT_ERR_TYPE, err_capt_alc), in ctucan_err_interrupt()
819 FIELD_GET(REG_ERR_CAPT_ERR_POS, err_capt_alc), in ctucan_err_interrupt()
820 FIELD_GET(REG_ERR_CAPT_ALC_ID_FIELD, err_capt_alc), in ctucan_err_interrupt()
821 FIELD_GET(REG_ERR_CAPT_ALC_BIT, err_capt_alc)); in ctucan_err_interrupt()
830 if (FIELD_GET(REG_INT_STAT_FCSI, isr) || FIELD_GET(REG_INT_STAT_EWLI, isr)) { in ctucan_err_interrupt()
883 if (FIELD_GET(REG_INT_STAT_ALI, isr)) { in ctucan_err_interrupt()
894 if (FIELD_GET(REG_INT_STAT_BEI, isr)) { in ctucan_err_interrupt()
930 framecnt = FIELD_GET(REG_RX_STATUS_RXFRC, ctucan_read32(priv, CTUCANFD_RX_STATUS)); in ctucan_rx_poll()
934 framecnt = FIELD_GET(REG_RX_STATUS_RXFRC, ctucan_read32(priv, CTUCANFD_RX_STATUS)); in ctucan_rx_poll()
939 if (FIELD_GET(REG_STATUS_DOR, status)) { in ctucan_rx_poll()
1115 if (FIELD_GET(REG_INT_STAT_RBNEI, isr)) { in ctucan_interrupt()
1127 if (FIELD_GET(REG_INT_STAT_TXBHCI, isr)) { in ctucan_interrupt()
1134 if (FIELD_GET(REG_INT_STAT_EWLI, isr) || in ctucan_interrupt()
1135 FIELD_GET(REG_INT_STAT_FCSI, isr) || in ctucan_interrupt()
1136 FIELD_GET(REG_INT_STAT_ALI, isr)) { in ctucan_interrupt()
1148 if (FIELD_GET(REG_INT_STAT_TXBHCI, isr)) { in ctucan_interrupt()