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()
68 static void kill_bdev(struct block_device *bdev) in kill_bdev()
80 void invalidate_bdev(struct block_device *bdev) in invalidate_bdev()
96 int truncate_bdev_range(struct block_device *bdev, fmode_t mode, in truncate_bdev_range()
125 static void set_init_blocksize(struct block_device *bdev) in set_init_blocksize()
138 int set_blocksize(struct block_device *bdev, int size) in set_blocksize()
182 int sync_blockdev_nowait(struct block_device *bdev) in sync_blockdev_nowait()
194 int sync_blockdev(struct block_device *bdev) in sync_blockdev()
202 int sync_blockdev_range(struct block_device *bdev, loff_t lstart, loff_t lend) in sync_blockdev_range()
214 int fsync_bdev(struct block_device *bdev) in fsync_bdev()
238 int freeze_bdev(struct block_device *bdev) in freeze_bdev()
276 int thaw_bdev(struct block_device *bdev) in thaw_bdev()
323 int bdev_read_page(struct block_device *bdev, sector_t sector, in bdev_read_page()
360 int bdev_write_page(struct block_device *bdev, sector_t sector, in bdev_write_page()
404 struct block_device *bdev = I_BDEV(inode); in bdev_free_inode()
480 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno) in bdev_alloc()
482 struct block_device *bdev; in bdev_alloc()
508 void bdev_add(struct block_device *bdev, dev_t dev) in bdev_add()
543 static bool bd_may_claim(struct block_device *bdev, struct block_device *whole, in bd_may_claim()
573 int bd_prepare_to_claim(struct block_device *bdev, void *holder) in bd_prepare_to_claim()
575 struct block_device *whole = bdev_whole(bdev); in bd_prepare_to_claim()
606 static void bd_clear_claiming(struct block_device *whole, void *holder) in bd_clear_claiming()
623 static void bd_finish_claiming(struct block_device *bdev, void *holder) in bd_finish_claiming()
625 struct block_device *whole = bdev_whole(bdev); in bd_finish_claiming()
650 void bd_abort_claiming(struct block_device *bdev, void *holder) in bd_abort_claiming()
658 static void blkdev_flush_mapping(struct block_device *bdev) in blkdev_flush_mapping()
666 static int blkdev_get_whole(struct block_device *bdev, fmode_t mode) in blkdev_get_whole()
690 static void blkdev_put_whole(struct block_device *bdev, fmode_t mode) in blkdev_put_whole()
698 static int blkdev_get_part(struct block_device *part, fmode_t mode) in blkdev_get_part()
725 static void blkdev_put_part(struct block_device *part, fmode_t mode) in blkdev_put_part()
727 struct block_device *whole = bdev_whole(part); in blkdev_put_part()
736 struct block_device *blkdev_get_no_open(dev_t dev) in blkdev_get_no_open()
738 struct block_device *bdev; in blkdev_get_no_open()
760 void blkdev_put_no_open(struct block_device *bdev) in blkdev_put_no_open()
786 struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder) in blkdev_get_by_dev()
789 struct block_device *bdev; in blkdev_get_by_dev()
876 struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, in blkdev_get_by_path()
879 struct block_device *bdev; in blkdev_get_by_path()
897 void blkdev_put(struct block_device *bdev, fmode_t mode) in blkdev_put()
913 struct block_device *whole = bdev_whole(bdev); in blkdev_put()
1001 int __invalidate_device(struct block_device *bdev, bool kill_dirty) in __invalidate_device()
1029 struct block_device *bdev; in sync_bdevs()
1083 struct block_device *bdev; in bdev_statx_dioalign()