Home
last modified time | relevance | path

Searched refs:mbxno (Results 1 – 1 of 1) sorted by relevance

/linux-4.4.14/drivers/net/can/
Dti_hecc.c243 static inline void hecc_write_lam(struct ti_hecc_priv *priv, u32 mbxno, u32 val) in hecc_write_lam() argument
245 __raw_writel(val, priv->base + priv->hecc_ram_offset + mbxno * 4); in hecc_write_lam()
248 static inline void hecc_write_mbx(struct ti_hecc_priv *priv, u32 mbxno, in hecc_write_mbx() argument
251 __raw_writel(val, priv->base + priv->mbx_offset + mbxno * 0x10 + in hecc_write_mbx()
255 static inline u32 hecc_read_mbx(struct ti_hecc_priv *priv, u32 mbxno, u32 reg) in hecc_read_mbx() argument
257 return __raw_readl(priv->base + priv->mbx_offset + mbxno * 0x10 + in hecc_read_mbx()
387 u32 cnt, mbxno, mbx_mask; in ti_hecc_start() local
400 mbxno = HECC_MAX_MAILBOXES - 1 - cnt; in ti_hecc_start()
401 mbx_mask = BIT(mbxno); in ti_hecc_start()
403 hecc_write_mbx(priv, mbxno, HECC_CANMID, HECC_CANMID_AME); in ti_hecc_start()
[all …]