u_cmd             278 drivers/platform/chrome/cros_ec_chardev.c 	struct cros_ec_command u_cmd;
u_cmd             281 drivers/platform/chrome/cros_ec_chardev.c 	if (copy_from_user(&u_cmd, arg, sizeof(u_cmd)))
u_cmd             284 drivers/platform/chrome/cros_ec_chardev.c 	if (u_cmd.outsize > EC_MAX_MSG_BYTES ||
u_cmd             285 drivers/platform/chrome/cros_ec_chardev.c 	    u_cmd.insize > EC_MAX_MSG_BYTES)
u_cmd             288 drivers/platform/chrome/cros_ec_chardev.c 	s_cmd = kmalloc(sizeof(*s_cmd) + max(u_cmd.outsize, u_cmd.insize),
u_cmd             293 drivers/platform/chrome/cros_ec_chardev.c 	if (copy_from_user(s_cmd, arg, sizeof(*s_cmd) + u_cmd.outsize)) {
u_cmd             298 drivers/platform/chrome/cros_ec_chardev.c 	if (u_cmd.outsize != s_cmd->outsize ||
u_cmd             299 drivers/platform/chrome/cros_ec_chardev.c 	    u_cmd.insize != s_cmd->insize) {