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 */
52 #define SDBS BIT(3) /* slave data buffer select */
53 #define SIE BIT(2) /* slave interface enable */
69 #define STM BIT(5) /* slave transmit mode */
71 #define SDE BIT(3) /* slave data empty */
72 #define SDT BIT(2) /* slave data transmitted */
73 #define SDR BIT(1) /* slave data received */
74 #define SAR BIT(0) /* slave addr received */
83 #define MAT BIT(0) /* slave addr xfer done */
157 struct i2c_client *slave;
517 dev_dbg(dev, "dma prep slave sg failed, using PIO\n");
662 i2c_slave_event(priv->slave, I2C_SLAVE_READ_REQUESTED, &value);
666 i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_REQUESTED, &value);
677 i2c_slave_event(priv->slave, I2C_SLAVE_STOP, &value);
688 ret = i2c_slave_event(priv->slave, I2C_SLAVE_WRITE_RECEIVED, &value);
696 i2c_slave_event(priv->slave, I2C_SLAVE_READ_PROCESSED, &value);
1006 static int rcar_reg_slave(struct i2c_client *slave)
1008 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter);
1010 if (priv->slave)
1013 if (slave->flags & I2C_CLIENT_TEN)
1016 /* Keep device active for slave address detection logic */
1019 priv->slave = slave;
1020 rcar_i2c_write(priv, ICSAR, slave->addr);
1028 static int rcar_unreg_slave(struct i2c_client *slave)
1030 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter);
1032 WARN_ON(!priv->slave);
1040 rcar_i2c_write(priv, ICSAR, 0); /* Gen2: must be 0 if not using slave */
1042 priv->slave = NULL;
1155 rcar_i2c_write(priv, ICSAR, 0); /* Gen2: must be 0 if not using slave */