Lines Matching refs:argp
34 dasd_ioctl_api_version(void __user *argp) in dasd_ioctl_api_version() argument
37 return put_user(ver, (int __user *)argp); in dasd_ioctl_api_version()
259 dasd_ioctl_format(struct block_device *bdev, void __user *argp) in dasd_ioctl_format() argument
267 if (!argp) in dasd_ioctl_format()
277 if (copy_from_user(&fdata, argp, sizeof(struct format_data_t))) { in dasd_ioctl_format()
296 static int dasd_ioctl_check_format(struct block_device *bdev, void __user *argp) in dasd_ioctl_check_format() argument
302 if (!argp) in dasd_ioctl_check_format()
315 if (copy_from_user(&cdata, argp, sizeof(cdata))) { in dasd_ioctl_check_format()
324 if (copy_to_user(argp, &cdata, sizeof(cdata))) in dasd_ioctl_check_format()
347 static int dasd_ioctl_release_space(struct block_device *bdev, void __user *argp) in dasd_ioctl_release_space() argument
355 if (!argp) in dasd_ioctl_release_space()
373 if (copy_from_user(&rdata, argp, sizeof(rdata))) { in dasd_ioctl_release_space()
399 static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) in dasd_ioctl_read_profile() argument
436 if (copy_to_user(argp, data, sizeof(*data))) in dasd_ioctl_read_profile()
448 static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) in dasd_ioctl_read_profile() argument
516 static int dasd_ioctl_information(struct dasd_block *block, void __user *argp, in dasd_ioctl_information() argument
527 if (!error && copy_to_user(argp, dasd_info, copy_size)) in dasd_ioctl_information()
537 dasd_ioctl_set_ro(struct block_device *bdev, void __user *argp) in dasd_ioctl_set_ro() argument
547 if (get_user(intval, (int __user *)argp)) in dasd_ioctl_set_ro()
563 struct cmbdata __user *argp) in dasd_ioctl_readall_cmb() argument
570 if (!ret && copy_to_user(argp, &data, min(size, sizeof(*argp)))) in dasd_ioctl_readall_cmb()
580 void __user *argp; in dasd_ioctl() local
584 argp = compat_ptr(arg); in dasd_ioctl()
586 argp = (void __user *)arg; in dasd_ioctl()
618 rc = dasd_ioctl_format(bdev, argp); in dasd_ioctl()
621 rc = dasd_ioctl_check_format(bdev, argp); in dasd_ioctl()
624 rc = dasd_ioctl_information(block, argp, in dasd_ioctl()
628 rc = dasd_ioctl_information(block, argp, in dasd_ioctl()
632 rc = dasd_ioctl_read_profile(block, argp); in dasd_ioctl()
638 rc = dasd_ioctl_set_ro(bdev, argp); in dasd_ioctl()
641 rc = dasd_ioctl_api_version(argp); in dasd_ioctl()
650 rc = dasd_ioctl_readall_cmb(block, cmd, argp); in dasd_ioctl()
653 rc = dasd_ioctl_release_space(bdev, argp); in dasd_ioctl()
659 rc = base->discipline->ioctl(block, cmd, argp); in dasd_ioctl()