Searched refs:u_cmd (Results 1 – 1 of 1) sorted by relevance
278 struct cros_ec_command u_cmd; in cros_ec_chardev_ioctl_xcmd() local281 if (copy_from_user(&u_cmd, arg, sizeof(u_cmd))) in cros_ec_chardev_ioctl_xcmd()284 if (u_cmd.outsize > EC_MAX_MSG_BYTES || in cros_ec_chardev_ioctl_xcmd()285 u_cmd.insize > EC_MAX_MSG_BYTES) in cros_ec_chardev_ioctl_xcmd()288 s_cmd = kzalloc(sizeof(*s_cmd) + max(u_cmd.outsize, u_cmd.insize), in cros_ec_chardev_ioctl_xcmd()293 if (copy_from_user(s_cmd, arg, sizeof(*s_cmd) + u_cmd.outsize)) { in cros_ec_chardev_ioctl_xcmd()298 if (u_cmd.outsize != s_cmd->outsize || in cros_ec_chardev_ioctl_xcmd()299 u_cmd.insize != s_cmd->insize) { in cros_ec_chardev_ioctl_xcmd()