Lines Matching refs:bdev
56 struct block_device *bdev; in raw_open() local
69 bdev = raw_devices[minor].binding; in raw_open()
71 if (!bdev) in raw_open()
73 igrab(bdev->bd_inode); in raw_open()
74 err = blkdev_get(bdev, filp->f_mode | FMODE_EXCL, raw_open); in raw_open()
77 err = set_blocksize(bdev, bdev_logical_block_size(bdev)); in raw_open()
81 filp->f_mapping = bdev->bd_inode->i_mapping; in raw_open()
84 bdev->bd_inode->i_mapping; in raw_open()
85 filp->private_data = bdev; in raw_open()
90 blkdev_put(bdev, filp->f_mode | FMODE_EXCL); in raw_open()
103 struct block_device *bdev; in raw_release() local
106 bdev = raw_devices[minor].binding; in raw_release()
114 blkdev_put(bdev, filp->f_mode | FMODE_EXCL); in raw_release()
124 struct block_device *bdev = filp->private_data; in raw_ioctl() local
125 return blkdev_ioctl(bdev, 0, command, arg); in raw_ioctl()
191 struct block_device *bdev; in bind_get() local
199 bdev = rawdev->binding; in bind_get()
200 *dev = bdev ? bdev->bd_dev : 0; in bind_get()