Lines Matching refs:new_msgs
637 struct i2c_msg *new_msgs; in tc90522_master_xfer() local
650 new_msgs = kmalloc_array(num + rd_num, sizeof(*new_msgs), GFP_KERNEL); in tc90522_master_xfer()
651 if (!new_msgs) in tc90522_master_xfer()
658 new_msgs[j].addr = state->i2c_client->addr; in tc90522_master_xfer()
659 new_msgs[j].flags = msgs[i].flags; in tc90522_master_xfer()
662 new_msgs[j].flags &= ~I2C_M_RD; in tc90522_master_xfer()
667 new_msgs[j].buf = p; in tc90522_master_xfer()
668 new_msgs[j].len = 2; in tc90522_master_xfer()
671 new_msgs[j].addr = state->i2c_client->addr; in tc90522_master_xfer()
672 new_msgs[j].flags = msgs[i].flags; in tc90522_master_xfer()
673 new_msgs[j].buf = msgs[i].buf; in tc90522_master_xfer()
674 new_msgs[j].len = msgs[i].len; in tc90522_master_xfer()
683 new_msgs[j].buf = p; in tc90522_master_xfer()
684 new_msgs[j].len = msgs[i].len + 2; in tc90522_master_xfer()
685 p += new_msgs[j].len; in tc90522_master_xfer()
691 ret = i2c_transfer(state->i2c_client->adapter, new_msgs, j); in tc90522_master_xfer()
706 while (to < j && !(new_msgs[to].flags & I2C_M_RD)) in tc90522_master_xfer()
709 &new_msgs[from], to - from); in tc90522_master_xfer()
717 kfree(new_msgs); in tc90522_master_xfer()