Lines Matching refs:block_device

157 	struct block_device *part0;
426 int blkdev_report_zones(struct block_device *bdev, sector_t sector,
428 int blkdev_zone_mgmt(struct block_device *bdev, enum req_op op,
739 static inline unsigned int bdev_nr_zones(struct block_device *bdev) in bdev_nr_zones()
744 static inline unsigned int bdev_max_open_zones(struct block_device *bdev) in bdev_max_open_zones()
749 static inline unsigned int bdev_max_active_zones(struct block_device *bdev) in bdev_max_active_zones()
786 static inline u8 bdev_partno(const struct block_device *bdev) in bdev_partno()
791 static inline bool bdev_test_flag(const struct block_device *bdev, unsigned flag) in bdev_test_flag()
796 static inline void bdev_set_flag(struct block_device *bdev, unsigned flag) in bdev_set_flag()
801 static inline void bdev_clear_flag(struct block_device *bdev, unsigned flag) in bdev_clear_flag()
812 static inline bool bdev_read_only(struct block_device *bdev) in bdev_read_only()
819 void bdev_mark_dead(struct block_device *bdev, bool surprise);
824 static inline sector_t get_start_sect(struct block_device *bdev) in get_start_sect()
829 static inline sector_t bdev_nr_sectors(struct block_device *bdev) in bdev_nr_sectors()
834 static inline loff_t bdev_nr_bytes(struct block_device *bdev) in bdev_nr_bytes()
885 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
886 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk);
888 static inline int bd_link_disk_holder(struct block_device *bdev, in bd_link_disk_holder()
893 static inline void bd_unlink_disk_holder(struct block_device *bdev, in bd_unlink_disk_holder()
926 static inline struct request_queue *bdev_get_queue(struct block_device *bdev) in bdev_get_queue()
1024 void queue_limits_stack_bdev(struct queue_limits *t, struct block_device *bdev,
1103 int blkdev_issue_flush(struct block_device *bdev);
1130 static inline int blkdev_issue_flush(struct block_device *bdev) in blkdev_issue_flush()
1143 int blkdev_issue_discard(struct block_device *bdev, sector_t sector,
1145 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector,
1147 int blkdev_issue_secure_erase(struct block_device *bdev, sector_t sector,
1154 extern int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
1157 extern int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
1181 static inline bool bdev_is_partition(struct block_device *bdev) in bdev_is_partition()
1202 static inline struct queue_limits *bdev_limits(struct block_device *bdev) in bdev_limits()
1252 static inline bool bdev_emulates_zone_append(struct block_device *bdev) in bdev_emulates_zone_append()
1258 bdev_max_zone_append_sectors(struct block_device *bdev) in bdev_max_zone_append_sectors()
1263 static inline unsigned int bdev_max_segments(struct block_device *bdev) in bdev_max_segments()
1273 static inline unsigned int bdev_logical_block_size(struct block_device *bdev) in bdev_logical_block_size()
1283 static inline unsigned int bdev_physical_block_size(struct block_device *bdev) in bdev_physical_block_size()
1293 static inline unsigned int bdev_io_min(struct block_device *bdev) in bdev_io_min()
1303 static inline unsigned int bdev_io_opt(struct block_device *bdev) in bdev_io_opt()
1315 bdev_zone_write_granularity(struct block_device *bdev) in bdev_zone_write_granularity()
1320 int bdev_alignment_offset(struct block_device *bdev);
1321 unsigned int bdev_discard_alignment(struct block_device *bdev);
1323 static inline unsigned int bdev_max_discard_sectors(struct block_device *bdev) in bdev_max_discard_sectors()
1328 static inline unsigned int bdev_discard_granularity(struct block_device *bdev) in bdev_discard_granularity()
1334 bdev_max_secure_erase_sectors(struct block_device *bdev) in bdev_max_secure_erase_sectors()
1339 static inline unsigned int bdev_write_zeroes_sectors(struct block_device *bdev) in bdev_write_zeroes_sectors()
1344 static inline bool bdev_nonrot(struct block_device *bdev) in bdev_nonrot()
1349 static inline bool bdev_synchronous(struct block_device *bdev) in bdev_synchronous()
1354 static inline bool bdev_stable_writes(struct block_device *bdev) in bdev_stable_writes()
1370 static inline bool bdev_write_cache(struct block_device *bdev) in bdev_write_cache()
1375 static inline bool bdev_fua(struct block_device *bdev) in bdev_fua()
1380 static inline bool bdev_nowait(struct block_device *bdev) in bdev_nowait()
1385 static inline bool bdev_is_zoned(struct block_device *bdev) in bdev_is_zoned()
1390 static inline unsigned int bdev_zone_no(struct block_device *bdev, sector_t sec) in bdev_zone_no()
1395 static inline sector_t bdev_zone_sectors(struct block_device *bdev) in bdev_zone_sectors()
1404 static inline sector_t bdev_offset_from_zone_start(struct block_device *bdev, in bdev_offset_from_zone_start()
1416 static inline bool bdev_is_zone_start(struct block_device *bdev, in bdev_is_zone_start()
1429 static inline bool bdev_zone_is_seq(struct block_device *bdev, sector_t sector) in bdev_zone_is_seq()
1449 int blk_zone_issue_zeroout(struct block_device *bdev, sector_t sector,
1481 static inline unsigned int bdev_dma_alignment(struct block_device *bdev) in bdev_dma_alignment()
1486 static inline bool bdev_iter_is_aligned(struct block_device *bdev, in bdev_iter_is_aligned()
1549 int (*ioctl)(struct block_device *bdev, blk_mode_t mode,
1551 int (*compat_ioctl)(struct block_device *bdev, blk_mode_t mode,
1556 int (*getgeo)(struct block_device *, struct hd_geometry *);
1557 int (*set_read_only)(struct block_device *bdev, bool ro);
1560 void (*swap_slot_free_notify) (struct block_device *, unsigned long);
1579 extern int blkdev_compat_ptr_ioctl(struct block_device *, blk_mode_t,
1598 unsigned long bdev_start_io_acct(struct block_device *bdev, enum req_op op,
1600 void bdev_end_io_acct(struct block_device *bdev, enum req_op op,
1605 struct block_device *orig_bdev);
1632 void (*mark_dead)(struct block_device *bdev, bool surprise);
1637 void (*sync)(struct block_device *bdev);
1642 int (*freeze)(struct block_device *bdev);
1647 int (*thaw)(struct block_device *bdev);
1669 int bd_prepare_to_claim(struct block_device *bdev, void *holder,
1671 void bd_abort_claiming(struct block_device *bdev, void *holder);
1674 struct block_device *blkdev_get_no_open(dev_t dev);
1675 void blkdev_put_no_open(struct block_device *bdev);
1677 struct block_device *I_BDEV(struct inode *inode);
1678 struct block_device *file_bdev(struct file *bdev_file);
1680 unsigned int block_size(struct block_device *bdev);
1683 void invalidate_bdev(struct block_device *bdev);
1684 int sync_blockdev(struct block_device *bdev);
1685 int sync_blockdev_range(struct block_device *bdev, loff_t lstart, loff_t lend);
1686 int sync_blockdev_nowait(struct block_device *bdev);
1692 static inline void invalidate_bdev(struct block_device *bdev) in invalidate_bdev()
1695 static inline int sync_blockdev(struct block_device *bdev) in sync_blockdev()
1699 static inline int sync_blockdev_nowait(struct block_device *bdev) in sync_blockdev_nowait()
1719 int bdev_freeze(struct block_device *bdev);
1720 int bdev_thaw(struct block_device *bdev);
1738 static inline bool bdev_can_atomic_write(struct block_device *bdev) in bdev_can_atomic_write()
1754 bdev_atomic_write_unit_min_bytes(struct block_device *bdev) in bdev_atomic_write_unit_min_bytes()
1762 bdev_atomic_write_unit_max_bytes(struct block_device *bdev) in bdev_atomic_write_unit_max_bytes()