Lines Matching refs:TXFIFO_WR

76 #define TXFIFO_WR(smbus, reg)	reg_write((smbus), REG_MTXFIFO, (reg))  macro
124 TXFIFO_WR(smbus, MTXFIFO_START | i2c_8bit_addr_from_msg(msg)); in pasemi_i2c_xfer_msg()
127 TXFIFO_WR(smbus, msg->len | MTXFIFO_READ | in pasemi_i2c_xfer_msg()
144 TXFIFO_WR(smbus, msg->buf[i]); in pasemi_i2c_xfer_msg()
146 TXFIFO_WR(smbus, msg->buf[msg->len-1] | in pasemi_i2c_xfer_msg()
197 TXFIFO_WR(smbus, addr | read_flag | MTXFIFO_START | in pasemi_smb_xfer()
201 TXFIFO_WR(smbus, addr | read_flag | MTXFIFO_START); in pasemi_smb_xfer()
203 TXFIFO_WR(smbus, 1 | MTXFIFO_STOP | MTXFIFO_READ); in pasemi_smb_xfer()
205 TXFIFO_WR(smbus, MTXFIFO_STOP | command); in pasemi_smb_xfer()
208 TXFIFO_WR(smbus, addr | MTXFIFO_START); in pasemi_smb_xfer()
209 TXFIFO_WR(smbus, command); in pasemi_smb_xfer()
211 TXFIFO_WR(smbus, addr | I2C_SMBUS_READ | MTXFIFO_START); in pasemi_smb_xfer()
212 TXFIFO_WR(smbus, 1 | MTXFIFO_READ | MTXFIFO_STOP); in pasemi_smb_xfer()
214 TXFIFO_WR(smbus, MTXFIFO_STOP | data->byte); in pasemi_smb_xfer()
218 TXFIFO_WR(smbus, addr | MTXFIFO_START); in pasemi_smb_xfer()
219 TXFIFO_WR(smbus, command); in pasemi_smb_xfer()
221 TXFIFO_WR(smbus, addr | I2C_SMBUS_READ | MTXFIFO_START); in pasemi_smb_xfer()
222 TXFIFO_WR(smbus, 2 | MTXFIFO_READ | MTXFIFO_STOP); in pasemi_smb_xfer()
224 TXFIFO_WR(smbus, data->word & MTXFIFO_DATA_M); in pasemi_smb_xfer()
225 TXFIFO_WR(smbus, MTXFIFO_STOP | (data->word >> 8)); in pasemi_smb_xfer()
229 TXFIFO_WR(smbus, addr | MTXFIFO_START); in pasemi_smb_xfer()
230 TXFIFO_WR(smbus, command); in pasemi_smb_xfer()
232 TXFIFO_WR(smbus, addr | I2C_SMBUS_READ | MTXFIFO_START); in pasemi_smb_xfer()
233 TXFIFO_WR(smbus, 1 | MTXFIFO_READ); in pasemi_smb_xfer()
237 TXFIFO_WR(smbus, len | MTXFIFO_READ | in pasemi_smb_xfer()
241 TXFIFO_WR(smbus, len); in pasemi_smb_xfer()
243 TXFIFO_WR(smbus, data->block[i]); in pasemi_smb_xfer()
244 TXFIFO_WR(smbus, data->block[len] | MTXFIFO_STOP); in pasemi_smb_xfer()
249 TXFIFO_WR(smbus, addr | MTXFIFO_START); in pasemi_smb_xfer()
250 TXFIFO_WR(smbus, command); in pasemi_smb_xfer()
251 TXFIFO_WR(smbus, data->word & MTXFIFO_DATA_M); in pasemi_smb_xfer()
252 TXFIFO_WR(smbus, (data->word >> 8) & MTXFIFO_DATA_M); in pasemi_smb_xfer()
253 TXFIFO_WR(smbus, addr | I2C_SMBUS_READ | MTXFIFO_START); in pasemi_smb_xfer()
254 TXFIFO_WR(smbus, 2 | MTXFIFO_STOP | MTXFIFO_READ); in pasemi_smb_xfer()
259 TXFIFO_WR(smbus, addr | MTXFIFO_START); in pasemi_smb_xfer()
260 TXFIFO_WR(smbus, command); in pasemi_smb_xfer()
261 TXFIFO_WR(smbus, len); in pasemi_smb_xfer()
263 TXFIFO_WR(smbus, data->block[i]); in pasemi_smb_xfer()
264 TXFIFO_WR(smbus, addr | I2C_SMBUS_READ); in pasemi_smb_xfer()
265 TXFIFO_WR(smbus, MTXFIFO_READ | 1); in pasemi_smb_xfer()
269 TXFIFO_WR(smbus, len | MTXFIFO_READ | MTXFIFO_STOP); in pasemi_smb_xfer()