Lines Matching full:slave

3  * Synopsys DesignWare I2C adapter driver (slave only).
29 /* Configure the I2C slave. */ in i2c_dw_configure_fifo_slave()
35 * i2c_dw_init_slave() - Initialize the designware i2c slave hardware
38 * This function configures and enables the I2C in slave mode.
63 static int i2c_dw_reg_slave(struct i2c_client *slave) in i2c_dw_reg_slave() argument
65 struct dw_i2c_dev *dev = i2c_get_adapdata(slave->adapter); in i2c_dw_reg_slave()
67 if (dev->slave) in i2c_dw_reg_slave()
69 if (slave->flags & I2C_CLIENT_TEN) in i2c_dw_reg_slave()
74 * Set slave address in the IC_SAR register, in i2c_dw_reg_slave()
78 regmap_write(dev->map, DW_IC_SAR, slave->addr); in i2c_dw_reg_slave()
79 dev->slave = slave; in i2c_dw_reg_slave()
88 static int i2c_dw_unreg_slave(struct i2c_client *slave) in i2c_dw_unreg_slave() argument
90 struct dw_i2c_dev *dev = i2c_get_adapdata(slave->adapter); in i2c_dw_unreg_slave()
95 dev->slave = NULL; in i2c_dw_unreg_slave()
149 * Interrupt service routine. This gets called whenever an I2C slave interrupt
163 if (!enabled || !(raw_stat & ~DW_IC_INTR_ACTIVITY) || !dev->slave) in i2c_dw_isr_slave()
175 i2c_slave_event(dev->slave, I2C_SLAVE_WRITE_REQUESTED, in i2c_dw_isr_slave()
182 i2c_slave_event(dev->slave, in i2c_dw_isr_slave()
186 i2c_slave_event(dev->slave, I2C_SLAVE_WRITE_RECEIVED, in i2c_dw_isr_slave()
197 i2c_slave_event(dev->slave, in i2c_dw_isr_slave()
203 i2c_slave_event(dev->slave, in i2c_dw_isr_slave()
212 i2c_slave_event(dev->slave, I2C_SLAVE_STOP, &val); in i2c_dw_isr_slave()
258 "Synopsys DesignWare I2C Slave adapter"); in i2c_dw_probe_slave()
281 MODULE_DESCRIPTION("Synopsys DesignWare I2C bus slave adapter");