Lines Matching refs:i2c_writel

224 static inline void i2c_writel(struct rk3x_i2c *i2c, u32 value,  in i2c_writel()  function
238 i2c_writel(i2c, REG_INT_ALL, REG_IPD); in rk3x_i2c_clean_ipd()
248 i2c_writel(i2c, REG_INT_START, REG_IEN); in rk3x_i2c_start()
257 i2c_writel(i2c, val, REG_CON); in rk3x_i2c_start()
275 i2c_writel(i2c, REG_INT_STOP, REG_IEN); in rk3x_i2c_stop()
281 i2c_writel(i2c, ctrl, REG_CON); in rk3x_i2c_stop()
293 i2c_writel(i2c, ctrl, REG_CON); in rk3x_i2c_stop()
327 i2c_writel(i2c, con, REG_CON); in rk3x_i2c_prepare_read()
328 i2c_writel(i2c, len, REG_MRXCNT); in rk3x_i2c_prepare_read()
356 i2c_writel(i2c, val, TXBUFFER_BASE + 4 * i); in rk3x_i2c_fill_transmit_buf()
362 i2c_writel(i2c, cnt, REG_MTXCNT); in rk3x_i2c_fill_transmit_buf()
378 i2c_writel(i2c, REG_INT_START, REG_IPD); in rk3x_i2c_handle_start()
381 i2c_writel(i2c, i2c_readl(i2c, REG_CON) & ~REG_CON_START, REG_CON); in rk3x_i2c_handle_start()
385 i2c_writel(i2c, REG_INT_MBTF | REG_INT_NAKRCV, REG_IEN); in rk3x_i2c_handle_start()
390 i2c_writel(i2c, REG_INT_MBRF | REG_INT_NAKRCV, REG_IEN); in rk3x_i2c_handle_start()
406 i2c_writel(i2c, REG_INT_MBTF, REG_IPD); in rk3x_i2c_handle_write()
427 i2c_writel(i2c, REG_INT_MBRF, REG_IPD); in rk3x_i2c_handle_read()
461 i2c_writel(i2c, REG_INT_STOP, REG_IPD); in rk3x_i2c_handle_stop()
466 i2c_writel(i2c, con, REG_CON); in rk3x_i2c_handle_stop()
500 i2c_writel(i2c, REG_INT_NAKRCV, REG_IPD); in rk3x_i2c_irq()
890 i2c_writel(i2c, val, REG_CON); in rk3x_i2c_adapt_div()
891 i2c_writel(i2c, (calc.div_high << 16) | (calc.div_low & 0xffff), in rk3x_i2c_adapt_div()
1003 i2c_writel(i2c, addr | REG_MRXADDR_VALID(0), REG_MRXADDR); in rk3x_i2c_setup()
1004 i2c_writel(i2c, reg_addr, REG_MRXRADDR); in rk3x_i2c_setup()
1021 i2c_writel(i2c, addr | REG_MRXADDR_VALID(0), in rk3x_i2c_setup()
1023 i2c_writel(i2c, 0, REG_MRXRADDR); in rk3x_i2c_setup()
1106 i2c_writel(i2c, 0, REG_IEN); in rk3x_i2c_xfer_common()
1109 i2c_writel(i2c, val, REG_CON); in rk3x_i2c_xfer_common()