Lines Matching refs:hecc_read

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