Searched refs:s_mem (Results 1 – 2 of 2) sorted by relevance
321 struct cros_ec_readmem s_mem = { }; in cros_ec_chardev_ioctl_readmem() local328 if (copy_from_user(&s_mem, arg, sizeof(s_mem))) in cros_ec_chardev_ioctl_readmem()331 if (s_mem.bytes > sizeof(s_mem.buffer)) in cros_ec_chardev_ioctl_readmem()334 num = ec_dev->cmd_readmem(ec_dev, s_mem.offset, s_mem.bytes, in cros_ec_chardev_ioctl_readmem()335 s_mem.buffer); in cros_ec_chardev_ioctl_readmem()339 if (copy_to_user((void __user *)arg, &s_mem, sizeof(s_mem))) in cros_ec_chardev_ioctl_readmem()
585 s_mem_to_reg (unsigned long s_mem) in s_mem_to_reg() argument587 unsigned long frac = (s_mem >> 0) & 0x7fffff; in s_mem_to_reg()588 unsigned long sign = (s_mem >> 31) & 0x1; in s_mem_to_reg()589 unsigned long exp_msb = (s_mem >> 30) & 0x1; in s_mem_to_reg()590 unsigned long exp_low = (s_mem >> 23) & 0x7f; in s_mem_to_reg()