/linux/include/linux/ |
H A D | blkdev.h | 156 struct block_device *part0; 411 int blkdev_report_zones(struct block_device *bdev, sector_t sector, 413 int blkdev_zone_mgmt(struct block_device *bdev, enum req_op op, 695 static inline unsigned int bdev_nr_zones(struct block_device *bdev) in bdev_nr_zones() 700 static inline unsigned int bdev_max_open_zones(struct block_device *bdev) in bdev_max_open_zones() 705 static inline unsigned int bdev_max_active_zones(struct block_device *bdev) in bdev_max_active_zones() 739 static inline u8 bdev_partno(const struct block_device *bdev) in bdev_partno() 744 static inline bool bdev_test_flag(const struct block_device *bdev, unsigned flag) in bdev_test_flag() 749 static inline void bdev_set_flag(struct block_device *bdev, unsigned flag) in bdev_set_flag() 754 static inline void bdev_clear_flag(struct block_device *bdev, unsigned flag) in bdev_clear_flag() [all …]
|
H A D | pr.h | 20 int (*pr_register)(struct block_device *bdev, u64 old_key, u64 new_key, 22 int (*pr_reserve)(struct block_device *bdev, u64 key, 24 int (*pr_release)(struct block_device *bdev, u64 key, 26 int (*pr_preempt)(struct block_device *bdev, u64 old_key, u64 new_key, 28 int (*pr_clear)(struct block_device *bdev, u64 key); 38 int (*pr_read_keys)(struct block_device *bdev, 40 int (*pr_read_reservation)(struct block_device *bdev,
|
H A D | blk-crypto.h | 95 int blk_crypto_start_using_key(struct block_device *bdev, 98 void blk_crypto_evict_key(struct block_device *bdev, 101 bool blk_crypto_config_supported_natively(struct block_device *bdev, 103 bool blk_crypto_config_supported(struct block_device *bdev,
|
H A D | dm-verity-loadpin.h | 8 struct block_device; 19 bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev); 21 static inline bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev) in dm_verity_loadpin_is_bdev_trusted()
|
H A D | buffer_head.h | 71 struct block_device *b_bdev; 214 void clean_bdev_aliases(struct block_device *bdev, sector_t block, 224 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block, 226 struct buffer_head *bdev_getblk(struct block_device *bdev, sector_t block, 230 void __breadahead(struct block_device *, sector_t block, unsigned int size); 231 struct buffer_head *__bread_gfp(struct block_device *, 241 void write_boundary_block(struct block_device *bdev, 361 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, in getblk_unmovable() 372 static inline struct buffer_head *__getblk(struct block_device *bdev, in __getblk() 478 static inline struct buffer_head *__bread(struct block_device *bdev, in __bread()
|
H A D | blk-integrity.h | 22 struct block_device *bdev) in queue_limits_stack_integrity_bdev() 47 bdev_get_integrity(struct block_device *bdev) in bdev_get_integrity() 112 static inline struct blk_integrity *bdev_get_integrity(struct block_device *b) in bdev_get_integrity()
|
H A D | bio.h | 358 struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs, 364 struct bio *bio_alloc_clone(struct block_device *bdev, struct bio *bio_src, 366 int bio_init_clone(struct block_device *bdev, struct bio *bio, 371 static inline struct bio *bio_alloc(struct block_device *bdev, in bio_alloc() 409 void bio_init(struct bio *bio, struct block_device *bdev, struct bio_vec *table, 412 void bio_reset(struct bio *bio, struct block_device *bdev, blk_opf_t opf); 473 static inline void bio_set_dev(struct bio *bio, struct block_device *bdev) in bio_set_dev() 680 struct bio *blk_next_bio(struct bio *bio, struct block_device *bdev, 684 struct bio *blk_alloc_discard_bio(struct block_device *bdev,
|
/linux/block/ |
H A D | bdev.c | 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() [all …]
|
H A D | blk-lib.c | 13 static sector_t bio_discard_limit(struct block_device *bdev, sector_t sector) in bio_discard_limit() 38 struct bio *blk_alloc_discard_bio(struct block_device *bdev, in blk_alloc_discard_bio() 63 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard() 85 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard() 106 static sector_t bio_write_zeroes_limit(struct block_device *bdev) in bio_write_zeroes_limit() 121 static void __blkdev_issue_write_zeroes(struct block_device *bdev, in __blkdev_issue_write_zeroes() 148 static int blkdev_issue_write_zeroes(struct block_device *bdev, sector_t sector, in blkdev_issue_write_zeroes() 195 static void __blkdev_issue_zero_pages(struct block_device *bdev, in __blkdev_issue_zero_pages() 227 static int blkdev_issue_zero_pages(struct block_device *bdev, sector_t sector, in blkdev_issue_zero_pages() 273 int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in __blkdev_issue_zeroout() [all …]
|
H A D | ioctl.c | 19 static int blkpg_do_ioctl(struct block_device *bdev, in blkpg_do_ioctl() 65 static int blkpg_ioctl(struct block_device *bdev, in blkpg_ioctl() 85 static int compat_blkpg_ioctl(struct block_device *bdev, in compat_blkpg_ioctl() 103 static int blk_validate_byte_range(struct block_device *bdev, in blk_validate_byte_range() 119 static int blk_ioctl_discard(struct block_device *bdev, blk_mode_t mode, in blk_ioctl_discard() 179 static int blk_ioctl_secure_erase(struct block_device *bdev, blk_mode_t mode, in blk_ioctl_secure_erase() 211 static int blk_ioctl_zeroout(struct block_device *bdev, blk_mode_t mode, in blk_ioctl_zeroout() 299 int blkdev_compat_ptr_ioctl(struct block_device *bdev, blk_mode_t mode, in blkdev_compat_ptr_ioctl() 313 static bool blkdev_pr_allowed(struct block_device *bdev, blk_mode_t mode) in blkdev_pr_allowed() 328 static int blkdev_pr_register(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_register() [all …]
|
H A D | blk.h | 419 void update_io_ticks(struct block_device *part, unsigned long now, bool end); 420 unsigned int part_in_flight(struct block_device *part); 504 int blkdev_report_zones_ioctl(struct block_device *bdev, unsigned int cmd, 506 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, blk_mode_t mode, 539 static inline int blkdev_report_zones_ioctl(struct block_device *bdev, in blkdev_report_zones_ioctl() 544 static inline int blkdev_zone_mgmt_ioctl(struct block_device *bdev, in blkdev_zone_mgmt_ioctl() 551 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno); 552 void bdev_add(struct block_device *bdev, dev_t dev); 553 void bdev_unhash(struct block_device *bdev); 554 void bdev_drop(struct block_device *bdev); [all …]
|
H A D | holder.c | 13 static struct bd_holder_disk *bd_find_holder_disk(struct block_device *bdev, in bd_find_holder_disk() 62 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_link_disk_holder() 138 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_unlink_disk_holder()
|
H A D | fops.c | 38 static bool blkdev_dio_invalid(struct block_device *bdev, loff_t pos, in blkdev_dio_invalid() 51 struct iov_iter *iter, struct block_device *bdev, in __blkdev_direct_IO_simple() 167 struct block_device *bdev, unsigned int nr_pages) in __blkdev_direct_IO() 304 struct block_device *bdev, in __blkdev_direct_IO_async() 370 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); in blkdev_direct_IO() 395 struct block_device *bdev = I_BDEV(inode); in blkdev_iomap_begin() 552 struct block_device *bdev = I_BDEV(filp->f_mapping->host); in blkdev_fsync() 612 struct block_device *bdev; in blkdev_open() 683 struct block_device *bdev = I_BDEV(bd_inode); in blkdev_write_iter() 730 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); in blkdev_read_iter() [all …]
|
H A D | blk-crypto.c | 360 bool blk_crypto_config_supported_natively(struct block_device *bdev, in blk_crypto_config_supported_natively() 372 bool blk_crypto_config_supported(struct block_device *bdev, in blk_crypto_config_supported() 394 int blk_crypto_start_using_key(struct block_device *bdev, in blk_crypto_start_using_key() 417 void blk_crypto_evict_key(struct block_device *bdev, in blk_crypto_evict_key()
|
H A D | genhd.c | 100 static void part_stat_read_all(struct block_device *part, in part_stat_read_all() 121 unsigned int part_in_flight(struct block_device *part) in part_in_flight() 136 static void part_in_flight_rw(struct block_device *part, in part_in_flight_rw() 324 struct block_device *part; in disk_uevent() 560 struct block_device *bdev; in blk_report_disk_dead() 642 struct block_device *part; in del_gendisk() 743 struct block_device *bdev = disk->part0; in invalidate_disk() 858 struct block_device *part; in show_partition() 954 struct block_device *bdev = dev_to_bdev(dev); in part_stat_show() 998 struct block_device *bdev = dev_to_bdev(dev); in part_inflight_show() [all …]
|
H A D | blk-core.c | 485 bool should_fail_request(struct block_device *part, unsigned int bytes) in should_fail_request() 557 struct block_device *p = bio->bi_bdev; in blk_partition_remap() 753 struct block_device *bdev = bio->bi_bdev; in submit_bio_noacct() 915 struct block_device *bdev; in bio_poll() 993 void update_io_ticks(struct block_device *part, unsigned long now, bool end) in update_io_ticks() 1009 unsigned long bdev_start_io_acct(struct block_device *bdev, enum req_op op, in bdev_start_io_acct() 1033 void bdev_end_io_acct(struct block_device *bdev, enum req_op op, in bdev_end_io_acct() 1051 struct block_device *orig_bdev) in bio_end_io_acct_remapped()
|
/linux/drivers/nvme/host/ |
H A D | pr.c | 52 static int nvme_send_ns_head_pr_command(struct block_device *bdev, in nvme_send_ns_head_pr_command() 97 static int nvme_send_pr_command(struct block_device *bdev, in nvme_send_pr_command() 107 static int nvme_pr_command(struct block_device *bdev, u32 cdw10, in nvme_pr_command() 127 static int nvme_pr_register(struct block_device *bdev, u64 old, in nvme_pr_register() 141 static int nvme_pr_reserve(struct block_device *bdev, u64 key, in nvme_pr_reserve() 154 static int nvme_pr_preempt(struct block_device *bdev, u64 old, u64 new, in nvme_pr_preempt() 162 static int nvme_pr_clear(struct block_device *bdev, u64 key) in nvme_pr_clear() 169 static int nvme_pr_release(struct block_device *bdev, u64 key, enum pr_type type) in nvme_pr_release() 176 static int nvme_pr_resv_report(struct block_device *bdev, void *data, in nvme_pr_resv_report() 202 static int nvme_pr_read_keys(struct block_device *bdev, in nvme_pr_read_keys() [all …]
|
/linux/include/scsi/ |
H A D | scsicam.h | 16 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip); 17 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]); 18 unsigned char *scsi_bios_ptable(struct block_device *bdev);
|
/linux/block/partitions/ |
H A D | core.c | 251 const struct block_device *part = dev_to_bdev(dev); in part_uevent() 266 void drop_partition(struct block_device *part) in drop_partition() 288 static struct block_device *add_partition(struct gendisk *disk, int partno, in add_partition() 295 struct block_device *bdev; in add_partition() 401 struct block_device *part; in partition_overlaps() 422 struct block_device *part; in bdev_add_partition() 451 struct block_device *part = NULL; in bdev_del_partition() 484 struct block_device *part = NULL; in bdev_resize_partition() 526 struct block_device *part; in blk_add_partition() 636 struct block_device *part; in bdev_disk_changed()
|
/linux/fs/btrfs/ |
H A D | zoned.h | 20 struct block_device; 63 int btrfs_sb_log_location_bdev(struct block_device *bdev, int mirror, int rw, 68 int btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror); 139 static inline int btrfs_sb_log_location_bdev(struct block_device *bdev, in btrfs_sb_log_location_bdev() 158 static inline int btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror) in btrfs_reset_sb_log_zones() 317 struct block_device *bdev) in btrfs_check_device_zone_type()
|
H A D | disk-io.h | 14 struct block_device; 62 struct btrfs_super_block *btrfs_read_dev_super(struct block_device *bdev); 63 struct btrfs_super_block *btrfs_read_dev_one_super(struct block_device *bdev,
|
/linux/security/ipe/ |
H A D | hooks.h | 41 void ipe_bdev_free_security(struct block_device *bdev); 43 int ipe_bdev_setintegrity(struct block_device *bdev, enum lsm_integrity_type type,
|
/linux/drivers/scsi/ |
H A D | scsicam.c | 33 unsigned char *scsi_bios_ptable(struct block_device *dev) in scsi_bios_ptable() 60 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]) in scsi_partsize() 218 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param()
|
/linux/drivers/target/ |
H A D | target_core_iblock.c | 95 struct block_device *bd; in iblock_configure_device() 445 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_unmap() 462 iblock_execute_zero_out(struct block_device *bdev, struct se_cmd *cmd) in iblock_execute_zero_out() 497 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_write_same() 653 struct block_device *bd = ib_dev->ibd_bd; in iblock_show_configfs_dev_params() 852 struct block_device *bdev = ib_dev->ibd_bd; in iblock_execute_pr_out() 971 struct block_device *bdev = ib_dev->ibd_bd; in iblock_pr_read_keys() 1040 struct block_device *bdev = ib_dev->ibd_bd; in iblock_pr_read_reservation() 1102 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_alignment_offset_lbas() 1116 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_lbppbe() [all …]
|
/linux/drivers/md/dm-vdo/indexer/ |
H A D | io-factory.h | 27 int __must_check uds_make_io_factory(struct block_device *bdev, 31 struct block_device *bdev);
|