Lines Matching refs:hecc_write
238 static inline void hecc_write(struct ti_hecc_priv *priv, u32 reg, u32 val) in hecc_write() function
251 hecc_write(priv, reg, hecc_read(priv, reg) | bit_mask); in hecc_set_bit()
257 hecc_write(priv, reg, hecc_read(priv, reg) & ~bit_mask); in hecc_clear_bit()
285 hecc_write(priv, HECC_CANBTC, can_btc); in ti_hecc_set_btc()
331 hecc_write(priv, HECC_CANMC, 0); in ti_hecc_reset()
347 hecc_write(priv, HECC_CANTIOC, HECC_CANTIOC_EN); in ti_hecc_reset()
348 hecc_write(priv, HECC_CANRIOC, HECC_CANRIOC_EN); in ti_hecc_reset()
351 hecc_write(priv, HECC_CANTA, HECC_SET_REG); in ti_hecc_reset()
352 hecc_write(priv, HECC_CANRMP, HECC_SET_REG); in ti_hecc_reset()
353 hecc_write(priv, HECC_CANGIF0, HECC_SET_REG); in ti_hecc_reset()
354 hecc_write(priv, HECC_CANGIF1, HECC_SET_REG); in ti_hecc_reset()
355 hecc_write(priv, HECC_CANME, 0); in ti_hecc_reset()
356 hecc_write(priv, HECC_CANMD, 0); in ti_hecc_reset()
374 hecc_write(priv, HECC_CANGAM, HECC_SET_REG); in ti_hecc_start()
397 hecc_write(priv, HECC_CANOPC, mbx_mask); in ti_hecc_start()
401 hecc_write(priv, HECC_CANMIL, HECC_SET_REG); in ti_hecc_start()
402 hecc_write(priv, HECC_CANGIM, HECC_CANGIM_DEF_MASK | in ti_hecc_start()
405 hecc_write(priv, HECC_CANMIL, 0); in ti_hecc_start()
406 hecc_write(priv, HECC_CANGIM, in ti_hecc_start()
420 hecc_write(priv, HECC_CANGIM, 0); in ti_hecc_stop()
421 hecc_write(priv, HECC_CANMIM, 0); in ti_hecc_stop()
422 hecc_write(priv, HECC_CANME, 0); in ti_hecc_stop()
527 hecc_write(priv, HECC_CANTRS, mbx_mask); in ti_hecc_xmit()
597 hecc_write(priv, HECC_CANRMP, mbx_mask); in ti_hecc_mailbox_read()
642 hecc_write(priv, HECC_CANES, HECC_CANES_FLAGS); in ti_hecc_error()
724 hecc_write(priv, HECC_CANGIM, 0); in ti_hecc_interrupt()
753 hecc_write(priv, HECC_CANTA, mbx_mask); in ti_hecc_interrupt()
782 hecc_write(priv, HECC_CANGIF1, handled); in ti_hecc_interrupt()
785 hecc_write(priv, HECC_CANGIF0, handled); in ti_hecc_interrupt()