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, blk_mode_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()
221 int freeze_bdev(struct block_device *bdev) in freeze_bdev()
259 int thaw_bdev(struct block_device *bdev) in thaw_bdev()
309 struct block_device *bdev = I_BDEV(inode); in bdev_free_inode()
385 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno) in bdev_alloc()
387 struct block_device *bdev; in bdev_alloc()
418 void bdev_set_nr_sectors(struct block_device *bdev, sector_t sectors) in bdev_set_nr_sectors()
426 void bdev_add(struct block_device *bdev, dev_t dev) in bdev_add()
458 static bool bd_may_claim(struct block_device *bdev, void *holder, in bd_may_claim()
461 struct block_device *whole = bdev_whole(bdev); in bd_may_claim()
500 int bd_prepare_to_claim(struct block_device *bdev, void *holder, in bd_prepare_to_claim()
503 struct block_device *whole = bdev_whole(bdev); in bd_prepare_to_claim()
534 static void bd_clear_claiming(struct block_device *whole, void *holder) in bd_clear_claiming()
552 static void bd_finish_claiming(struct block_device *bdev, void *holder, in bd_finish_claiming()
555 struct block_device *whole = bdev_whole(bdev); in bd_finish_claiming()
583 void bd_abort_claiming(struct block_device *bdev, void *holder) in bd_abort_claiming()
591 static void bd_end_claim(struct block_device *bdev, void *holder) in bd_end_claim()
593 struct block_device *whole = bdev_whole(bdev); in bd_end_claim()
626 static void blkdev_flush_mapping(struct block_device *bdev) in blkdev_flush_mapping()
634 static int blkdev_get_whole(struct block_device *bdev, blk_mode_t mode) in blkdev_get_whole()
658 static void blkdev_put_whole(struct block_device *bdev) in blkdev_put_whole()
666 static int blkdev_get_part(struct block_device *part, blk_mode_t mode) in blkdev_get_part()
691 static void blkdev_put_part(struct block_device *part) in blkdev_put_part()
693 struct block_device *whole = bdev_whole(part); in blkdev_put_part()
702 struct block_device *blkdev_get_no_open(dev_t dev) in blkdev_get_no_open()
704 struct block_device *bdev; in blkdev_get_no_open()
726 void blkdev_put_no_open(struct block_device *bdev) in blkdev_put_no_open()
752 struct block_device *blkdev_get_by_dev(dev_t dev, blk_mode_t mode, void *holder, in blkdev_get_by_dev()
756 struct block_device *bdev; in blkdev_get_by_dev()
849 struct block_device *blkdev_get_by_path(const char *path, blk_mode_t mode, in blkdev_get_by_path()
852 struct block_device *bdev; in blkdev_get_by_path()
870 void blkdev_put(struct block_device *bdev, void *holder) in blkdev_put()
959 void bdev_mark_dead(struct block_device *bdev, bool surprise) in bdev_mark_dead()
986 struct block_device *bdev; in sync_bdevs()
1040 struct block_device *bdev; in bdev_statx_dioalign()