Home
last modified time | relevance | path

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

1234567891011

/kernel/linux/linux-5.10/include/linux/
Dblkdev.h367 int blkdev_report_zones(struct block_device *bdev, sector_t sector,
370 extern int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op,
376 extern int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode,
378 extern int blkdev_zone_mgmt_ioctl(struct block_device *bdev, fmode_t mode,
388 static inline int blkdev_report_zones_ioctl(struct block_device *bdev, in blkdev_report_zones_ioctl()
395 static inline int blkdev_zone_mgmt_ioctl(struct block_device *bdev, in blkdev_zone_mgmt_ioctl()
941 extern int scsi_verify_blk_ioctl(struct block_device *, unsigned int);
942 extern int scsi_cmd_blk_ioctl(struct block_device *, fmode_t,
975 static inline struct request_queue *bdev_get_queue(struct block_device *bdev) in bdev_get_queue()
1187 extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev,
[all …]
Dgenhd.h305 extern struct block_device *bdget_disk(struct gendisk *disk, int partno);
307 extern void set_device_ro(struct block_device *bdev, int flag);
325 static inline sector_t get_start_sect(struct block_device *bdev) in get_start_sect()
338 int bdev_disk_changed(struct block_device *bdev, bool invalidate);
339 int blk_add_partitions(struct gendisk *disk, struct block_device *bdev);
340 int blk_drop_partitions(struct block_device *bdev);
377 bool bdev_check_media_change(struct block_device *bdev);
378 int __invalidate_device(struct block_device *bdev, bool kill_dirty);
379 void bd_set_nr_sectors(struct block_device *bdev, sector_t sectors);
382 int blkdev_ioctl(struct block_device *, fmode_t, unsigned, unsigned long);
[all …]
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);
Ddax.h29 bool (*dax_supported)(struct dax_device *, struct block_device *, int,
61 bool dax_supported(struct dax_device *dax_dev, struct block_device *bdev,
110 struct block_device *bdev, int blocksize, sector_t start, in dax_supported()
123 int bdev_dax_pgoff(struct block_device *, sector_t, size_t, pgoff_t *pgoff);
125 bool __bdev_dax_supported(struct block_device *bdev, int blocksize);
126 static inline bool bdev_dax_supported(struct block_device *bdev, int blocksize) in bdev_dax_supported()
132 struct block_device *bdev, int blocksize, sector_t start,
135 struct block_device *bdev, int blocksize, sector_t start, in generic_fsdax_supported()
147 struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev);
156 static inline bool bdev_dax_supported(struct block_device *bdev, in bdev_dax_supported()
[all …]
Dbuffer_head.h69 struct block_device *b_bdev;
209 void clean_bdev_aliases(struct block_device *bdev, sector_t block,
219 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block,
221 struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block,
225 void __breadahead(struct block_device *, sector_t block, unsigned int size);
226 void __breadahead_gfp(struct block_device *, sector_t block, unsigned int size,
228 struct buffer_head *__bread_gfp(struct block_device *,
240 void write_boundary_block(struct block_device *bdev,
403 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, in getblk_unmovable()
410 static inline struct buffer_head *__getblk(struct block_device *bdev, in __getblk()
[all …]
Dblktrace_api.h34 extern int blk_trace_ioctl(struct block_device *, unsigned, char __user *);
80 struct block_device *bdev,
/kernel/linux/linux-5.10/fs/
Dblock_dev.c40 struct block_device bdev;
51 struct block_device *I_BDEV(struct inode *inode) in I_BDEV()
57 static void bdev_write_inode(struct block_device *bdev) in bdev_write_inode()
78 static void kill_bdev(struct block_device *bdev) in kill_bdev()
90 void invalidate_bdev(struct block_device *bdev) in invalidate_bdev()
110 int truncate_bdev_range(struct block_device *bdev, fmode_t mode, in truncate_bdev_range()
113 struct block_device *claimed_bdev = NULL; in truncate_bdev_range()
144 static void set_init_blocksize(struct block_device *bdev) in set_init_blocksize()
157 int set_blocksize(struct block_device *bdev, int size) in set_blocksize()
241 struct block_device *bdev = I_BDEV(bdev_file_inode(file)); in __blkdev_direct_IO_simple()
[all …]
Dinternal.h25 extern int __sync_blockdev(struct block_device *bdev, int wait);
26 void iterate_bdevs(void (*)(struct block_device *, void *), void *);
34 static inline int __sync_blockdev(struct block_device *bdev, int wait) in __sync_blockdev()
38 static inline void iterate_bdevs(void (*f)(struct block_device *, void *), in iterate_bdevs() argument
/kernel/linux/linux-5.10/block/
Dioctl.c16 static int blkpg_do_ioctl(struct block_device *bdev, in blkpg_do_ioctl()
60 static int blkpg_ioctl(struct block_device *bdev, in blkpg_ioctl()
80 static int compat_blkpg_ioctl(struct block_device *bdev, in compat_blkpg_ioctl()
93 static int blkdev_reread_part(struct block_device *bdev, fmode_t mode) in blkdev_reread_part()
95 struct block_device *tmp; in blkdev_reread_part()
118 static int blk_ioctl_discard(struct block_device *bdev, fmode_t mode, in blk_ioctl_discard()
154 static int blk_ioctl_zeroout(struct block_device *bdev, fmode_t mode, in blk_ioctl_zeroout()
231 int __blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, in __blkdev_driver_ioctl()
254 int blkdev_compat_ptr_ioctl(struct block_device *bdev, fmode_t mode, in blkdev_compat_ptr_ioctl()
268 static int blkdev_pr_register(struct block_device *bdev, in blkdev_pr_register()
[all …]
Dblk-lib.c25 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard()
131 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard()
165 static int __blkdev_issue_write_same(struct block_device *bdev, sector_t sector, in __blkdev_issue_write_same()
226 int blkdev_issue_write_same(struct block_device *bdev, sector_t sector, in blkdev_issue_write_same()
246 static int __blkdev_issue_write_zeroes(struct block_device *bdev, in __blkdev_issue_write_zeroes()
302 static int __blkdev_issue_zero_pages(struct block_device *bdev, in __blkdev_issue_zero_pages()
358 int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in __blkdev_issue_zeroout()
392 int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in blkdev_issue_zeroout()
Dblk-zoned.c155 int blkdev_report_zones(struct block_device *bdev, sector_t sector, in blkdev_report_zones()
172 static inline bool blkdev_allow_reset_all_zones(struct block_device *bdev, in blkdev_allow_reset_all_zones()
202 int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op, in blkdev_zone_mgmt()
280 int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode, in blkdev_report_zones_ioctl()
318 static int blkdev_truncate_zone_range(struct block_device *bdev, fmode_t mode, in blkdev_truncate_zone_range()
338 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, fmode_t mode, in blkdev_zone_mgmt_ioctl()
/kernel/linux/linux-5.10/include/scsi/
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);
/kernel/linux/linux-5.10/drivers/ide/
Dide-floppy.h27 int ide_floppy_ioctl(ide_drive_t *, struct block_device *, fmode_t,
29 int ide_floppy_compat_ioctl(ide_drive_t *, struct block_device *, fmode_t,
Dide-gd.c184 static int ide_gd_open(struct block_device *bdev, fmode_t mode)
246 static int ide_gd_unlocked_open(struct block_device *bdev, fmode_t mode)
280 static int ide_gd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
301 static int ide_gd_ioctl(struct block_device *bdev, fmode_t mode,
311 static int ide_gd_compat_ioctl(struct block_device *bdev, fmode_t mode,
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_iblock.c73 struct block_device *bd = NULL; in iblock_configure_device()
193 struct block_device *bd, in iblock_emulate_read_cap_with_block_size()
394 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_unmap()
411 iblock_execute_zero_out(struct block_device *bdev, struct se_cmd *cmd) in iblock_execute_zero_out()
446 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; in iblock_execute_write_same()
599 struct block_device *bd = ib_dev->ibd_bd; in iblock_show_configfs_dev_params()
794 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_blocks()
803 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_alignment_offset_lbas()
817 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_lbppbe()
826 struct block_device *bd = ib_dev->ibd_bd; in iblock_get_io_min()
[all …]
Dtarget_core_pscsi.h22 struct block_device;
44 struct block_device *pdv_bd;
/kernel/linux/linux-5.10/fs/pstore/
Dblk.c100 static struct block_device *psblk_bdev;
229 static struct block_device *psblk_get_bdev(void *holder, in psblk_get_bdev()
232 struct block_device *bdev = ERR_PTR(-ENODEV); in psblk_get_bdev()
274 static void psblk_put_bdev(struct block_device *bdev, void *holder) in psblk_put_bdev()
290 struct block_device *bdev = psblk_bdev; in psblk_generic_blk_read()
315 struct block_device *bdev = psblk_bdev; in psblk_generic_blk_write()
374 struct block_device *bdev; in __register_pstore_blk()
/kernel/linux/linux-5.10/drivers/md/
Ddm-linear.c122 static int linear_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) in linear_prepare_ioctl()
165 struct block_device *bdev = lc->dev->bdev; in linear_dax_direct_access()
180 struct block_device *bdev = lc->dev->bdev; in linear_dax_copy_from_iter()
194 struct block_device *bdev = lc->dev->bdev; in linear_dax_copy_to_iter()
209 struct block_device *bdev = lc->dev->bdev; in linear_dax_zero_page_range()
/kernel/linux/linux-5.10/block/partitions/
Dcore.c116 struct block_device *bdev) in check_partition()
332 struct block_device *bdev; in delete_partition()
525 int bdev_add_partition(struct block_device *bdev, int partno, in bdev_add_partition()
551 int bdev_del_partition(struct block_device *bdev, int partno) in bdev_del_partition()
553 struct block_device *bdevp; in bdev_del_partition()
587 int bdev_resize_partition(struct block_device *bdev, int partno, in bdev_resize_partition()
590 struct block_device *bdevp; in bdev_resize_partition()
643 int blk_drop_partitions(struct block_device *bdev) in blk_drop_partitions()
666 static bool blk_add_partition(struct gendisk *disk, struct block_device *bdev, in blk_add_partition()
716 int blk_add_partitions(struct gendisk *disk, struct block_device *bdev) in blk_add_partitions()
/kernel/linux/linux-5.10/drivers/scsi/
Dscsicam.c33 unsigned char *scsi_bios_ptable(struct block_device *dev) in scsi_bios_ptable()
61 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]) in scsi_partsize()
219 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param()
/kernel/linux/linux-5.10/drivers/s390/block/
Ddasd_ioctl.c45 dasd_ioctl_enable(struct block_device *bdev) in dasd_ioctl_enable()
68 dasd_ioctl_disable(struct block_device *bdev) in dasd_ioctl_disable()
225 struct block_device *bdev = bdget_disk(block->gdp, 0); in dasd_format()
258 dasd_ioctl_format(struct block_device *bdev, void __user *argp) in dasd_ioctl_format()
295 static int dasd_ioctl_check_format(struct block_device *bdev, void __user *argp) in dasd_ioctl_check_format()
346 static int dasd_ioctl_release_space(struct block_device *bdev, void __user *argp) in dasd_ioctl_release_space()
536 dasd_ioctl_set_ro(struct block_device *bdev, void __user *argp) in dasd_ioctl_set_ro()
574 int dasd_ioctl(struct block_device *bdev, fmode_t mode, in dasd_ioctl()
Ddasd_genhd.c101 struct block_device *bdev; in dasd_scan_partitions()
139 struct block_device *bdev; in dasd_destroy_partitions()
/kernel/linux/linux-5.10/drivers/char/
Draw.c32 struct block_device *bdev;
59 struct block_device *bdev; in raw_open()
113 struct block_device *bdev; in raw_release()
132 struct block_device *bdev = filp->private_data; in raw_ioctl()
/kernel/linux/linux-5.10/fs/nfs/blocklayout/
Dblocklayout.h98 struct block_device *bdev;
111 struct block_device *bdev;
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()

1234567891011