Lines Matching refs:hecc_write
261 static inline void hecc_write(struct ti_hecc_priv *priv, u32 reg, u32 val) in hecc_write() 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()
308 hecc_write(priv, HECC_CANBTC, can_btc); in ti_hecc_set_btc()
351 hecc_write(priv, HECC_CANMC, 0); in ti_hecc_reset()
369 hecc_write(priv, HECC_CANTIOC, HECC_CANTIOC_EN); in ti_hecc_reset()
370 hecc_write(priv, HECC_CANRIOC, HECC_CANRIOC_EN); in ti_hecc_reset()
373 hecc_write(priv, HECC_CANTA, HECC_SET_REG); in ti_hecc_reset()
374 hecc_write(priv, HECC_CANRMP, HECC_SET_REG); in ti_hecc_reset()
375 hecc_write(priv, HECC_CANGIF0, HECC_SET_REG); in ti_hecc_reset()
376 hecc_write(priv, HECC_CANGIF1, HECC_SET_REG); in ti_hecc_reset()
377 hecc_write(priv, HECC_CANME, 0); in ti_hecc_reset()
378 hecc_write(priv, HECC_CANMD, 0); in ti_hecc_reset()
396 hecc_write(priv, HECC_CANGAM, HECC_SET_REG); in ti_hecc_start()
411 hecc_write(priv, HECC_CANOPC, HECC_SET_REG); in ti_hecc_start()
413 hecc_write(priv, HECC_CANMIL, HECC_SET_REG); in ti_hecc_start()
414 hecc_write(priv, HECC_CANGIM, HECC_CANGIM_DEF_MASK | in ti_hecc_start()
417 hecc_write(priv, HECC_CANMIL, 0); in ti_hecc_start()
418 hecc_write(priv, HECC_CANGIM, in ti_hecc_start()
429 hecc_write(priv, HECC_CANGIM, 0); in ti_hecc_stop()
430 hecc_write(priv, HECC_CANMIM, 0); in ti_hecc_stop()
431 hecc_write(priv, HECC_CANME, 0); in ti_hecc_stop()
539 hecc_write(priv, HECC_CANTRS, mbx_mask); in ti_hecc_xmit()
578 hecc_write(priv, HECC_CANRMP, mbx_mask); in ti_hecc_rx_pkt()
640 hecc_write(priv, HECC_CANME, mbx_mask); in ti_hecc_rx_poll()
654 hecc_write(priv, HECC_CANMIM, mbx_mask); in ti_hecc_rx_poll()
717 hecc_write(priv, HECC_CANGIM, 0); in ti_hecc_error()
780 hecc_write(priv, HECC_CANTA, mbx_mask); in ti_hecc_interrupt()
803 hecc_write(priv, HECC_CANMIM, ack); in ti_hecc_interrupt()
810 hecc_write(priv, HECC_CANGIF1, HECC_SET_REG); in ti_hecc_interrupt()
813 hecc_write(priv, HECC_CANGIF0, HECC_SET_REG); in ti_hecc_interrupt()