Lines Matching refs:bdev
803 static inline struct request_queue *bdev_get_queue(struct block_device *bdev) in bdev_get_queue() argument
805 return bdev->bd_disk->queue; in bdev_get_queue()
934 extern int bdev_stack_limits(struct queue_limits *t, struct block_device *bdev,
936 extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev,
956 extern struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev);
1070 extern int blkdev_issue_discard(struct block_device *bdev, sector_t sector,
1072 extern int blkdev_issue_write_same(struct block_device *bdev, sector_t sector,
1074 extern int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
1144 static inline unsigned short bdev_logical_block_size(struct block_device *bdev) in bdev_logical_block_size() argument
1146 return queue_logical_block_size(bdev_get_queue(bdev)); in bdev_logical_block_size()
1154 static inline unsigned int bdev_physical_block_size(struct block_device *bdev) in bdev_physical_block_size() argument
1156 return queue_physical_block_size(bdev_get_queue(bdev)); in bdev_physical_block_size()
1164 static inline int bdev_io_min(struct block_device *bdev) in bdev_io_min() argument
1166 return queue_io_min(bdev_get_queue(bdev)); in bdev_io_min()
1174 static inline int bdev_io_opt(struct block_device *bdev) in bdev_io_opt() argument
1176 return queue_io_opt(bdev_get_queue(bdev)); in bdev_io_opt()
1196 static inline int bdev_alignment_offset(struct block_device *bdev) in bdev_alignment_offset() argument
1198 struct request_queue *q = bdev_get_queue(bdev); in bdev_alignment_offset()
1203 if (bdev != bdev->bd_contains) in bdev_alignment_offset()
1204 return bdev->bd_part->alignment_offset; in bdev_alignment_offset()
1240 static inline int bdev_discard_alignment(struct block_device *bdev) in bdev_discard_alignment() argument
1242 struct request_queue *q = bdev_get_queue(bdev); in bdev_discard_alignment()
1244 if (bdev != bdev->bd_contains) in bdev_discard_alignment()
1245 return bdev->bd_part->discard_alignment; in bdev_discard_alignment()
1258 static inline unsigned int bdev_discard_zeroes_data(struct block_device *bdev) in bdev_discard_zeroes_data() argument
1260 return queue_discard_zeroes_data(bdev_get_queue(bdev)); in bdev_discard_zeroes_data()
1263 static inline unsigned int bdev_write_same(struct block_device *bdev) in bdev_write_same() argument
1265 struct request_queue *q = bdev_get_queue(bdev); in bdev_write_same()
1296 static inline unsigned int block_size(struct block_device *bdev) in block_size() argument
1298 return bdev->bd_block_size; in block_size()
1413 struct blk_integrity *bdev_get_integrity(struct block_device *bdev) in bdev_get_integrity() argument
1415 return bdev->bd_disk->integrity; in bdev_get_integrity()