Lines Matching defs:bdev
38 struct block_device bdev; member
47 static inline struct inode *BD_INODE(struct block_device *bdev) in BD_INODE()
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() local
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() local
417 struct block_device *bdev; in bdev_alloc() local
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()
541 int bd_prepare_to_claim(struct block_device *bdev, void *holder, in bd_prepare_to_claim()
593 static void bd_finish_claiming(struct block_device *bdev, void *holder, 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()
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()
779 struct block_device *bdev; in blkdev_get_no_open() local
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() local
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() local
1055 struct block_device *bdev = file_bdev(bdev_file); in bd_yield_claim() local
1069 struct block_device *bdev = file_bdev(bdev_file); in bdev_release() local
1125 struct block_device *bdev = file_bdev(bdev_file); in bdev_fput() local
1197 void bdev_mark_dead(struct block_device *bdev, bool surprise) in bdev_mark_dead()
1224 struct block_device *bdev; in sync_bdevs() local
1276 struct block_device *bdev; in bdev_statx() local
1316 unsigned int block_size(struct block_device *bdev) in block_size()