Lines Matching refs:rcar_i2c_write
151 static void rcar_i2c_write(struct rcar_i2c_priv *priv, int reg, u32 val) in rcar_i2c_write() function
183 rcar_i2c_write(priv, ICMCR, priv->recovery_icmcr); in rcar_i2c_set_scl()
195 rcar_i2c_write(priv, ICMCR, priv->recovery_icmcr); in rcar_i2c_set_sda()
216 rcar_i2c_write(priv, ICMIER, 0); in rcar_i2c_init()
217 rcar_i2c_write(priv, ICMCR, MDBS); in rcar_i2c_init()
218 rcar_i2c_write(priv, ICMSR, 0); in rcar_i2c_init()
220 rcar_i2c_write(priv, ICCCR, priv->icccr); in rcar_i2c_init()
223 rcar_i2c_write(priv, ICFBSCR, TCYC17); in rcar_i2c_init()
229 rcar_i2c_write(priv, ICSIER, 0); in rcar_i2c_reset_slave()
230 rcar_i2c_write(priv, ICSSR, 0); in rcar_i2c_reset_slave()
231 rcar_i2c_write(priv, ICSCR, SDBS); in rcar_i2c_reset_slave()
232 rcar_i2c_write(priv, ICSAR, 0); /* Gen2: must be 0 if not using slave */ in rcar_i2c_reset_slave()
361 rcar_i2c_write(priv, ICMAR, i2c_8bit_addr_from_msg(priv->msg)); in rcar_i2c_prepare_msg()
363 rcar_i2c_write(priv, ICMIER, read ? RCAR_IRQ_RECV : RCAR_IRQ_SEND); in rcar_i2c_prepare_msg()
366 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_START); in rcar_i2c_prepare_msg()
374 rcar_i2c_write(priv, ICMSR, 0); /* must be before preparing msg */ in rcar_i2c_first_msg()
406 rcar_i2c_write(priv, ICDMAER, 0); in rcar_i2c_cleanup_dma()
483 rcar_i2c_write(priv, ICDMAER, RMDMAE); in rcar_i2c_dma()
485 rcar_i2c_write(priv, ICDMAER, TMDMAE); in rcar_i2c_dma()
515 rcar_i2c_write(priv, ICRXTX, msg->buf[priv->pos]); in rcar_i2c_irq_send()
532 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_STOP); in rcar_i2c_irq_send()
583 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_STOP); in rcar_i2c_irq_recv()
585 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_START); in rcar_i2c_irq_recv()
612 rcar_i2c_write(priv, ICRXTX, value); in rcar_i2c_slave_irq()
613 rcar_i2c_write(priv, ICSIER, SDE | SSR | SAR); in rcar_i2c_slave_irq()
617 rcar_i2c_write(priv, ICSIER, SDR | SSR | SAR); in rcar_i2c_slave_irq()
621 rcar_i2c_write(priv, ICSSR, ~(SAR | SSR) & 0xff); in rcar_i2c_slave_irq()
627 rcar_i2c_write(priv, ICSCR, SIE | SDBS); /* clear our NACK */ in rcar_i2c_slave_irq()
628 rcar_i2c_write(priv, ICSIER, SAR); in rcar_i2c_slave_irq()
629 rcar_i2c_write(priv, ICSSR, ~SSR & 0xff); in rcar_i2c_slave_irq()
639 rcar_i2c_write(priv, ICSCR, SIE | SDBS | (ret < 0 ? FNA : 0)); in rcar_i2c_slave_irq()
640 rcar_i2c_write(priv, ICSSR, ~SDR & 0xff); in rcar_i2c_slave_irq()
646 rcar_i2c_write(priv, ICRXTX, value); in rcar_i2c_slave_irq()
647 rcar_i2c_write(priv, ICSSR, ~SDE & 0xff); in rcar_i2c_slave_irq()
683 rcar_i2c_write(priv, ICMIER, RCAR_IRQ_STOP); in rcar_i2c_irq()
702 rcar_i2c_write(priv, ICMIER, 0); in rcar_i2c_irq()
703 rcar_i2c_write(priv, ICMSR, 0); in rcar_i2c_irq()
718 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_DATA); in rcar_i2c_gen2_irq()
743 rcar_i2c_write(priv, ICMCR, RCAR_BUS_PHASE_DATA); in rcar_i2c_gen3_irq()
973 rcar_i2c_write(priv, ICSAR, slave->addr); in rcar_reg_slave()
974 rcar_i2c_write(priv, ICSSR, 0); in rcar_reg_slave()
975 rcar_i2c_write(priv, ICSIER, SAR); in rcar_reg_slave()
976 rcar_i2c_write(priv, ICSCR, SIE | SDBS); in rcar_reg_slave()