Lines Matching defs:slave
168 struct i2c_client *slave;
247 struct i2c_client *slave = bus->slave;
250 if (!slave)
270 /* Propagate any stop conditions to the slave implementation. */
272 i2c_slave_event(slave, I2C_SLAVE_STOP, &value);
286 * If the slave has been stopped and not started then slave interrupt
293 dev_dbg(bus->dev, "slave irq status 0x%08x, cmd 0x%08x\n",
316 i2c_slave_event(slave, I2C_SLAVE_READ_REQUESTED, &value);
327 i2c_slave_event(slave, I2C_SLAVE_READ_PROCESSED, &value);
333 i2c_slave_event(slave, I2C_SLAVE_WRITE_REQUESTED, &value);
336 i2c_slave_event(slave, I2C_SLAVE_WRITE_RECEIVED, &value);
364 * If it's requested in the middle of a slave session, set the master
486 "master goes pending due to a slave start\n");
496 pr_devel("no slave present at %02x\n", msg->addr);
516 dev_dbg(bus->dev, "slave NACKed TX\n");
520 dev_err(bus->dev, "slave failed to ACK TX\n");
631 * possible that master interrupt bits could be set along with slave
650 * Start a pending master command at here if a slave operation is
749 /* Set slave addr. */
755 /* Turn on slave mode. */
769 if (bus->slave) {
776 bus->slave = client;
789 if (!bus->slave) {
794 /* Turn off slave mode. */
799 bus->slave = NULL;
941 /* If slave has already been registered, re-enable it. */
942 if (bus->slave)
943 __aspeed_i2c_reg_slave(bus, bus->slave->addr);