Lines Matching refs:block_device

34 	struct block_device bdev;
43 struct block_device *I_BDEV(struct inode *inode) in I_BDEV()
49 static void bdev_write_inode(struct block_device *bdev) in bdev_write_inode()
70 static void kill_bdev(struct block_device *bdev) in kill_bdev()
82 void invalidate_bdev(struct block_device *bdev) in invalidate_bdev()
102 int truncate_bdev_range(struct block_device *bdev, fmode_t mode, in truncate_bdev_range()
131 static void set_init_blocksize(struct block_device *bdev) in set_init_blocksize()
144 int set_blocksize(struct block_device *bdev, int size) in set_blocksize()
188 int sync_blockdev_nowait(struct block_device *bdev) in sync_blockdev_nowait()
200 int sync_blockdev(struct block_device *bdev) in sync_blockdev()
213 int fsync_bdev(struct block_device *bdev) in fsync_bdev()
237 int freeze_bdev(struct block_device *bdev) in freeze_bdev()
275 int thaw_bdev(struct block_device *bdev) in thaw_bdev()
322 int bdev_read_page(struct block_device *bdev, sector_t sector, in bdev_read_page()
359 int bdev_write_page(struct block_device *bdev, sector_t sector, in bdev_write_page()
403 struct block_device *bdev = I_BDEV(inode); in bdev_free_inode()
479 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno) in bdev_alloc()
481 struct block_device *bdev; in bdev_alloc()
507 void bdev_add(struct block_device *bdev, dev_t dev) in bdev_add()
542 static bool bd_may_claim(struct block_device *bdev, struct block_device *whole, in bd_may_claim()
572 int bd_prepare_to_claim(struct block_device *bdev, void *holder) in bd_prepare_to_claim()
574 struct block_device *whole = bdev_whole(bdev); in bd_prepare_to_claim()
605 static void bd_clear_claiming(struct block_device *whole, void *holder) in bd_clear_claiming()
622 static void bd_finish_claiming(struct block_device *bdev, void *holder) in bd_finish_claiming()
624 struct block_device *whole = bdev_whole(bdev); in bd_finish_claiming()
649 void bd_abort_claiming(struct block_device *bdev, void *holder) in bd_abort_claiming()
657 static void blkdev_flush_mapping(struct block_device *bdev) in blkdev_flush_mapping()
665 static int blkdev_get_whole(struct block_device *bdev, fmode_t mode) in blkdev_get_whole()
689 static void blkdev_put_whole(struct block_device *bdev, fmode_t mode) in blkdev_put_whole()
697 static int blkdev_get_part(struct block_device *part, fmode_t mode) in blkdev_get_part()
724 static void blkdev_put_part(struct block_device *part, fmode_t mode) in blkdev_put_part()
726 struct block_device *whole = bdev_whole(part); in blkdev_put_part()
735 struct block_device *blkdev_get_no_open(dev_t dev) in blkdev_get_no_open()
737 struct block_device *bdev; in blkdev_get_no_open()
764 void blkdev_put_no_open(struct block_device *bdev) in blkdev_put_no_open()
790 struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder) in blkdev_get_by_dev()
793 struct block_device *bdev; in blkdev_get_by_dev()
880 struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, in blkdev_get_by_path()
883 struct block_device *bdev; in blkdev_get_by_path()
901 void blkdev_put(struct block_device *bdev, fmode_t mode) in blkdev_put()
917 struct block_device *whole = bdev_whole(bdev); in blkdev_put()
1005 int __invalidate_device(struct block_device *bdev, bool kill_dirty) in __invalidate_device()
1033 struct block_device *bdev; in sync_bdevs()