Lines Matching defs:hecc_read
243 static inline u32 hecc_read(struct ti_hecc_priv *priv, int reg)
251 hecc_write(priv, reg, hecc_read(priv, reg) | bit_mask);
257 hecc_write(priv, reg, hecc_read(priv, reg) & ~bit_mask);
262 return (hecc_read(priv, reg) & bit_mask) ? 1 : 0;
448 bec->txerr = hecc_read(priv, HECC_CANTEC);
449 bec->rxerr = hecc_read(priv, HECC_CANREC);
488 if (unlikely(hecc_read(priv, HECC_CANME) & mbx_mask)) {
520 if ((hecc_read(priv, HECC_CANME) & BIT(get_tx_head_mb(priv))) ||
593 hecc_read(priv, HECC_CANRML) & mbx_mask))
635 timestamp = hecc_read(priv, HECC_CANLNT);
666 cf->data[6] = hecc_read(priv, HECC_CANTEC);
667 cf->data[7] = hecc_read(priv, HECC_CANREC);
670 timestamp = hecc_read(priv, HECC_CANLNT);
685 int_status = hecc_read(priv,
692 err_status = hecc_read(priv, HECC_CANES);
698 u32 rec = hecc_read(priv, HECC_CANREC);
699 u32 tec = hecc_read(priv, HECC_CANTEC);
730 u32 rec = hecc_read(priv, HECC_CANREC);
731 u32 tec = hecc_read(priv, HECC_CANTEC);
751 if (!(mbx_mask & hecc_read(priv, HECC_CANTA)))
774 while ((rx_pending = hecc_read(priv, HECC_CANRMP))) {
783 int_status = hecc_read(priv, HECC_CANGIF1);
786 int_status = hecc_read(priv, HECC_CANGIF0);