Home
last modified time | relevance | path

Searched refs:block_device (Results 1 – 25 of 271) sorted by relevance

1234567891011

/linux/include/linux/
A Dblkdev.h796 int blkdev_issue_flush(struct block_device *bdev);
1199 int (*open) (struct block_device *, fmode_t);
1259 struct block_device *orig_bdev);
1271 int bdev_read_only(struct block_device *bdev);
1295 struct block_device *blkdev_get_no_open(dev_t dev);
1300 struct block_device *I_BDEV(struct inode *inode);
1305 void invalidate_bdev(struct block_device *bdev);
1306 int sync_blockdev(struct block_device *bdev);
1325 int fsync_bdev(struct block_device *bdev);
1327 int freeze_bdev(struct block_device *bdev);
[all …]
A Dgenhd.h132 struct block_device *part0;
226 static inline int bdev_read_only(struct block_device *bdev) in bdev_read_only()
241 static inline sector_t get_start_sect(struct block_device *bdev) in get_start_sect()
246 static inline sector_t bdev_nr_sectors(struct block_device *bdev) in bdev_nr_sectors()
251 static inline loff_t bdev_nr_bytes(struct block_device *bdev) in bdev_nr_bytes()
298 bool bdev_check_media_change(struct block_device *bdev);
299 int __invalidate_device(struct block_device *bdev, bool kill_dirty);
303 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
304 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk);
307 static inline int bd_link_disk_holder(struct block_device *bdev, in bd_link_disk_holder()
[all …]
A Dpr.h8 int (*pr_register)(struct block_device *bdev, u64 old_key, u64 new_key,
10 int (*pr_reserve)(struct block_device *bdev, u64 key,
12 int (*pr_release)(struct block_device *bdev, u64 key,
14 int (*pr_preempt)(struct block_device *bdev, u64 old_key, u64 new_key,
16 int (*pr_clear)(struct block_device *bdev, u64 key);
A Dbuffer_head.h69 struct block_device *b_bdev;
175 void clean_bdev_aliases(struct block_device *bdev, sector_t block,
185 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block,
187 struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block,
191 void __breadahead(struct block_device *, sector_t block, unsigned int size);
192 void __breadahead_gfp(struct block_device *, sector_t block, unsigned int size,
194 struct buffer_head *__bread_gfp(struct block_device *,
208 void write_boundary_block(struct block_device *bdev,
371 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, in getblk_unmovable()
378 static inline struct buffer_head *__getblk(struct block_device *bdev, in __getblk()
[all …]
A Ddax.h29 bool (*dax_supported)(struct dax_device *, struct block_device *, int,
108 int bdev_dax_pgoff(struct block_device *, sector_t, size_t, pgoff_t *pgoff);
111 struct block_device *bdev, int blocksize, sector_t start,
114 bool dax_supported(struct dax_device *dax_dev, struct block_device *bdev,
122 struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev);
134 struct block_device *bdev, int blocksize, sector_t start, in dax_supported()
144 static inline struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev) in fs_dax_get_by_bdev()
A Dblk_types.h40 struct block_device { struct
77 container_of((device), struct block_device, bd_device) argument
239 struct block_device *bi_bdev;
A Dblk-integrity.h56 bdev_get_integrity(struct block_device *bdev) in bdev_get_integrity()
128 static inline struct blk_integrity *bdev_get_integrity(struct block_device *b) in bdev_get_integrity()
A Dblktrace_api.h32 extern int blk_trace_ioctl(struct block_device *, unsigned, char __user *);
78 struct block_device *bdev,
/linux/block/
A Dbdev.c34 struct block_device bdev;
200 int sync_blockdev(struct block_device *bdev) in sync_blockdev()
213 int fsync_bdev(struct block_device *bdev) in fsync_bdev()
237 int freeze_bdev(struct block_device *bdev) in freeze_bdev()
275 int thaw_bdev(struct block_device *bdev) in thaw_bdev()
481 struct block_device *bdev; in bdev_alloc()
542 static bool bd_may_claim(struct block_device *bdev, struct block_device *whole, in bd_may_claim()
737 struct block_device *bdev; in blkdev_get_no_open()
793 struct block_device *bdev; in blkdev_get_by_dev()
883 struct block_device *bdev; in blkdev_get_by_path()
[all …]
A Dioctl.c16 static int blkpg_do_ioctl(struct block_device *bdev, in blkpg_do_ioctl()
52 static int blkpg_ioctl(struct block_device *bdev, in blkpg_ioctl()
72 static int compat_blkpg_ioctl(struct block_device *bdev, in compat_blkpg_ioctl()
87 struct block_device *tmp; in blkdev_reread_part()
255 static int blkdev_pr_register(struct block_device *bdev, in blkdev_pr_register()
273 static int blkdev_pr_reserve(struct block_device *bdev, in blkdev_pr_reserve()
291 static int blkdev_pr_release(struct block_device *bdev, in blkdev_pr_release()
309 static int blkdev_pr_preempt(struct block_device *bdev, in blkdev_pr_preempt()
327 static int blkdev_pr_clear(struct block_device *bdev, in blkdev_pr_clear()
374 static int blkdev_getgeo(struct block_device *bdev, in blkdev_getgeo()
[all …]
A Dholder.c7 struct block_device *bdev;
11 static struct bd_holder_disk *bd_find_holder_disk(struct block_device *bdev, in bd_find_holder_disk()
32 static int __link_disk_holder(struct block_device *bdev, struct gendisk *disk) in __link_disk_holder()
73 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_link_disk_holder()
122 static void __unlink_disk_holder(struct block_device *bdev, in __unlink_disk_holder()
139 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk) in bd_unlink_disk_holder()
A Dblk-lib.c26 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard()
132 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard()
166 static int __blkdev_issue_write_same(struct block_device *bdev, sector_t sector, in __blkdev_issue_write_same()
227 int blkdev_issue_write_same(struct block_device *bdev, sector_t sector, in blkdev_issue_write_same()
247 static int __blkdev_issue_write_zeroes(struct block_device *bdev, in __blkdev_issue_write_zeroes()
303 static int __blkdev_issue_zero_pages(struct block_device *bdev, in __blkdev_issue_zero_pages()
359 int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in __blkdev_issue_zeroout()
393 int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in blkdev_issue_zeroout()
A Dfops.c58 struct block_device *bdev = iocb->ki_filp->private_data; in __blkdev_direct_IO_simple()
188 struct block_device *bdev = iocb->ki_filp->private_data; in __blkdev_direct_IO()
313 struct block_device *bdev = iocb->ki_filp->private_data; in __blkdev_direct_IO_async()
462 struct block_device *bdev = filp->private_data; in blkdev_fsync()
483 struct block_device *bdev; in blkdev_open()
513 struct block_device *bdev = filp->private_data; in blkdev_close()
528 struct block_device *bdev = iocb->ki_filp->private_data; in blkdev_write_iter()
567 struct block_device *bdev = iocb->ki_filp->private_data; in blkdev_read_iter()
598 struct block_device *bdev = I_BDEV(inode); in blkdev_fallocate()
A Dgenhd.c57 struct block_device *bdev = disk->part0; in set_capacity()
160 static void part_in_flight_rw(struct block_device *part, in part_in_flight_rw()
356 struct block_device *part; in disk_uevent()
377 struct block_device *bdev; in disk_scan_partitions()
649 struct block_device *bdev = disk->part0; in invalidate_disk()
715 struct block_device *part; in printk_all_partitions()
814 struct block_device *part; in show_partition()
915 struct block_device *bdev = dev_to_bdev(dev); in part_stat_show()
959 struct block_device *bdev = dev_to_bdev(dev); in part_inflight_show()
1164 struct block_device *hd; in diskstats_show()
[all …]
A Dblk-zoned.c147 int blkdev_report_zones(struct block_device *bdev, sector_t sector, in blkdev_report_zones()
190 static int blkdev_zone_reset_all_emulated(struct block_device *bdev, in blkdev_zone_reset_all_emulated()
238 static int blkdev_zone_reset_all(struct block_device *bdev, gfp_t gfp_mask) in blkdev_zone_reset_all()
265 int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op, in blkdev_zone_mgmt()
344 int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode, in blkdev_report_zones_ioctl()
382 static int blkdev_truncate_zone_range(struct block_device *bdev, fmode_t mode, in blkdev_truncate_zone_range()
402 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, fmode_t mode, in blkdev_zone_mgmt_ioctl()
/linux/include/scsi/
A Dscsicam.h16 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/
A Dcore.c205 struct block_device *bdev = dev_to_bdev(dev); in part_alignment_offset_show()
215 struct block_device *bdev = dev_to_bdev(dev); in part_discard_alignment_show()
270 struct block_device *part = dev_to_bdev(dev); in part_uevent()
285 static void delete_partition(struct block_device *part) in delete_partition()
323 struct block_device *bdev; in add_partition()
437 struct block_device *part; in partition_overlaps()
458 struct block_device *part; in bdev_add_partition()
482 struct block_device *part = NULL; in bdev_del_partition()
504 struct block_device *part = NULL; in bdev_resize_partition()
546 struct block_device *part; in blk_drop_partitions()
[all …]
/linux/drivers/target/
A Dtarget_core_iblock.c84 struct block_device *bd = NULL; in iblock_configure_device()
232 struct block_device *bd, in iblock_emulate_read_cap_with_block_size()
434 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_unmap()
486 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_write_same()
638 struct block_device *bd = ib_dev->ibd_bd; in iblock_show_configfs_dev_params()
832 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_blocks()
841 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_alignment_offset_lbas()
855 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_lbppbe()
865 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_io_min()
873 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_io_opt()
[all …]
A Dtarget_core_pscsi.h22 struct block_device;
44 struct block_device *pdv_bd;
/linux/drivers/md/
A Ddm-linear.c128 static int linear_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) in linear_prepare_ioctl()
171 struct block_device *bdev = lc->dev->bdev; in linear_dax_direct_access()
186 struct block_device *bdev = lc->dev->bdev; in linear_dax_copy_from_iter()
200 struct block_device *bdev = lc->dev->bdev; in linear_dax_copy_to_iter()
215 struct block_device *bdev = lc->dev->bdev; in linear_dax_zero_page_range()
/linux/fs/btrfs/
A Dzoned.h42 int btrfs_sb_log_location_bdev(struct block_device *bdev, int mirror, int rw,
47 int btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror);
112 static inline int btrfs_sb_log_location_bdev(struct block_device *bdev, in btrfs_sb_log_location_bdev()
131 static inline int btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror) in btrfs_reset_sb_log_zones()
284 struct block_device *bdev) in btrfs_check_device_zone_type()
/linux/drivers/s390/block/
A Ddasd_ioctl.c45 dasd_ioctl_enable(struct block_device *bdev) in dasd_ioctl_enable()
66 dasd_ioctl_disable(struct block_device *bdev) in dasd_ioctl_disable()
255 dasd_ioctl_format(struct block_device *bdev, void __user *argp) in dasd_ioctl_format()
292 static int dasd_ioctl_check_format(struct block_device *bdev, void __user *argp) in dasd_ioctl_check_format()
343 static int dasd_ioctl_release_space(struct block_device *bdev, void __user *argp) in dasd_ioctl_release_space()
532 int dasd_set_read_only(struct block_device *bdev, bool ro) in dasd_set_read_only()
565 int dasd_ioctl(struct block_device *bdev, fmode_t mode, in dasd_ioctl()
/linux/drivers/scsi/
A Dscsicam.c34 unsigned char *scsi_bios_ptable(struct block_device *dev) in scsi_bios_ptable()
62 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]) in scsi_partsize()
220 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param()
/linux/fs/xfs/
A Dxfs_bio_io.c29 struct block_device *bdev, in xfs_flush_bdev_async()
49 struct block_device *bdev, in xfs_rw_bdev()
/linux/fs/nfs/blocklayout/
A Ddev.c239 struct block_device *bdev; in bl_parse_simple()
308 static struct block_device *
311 struct block_device *bdev; in bl_open_udev_path()
333 static struct block_device *
336 struct block_device *bdev; in bl_open_dm_mpath_udev_path()
356 struct block_device *bdev; in bl_parse_scsi()

Completed in 42 milliseconds

1234567891011