Lines Matching defs:slave

34 #define ICSCR	0x00	/* slave ctrl */
36 #define ICSSR 0x08 /* slave status */
38 #define ICSIER 0x10 /* slave irq enable */
41 #define ICSAR 0x1C /* slave address */
48 #define SDBS (1 << 3) /* slave data buffer select */
49 #define SIE (1 << 2) /* slave interface enable */
65 #define STM (1 << 5) /* slave transmit mode */
67 #define SDE (1 << 3) /* slave data empty */
68 #define SDT (1 << 2) /* slave data transmitted */
69 #define SDR (1 << 1) /* slave data received */
70 #define SAR (1 << 0) /* slave addr received */
79 #define MAT (1 << 0) /* slave addr xfer done */
135 struct i2c_client *slave;
455 dev_dbg(dev, "dma prep slave sg failed, using PIO\n");
578 i2c_slave_event(priv->slave, I2C_SLAVE_READ_REQUESTED, &value);
582 i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_REQUESTED, &value);
593 i2c_slave_event(priv->slave, I2C_SLAVE_STOP, &value);
604 ret = i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_RECEIVED, &value);
612 i2c_slave_event(priv->slave, I2C_SLAVE_READ_PROCESSED, &value);
861 static int rcar_reg_slave(struct i2c_client *slave)
863 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter);
865 if (priv->slave)
868 if (slave->flags & I2C_CLIENT_TEN)
871 /* Keep device active for slave address detection logic */
874 priv->slave = slave;
875 rcar_i2c_write(priv, ICSAR, slave->addr);
883 static int rcar_unreg_slave(struct i2c_client *slave)
885 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter);
887 WARN_ON(!priv->slave);
895 rcar_i2c_write(priv, ICSAR, 0); /* Gen2: must be 0 if not using slave */
897 priv->slave = NULL;
1007 rcar_i2c_write(priv, ICSAR, 0); /* Gen2: must be 0 if not using slave */