Lines Matching refs:control
123 uint8_t control; in pca9564_acquire_bus() local
126 control = CSR_READ(sc, PCA9564_I2CCON); in pca9564_acquire_bus()
127 control |= I2CCON_ENSIO; in pca9564_acquire_bus()
128 control &= ~(I2CCON_STA|I2CCON_STO|I2CCON_SI|I2CCON_AA); in pca9564_acquire_bus()
129 control &= ~I2CCON_CR_MASK; in pca9564_acquire_bus()
130 control |= sc->sc_i2c_clock; in pca9564_acquire_bus()
131 CSR_WRITE(sc, PCA9564_I2CCON, control); in pca9564_acquire_bus()
141 uint8_t control; in pca9564_release_bus() local
144 control = CSR_READ(sc, PCA9564_I2CCON); in pca9564_release_bus()
145 control &= ~I2CCON_ENSIO; in pca9564_release_bus()
146 CSR_WRITE(sc, PCA9564_I2CCON, control); in pca9564_release_bus()
174 uint8_t control; in pca9564_send_start() local
177 control = CSR_READ(sc, PCA9564_I2CCON); in pca9564_send_start()
178 control |= I2CCON_STA; in pca9564_send_start()
179 control &= ~(I2CCON_STO|I2CCON_SI); in pca9564_send_start()
180 CSR_WRITE(sc, PCA9564_I2CCON, control); in pca9564_send_start()
190 uint8_t control; in pca9564_send_stop() local
193 control = CSR_READ(sc, PCA9564_I2CCON); in pca9564_send_stop()
194 control |= I2CCON_STO; in pca9564_send_stop()
195 control &= ~(I2CCON_STA|I2CCON_SI); in pca9564_send_stop()
196 CSR_WRITE(sc, PCA9564_I2CCON, control); in pca9564_send_stop()
207 uint8_t data, control; in pca9564_initiate_xfer() local
217 control = CSR_READ(sc, PCA9564_I2CCON); in pca9564_initiate_xfer()
222 control &= ~(I2CCON_STO|I2CCON_STA|I2CCON_SI); in pca9564_initiate_xfer()
223 CSR_WRITE(sc, PCA9564_I2CCON, control); in pca9564_initiate_xfer()
263 uint8_t control; in pca9564_write_byte() local
267 control = CSR_READ(sc, PCA9564_I2CCON); in pca9564_write_byte()
271 control &= ~(I2CCON_STO|I2CCON_STA|I2CCON_SI); in pca9564_write_byte()
272 CSR_WRITE(sc, PCA9564_I2CCON, control); in pca9564_write_byte()
289 uint8_t control; in pca9564_ack() local
292 control = CSR_READ(sc, PCA9564_I2CCON); in pca9564_ack()
293 control &= ~(I2CCON_STO|I2CCON_STA|I2CCON_SI|I2CCON_AA); in pca9564_ack()
295 control |= I2CCON_AA; in pca9564_ack()
296 CSR_WRITE(sc, PCA9564_I2CCON, control); in pca9564_ack()