Lines Matching defs:slave

141  * @CDNS_I2C_MODE_SLAVE:       I2C controller operating in slave mode
150 * enum cdns_i2c_slave_state - Slave state when I2C is operating in slave mode
152 * @CDNS_I2C_SLAVE_STATE_IDLE: I2C slave idle
153 * @CDNS_I2C_SLAVE_STATE_SEND: I2C slave sending data to master
154 * @CDNS_I2C_SLAVE_STATE_RECV: I2C slave receiving data from master
187 * @slave: Registered slave instance.
188 * @dev_mode: I2C operating role(master/slave).
216 struct i2c_client *slave;
272 * will not detect any slave and without this delay, the IP will
278 /* Enable i2c slave */
283 /* Setting slave address */
284 cdns_i2c_writereg(id->slave->addr & CDNS_I2C_ADDR_MASK,
287 /* Enable slave send/receive interrupts */
302 i2c_slave_event(id->slave, I2C_SLAVE_WRITE_REQUESTED, NULL);
311 i2c_slave_event(id->slave, I2C_SLAVE_WRITE_RECEIVED, &data);
322 i2c_slave_event(id->slave, I2C_SLAVE_READ_REQUESTED, &data);
324 i2c_slave_event(id->slave, I2C_SLAVE_READ_PROCESSED, &data);
332 * cdns_i2c_slave_isr - Interrupt handler for the I2C device in slave role
336 * the I2C device in slave role.
363 i2c_slave_event(id->slave, I2C_SLAVE_STOP, NULL);
373 i2c_slave_event(id->slave, I2C_SLAVE_STOP, NULL);
381 i2c_slave_event(id->slave, I2C_SLAVE_STOP, NULL);
458 * The controller sends NACK to the slave when transfer size
548 * This function passes the control to slave/master based on current role of
642 * writes to slave address register and control register.
717 /* Set the slave address in address register - triggers operation. */
919 /* Switch i2c mode to slave */
949 static int cdns_reg_slave(struct i2c_client *slave)
952 struct cdns_i2c *id = container_of(slave->adapter, struct cdns_i2c,
955 if (id->slave)
958 if (slave->flags & I2C_CLIENT_TEN)
965 /* Store slave information */
966 id->slave = slave;
968 /* Enable I2C slave */
974 static int cdns_unreg_slave(struct i2c_client *slave)
976 struct cdns_i2c *id = container_of(slave->adapter, struct cdns_i2c,
981 /* Remove slave information */
982 id->slave = NULL;