Lines Matching defs:slave
16 * Dec 2004: Added support for PXA27x and slave device probing [Liam Girdwood]
17 * Feb 2005: Rework slave mode handling [RMK]
52 #define ICR_SSDIE (1 << 11) /* slave STOP detected int enable */
54 #define ICR_SADIE (1 << 13) /* slave address detected int enable */
66 #define ISR_SSD (1 << 4) /* slave stop detected */
71 #define ISR_SAD (1 << 9) /* slave address detected */
104 * 13 SADIE 0 (Disables the unit from interrupting on slave addresses
105 * matching its slave address)
108 * 11 SSDIE 0 (Disables interrupts from a slave stop detected, in slave mode)
112 * 7 GCD 1 (Disables i2c unit response to general call messages as a slave)
126 * 9 SAD 1 (Clear slave address detected)
237 struct i2c_client *slave;
402 dev_dbg(&i2c->adap.dev, "%s: called in slave mode\n", __func__);
584 dev_info(&i2c->adap.dev, "Enabling slave mode\n");
621 if (i2c->slave != NULL)
622 i2c_slave_event(i2c->slave, I2C_SLAVE_READ_PROCESSED,
634 if (i2c->slave != NULL)
635 i2c_slave_event(i2c->slave, I2C_SLAVE_WRITE_RECEIVED, &byte);
645 dev_dbg(&i2c->adap.dev, "SAD, mode is slave-%cx\n",
648 if (i2c->slave != NULL) {
652 i2c_slave_event(i2c->slave, I2C_SLAVE_READ_REQUESTED,
656 i2c_slave_event(i2c->slave, I2C_SLAVE_WRITE_REQUESTED,
662 * slave could interrupt in the middle of us generating a
691 if (i2c->slave != NULL)
692 i2c_slave_event(i2c->slave, I2C_SLAVE_STOP, NULL);
699 * kick it off now that the slave has completed.
705 static int i2c_pxa_slave_reg(struct i2c_client *slave)
707 struct pxa_i2c *i2c = slave->adapter->algo_data;
709 if (i2c->slave)
715 i2c->slave = slave;
716 i2c->slave_addr = slave->addr;
723 static int i2c_pxa_slave_unreg(struct i2c_client *slave)
725 struct pxa_i2c *i2c = slave->adapter->algo_data;
727 WARN_ON(!i2c->slave);
732 i2c->slave = NULL;
757 * slave could interrupt in the middle of us generating a
797 * Step 1: target slave address into IDBR
1340 * When slave mode is enabled, we are not the only master on the bus.
1342 * we can't be certain of. Therefore, when slave mode is enabled, do
1531 dev_info(&i2c->adap.dev, " PXA I2C adapter, slave address %d\n",