/linux/include/linux/ |
H A D | blkdev.h | 157 struct block_device *part0; 418 int blkdev_report_zones(struct block_device *bdev, sector_t sector, 420 int blkdev_zone_mgmt(struct block_device *bdev, enum req_op op, 713 static inline unsigned int bdev_nr_zones(struct block_device *bdev) in bdev_nr_zones() 718 static inline unsigned int bdev_max_open_zones(struct block_device *bdev) in bdev_max_open_zones() 723 static inline unsigned int bdev_max_active_zones(struct block_device *bdev) in bdev_max_active_zones() 760 static inline u8 bdev_partno(const struct block_device *bdev) in bdev_partno() 765 static inline bool bdev_test_flag(const struct block_device *bdev, unsigned flag) in bdev_test_flag() 770 static inline void bdev_set_flag(struct block_device *bdev, unsigned flag) in bdev_set_flag() 775 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() 111 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); 471 static inline void bio_set_dev(struct bio *bio, struct block_device *bdev) in bio_set_dev() 695 struct bio *blk_next_bio(struct bio *bio, struct block_device *bdev, 699 struct bio *blk_alloc_discard_bio(struct block_device *bdev,
|
H A D | blktrace_api.h | 31 extern int blk_trace_ioctl(struct block_device *, unsigned, char __user *); 77 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 | 413 void update_io_ticks(struct block_device *part, unsigned long now, bool end); 414 unsigned int part_in_flight(struct block_device *part); 493 int blkdev_report_zones_ioctl(struct block_device *bdev, unsigned int cmd, 495 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, blk_mode_t mode, 524 static inline int blkdev_report_zones_ioctl(struct block_device *bdev, in blkdev_report_zones_ioctl() 529 static inline int blkdev_zone_mgmt_ioctl(struct block_device *bdev, in blkdev_zone_mgmt_ioctl() 536 struct block_device *bdev_alloc(struct gendisk *disk, u8 partno); 537 void bdev_add(struct block_device *bdev, dev_t dev); 538 void bdev_unhash(struct block_device *bdev); 539 void bdev_drop(struct block_device *bdev); [all …]
|
H A D | fops.c | 38 static bool blkdev_dio_invalid(struct block_device *bdev, struct kiocb *iocb, in blkdev_dio_invalid() 48 struct iov_iter *iter, struct block_device *bdev, in __blkdev_direct_IO_simple() 164 struct block_device *bdev, unsigned int nr_pages) in __blkdev_direct_IO() 301 struct block_device *bdev, in __blkdev_direct_IO_async() 367 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); in blkdev_direct_IO() 391 struct block_device *bdev = I_BDEV(inode); in blkdev_iomap_begin() 548 struct block_device *bdev = I_BDEV(filp->f_mapping->host); in blkdev_fsync() 608 struct block_device *bdev; in blkdev_open() 679 struct block_device *bdev = I_BDEV(bd_inode); in blkdev_write_iter() 735 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); in blkdev_read_iter() [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 | 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() 580 struct block_device *bdev; in blk_report_disk_dead() 662 struct block_device *part; in del_gendisk() 767 struct block_device *bdev = disk->part0; in invalidate_disk() 882 struct block_device *part; in show_partition() 978 struct block_device *bdev = dev_to_bdev(dev); in part_stat_show() 1022 struct block_device *bdev = dev_to_bdev(dev); in part_inflight_show() [all …]
|
H A D | blk-core.c | 499 bool should_fail_request(struct block_device *part, unsigned int bytes) in should_fail_request() 571 struct block_device *p = bio->bi_bdev; in blk_partition_remap() 767 struct block_device *bdev = bio->bi_bdev; in submit_bio_noacct() 929 struct block_device *bdev; in bio_poll() 1007 void update_io_ticks(struct block_device *part, unsigned long now, bool end) in update_io_ticks() 1023 unsigned long bdev_start_io_acct(struct block_device *bdev, enum req_op op, in bdev_start_io_acct() 1047 void bdev_end_io_acct(struct block_device *bdev, enum req_op op, in bdev_end_io_acct() 1065 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, u32 cdw10, in __nvme_send_pr_command() 112 static int nvme_send_pr_command(struct block_device *bdev, u32 cdw10, u32 cdw11, in nvme_send_pr_command() 121 static int nvme_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, in nvme_pr_register() 142 static int nvme_pr_reserve(struct block_device *bdev, u64 key, in nvme_pr_reserve() 161 static int nvme_pr_preempt(struct block_device *bdev, u64 old, u64 new, in nvme_pr_preempt() 178 static int nvme_pr_clear(struct block_device *bdev, u64 key) in nvme_pr_clear() 192 static int nvme_pr_release(struct block_device *bdev, u64 key, enum pr_type type) in nvme_pr_release() 207 static int nvme_pr_resv_report(struct block_device *bdev, void *data, in nvme_pr_resv_report() 230 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 | 254 const struct block_device *part = dev_to_bdev(dev); in part_uevent() 271 void drop_partition(struct block_device *part) in drop_partition() 293 static struct block_device *add_partition(struct gendisk *disk, int partno, in add_partition() 300 struct block_device *bdev; in add_partition() 409 struct block_device *part; in partition_overlaps() 430 struct block_device *part; in bdev_add_partition() 459 struct block_device *part = NULL; in bdev_del_partition() 492 struct block_device *part = NULL; in bdev_resize_partition() 534 struct block_device *part; in blk_add_partition() 644 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()
|
/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/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/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/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);
|