Lines Matching refs:msgs
347 struct i2c_msg *msgs, int num) in w1_f19_i2c_master_transfer() argument
369 && msgs[i].addr == msgs[i+1].addr in w1_f19_i2c_master_transfer()
370 && !(msgs[i].flags & I2C_M_RD) in w1_f19_i2c_master_transfer()
371 && (msgs[i+1].flags & I2C_M_RD) in w1_f19_i2c_master_transfer()
372 && (msgs[i].len <= W1_F19_WRITE_DATA_LIMIT)) { in w1_f19_i2c_master_transfer()
377 result = w1_f19_i2c_write_read(sl, msgs[i].addr, in w1_f19_i2c_master_transfer()
378 msgs[i].buf, msgs[i].len, in w1_f19_i2c_master_transfer()
379 msgs[i+1].buf, msgs[i+1].len); in w1_f19_i2c_master_transfer()
391 if (msgs[i+1].flags & I2C_M_RECV_LEN) { in w1_f19_i2c_master_transfer()
392 result = w1_f19_i2c_read(sl, msgs[i+1].addr, in w1_f19_i2c_master_transfer()
393 &(msgs[i+1].buf[1]), msgs[i+1].buf[0]); in w1_f19_i2c_master_transfer()
402 } else if (msgs[i].flags & I2C_M_RD) { in w1_f19_i2c_master_transfer()
404 result = w1_f19_i2c_read(sl, msgs[i].addr, in w1_f19_i2c_master_transfer()
405 msgs[i].buf, msgs[i].len); in w1_f19_i2c_master_transfer()
417 if (msgs[i].flags & I2C_M_RECV_LEN) { in w1_f19_i2c_master_transfer()
419 msgs[i].addr, in w1_f19_i2c_master_transfer()
420 &(msgs[i].buf[1]), in w1_f19_i2c_master_transfer()
421 msgs[i].buf[0]); in w1_f19_i2c_master_transfer()
434 msgs[i].addr, in w1_f19_i2c_master_transfer()
435 msgs[i].buf, in w1_f19_i2c_master_transfer()
436 msgs[i].len, in w1_f19_i2c_master_transfer()