Lines Matching refs:rs
93 struct phm_regs rs; in phantom_ioctl() local
133 if (copy_from_user(&rs, argp, sizeof(rs))) in phantom_ioctl()
136 pr_debug("phantom: SRS %u regs %x\n", rs.count, rs.mask); in phantom_ioctl()
139 memcpy(&dev->oregs, &rs, sizeof(rs)); in phantom_ioctl()
141 u32 m = min(rs.count, 8U); in phantom_ioctl()
143 if (rs.mask & BIT(i)) in phantom_ioctl()
144 iowrite32(rs.values[i], dev->oaddr + i); in phantom_ioctl()
166 if (copy_from_user(&rs, argp, sizeof(rs))) in phantom_ioctl()
169 m = min(rs.count, 8U); in phantom_ioctl()
171 pr_debug("phantom: GRS %u regs %x\n", rs.count, rs.mask); in phantom_ioctl()
174 if (rs.mask & BIT(i)) in phantom_ioctl()
175 rs.values[i] = ioread32(dev->iaddr + i); in phantom_ioctl()
179 if (copy_to_user(argp, &rs, sizeof(rs))) in phantom_ioctl()