Lines Matching defs:bdev
530 static int loop_validate_file(struct file *file, struct block_device *bdev)
540 if (f->f_mapping->host->i_rdev == bdev->bd_dev)
563 static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
591 error = loop_validate_file(file, bdev);
992 struct block_device *bdev,
1016 error = bd_prepare_to_claim(bdev, loop_configure, NULL);
1029 error = loop_validate_file(file, bdev);
1072 lo->lo_device = bdev;
1118 bd_abort_claiming(bdev, loop_configure);
1126 bd_abort_claiming(bdev, loop_configure);
1529 static int lo_ioctl(struct block_device *bdev, blk_mode_t mode,
1532 struct loop_device *lo = bdev->bd_disk->private_data;
1548 return loop_configure(lo, mode, bdev, &config);
1556 return loop_configure(lo, mode, bdev, &config);
1559 return loop_change_fd(lo, bdev, arg);
1690 static int lo_compat_ioctl(struct block_device *bdev, blk_mode_t mode,
1693 struct loop_device *lo = bdev->bd_disk->private_data;
1716 err = lo_ioctl(bdev, mode, cmd, arg);