Lines Matching refs:argp
403 static int scom_raw_read(struct scom_device *scom, void __user *argp) in scom_raw_read() argument
409 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_read()
416 if (copy_to_user(argp, &acc, sizeof(struct scom_access))) in scom_raw_read()
421 static int scom_raw_write(struct scom_device *scom, void __user *argp) in scom_raw_write() argument
428 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_write()
447 if (copy_to_user(argp, &acc, sizeof(struct scom_access))) in scom_raw_write()
452 static int scom_reset(struct scom_device *scom, void __user *argp) in scom_reset() argument
457 if (get_user(flags, (__u32 __user *)argp)) in scom_reset()
468 static int scom_check(struct scom_device *scom, void __user *argp) in scom_check() argument
471 return put_user(SCOM_CHECK_SUPPORTED, (__u32 __user *)argp); in scom_check()
477 void __user *argp = (void __user *)arg; in scom_ioctl() local
487 rc = scom_check(scom, argp); in scom_ioctl()
490 rc = scom_raw_read(scom, argp); in scom_ioctl()
493 rc = scom_raw_write(scom, argp); in scom_ioctl()
496 rc = scom_reset(scom, argp); in scom_ioctl()