Lines Matching refs:bdev
89 struct block_device *bdev = NULL; in ltpdev_ioctl() local
148 bdev = lookup_bdev(LTP_FS_DEVICE_NAME); in ltpdev_ioctl()
151 bdev->bd_block_size); in ltpdev_ioctl()
160 my_bio_copy = bio_map_user(bdev, uaddr, TEST_MEM_SIZE, FALSE); in ltpdev_ioctl()
261 struct block_device *bdev; in lookup_bdev() local
283 bdev = inode->i_bdev; in lookup_bdev()
287 return bdev; in lookup_bdev()
289 bdev = ERR_PTR(error); in lookup_bdev()
295 struct block_device *bdev; in bd_acquire() local
303 bdev = bdget(kdev_t_to_nr(inode->i_rdev)); in bd_acquire()
304 if (!bdev) in bd_acquire()
308 inode->i_bdev = bdev; in bd_acquire()
309 inode->i_mapping = bdev->bd_inode->i_mapping; in bd_acquire()
310 list_add(&inode->i_devices, &bdev->bd_inodes); in bd_acquire()
311 } else if (inode->i_bdev != bdev) in bd_acquire()