Lines Matching defs:slave
166 struct i2c_client *slave;
245 struct i2c_client *slave = bus->slave;
249 if (!slave)
269 /* Propagate any stop conditions to the slave implementation. */
271 i2c_slave_event(slave, I2C_SLAVE_STOP, &value);
285 * If the slave has been stopped and not started then slave interrupt
292 dev_dbg(bus->dev, "slave irq status 0x%08x, cmd 0x%08x\n",
315 i2c_slave_event(slave, I2C_SLAVE_READ_REQUESTED, &value);
326 i2c_slave_event(slave, I2C_SLAVE_READ_PROCESSED, &value);
332 ret = i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value);
341 i2c_slave_event(slave, I2C_SLAVE_WRITE_RECEIVED, &value);
369 * If it's requested in the middle of a slave session, set the master
491 "master goes pending due to a slave start\n");
501 pr_devel("no slave present at %02x\n", msg->addr);
521 dev_dbg(bus->dev, "slave NACKed TX\n");
525 dev_err(bus->dev, "slave failed to ACK TX\n");
636 * possible that master interrupt bits could be set along with slave
655 * Start a pending master command at here if a slave operation is
755 * Set slave addr. Reserved bits can all safely be written with zeros
757 * enable a single slave address (ast2500 has two, ast2600 has three,
764 /* Turn on slave mode. */
778 if (bus->slave) {
785 bus->slave = client;
798 if (!bus->slave) {
803 /* Turn off slave mode. */
808 bus->slave = NULL;
950 /* If slave has already been registered, re-enable it. */
951 if (bus->slave)
952 __aspeed_i2c_reg_slave(bus, bus->slave->addr);