Lines Matching defs:slave
90 struct i2c_client *slave;
151 static int gxp_i2c_reg_slave(struct i2c_client *slave)
153 struct gxp_i2c_drvdata *drvdata = i2c_get_adapdata(slave->adapter);
155 if (drvdata->slave)
158 if (slave->flags & I2C_CLIENT_TEN)
161 drvdata->slave = slave;
163 writeb(slave->addr << 1, drvdata->base + GXP_I2COWNADR);
170 static int gxp_i2c_unreg_slave(struct i2c_client *slave)
172 struct gxp_i2c_drvdata *drvdata = i2c_get_adapdata(slave->adapter);
174 WARN_ON(!drvdata->slave);
180 drvdata->slave = NULL;
238 /* Start to read data from slave */
258 /* Start to write first data to slave */
303 /* Ack the slave to make it send next byte */
345 /* Write data to slave */
371 i2c_slave_event(drvdata->slave, I2C_SLAVE_STOP, &buf);
379 i2c_slave_event(drvdata->slave,
386 ret = i2c_slave_event(drvdata->slave,
406 i2c_slave_event(drvdata->slave,
421 ret = i2c_slave_event(drvdata->slave,