Lines Matching refs:block_device

34 	struct block_device bdev;
43 struct block_device *I_BDEV(struct inode *inode)
49 static void bdev_write_inode(struct block_device *bdev)
68 static void kill_bdev(struct block_device *bdev)
80 void invalidate_bdev(struct block_device *bdev)
96 int truncate_bdev_range(struct block_device *bdev, blk_mode_t mode,
125 static void set_init_blocksize(struct block_device *bdev)
138 int set_blocksize(struct block_device *bdev, int size)
182 int sync_blockdev_nowait(struct block_device *bdev)
194 int sync_blockdev(struct block_device *bdev)
202 int sync_blockdev_range(struct block_device *bdev, loff_t lstart, loff_t lend)
221 int freeze_bdev(struct block_device *bdev)
259 int thaw_bdev(struct block_device *bdev)
309 struct block_device *bdev = I_BDEV(inode);
385 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno)
387 struct block_device *bdev;
418 void bdev_set_nr_sectors(struct block_device *bdev, sector_t sectors)
426 void bdev_add(struct block_device *bdev, dev_t dev)
460 static bool bd_may_claim(struct block_device *bdev, void *holder,
463 struct block_device *whole = bdev_whole(bdev);
502 int bd_prepare_to_claim(struct block_device *bdev, void *holder,
505 struct block_device *whole = bdev_whole(bdev);
536 static void bd_clear_claiming(struct block_device *whole, void *holder)
554 static void bd_finish_claiming(struct block_device *bdev, void *holder,
557 struct block_device *whole = bdev_whole(bdev);
585 void bd_abort_claiming(struct block_device *bdev, void *holder)
593 static void bd_end_claim(struct block_device *bdev, void *holder)
595 struct block_device *whole = bdev_whole(bdev);
628 static void blkdev_flush_mapping(struct block_device *bdev)
636 static int blkdev_get_whole(struct block_device *bdev, blk_mode_t mode)
660 static void blkdev_put_whole(struct block_device *bdev)
668 static int blkdev_get_part(struct block_device *part, blk_mode_t mode)
693 static void blkdev_put_part(struct block_device *part)
695 struct block_device *whole = bdev_whole(part);
704 struct block_device *blkdev_get_no_open(dev_t dev)
706 struct block_device *bdev;
728 void blkdev_put_no_open(struct block_device *bdev)
752 * Reference to the block_device on success, ERR_PTR(-errno) on failure.
754 struct block_device *blkdev_get_by_dev(dev_t dev, blk_mode_t mode, void *holder,
758 struct block_device *bdev;
838 struct block_device *bdev;
868 * Reference to the block_device on success, ERR_PTR(-errno) on failure.
870 struct block_device *blkdev_get_by_path(const char *path, blk_mode_t mode,
873 struct block_device *bdev;
913 void blkdev_put(struct block_device *bdev, void *holder)
957 * lookup_bdev() - Look up a struct block_device by name.
1009 void bdev_mark_dead(struct block_device *bdev, bool surprise)
1036 struct block_device *bdev;
1090 struct block_device *bdev;