Lines Matching refs:hecc_read

266 static inline u32 hecc_read(struct ti_hecc_priv *priv, int reg)  in hecc_read()  function
274 hecc_write(priv, reg, hecc_read(priv, reg) | bit_mask); in hecc_set_bit()
280 hecc_write(priv, reg, hecc_read(priv, reg) & ~bit_mask); in hecc_clear_bit()
285 return (hecc_read(priv, reg) & bit_mask) ? 1 : 0; in hecc_get_bit()
457 bec->txerr = hecc_read(priv, HECC_CANTEC); in ti_hecc_get_berr_counter()
458 bec->rxerr = hecc_read(priv, HECC_CANREC); in ti_hecc_get_berr_counter()
498 if (unlikely(hecc_read(priv, HECC_CANME) & mbx_mask)) { in ti_hecc_xmit()
530 if ((hecc_read(priv, HECC_CANME) & BIT(get_tx_head_mb(priv))) || in ti_hecc_xmit()
624 while ((pending_pkts = hecc_read(priv, HECC_CANRMP)) && in ti_hecc_rx_poll()
638 mbx_mask = hecc_read(priv, HECC_CANME); in ti_hecc_rx_poll()
649 if (hecc_read(priv, HECC_CANRMP) == 0) { in ti_hecc_rx_poll()
652 mbx_mask = hecc_read(priv, HECC_CANMIM); in ti_hecc_rx_poll()
682 if (hecc_read(priv, HECC_CANTEC) > 96) in ti_hecc_error()
684 if (hecc_read(priv, HECC_CANREC) > 96) in ti_hecc_error()
697 if (hecc_read(priv, HECC_CANTEC) > 127) in ti_hecc_error()
699 if (hecc_read(priv, HECC_CANREC) > 127) in ti_hecc_error()
762 int_status = hecc_read(priv, in ti_hecc_interrupt()
768 err_status = hecc_read(priv, HECC_CANES); in ti_hecc_interrupt()
777 if (!(mbx_mask & hecc_read(priv, HECC_CANTA))) in ti_hecc_interrupt()
800 if (hecc_read(priv, HECC_CANRMP)) { in ti_hecc_interrupt()
801 ack = hecc_read(priv, HECC_CANMIM); in ti_hecc_interrupt()
811 int_status = hecc_read(priv, HECC_CANGIF1); in ti_hecc_interrupt()
814 int_status = hecc_read(priv, HECC_CANGIF0); in ti_hecc_interrupt()