Lines Matching refs:argp
445 static int scom_raw_read(struct scom_device *scom, void __user *argp) in scom_raw_read() argument
451 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_read()
458 if (copy_to_user(argp, &acc, sizeof(struct scom_access))) in scom_raw_read()
463 static int scom_raw_write(struct scom_device *scom, void __user *argp) in scom_raw_write() argument
470 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_write()
489 if (copy_to_user(argp, &acc, sizeof(struct scom_access))) in scom_raw_write()
494 static int scom_reset(struct scom_device *scom, void __user *argp) in scom_reset() argument
499 if (get_user(flags, (__u32 __user *)argp)) in scom_reset()
510 static int scom_check(struct scom_device *scom, void __user *argp) in scom_check() argument
513 return put_user(SCOM_CHECK_SUPPORTED, (__u32 __user *)argp); in scom_check()
519 void __user *argp = (void __user *)arg; in scom_ioctl() local
529 rc = scom_check(scom, argp); in scom_ioctl()
532 rc = scom_raw_read(scom, argp); in scom_ioctl()
535 rc = scom_raw_write(scom, argp); in scom_ioctl()
538 rc = scom_reset(scom, argp); in scom_ioctl()