Lines Matching refs:block_device
359 int blkdev_report_zones(struct block_device *bdev, sector_t sector,
362 extern int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op,
367 extern int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode,
369 extern int blkdev_zone_mgmt_ioctl(struct block_device *bdev, fmode_t mode,
379 static inline int blkdev_report_zones_ioctl(struct block_device *bdev, in blkdev_report_zones_ioctl()
386 static inline int blkdev_zone_mgmt_ioctl(struct block_device *bdev, in blkdev_zone_mgmt_ioctl()
868 extern int scsi_verify_blk_ioctl(struct block_device *, unsigned int);
869 extern int scsi_cmd_blk_ioctl(struct block_device *, fmode_t,
900 static inline struct request_queue *bdev_get_queue(struct block_device *bdev) in bdev_get_queue()
1098 extern int bdev_stack_limits(struct queue_limits *t, struct block_device *bdev,
1100 extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev,
1212 extern int blkdev_issue_flush(struct block_device *, gfp_t, sector_t *);
1213 extern int blkdev_issue_write_same(struct block_device *bdev, sector_t sector,
1218 extern int blkdev_issue_discard(struct block_device *bdev, sector_t sector,
1220 extern int __blkdev_issue_discard(struct block_device *bdev, sector_t sector,
1227 extern int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
1230 extern int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
1309 static inline unsigned int bdev_logical_block_size(struct block_device *bdev) in bdev_logical_block_size()
1319 static inline unsigned int bdev_physical_block_size(struct block_device *bdev) in bdev_physical_block_size()
1329 static inline int bdev_io_min(struct block_device *bdev) in bdev_io_min()
1339 static inline int bdev_io_opt(struct block_device *bdev) in bdev_io_opt()
1361 static inline int bdev_alignment_offset(struct block_device *bdev) in bdev_alignment_offset()
1405 static inline int bdev_discard_alignment(struct block_device *bdev) in bdev_discard_alignment()
1415 static inline unsigned int bdev_write_same(struct block_device *bdev) in bdev_write_same()
1425 static inline unsigned int bdev_write_zeroes_sectors(struct block_device *bdev) in bdev_write_zeroes_sectors()
1435 static inline enum blk_zoned_model bdev_zoned_model(struct block_device *bdev) in bdev_zoned_model()
1445 static inline bool bdev_is_zoned(struct block_device *bdev) in bdev_is_zoned()
1455 static inline sector_t bdev_zone_sectors(struct block_device *bdev) in bdev_zone_sectors()
1487 static inline unsigned int block_size(struct block_device *bdev) in block_size()
1494 unsigned char *read_dev_sector(struct block_device *, sector_t, Sector *);
1562 struct blk_integrity *bdev_get_integrity(struct block_device *bdev) in bdev_get_integrity()
1620 struct block_device;
1639 static inline struct blk_integrity *bdev_get_integrity(struct block_device *b) in bdev_get_integrity()
1699 int (*open) (struct block_device *, fmode_t);
1701 int (*rw_page)(struct block_device *, sector_t, struct page *, unsigned int);
1702 int (*ioctl) (struct block_device *, fmode_t, unsigned, unsigned long);
1703 int (*compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long);
1710 int (*getgeo)(struct block_device *, struct hd_geometry *);
1712 void (*swap_slot_free_notify) (struct block_device *, unsigned long);
1719 extern int __blkdev_driver_ioctl(struct block_device *, fmode_t, unsigned int,
1721 extern int bdev_read_page(struct block_device *, sector_t, struct page *);
1722 extern int bdev_write_page(struct block_device *, sector_t, struct page *,
1780 struct block_device;
1817 static inline int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask, in blkdev_issue_flush()