Lines Matching refs:msgs
349 struct i2c_msg *msgs, int num) in w1_f19_i2c_master_transfer() argument
371 && msgs[i].addr == msgs[i+1].addr in w1_f19_i2c_master_transfer()
372 && !(msgs[i].flags & I2C_M_RD) in w1_f19_i2c_master_transfer()
373 && (msgs[i+1].flags & I2C_M_RD) in w1_f19_i2c_master_transfer()
374 && (msgs[i].len <= W1_F19_WRITE_DATA_LIMIT)) { in w1_f19_i2c_master_transfer()
379 result = w1_f19_i2c_write_read(sl, msgs[i].addr, in w1_f19_i2c_master_transfer()
380 msgs[i].buf, msgs[i].len, in w1_f19_i2c_master_transfer()
381 msgs[i+1].buf, msgs[i+1].len); in w1_f19_i2c_master_transfer()
393 if (msgs[i+1].flags & I2C_M_RECV_LEN) { in w1_f19_i2c_master_transfer()
394 result = w1_f19_i2c_read(sl, msgs[i+1].addr, in w1_f19_i2c_master_transfer()
395 &(msgs[i+1].buf[1]), msgs[i+1].buf[0]); in w1_f19_i2c_master_transfer()
404 } else if (msgs[i].flags & I2C_M_RD) { in w1_f19_i2c_master_transfer()
406 result = w1_f19_i2c_read(sl, msgs[i].addr, in w1_f19_i2c_master_transfer()
407 msgs[i].buf, msgs[i].len); in w1_f19_i2c_master_transfer()
419 if (msgs[i].flags & I2C_M_RECV_LEN) { in w1_f19_i2c_master_transfer()
421 msgs[i].addr, in w1_f19_i2c_master_transfer()
422 &(msgs[i].buf[1]), in w1_f19_i2c_master_transfer()
423 msgs[i].buf[0]); in w1_f19_i2c_master_transfer()
436 msgs[i].addr, in w1_f19_i2c_master_transfer()
437 msgs[i].buf, in w1_f19_i2c_master_transfer()
438 msgs[i].len, in w1_f19_i2c_master_transfer()