Lines Matching defs:slave

138  * @CDNS_I2C_MODE_SLAVE:       I2C controller operating in slave mode
147 * enum cdns_i2c_slave_mode - Slave state when I2C is operating in slave mode
149 * @CDNS_I2C_SLAVE_STATE_IDLE: I2C slave idle
150 * @CDNS_I2C_SLAVE_STATE_SEND: I2C slave sending data to master
151 * @CDNS_I2C_SLAVE_STATE_RECV: I2C slave receiving data from master
182 * @slave: Registered slave instance.
183 * @dev_mode: I2C operating role(master/slave).
207 struct i2c_client *slave;
261 * will not detect any slave and without this delay, the IP will
267 /* Enable i2c slave */
272 /* Setting slave address */
273 cdns_i2c_writereg(id->slave->addr & CDNS_I2C_ADDR_MASK,
276 /* Enable slave send/receive interrupts */
291 i2c_slave_event(id->slave, I2C_SLAVE_WRITE_REQUESTED, NULL);
300 i2c_slave_event(id->slave, I2C_SLAVE_WRITE_RECEIVED, &data);
311 i2c_slave_event(id->slave, I2C_SLAVE_READ_REQUESTED, &data);
313 i2c_slave_event(id->slave, I2C_SLAVE_READ_PROCESSED, &data);
321 * cdns_i2c_slave_isr - Interrupt handler for the I2C device in slave role
325 * the I2C device in slave role.
352 i2c_slave_event(id->slave, I2C_SLAVE_STOP, NULL);
362 i2c_slave_event(id->slave, I2C_SLAVE_STOP, NULL);
370 i2c_slave_event(id->slave, I2C_SLAVE_STOP, NULL);
447 * The controller sends NACK to the slave when transfer size
537 * This function passes the control to slave/master based on current role of
606 /* Set the slave address in address register - triggers operation */
673 /* Set the slave address in address register - triggers operation. */
870 /* Switch i2c mode to slave */
900 static int cdns_reg_slave(struct i2c_client *slave)
903 struct cdns_i2c *id = container_of(slave->adapter, struct cdns_i2c,
906 if (id->slave)
909 if (slave->flags & I2C_CLIENT_TEN)
916 /* Store slave information */
917 id->slave = slave;
919 /* Enable I2C slave */
925 static int cdns_unreg_slave(struct i2c_client *slave)
927 struct cdns_i2c *id = container_of(slave->adapter, struct cdns_i2c,
932 /* Remove slave information */
933 id->slave = NULL;