Searched refs:rcar_i2c_write (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-rcar.c133 static void rcar_i2c_write(struct rcar_i2c_priv *priv, int reg, u32 val) rcar_i2c_write() function
146 rcar_i2c_write(priv, ICMIER, 0); rcar_i2c_init()
147 rcar_i2c_write(priv, ICMCR, 0); rcar_i2c_init()
148 rcar_i2c_write(priv, ICMSR, 0); rcar_i2c_init()
149 rcar_i2c_write(priv, ICMAR, 0); rcar_i2c_init()
260 rcar_i2c_write(priv, ICMAR, (priv->msg->addr << 1) | read); rcar_i2c_prepare_msg()
261 rcar_i2c_write(priv, ICMSR, 0); rcar_i2c_prepare_msg()
262 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_START); rcar_i2c_prepare_msg()
263 rcar_i2c_write(priv, ICMIER, read ? RCAR_IRQ_RECV : RCAR_IRQ_SEND); rcar_i2c_prepare_msg()
286 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_DATA); rcar_i2c_irq_send()
296 rcar_i2c_write(priv, ICRXTX, msg->buf[priv->pos]); rcar_i2c_irq_send()
314 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_STOP); rcar_i2c_irq_send()
325 rcar_i2c_write(priv, ICMSR, RCAR_IRQ_ACK_SEND); rcar_i2c_irq_send()
362 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_STOP); rcar_i2c_irq_recv()
364 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_DATA); rcar_i2c_irq_recv()
366 rcar_i2c_write(priv, ICMSR, RCAR_IRQ_ACK_RECV); rcar_i2c_irq_recv()
387 rcar_i2c_write(priv, ICRXTX, value); rcar_i2c_slave_irq()
388 rcar_i2c_write(priv, ICSIER, SDE | SSR | SAR); rcar_i2c_slave_irq()
392 rcar_i2c_write(priv, ICSIER, SDR | SSR | SAR); rcar_i2c_slave_irq()
395 rcar_i2c_write(priv, ICSSR, ~SAR & 0xff); rcar_i2c_slave_irq()
401 rcar_i2c_write(priv, ICSIER, SAR | SSR); rcar_i2c_slave_irq()
402 rcar_i2c_write(priv, ICSSR, ~SSR & 0xff); rcar_i2c_slave_irq()
412 rcar_i2c_write(priv, ICSCR, SIE | SDBS | (ret < 0 ? FNA : 0)); rcar_i2c_slave_irq()
413 rcar_i2c_write(priv, ICSSR, ~SDR & 0xff); rcar_i2c_slave_irq()
419 rcar_i2c_write(priv, ICRXTX, value); rcar_i2c_slave_irq()
420 rcar_i2c_write(priv, ICSSR, ~SDE & 0xff); rcar_i2c_slave_irq()
456 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_STOP); rcar_i2c_irq()
457 rcar_i2c_write(priv, ICMIER, RCAR_IRQ_STOP); rcar_i2c_irq()
475 rcar_i2c_write(priv, ICMIER, 0); rcar_i2c_irq()
476 rcar_i2c_write(priv, ICMSR, 0); rcar_i2c_irq()
504 rcar_i2c_write(priv, ICCCR, priv->icccr); rcar_i2c_master_xfer()
582 rcar_i2c_write(priv, ICSAR, slave->addr); rcar_reg_slave()
583 rcar_i2c_write(priv, ICSSR, 0); rcar_reg_slave()
584 rcar_i2c_write(priv, ICSIER, SAR | SSR); rcar_reg_slave()
585 rcar_i2c_write(priv, ICSCR, SIE | SDBS); rcar_reg_slave()
596 rcar_i2c_write(priv, ICSIER, 0); rcar_unreg_slave()
597 rcar_i2c_write(priv, ICSCR, 0); rcar_unreg_slave()

Completed in 44 milliseconds