Lines Matching refs:rs
89 struct phm_regs rs; in phantom_ioctl() local
129 if (copy_from_user(&rs, argp, sizeof(rs))) in phantom_ioctl()
132 pr_debug("phantom: SRS %u regs %x\n", rs.count, rs.mask); in phantom_ioctl()
135 memcpy(&dev->oregs, &rs, sizeof(rs)); in phantom_ioctl()
137 u32 m = min(rs.count, 8U); in phantom_ioctl()
139 if (rs.mask & BIT(i)) in phantom_ioctl()
140 iowrite32(rs.values[i], dev->oaddr + i); in phantom_ioctl()
162 if (copy_from_user(&rs, argp, sizeof(rs))) in phantom_ioctl()
165 m = min(rs.count, 8U); in phantom_ioctl()
167 pr_debug("phantom: GRS %u regs %x\n", rs.count, rs.mask); in phantom_ioctl()
170 if (rs.mask & BIT(i)) in phantom_ioctl()
171 rs.values[i] = ioread32(dev->iaddr + i); in phantom_ioctl()
175 if (copy_to_user(argp, &rs, sizeof(rs))) in phantom_ioctl()