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()
156 struct block_device *bdev = I_BDEV(inode); in set_blocksize()
203 int sync_blockdev_nowait(struct block_device *bdev) in sync_blockdev_nowait()
215 int sync_blockdev(struct block_device *bdev) in sync_blockdev()
223 int sync_blockdev_range(struct block_device *bdev, loff_t lstart, loff_t lend) in sync_blockdev_range()
244 int bdev_freeze(struct block_device *bdev) in bdev_freeze()
280 int bdev_thaw(struct block_device *bdev) in bdev_thaw()
338 struct block_device *bdev = I_BDEV(inode); in bdev_free_inode()
415 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno) in bdev_alloc()
417 struct block_device *bdev; in bdev_alloc()
446 void bdev_set_nr_sectors(struct block_device *bdev, sector_t sectors) in bdev_set_nr_sectors()
454 void bdev_add(struct block_device *bdev, dev_t dev) in bdev_add()
465 void bdev_unhash(struct block_device *bdev) in bdev_unhash()
470 void bdev_drop(struct block_device *bdev) in bdev_drop()
499 static bool bd_may_claim(struct block_device *bdev, void *holder, in bd_may_claim()
502 struct block_device *whole = bdev_whole(bdev); in bd_may_claim()
541 int bd_prepare_to_claim(struct block_device *bdev, void *holder, in bd_prepare_to_claim()
544 struct block_device *whole = bdev_whole(bdev); in bd_prepare_to_claim()
575 static void bd_clear_claiming(struct block_device *whole, void *holder) in bd_clear_claiming()
593 static void bd_finish_claiming(struct block_device *bdev, void *holder, in bd_finish_claiming()
596 struct block_device *whole = bdev_whole(bdev); in bd_finish_claiming()
624 void bd_abort_claiming(struct block_device *bdev, void *holder) in bd_abort_claiming()
632 static void bd_end_claim(struct block_device *bdev, void *holder) in bd_end_claim()
634 struct block_device *whole = bdev_whole(bdev); in bd_end_claim()
667 static void blkdev_flush_mapping(struct block_device *bdev) in blkdev_flush_mapping()
675 static void blkdev_put_whole(struct block_device *bdev) in blkdev_put_whole()
683 static int blkdev_get_whole(struct block_device *bdev, blk_mode_t mode) in blkdev_get_whole()
716 static int blkdev_get_part(struct block_device *part, blk_mode_t mode) in blkdev_get_part()
766 static void blkdev_put_part(struct block_device *part) in blkdev_put_part()
768 struct block_device *whole = bdev_whole(part); in blkdev_put_part()
777 struct block_device *blkdev_get_no_open(dev_t dev) in blkdev_get_no_open()
779 struct block_device *bdev; in blkdev_get_no_open()
801 void blkdev_put_no_open(struct block_device *bdev) in blkdev_put_no_open()
806 static bool bdev_writes_blocked(struct block_device *bdev) in bdev_writes_blocked()
811 static void bdev_block_writes(struct block_device *bdev) in bdev_block_writes()
816 static void bdev_unblock_writes(struct block_device *bdev) in bdev_unblock_writes()
821 static bool bdev_may_open(struct block_device *bdev, blk_mode_t mode) in bdev_may_open()
833 static void bdev_claim_write_access(struct block_device *bdev, blk_mode_t mode) in bdev_claim_write_access()
852 struct block_device *bdev; in bdev_yield_write_access()
885 int bdev_open(struct block_device *bdev, blk_mode_t mode, void *holder, in bdev_open()
997 struct block_device *bdev; in bdev_file_open_by_dev()
1055 struct block_device *bdev = file_bdev(bdev_file); in bd_yield_claim()
1069 struct block_device *bdev = file_bdev(bdev_file); in bdev_release()
1125 struct block_device *bdev = file_bdev(bdev_file); in bdev_fput()
1197 void bdev_mark_dead(struct block_device *bdev, bool surprise) in bdev_mark_dead()
1224 struct block_device *bdev; in sync_bdevs()
1276 struct block_device *bdev; in bdev_statx()
1316 unsigned int block_size(struct block_device *bdev) in block_size()