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