Lines Matching refs:rcar_i2c_write
150 static void rcar_i2c_write(struct rcar_i2c_priv *priv, int reg, u32 val) in rcar_i2c_write() function
182 rcar_i2c_write(priv, ICMCR, priv->recovery_icmcr); in rcar_i2c_set_scl()
194 rcar_i2c_write(priv, ICMCR, priv->recovery_icmcr); in rcar_i2c_set_sda()
215 rcar_i2c_write(priv, ICMIER, 0); in rcar_i2c_init()
216 rcar_i2c_write(priv, ICMCR, MDBS); in rcar_i2c_init()
217 rcar_i2c_write(priv, ICMSR, 0); in rcar_i2c_init()
219 rcar_i2c_write(priv, ICCCR, priv->icccr); in rcar_i2c_init()
222 rcar_i2c_write(priv, ICFBSCR, TCYC17); in rcar_i2c_init()
352 rcar_i2c_write(priv, ICMAR, i2c_8bit_addr_from_msg(priv->msg)); in rcar_i2c_prepare_msg()
354 rcar_i2c_write(priv, ICMIER, read ? RCAR_IRQ_RECV : RCAR_IRQ_SEND); in rcar_i2c_prepare_msg()
357 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_START); in rcar_i2c_prepare_msg()
365 rcar_i2c_write(priv, ICMSR, 0); /* must be before preparing msg */ in rcar_i2c_first_msg()
397 rcar_i2c_write(priv, ICDMAER, 0); in rcar_i2c_cleanup_dma()
474 rcar_i2c_write(priv, ICDMAER, RMDMAE); in rcar_i2c_dma()
476 rcar_i2c_write(priv, ICDMAER, TMDMAE); in rcar_i2c_dma()
506 rcar_i2c_write(priv, ICRXTX, msg->buf[priv->pos]); in rcar_i2c_irq_send()
523 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_STOP); in rcar_i2c_irq_send()
574 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_STOP); in rcar_i2c_irq_recv()
576 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_START); in rcar_i2c_irq_recv()
603 rcar_i2c_write(priv, ICRXTX, value); in rcar_i2c_slave_irq()
604 rcar_i2c_write(priv, ICSIER, SDE | SSR | SAR); in rcar_i2c_slave_irq()
608 rcar_i2c_write(priv, ICSIER, SDR | SSR | SAR); in rcar_i2c_slave_irq()
612 rcar_i2c_write(priv, ICSSR, ~(SAR | SSR) & 0xff); in rcar_i2c_slave_irq()
618 rcar_i2c_write(priv, ICSCR, SIE | SDBS); /* clear our NACK */ in rcar_i2c_slave_irq()
619 rcar_i2c_write(priv, ICSIER, SAR); in rcar_i2c_slave_irq()
620 rcar_i2c_write(priv, ICSSR, ~SSR & 0xff); in rcar_i2c_slave_irq()
630 rcar_i2c_write(priv, ICSCR, SIE | SDBS | (ret < 0 ? FNA : 0)); in rcar_i2c_slave_irq()
631 rcar_i2c_write(priv, ICSSR, ~SDR & 0xff); in rcar_i2c_slave_irq()
637 rcar_i2c_write(priv, ICRXTX, value); in rcar_i2c_slave_irq()
638 rcar_i2c_write(priv, ICSSR, ~SDE & 0xff); in rcar_i2c_slave_irq()
674 rcar_i2c_write(priv, ICMIER, RCAR_IRQ_STOP); in rcar_i2c_irq()
693 rcar_i2c_write(priv, ICMIER, 0); in rcar_i2c_irq()
694 rcar_i2c_write(priv, ICMSR, 0); in rcar_i2c_irq()
709 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_DATA); in rcar_i2c_gen2_irq()
734 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_DATA); in rcar_i2c_gen3_irq()
962 rcar_i2c_write(priv, ICSAR, slave->addr); in rcar_reg_slave()
963 rcar_i2c_write(priv, ICSSR, 0); in rcar_reg_slave()
964 rcar_i2c_write(priv, ICSIER, SAR); in rcar_reg_slave()
965 rcar_i2c_write(priv, ICSCR, SIE | SDBS); in rcar_reg_slave()
978 rcar_i2c_write(priv, ICSIER, 0); in rcar_unreg_slave()
979 rcar_i2c_write(priv, ICSSR, 0); in rcar_unreg_slave()
981 rcar_i2c_write(priv, ICSCR, SDBS); in rcar_unreg_slave()
982 rcar_i2c_write(priv, ICSAR, 0); /* Gen2: must be 0 if not using slave */ in rcar_unreg_slave()
1095 rcar_i2c_write(priv, ICSAR, 0); /* Gen2: must be 0 if not using slave */ in rcar_i2c_probe()