Lines Matching defs:slave

155  * running for less time, max slave read per tasklet is set to 10 bytes.
197 struct i2c_client *slave;
213 /* tasklet to process slave rx data */
227 static int bcm_iproc_i2c_reg_slave(struct i2c_client *slave);
228 static int bcm_iproc_i2c_unreg_slave(struct i2c_client *slave);
291 /* Maximum slave stretch time */
297 /* Configure the slave address */
301 val |= (iproc_i2c->slave->addr << S_CFG_NIC_SMB_ADDR3_SHIFT);
304 /* clear all pending slave interrupts */
325 /* check slave transmit status only if slave is transmitting */
335 "slave random stretch time timeout\n" :
372 i2c_slave_event(iproc_i2c->slave,
379 i2c_slave_event(iproc_i2c->slave,
385 i2c_slave_event(iproc_i2c->slave,
389 i2c_slave_event(iproc_i2c->slave, I2C_SLAVE_STOP,
415 * IS_S_START_BUSY_SHIFT event. Hence start slave data send
418 * This means don't send any data from slave when
420 * eeprom or other backend slave driver read pointer twice.
429 /* clear slave interrupt */
431 /* enable slave interrupts */
446 i2c_slave_event(iproc_i2c->slave,
451 i2c_slave_event(iproc_i2c->slave,
488 i2c_slave_event(iproc_i2c->slave, I2C_SLAVE_STOP, &value);
509 * iproc has a slave rx fifo size of 64 bytes. Rx fifo full interrupt
517 /* disable slave interrupts */
658 /* process only slave interrupt which are enabled */
855 /* format and load slave address into the TX FIFO */
862 * has been used up by the slave address
884 * The last byte to be sent out should be a slave
1079 /* no slave support */
1192 static int bcm_iproc_i2c_reg_slave(struct i2c_client *slave)
1194 struct bcm_iproc_i2c_dev *iproc_i2c = i2c_get_adapdata(slave->adapter);
1196 if (iproc_i2c->slave)
1199 if (slave->flags & I2C_CLIENT_TEN)
1202 iproc_i2c->slave = slave;
1211 static int bcm_iproc_i2c_unreg_slave(struct i2c_client *slave)
1214 struct bcm_iproc_i2c_dev *iproc_i2c = i2c_get_adapdata(slave->adapter);
1216 if (!iproc_i2c->slave)
1223 /* disable all slave interrupts */
1229 /* Erase the slave address programmed */
1238 /* clear all pending slave interrupts */
1241 iproc_i2c->slave = NULL;