Lines Matching refs:block_device

38 	struct block_device bdev;
47 static inline struct inode *BD_INODE(struct block_device *bdev) in BD_INODE()
52 struct block_device *I_BDEV(struct inode *inode) in I_BDEV()
58 struct block_device *file_bdev(struct file *bdev_file) in file_bdev()
64 static void bdev_write_inode(struct block_device *bdev) in bdev_write_inode()
83 static void kill_bdev(struct block_device *bdev) in kill_bdev()
95 void invalidate_bdev(struct block_device *bdev) in invalidate_bdev()
111 int truncate_bdev_range(struct block_device *bdev, blk_mode_t mode, in truncate_bdev_range()
140 static void set_init_blocksize(struct block_device *bdev) in set_init_blocksize()
165 int bdev_validate_blocksize(struct block_device *bdev, int block_size) in bdev_validate_blocksize()
181 struct block_device *bdev = I_BDEV(inode); in set_blocksize()
244 int sync_blockdev_nowait(struct block_device *bdev) in sync_blockdev_nowait()
256 int sync_blockdev(struct block_device *bdev) in sync_blockdev()
264 int sync_blockdev_range(struct block_device *bdev, loff_t lstart, loff_t lend) in sync_blockdev_range()
285 int bdev_freeze(struct block_device *bdev) in bdev_freeze()
321 int bdev_thaw(struct block_device *bdev) in bdev_thaw()
379 struct block_device *bdev = I_BDEV(inode); in bdev_free_inode()
456 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno) in bdev_alloc()
458 struct block_device *bdev; in bdev_alloc()
487 void bdev_set_nr_sectors(struct block_device *bdev, sector_t sectors) in bdev_set_nr_sectors()
495 void bdev_add(struct block_device *bdev, dev_t dev) in bdev_add()
506 void bdev_unhash(struct block_device *bdev) in bdev_unhash()
511 void bdev_drop(struct block_device *bdev) in bdev_drop()
540 static bool bd_may_claim(struct block_device *bdev, void *holder, in bd_may_claim()
543 struct block_device *whole = bdev_whole(bdev); in bd_may_claim()
582 int bd_prepare_to_claim(struct block_device *bdev, void *holder, in bd_prepare_to_claim()
585 struct block_device *whole = bdev_whole(bdev); in bd_prepare_to_claim()
616 static void bd_clear_claiming(struct block_device *whole, void *holder) in bd_clear_claiming()
634 static void bd_finish_claiming(struct block_device *bdev, void *holder, in bd_finish_claiming()
637 struct block_device *whole = bdev_whole(bdev); in bd_finish_claiming()
665 void bd_abort_claiming(struct block_device *bdev, void *holder) in bd_abort_claiming()
673 static void bd_end_claim(struct block_device *bdev, void *holder) in bd_end_claim()
675 struct block_device *whole = bdev_whole(bdev); in bd_end_claim()
708 static void blkdev_flush_mapping(struct block_device *bdev) in blkdev_flush_mapping()
716 static void blkdev_put_whole(struct block_device *bdev) in blkdev_put_whole()
724 static int blkdev_get_whole(struct block_device *bdev, blk_mode_t mode) in blkdev_get_whole()
757 static int blkdev_get_part(struct block_device *part, blk_mode_t mode) in blkdev_get_part()
807 static void blkdev_put_part(struct block_device *part) in blkdev_put_part()
809 struct block_device *whole = bdev_whole(part); in blkdev_put_part()
818 struct block_device *blkdev_get_no_open(dev_t dev, bool autoload) in blkdev_get_no_open()
820 struct block_device *bdev; in blkdev_get_no_open()
842 void blkdev_put_no_open(struct block_device *bdev) in blkdev_put_no_open()
847 static bool bdev_writes_blocked(struct block_device *bdev) in bdev_writes_blocked()
852 static void bdev_block_writes(struct block_device *bdev) in bdev_block_writes()
857 static void bdev_unblock_writes(struct block_device *bdev) in bdev_unblock_writes()
862 static bool bdev_may_open(struct block_device *bdev, blk_mode_t mode) in bdev_may_open()
874 static void bdev_claim_write_access(struct block_device *bdev, blk_mode_t mode) in bdev_claim_write_access()
893 struct block_device *bdev; in bdev_yield_write_access()
926 int bdev_open(struct block_device *bdev, blk_mode_t mode, void *holder, in bdev_open()
1038 struct block_device *bdev; in bdev_file_open_by_dev()
1096 struct block_device *bdev = file_bdev(bdev_file); in bd_yield_claim()
1110 struct block_device *bdev = file_bdev(bdev_file); in bdev_release()
1166 struct block_device *bdev = file_bdev(bdev_file); in bdev_fput()
1238 void bdev_mark_dead(struct block_device *bdev, bool surprise) in bdev_mark_dead()
1265 struct block_device *bdev; in sync_bdevs()
1315 struct block_device *bdev; in bdev_statx()
1352 unsigned int block_size(struct block_device *bdev) in block_size()