Searched refs:s_cmd (Results 1 – 2 of 2) sorted by relevance
276 struct cros_ec_command *s_cmd; in cros_ec_chardev_ioctl_xcmd() local287 s_cmd = kmalloc(sizeof(*s_cmd) + max(u_cmd.outsize, u_cmd.insize), in cros_ec_chardev_ioctl_xcmd()289 if (!s_cmd) in cros_ec_chardev_ioctl_xcmd()292 if (copy_from_user(s_cmd, arg, sizeof(*s_cmd) + u_cmd.outsize)) { in cros_ec_chardev_ioctl_xcmd()297 if (u_cmd.outsize != s_cmd->outsize || in cros_ec_chardev_ioctl_xcmd()298 u_cmd.insize != s_cmd->insize) { in cros_ec_chardev_ioctl_xcmd()303 s_cmd->command += ec->cmd_offset; in cros_ec_chardev_ioctl_xcmd()304 ret = cros_ec_cmd_xfer(ec->ec_dev, s_cmd); in cros_ec_chardev_ioctl_xcmd()309 if (copy_to_user(arg, s_cmd, sizeof(*s_cmd) + s_cmd->insize)) in cros_ec_chardev_ioctl_xcmd()312 kfree(s_cmd); in cros_ec_chardev_ioctl_xcmd()
316 u32 s_cmd; in geni_se_setup_s_cmd() local318 s_cmd = readl_relaxed(se->base + SE_GENI_S_CMD0); in geni_se_setup_s_cmd()319 s_cmd &= ~(S_OPCODE_MSK | S_PARAMS_MSK); in geni_se_setup_s_cmd()320 s_cmd |= (cmd << S_OPCODE_SHFT); in geni_se_setup_s_cmd()321 s_cmd |= (params & S_PARAMS_MSK); in geni_se_setup_s_cmd()322 writel(s_cmd, se->base + SE_GENI_S_CMD0); in geni_se_setup_s_cmd()