Lines Matching defs:hecc_read
233 static inline u32 hecc_read(struct ti_hecc_priv *priv, int reg)
241 hecc_write(priv, reg, hecc_read(priv, reg) | bit_mask);
247 hecc_write(priv, reg, hecc_read(priv, reg) & ~bit_mask);
252 return (hecc_read(priv, reg) & bit_mask) ? 1 : 0;
438 bec->txerr = hecc_read(priv, HECC_CANTEC);
439 bec->rxerr = hecc_read(priv, HECC_CANREC);
478 if (unlikely(hecc_read(priv, HECC_CANME) & mbx_mask)) {
510 if ((hecc_read(priv, HECC_CANME) & BIT(get_tx_head_mb(priv))) ||
583 hecc_read(priv, HECC_CANRML) & mbx_mask))
625 timestamp = hecc_read(priv, HECC_CANLNT);
657 cf->data[6] = hecc_read(priv, HECC_CANTEC);
658 cf->data[7] = hecc_read(priv, HECC_CANREC);
661 timestamp = hecc_read(priv, HECC_CANLNT);
676 int_status = hecc_read(priv,
683 err_status = hecc_read(priv, HECC_CANES);
689 u32 rec = hecc_read(priv, HECC_CANREC);
690 u32 tec = hecc_read(priv, HECC_CANTEC);
721 u32 rec = hecc_read(priv, HECC_CANREC);
722 u32 tec = hecc_read(priv, HECC_CANTEC);
742 if (!(mbx_mask & hecc_read(priv, HECC_CANTA)))
764 while ((rx_pending = hecc_read(priv, HECC_CANRMP))) {
773 int_status = hecc_read(priv, HECC_CANGIF1);
776 int_status = hecc_read(priv, HECC_CANGIF0);