Lines Matching refs:kreg
2323 static long user_reg_get(struct user_reg __user *ureg, struct user_reg *kreg) in user_reg_get() argument
2339 ret = copy_struct_from_user(kreg, sizeof(*kreg), ureg, size); in user_reg_get()
2345 if (kreg->flags & ~(USER_EVENT_REG_MAX-1)) in user_reg_get()
2349 switch (kreg->enable_size) { in user_reg_get()
2363 if (kreg->enable_addr % kreg->enable_size) in user_reg_get()
2367 if (kreg->enable_bit > (kreg->enable_size * BITS_PER_BYTE) - 1) in user_reg_get()
2371 if (!access_ok((const void __user *)(uintptr_t)kreg->enable_addr, in user_reg_get()
2372 kreg->enable_size)) in user_reg_get()
2375 kreg->size = size; in user_reg_get()
2485 struct user_unreg *kreg) in user_unreg_get() argument
2501 ret = copy_struct_from_user(kreg, sizeof(*kreg), ureg, size); in user_unreg_get()
2504 if (kreg->__reserved || kreg->__reserved2) in user_unreg_get()