Lines Matching refs:ret
363 int ret, n; in blkdev_roset() local
371 ret = bdev->bd_disk->fops->set_read_only(bdev, n); in blkdev_roset()
372 if (ret) in blkdev_roset()
373 return ret; in blkdev_roset()
384 int ret; in blkdev_getgeo() local
397 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo()
398 if (ret) in blkdev_getgeo()
399 return ret; in blkdev_getgeo()
418 int ret; in compat_hdio_getgeo() local
431 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo()
432 if (ret) in compat_hdio_getgeo()
433 return ret; in compat_hdio_getgeo()
435 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo()
436 ret |= put_user(geo.start, &ugeo->start); in compat_hdio_getgeo()
437 if (ret) in compat_hdio_getgeo()
438 ret = -EFAULT; in compat_hdio_getgeo()
440 return ret; in compat_hdio_getgeo()
448 int ret, n; in blkdev_bszset() local
462 ret = set_blocksize(bdev, n); in blkdev_bszset()
465 return ret; in blkdev_bszset()
567 int ret; in blkdev_ioctl() local
612 ret = blkdev_common_ioctl(bdev, mode, cmd, arg, argp); in blkdev_ioctl()
613 if (ret != -ENOIOCTLCMD) in blkdev_ioctl()
614 return ret; in blkdev_ioctl()
632 int ret; in compat_blkdev_ioctl() local
681 ret = blkdev_common_ioctl(bdev, mode, cmd, arg, argp); in compat_blkdev_ioctl()
682 if (ret == -ENOIOCTLCMD && disk->fops->compat_ioctl) in compat_blkdev_ioctl()
683 ret = disk->fops->compat_ioctl(bdev, mode, cmd, arg); in compat_blkdev_ioctl()
685 return ret; in compat_blkdev_ioctl()