/linux-4.4.14/include/linux/ |
H A D | pr.h | 7 int (*pr_register)(struct block_device *bdev, u64 old_key, u64 new_key, 9 int (*pr_reserve)(struct block_device *bdev, u64 key, 11 int (*pr_release)(struct block_device *bdev, u64 key, 13 int (*pr_preempt)(struct block_device *bdev, u64 old_key, u64 new_key, 15 int (*pr_clear)(struct block_device *bdev, u64 key);
|
H A D | mbcache.h | 12 struct block_device *e_bdev; 37 void mb_cache_shrink(struct block_device *); 43 int mb_cache_entry_insert(struct mb_cache_entry *, struct block_device *, 48 struct block_device *, 51 struct block_device *, 54 struct block_device *,
|
H A D | blkdev.h | 789 extern int scsi_verify_blk_ioctl(struct block_device *, unsigned int); 790 extern int scsi_cmd_blk_ioctl(struct block_device *, fmode_t, 823 static inline struct request_queue *bdev_get_queue(struct block_device *bdev) bdev_get_queue() 984 extern int bdev_stack_limits(struct queue_limits *t, struct block_device *bdev, 986 extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, 1006 extern struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev); 1120 extern int blkdev_issue_flush(struct block_device *, gfp_t, sector_t *); 1121 extern int blkdev_issue_discard(struct block_device *bdev, sector_t sector, 1123 extern int blkdev_issue_write_same(struct block_device *bdev, sector_t sector, 1125 extern int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, 1200 static inline unsigned short bdev_logical_block_size(struct block_device *bdev) bdev_logical_block_size() 1210 static inline unsigned int bdev_physical_block_size(struct block_device *bdev) bdev_physical_block_size() 1220 static inline int bdev_io_min(struct block_device *bdev) bdev_io_min() 1230 static inline int bdev_io_opt(struct block_device *bdev) bdev_io_opt() 1251 static inline int bdev_alignment_offset(struct block_device *bdev) bdev_alignment_offset() 1295 static inline int bdev_discard_alignment(struct block_device *bdev) bdev_discard_alignment() 1313 static inline unsigned int bdev_discard_zeroes_data(struct block_device *bdev) bdev_discard_zeroes_data() 1318 static inline unsigned int bdev_write_same(struct block_device *bdev) bdev_write_same() 1351 static inline unsigned int block_size(struct block_device *bdev) block_size() 1363 unsigned char *read_dev_sector(struct block_device *, sector_t, Sector *); 1514 struct blk_integrity *bdev_get_integrity(struct block_device *bdev) bdev_get_integrity() 1559 struct block_device; 1578 static inline struct blk_integrity *bdev_get_integrity(struct block_device *b) bdev_get_integrity() 1632 int (*open) (struct block_device *, fmode_t); 1634 int (*rw_page)(struct block_device *, sector_t, struct page *, int rw); 1635 int (*ioctl) (struct block_device *, fmode_t, unsigned, unsigned long); 1636 int (*compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long); 1637 long (*direct_access)(struct block_device *, sector_t, void __pmem **, 1645 int (*getgeo)(struct block_device *, struct hd_geometry *); 1647 void (*swap_slot_free_notify) (struct block_device *, unsigned long); 1652 extern int __blkdev_driver_ioctl(struct block_device *, fmode_t, unsigned int, 1654 extern int bdev_read_page(struct block_device *, sector_t, struct page *); 1655 extern int bdev_write_page(struct block_device *, sector_t, struct page *, 1657 extern long bdev_direct_access(struct block_device *, sector_t, 1661 struct block_device; 1698 static inline int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask, blkdev_issue_flush()
|
H A D | blktrace_api.h | 31 extern int blk_trace_ioctl(struct block_device *, unsigned, char __user *); 34 dev_t dev, struct block_device *bdev, 63 struct block_device *bdev,
|
H A D | buffer_head.h | 71 struct block_device *b_bdev; 171 void unmap_underlying_metadata(struct block_device *bdev, sector_t block); 176 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block, 178 struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block, 182 void __breadahead(struct block_device *, sector_t block, unsigned int size); 183 struct buffer_head *__bread_gfp(struct block_device *, 196 void write_boundary_block(struct block_device *bdev, 359 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, getblk_unmovable() 366 static inline struct buffer_head *__getblk(struct block_device *bdev, __getblk() 375 * @bdev: the block_device to read from 384 __bread(struct block_device *bdev, sector_t block, unsigned size) __bread()
|
H A D | dm-io.h | 18 struct block_device *bdev;
|
H A D | cdrom.h | 96 /* the general block_device operations structure: */ 97 extern int cdrom_open(struct cdrom_device_info *cdi, struct block_device *bdev, 100 extern int cdrom_ioctl(struct cdrom_device_info *cdi, struct block_device *bdev,
|
H A D | fs.h | 427 struct inode *host; /* owner: inode, block_device */ 450 struct block_device { struct 464 struct block_device * bd_contains; 474 * Private data. You must have bd_claim'ed the block_device 667 struct block_device *i_bdev; 806 extern struct block_device *I_BDEV(struct inode *inode); 1311 struct block_device *s_bdev; 2264 extern struct block_device *bdget(dev_t); 2265 extern struct block_device *bdgrab(struct block_device *bdev); 2266 extern void bd_set_size(struct block_device *, loff_t size); 2268 extern void bdput(struct block_device *); 2269 extern void invalidate_bdev(struct block_device *); 2270 extern void iterate_bdevs(void (*)(struct block_device *, void *), void *); 2271 extern int sync_blockdev(struct block_device *bdev); 2272 extern void kill_bdev(struct block_device *); 2273 extern struct super_block *freeze_bdev(struct block_device *); 2275 extern int thaw_bdev(struct block_device *bdev, struct super_block *sb); 2276 extern int fsync_bdev(struct block_device *); 2286 static inline int sync_blockdev(struct block_device *bdev) { return 0; } kill_bdev() 2287 static inline void kill_bdev(struct block_device *bdev) {} invalidate_bdev() 2288 static inline void invalidate_bdev(struct block_device *bdev) {} invalidate_bdev() 2290 static inline struct super_block *freeze_bdev(struct block_device *sb) freeze_bdev() 2295 static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb) thaw_bdev() 2300 static inline void iterate_bdevs(void (*f)(struct block_device *, void *), void *arg) iterate_bdevs() 2313 extern int ioctl_by_bdev(struct block_device *, unsigned, unsigned long); 2314 extern int blkdev_ioctl(struct block_device *, fmode_t, unsigned, unsigned long); 2316 extern int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder); 2317 extern struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, 2319 extern struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, 2321 extern void blkdev_put(struct block_device *bdev, fmode_t mode); 2322 extern int __blkdev_reread_part(struct block_device *bdev); 2323 extern int blkdev_reread_part(struct block_device *bdev); 2326 extern int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk); 2327 extern void bd_unlink_disk_holder(struct block_device *bdev, 2330 static inline int bd_link_disk_holder(struct block_device *bdev, bd_link_disk_holder() 2335 static inline void bd_unlink_disk_holder(struct block_device *bdev, bd_unlink_disk_holder() 2372 extern const char *bdevname(struct block_device *bdev, char *buffer); 2373 extern struct block_device *lookup_bdev(const char *); 2398 struct block_device *bdev); 2400 extern int check_disk_change(struct block_device *); 2401 extern int __invalidate_device(struct block_device *, bool); 2625 extern int bdev_read_only(struct block_device *); 2627 extern int set_blocksize(struct block_device *, int); 2697 struct block_device *bdev, struct iov_iter *iter, 2790 extern struct super_block *get_super(struct block_device *); 2791 extern struct super_block *get_super_thawed(struct block_device *); 2792 extern struct super_block *get_active_super(struct block_device *bdev);
|
H A D | blk_types.h | 14 struct block_device; 48 struct block_device *bi_bdev;
|
H A D | genhd.h | 435 extern struct block_device *bdget_disk(struct gendisk *disk, int partno); 437 extern void set_device_ro(struct block_device *bdev, int flag); 454 static inline sector_t get_start_sect(struct block_device *bdev) get_start_sect() 620 extern int rescan_partitions(struct gendisk *disk, struct block_device *bdev); 621 extern int invalidate_partitions(struct gendisk *disk, struct block_device *bdev);
|
H A D | swap.h | 226 struct block_device *bdev; /* swap device or bdev of swap file */ 440 extern int swap_type_of(dev_t, sector_t, struct block_device **); 442 extern sector_t map_swap_page(struct page *, struct block_device **);
|
H A D | pktcdvd.h | 165 struct block_device *bdev; /* dev attached */
|
H A D | device-mapper.h | 83 struct block_device **bdev, fmode_t *mode); 122 struct block_device *bdev;
|
H A D | jbd2.h | 905 struct block_device *j_dev; 914 struct block_device *j_fs_dev; 1248 extern journal_t * jbd2_journal_init_dev(struct block_device *bdev, 1249 struct block_device *fs_dev,
|
H A D | ide.h | 382 int (*ioctl)(struct ide_drive_s *, struct block_device *, 1051 int ide_setting_ioctl(ide_drive_t *, struct block_device *, unsigned int, 1054 int generic_ide_ioctl(ide_drive_t *, struct block_device *, unsigned, unsigned long);
|
/linux-4.4.14/include/scsi/ |
H A D | scsicam.h | 15 extern int scsicam_bios_param (struct block_device *bdev, sector_t capacity, int *ip); 18 extern unsigned char *scsi_bios_ptable(struct block_device *bdev);
|
H A D | libsas.h | 41 struct block_device; 692 struct block_device *,
|
H A D | scsi_host.h | 14 struct block_device; 288 int (* bios_param)(struct scsi_device *, struct block_device *,
|
/linux-4.4.14/drivers/target/ |
H A D | target_core_iblock.h | 21 struct block_device *ibd_bd;
|
H A D | target_core_pscsi.h | 46 struct block_device *pdv_bd;
|
H A D | target_core_iblock.c | 86 struct block_device *bd = NULL; iblock_configure_device() 102 pr_debug( "IBLOCK: Claiming struct block_device: %s\n", iblock_configure_device() 201 struct block_device *bd, iblock_emulate_read_cap_with_block_size() 399 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; iblock_execute_unmap() 564 struct block_device *bd = ib_dev->ibd_bd; iblock_show_configfs_dev_params() 741 struct block_device *bd = ib_dev->ibd_bd; iblock_get_blocks() 750 struct block_device *bd = ib_dev->ibd_bd; iblock_get_alignment_offset_lbas() 764 struct block_device *bd = ib_dev->ibd_bd; iblock_get_lbppbe() 773 struct block_device *bd = ib_dev->ibd_bd; iblock_get_io_min() 781 struct block_device *bd = ib_dev->ibd_bd; iblock_get_io_opt() 802 struct block_device *bd = ib_dev->ibd_bd; iblock_get_write_cache()
|
H A D | target_core_file.c | 142 * fd_dev->fd_[block,dev]_size from struct block_device. fd_configure_device() 154 * one (1) logical sector from underlying struct block_device fd_configure_device() 160 " block_device blocks: %llu logical_block_size: %d\n", fd_configure_device() 180 " block_device\n"); fd_configure_device() 291 * block_device. 478 struct block_device *bdev = inode->i_bdev; fd_execute_unmap() 706 * When using a file that references an underlying struct block_device, fd_get_blocks() 708 * to handle underlying block_device resize operations. fd_get_blocks()
|
H A D | target_core_pscsi.c | 371 struct block_device *bd; 382 * Claim exclusive struct block_device access to struct scsi_device 596 * Release exclusive pSCSI internal struct block_device claim for pscsi_free_device()
|
H A D | target_core_device.c | 830 * Check if the underlying struct block_device request_queue supports
|
/linux-4.4.14/drivers/ide/ |
H A D | ide-disk.h | 16 int ide_disk_ioctl(ide_drive_t *, struct block_device *, fmode_t, unsigned int,
|
H A D | ide-disk_ioctl.c | 18 int ide_disk_ioctl(ide_drive_t *drive, struct block_device *bdev, fmode_t mode, ide_disk_ioctl()
|
H A D | ide-floppy.h | 26 int ide_floppy_ioctl(ide_drive_t *, struct block_device *, fmode_t,
|
H A D | ide-gd.c | 183 static int ide_gd_open(struct block_device *bdev, fmode_t mode) ide_gd_open() 241 static int ide_gd_unlocked_open(struct block_device *bdev, fmode_t mode) ide_gd_unlocked_open() 275 static int ide_gd_getgeo(struct block_device *bdev, struct hd_geometry *geo) ide_gd_getgeo() 333 static int ide_gd_ioctl(struct block_device *bdev, fmode_t mode, ide_gd_ioctl()
|
H A D | ide-ioctls.c | 19 int ide_setting_ioctl(ide_drive_t *drive, struct block_device *bdev, ide_setting_ioctl() 234 int generic_ide_ioctl(ide_drive_t *drive, struct block_device *bdev, generic_ide_ioctl()
|
H A D | ide-floppy_ioctl.c | 273 int ide_floppy_ioctl(ide_drive_t *drive, struct block_device *bdev, ide_floppy_ioctl()
|
H A D | ide-cd.c | 1591 static int idecd_open(struct block_device *bdev, fmode_t mode) idecd_open() 1659 static int idecd_locked_ioctl(struct block_device *bdev, fmode_t mode, idecd_locked_ioctl() 1681 static int idecd_ioctl(struct block_device *bdev, fmode_t mode, idecd_ioctl()
|
H A D | ide-tape.c | 1907 static int idetape_open(struct block_device *bdev, fmode_t mode) idetape_open() 1930 static int idetape_ioctl(struct block_device *bdev, fmode_t mode, idetape_ioctl()
|
/linux-4.4.14/block/partitions/ |
H A D | check.h | 10 struct block_device *bdev; 28 check_partition(struct gendisk *, struct block_device *);
|
H A D | check.c | 142 check_partition(struct gendisk *hd, struct block_device *bdev) check_partition()
|
H A D | aix.c | 78 static u64 last_lba(struct block_device *bdev) last_lba()
|
H A D | ibm.c | 291 struct block_device *bdev = state->bdev; ibm_partition()
|
H A D | efi.c | 148 static u64 last_lba(struct block_device *bdev) last_lba() 255 struct block_device *bdev = state->bdev; read_lba()
|
/linux-4.4.14/block/ |
H A D | ioctl.c | 13 static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg __user *arg) blkpg_ioctl() 15 struct block_device *bdevp; blkpg_ioctl() 159 int __blkdev_reread_part(struct block_device *bdev) __blkdev_reread_part() 185 int blkdev_reread_part(struct block_device *bdev) blkdev_reread_part() 197 static int blk_ioctl_discard(struct block_device *bdev, fmode_t mode, blk_ioctl_discard() 224 static int blk_ioctl_zeroout(struct block_device *bdev, fmode_t mode, blk_ioctl_zeroout() 282 int __blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, __blkdev_driver_ioctl() 299 static int blkdev_pr_register(struct block_device *bdev, blkdev_pr_register() 317 static int blkdev_pr_reserve(struct block_device *bdev, blkdev_pr_reserve() 335 static int blkdev_pr_release(struct block_device *bdev, blkdev_pr_release() 353 static int blkdev_pr_preempt(struct block_device *bdev, blkdev_pr_preempt() 371 static int blkdev_pr_clear(struct block_device *bdev, blkdev_pr_clear() 409 static int blkdev_flushbuf(struct block_device *bdev, fmode_t mode, blkdev_flushbuf() 426 static int blkdev_roset(struct block_device *bdev, fmode_t mode, blkdev_roset() 442 static int blkdev_getgeo(struct block_device *bdev, blkdev_getgeo() 469 static int blkdev_bszset(struct block_device *bdev, fmode_t mode, blkdev_bszset() 496 int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, blkdev_ioctl()
|
H A D | blk-lib.c | 40 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, blkdev_issue_discard() 144 int blkdev_issue_write_same(struct block_device *bdev, sector_t sector, blkdev_issue_write_same() 215 static int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, __blkdev_issue_zeroout() 285 int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, blkdev_issue_zeroout()
|
H A D | partition-generic.c | 46 const char *bdevname(struct block_device *bdev, char *buf) bdevname() 55 * have a struct block_device just about everywhere and use 401 static int drop_partitions(struct gendisk *disk, struct block_device *bdev) drop_partitions() 421 int rescan_partitions(struct gendisk *disk, struct block_device *bdev) rescan_partitions() 540 int invalidate_partitions(struct gendisk *disk, struct block_device *bdev) invalidate_partitions() 560 unsigned char *read_dev_sector(struct block_device *bdev, sector_t n, Sector *p) read_dev_sector()
|
H A D | compat_ioctl.c | 51 static int compat_hdio_getgeo(struct gendisk *disk, struct block_device *bdev, compat_hdio_getgeo() 80 static int compat_hdio_ioctl(struct block_device *bdev, fmode_t mode, compat_hdio_ioctl() 120 static int compat_cdrom_read_audio(struct block_device *bdev, fmode_t mode, compat_cdrom_read_audio() 147 static int compat_cdrom_generic_command(struct block_device *bdev, fmode_t mode, compat_cdrom_generic_command() 186 static int compat_blkpg_ioctl(struct block_device *bdev, fmode_t mode, compat_blkpg_ioctl() 303 static int compat_fd_ioctl(struct block_device *bdev, fmode_t mode, compat_fd_ioctl() 524 static int compat_blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, compat_blkdev_driver_ioctl() 661 struct block_device *bdev = inode->i_bdev; compat_blkdev_ioctl()
|
H A D | genhd.c | 511 struct block_device *bdev; register_disk() 720 * Resulting block_device on success, NULL on failure. 722 struct block_device *bdget_disk(struct gendisk *disk, int partno) bdget_disk() 725 struct block_device *bdev = NULL; bdget_disk() 1344 void set_device_ro(struct block_device *bdev, int flag) set_device_ro() 1369 int bdev_read_only(struct block_device *bdev) bdev_read_only() 1381 struct block_device *bdev = bdget_disk(disk, partno); invalidate_partition()
|
H A D | blk-settings.c | 640 * @bdev: the component block_device (bottom) 644 * Merges queue limits for a top device and a block_device. Returns 648 int bdev_stack_limits(struct queue_limits *t, struct block_device *bdev, bdev_stack_limits() 667 * block_device. 669 void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, disk_stack_limits()
|
H A D | scsi_ioctl.c | 689 int scsi_verify_blk_ioctl(struct block_device *bd, unsigned int cmd) scsi_verify_blk_ioctl() 730 int scsi_cmd_blk_ioctl(struct block_device *bd, fmode_t mode, scsi_cmd_blk_ioctl()
|
H A D | blk-flush.c | 462 int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask, blkdev_issue_flush()
|
/linux-4.4.14/fs/ |
H A D | block_dev.c | 36 struct block_device bdev; 47 struct block_device *I_BDEV(struct inode *inode) I_BDEV() 53 static void bdev_write_inode(struct block_device *bdev) bdev_write_inode() 74 void kill_bdev(struct block_device *bdev) kill_bdev() 87 void invalidate_bdev(struct block_device *bdev) invalidate_bdev() 104 int set_blocksize(struct block_device *bdev, int size) set_blocksize() 173 int __sync_blockdev(struct block_device *bdev, int wait) __sync_blockdev() 186 int sync_blockdev(struct block_device *bdev) sync_blockdev() 197 int fsync_bdev(struct block_device *bdev) fsync_bdev() 221 struct super_block *freeze_bdev(struct block_device *bdev) freeze_bdev() 267 int thaw_bdev(struct block_device *bdev, struct super_block *sb) thaw_bdev() 353 struct block_device *bdev = I_BDEV(bd_inode); blkdev_fsync() 389 int bdev_read_page(struct block_device *bdev, sector_t sector, bdev_read_page() 426 int bdev_write_page(struct block_device *bdev, sector_t sector, bdev_write_page() 467 long bdev_direct_access(struct block_device *bdev, sector_t sector, bdev_direct_access() 527 struct block_device *bdev = &ei->bdev; init_once() 550 struct block_device *bdev = &BDEV_I(inode)->bdev; bdev_evict_inode() 627 struct block_device *bdget(dev_t dev) bdget() 629 struct block_device *bdev; bdget() 666 struct block_device *bdgrab(struct block_device *bdev) bdgrab() 675 struct block_device *bdev; nr_blockdev_pages() 685 void bdput(struct block_device *bdev) bdput() 692 static struct block_device *bd_acquire(struct inode *inode) bd_acquire() 694 struct block_device *bdev; bd_acquire() 729 struct block_device *bdev = NULL; bd_forget() 755 static bool bd_may_claim(struct block_device *bdev, struct block_device *whole, bd_may_claim() 791 static int bd_prepare_to_claim(struct block_device *bdev, bd_prepare_to_claim() 792 struct block_device *whole, void *holder) bd_prepare_to_claim() 839 static struct block_device *bd_start_claiming(struct block_device *bdev, bd_start_claiming() 843 struct block_device *whole; bd_start_claiming() 896 static struct bd_holder_disk *bd_find_holder_disk(struct block_device *bdev, bd_find_holder_disk() 945 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) bd_link_disk_holder() 1010 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk) bd_unlink_disk_holder() 1042 static void flush_disk(struct block_device *bdev, bool kill_dirty) flush_disk() 1067 void check_disk_size_change(struct gendisk *disk, struct block_device *bdev) check_disk_size_change() 1096 struct block_device *bdev; revalidate_disk() 1124 int check_disk_change(struct block_device *bdev) check_disk_change() 1143 void bd_set_size(struct block_device *bdev, loff_t size) bd_set_size() 1160 static void __blkdev_put(struct block_device *bdev, fmode_t mode, int for_part); 1169 static int __blkdev_get(struct block_device *bdev, fmode_t mode, int for_part) __blkdev_get() 1251 struct block_device *whole; __blkdev_get() 1323 * @bdev: block_device to open 1340 int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder) blkdev_get() 1342 struct block_device *whole = NULL; blkdev_get() 1415 * On success, the returned block_device has reference count of one. 1421 * Pointer to block_device on success, ERR_PTR(-errno) on failure. 1423 struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, blkdev_get_by_path() 1426 struct block_device *bdev; blkdev_get_by_path() 1460 * On success, the returned block_device has reference count of one. 1466 * Pointer to block_device on success, ERR_PTR(-errno) on failure. 1468 struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder) blkdev_get_by_dev() 1470 struct block_device *bdev; blkdev_get_by_dev() 1487 struct block_device *bdev; blkdev_open() 1513 static void __blkdev_put(struct block_device *bdev, fmode_t mode, int for_part) __blkdev_put() 1516 struct block_device *victim = NULL; __blkdev_put() 1558 void blkdev_put(struct block_device *bdev, fmode_t mode) blkdev_put() 1608 struct block_device *bdev = I_BDEV(filp->f_mapping->host); blkdev_close() 1615 struct block_device *bdev = I_BDEV(file->f_mapping->host); block_ioctl() 1727 int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg) ioctl_by_bdev() 1740 * lookup_bdev - lookup a struct block_device by name 1747 struct block_device *lookup_bdev(const char *pathname) lookup_bdev() 1749 struct block_device *bdev; lookup_bdev() 1781 int __invalidate_device(struct block_device *bdev, bool kill_dirty) __invalidate_device() 1802 void iterate_bdevs(void (*func)(struct block_device *, void *), void *arg) iterate_bdevs()
|
H A D | internal.h | 25 extern int __sync_blockdev(struct block_device *bdev, int wait); 32 static inline int __sync_blockdev(struct block_device *bdev, int wait) __sync_blockdev()
|
H A D | mbcache.c | 396 mb_cache_shrink(struct block_device *bdev) mb_cache_shrink() 579 mb_cache_entry_insert(struct mb_cache_entry *ce, struct block_device *bdev, mb_cache_entry_insert() 661 mb_cache_entry_get(struct mb_cache *cache, struct block_device *bdev, mb_cache_entry_get() 720 struct block_device *bdev, unsigned int key) __mb_cache_entry_find() 786 mb_cache_entry_find_first(struct mb_cache *cache, struct block_device *bdev, mb_cache_entry_find_first() 825 struct block_device *bdev, unsigned int key) mb_cache_entry_find_next()
|
H A D | mpage.c | 67 mpage_alloc(struct block_device *bdev, mpage_alloc() 155 struct block_device *bdev = NULL; do_mpage_readpage() 480 struct block_device *bdev = NULL; __mpage_writepage() 483 struct block_device *boundary_bdev = NULL; __mpage_writepage()
|
H A D | sync.c | 82 static void fdatawrite_one_bdev(struct block_device *bdev, void *arg) fdatawrite_one_bdev() 87 static void fdatawait_one_bdev(struct block_device *bdev, void *arg) fdatawait_one_bdev()
|
H A D | super.c | 592 struct super_block *get_super(struct block_device *bdev) get_super() 633 struct super_block *get_super_thawed(struct block_device *bdev) get_super_thawed() 655 struct super_block *get_active_super(struct block_device *bdev) get_active_super() 969 struct block_device *bdev; mount_bdev() 1044 struct block_device *bdev = sb->s_bdev; kill_block_super()
|
H A D | buffer.c | 202 __find_get_block_slow(struct block_device *bdev, sector_t block) __find_get_block_slow() 592 void write_boundary_block(struct block_device *bdev, write_boundary_block() 942 static sector_t blkdev_max_block(struct block_device *bdev, unsigned int size) blkdev_max_block() 958 init_page_buffers(struct page *page, struct block_device *bdev, init_page_buffers() 992 grow_dev_page(struct block_device *bdev, sector_t block, grow_dev_page() 1060 grow_buffers(struct block_device *bdev, sector_t block, int size, gfp_t gfp) grow_buffers() 1091 __getblk_slow(struct block_device *bdev, sector_t block, __getblk_slow() 1330 lookup_bh_lru(struct block_device *bdev, sector_t block, unsigned size) lookup_bh_lru() 1365 __find_get_block(struct block_device *bdev, sector_t block, unsigned size) __find_get_block() 1383 * which corresponds to the passed block_device, block and size. The 1390 __getblk_gfp(struct block_device *bdev, sector_t block, __getblk_gfp() 1405 void __breadahead(struct block_device *bdev, sector_t block, unsigned size) __breadahead() 1417 * @bdev: the block_device to read from 1428 __bread_gfp(struct block_device *bdev, sector_t block, __bread_gfp() 1634 void unmap_underlying_metadata(struct block_device *bdev, sector_t block) unmap_underlying_metadata()
|
H A D | direct-io.c | 113 struct block_device *bio_bdev; 359 struct block_device *bdev, dio_bio_alloc() 1109 struct block_device *bdev, struct iov_iter *iter, do_blockdev_direct_IO() 1324 struct block_device *bdev, struct iov_iter *iter, __blockdev_direct_IO()
|
/linux-4.4.14/fs/udf/ |
H A D | lowlevel.c | 32 struct block_device *bdev = sb->s_bdev; udf_get_last_session() 52 struct block_device *bdev = sb->s_bdev; udf_get_last_block()
|
/linux-4.4.14/drivers/scsi/ |
H A D | sym53c416.h | 30 static int sym53c416_bios_param(struct scsi_device *, struct block_device *,
|
H A D | ultrastor.h | 21 static int ultrastor_biosparam(struct scsi_device *, struct block_device *,
|
H A D | scsicam.c | 35 unsigned char *scsi_bios_ptable(struct block_device *dev) scsi_bios_ptable() 39 struct block_device *bdev = dev->bd_contains; scsi_bios_ptable() 67 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) scsicam_bios_param()
|
H A D | qlogicfas408.h | 108 struct block_device *dev,
|
H A D | t128.c | 270 * Function : int t128_biosparam(Disk * disk, struct block_device *dev, int *ip) 289 static int t128_biosparam(struct scsi_device *sdev, struct block_device *bdev, t128_biosparam()
|
H A D | dtc.c | 285 * Function : int dtc_biosparam(Disk * disk, struct block_device *dev, int *ip) 304 static int dtc_biosparam(struct scsi_device *sdev, struct block_device *dev, dtc_biosparam()
|
H A D | pas16.c | 445 * Function : int pas16_biosparam(Disk *disk, struct block_device *dev, int *ip) 464 static int pas16_biosparam(struct scsi_device *sdev, struct block_device *dev, pas16_biosparam()
|
H A D | sd.c | 1179 static int sd_open(struct block_device *bdev, fmode_t mode) sd_open() 1273 static int sd_getgeo(struct block_device *bdev, struct hd_geometry *geo) sd_getgeo() 1312 static int sd_ioctl(struct block_device *bdev, fmode_t mode, sd_ioctl() 1534 static int sd_compat_ioctl(struct block_device *bdev, fmode_t mode, sd_compat_ioctl() 1574 static int sd_pr_command(struct block_device *bdev, u8 sa, sd_pr_command() 1604 static int sd_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, sd_pr_register() 1615 static int sd_pr_reserve(struct block_device *bdev, u64 key, enum pr_type type, sd_pr_reserve() 1623 static int sd_pr_release(struct block_device *bdev, u64 key, enum pr_type type) sd_pr_release() 1628 static int sd_pr_preempt(struct block_device *bdev, u64 old_key, u64 new_key, sd_pr_preempt() 1635 static int sd_pr_clear(struct block_device *bdev, u64 key) sd_pr_clear()
|
H A D | dpti.h | 39 static int adpt_bios_param(struct scsi_device * sdev, struct block_device *dev,
|
H A D | qlogicfas408.c | 468 int qlogicfas408_biosparam(struct scsi_device *disk, struct block_device *dev, DEF_SCSI_QCMD()
|
H A D | in2000.h | 402 static int in2000_biosparam(struct scsi_device *, struct block_device *,
|
H A D | sr.c | 520 static int sr_block_open(struct block_device *bdev, fmode_t mode) sr_block_open() 545 static int sr_block_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, sr_block_ioctl()
|
H A D | aha1740.c | 504 struct block_device *dev, aha1740_biosparam()
|
H A D | sym53c416.c | 799 struct block_device *dev, sym53c416_bios_param()
|
H A D | g_NCR5380.c | 500 generic_NCR5380_biosparam(struct scsi_device *sdev, struct block_device *bdev, generic_NCR5380_biosparam()
|
H A D | u14-34f.c | 438 static int u14_34f_bios_param(struct scsi_device *, struct block_device *, 1531 struct block_device *bdev, sector_t capacity, int *dkinfo) { u14_34f_bios_param()
|
H A D | megaraid.h | 968 static int megaraid_biosparam(struct scsi_device *, struct block_device *,
|
H A D | ppa.c | 815 static int ppa_biosparam(struct scsi_device *sdev, struct block_device *dev, ppa_biosparam()
|
H A D | BusLogic.h | 1294 static int blogic_diskparam(struct scsi_device *, struct block_device *, sector_t, int *);
|
H A D | NCR53c406a.c | 751 struct block_device *dev, NCR53c406a_biosparm()
|
H A D | aha1542.c | 922 struct block_device *bdev, sector_t capacity, int geom[]) aha1542_biosparam()
|
H A D | ultrastor.c | 1034 int ultrastor_biosparam(struct scsi_device *sdev, struct block_device *bdev,
|
H A D | wd719x.c | 538 static int wd719x_biosparam(struct scsi_device *sdev, struct block_device *bdev, wd719x_biosparam()
|
H A D | imm.c | 941 static int imm_biosparam(struct scsi_device *sdev, struct block_device *dev, imm_biosparam()
|
H A D | ips.h | 419 static int ips_biosparam(struct scsi_device *sdev, struct block_device *bdev,
|
/linux-4.4.14/drivers/md/ |
H A D | dm-bio-record.h | 21 struct block_device *bi_bdev;
|
H A D | dm-bufio.h | 24 dm_bufio_client_create(struct block_device *bdev, unsigned block_size,
|
H A D | dm-linear.c | 120 struct block_device **bdev, fmode_t *mode) linear_prepare_ioctl()
|
H A D | dm-cache-metadata.h | 56 struct dm_cache_metadata *dm_cache_metadata_open(struct block_device *bdev,
|
H A D | dm-exception-store.h | 192 static inline sector_t get_dev_size(struct block_device *bdev) get_dev_size()
|
H A D | dm-snap.c | 169 static int bdev_equal(struct block_device *lhs, struct block_device *rhs) bdev_equal() 294 struct block_device *bdev; 360 static unsigned origin_hash(struct block_device *bdev) origin_hash() 365 static struct origin *__lookup_origin(struct block_device *origin) __lookup_origin() 384 static struct dm_origin *__lookup_dm_origin(struct block_device *origin) __lookup_dm_origin() 531 struct block_device *bdev = snap->origin->bdev; register_snapshot() 573 struct block_device *bdev = s->origin->bdev; reregister_snapshot() 1575 struct block_device *bdev = s->origin->bdev; start_copy() 1963 static uint32_t get_origin_minimum_chunksize(struct block_device *bdev) get_origin_minimum_chunksize()
|
H A D | dm-cache-metadata.c | 102 struct block_device *bdev; 692 static struct dm_cache_metadata *metadata_open(struct block_device *bdev, metadata_open() 738 static struct dm_cache_metadata *lookup(struct block_device *bdev) lookup() 751 static struct dm_cache_metadata *lookup_or_open(struct block_device *bdev, lookup_or_open() 794 struct dm_cache_metadata *dm_cache_metadata_open(struct block_device *bdev, dm_cache_metadata_open()
|
H A D | dm.c | 207 struct block_device *bdev; 445 static int dm_blk_open(struct block_device *bdev, fmode_t mode) dm_blk_open() 552 static int dm_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) dm_blk_getgeo() 560 struct dm_target **tgt, struct block_device **bdev, dm_get_live_table_for_ioctl() 601 static int dm_blk_ioctl(struct block_device *bdev, fmode_t mode, dm_blk_ioctl() 606 struct block_device *tgt_bdev = NULL; dm_blk_ioctl() 778 struct block_device *bdev; open_table_device() 3555 static int dm_pr_register(struct block_device *bdev, u64 old_key, u64 new_key, dm_pr_register() 3578 static int dm_pr_reserve(struct block_device *bdev, u64 key, enum pr_type type, dm_pr_reserve() 3601 static int dm_pr_release(struct block_device *bdev, u64 key, enum pr_type type) dm_pr_release() 3623 static int dm_pr_preempt(struct block_device *bdev, u64 old_key, u64 new_key, dm_pr_preempt() 3646 static int dm_pr_clear(struct block_device *bdev, u64 key) dm_pr_clear()
|
H A D | dm-flakey.c | 377 struct block_device **bdev, fmode_t *mode) flakey_prepare_ioctl()
|
H A D | dm-thin-metadata.h | 44 struct dm_pool_metadata *dm_pool_metadata_open(struct block_device *bdev,
|
H A D | dm-table.c | 282 struct block_device *bdev = dev->bdev; device_area_is_invalid() 373 struct block_device *bdev; dm_get_dev_t() 435 struct block_device *bdev = dev->bdev; dm_set_device_limits()
|
H A D | md.h | 53 struct block_device *meta_bdev; 54 struct block_device *bdev; /* block device handle */ 493 static inline void md_sync_acct(struct block_device *bdev, unsigned long nr_sectors) md_sync_acct()
|
H A D | dm-thin.c | 228 struct block_device *md_dev; 336 static int __blkdev_issue_discard_async(struct block_device *bdev, sector_t sector, __blkdev_issue_discard_async() 523 static struct pool *__pool_table_lookup_metadata_dev(struct block_device *md_dev) __pool_table_lookup_metadata_dev() 2677 struct block_device *data_bdev = pt->data_dev->bdev; disable_passdown_if_not_supported() 2767 struct block_device *metadata_dev, pool_create() 2910 struct block_device *metadata_dev, __pool_find() 3019 static sector_t get_dev_size(struct block_device *bdev) get_dev_size() 3024 static void warn_if_metadata_device_too_big(struct block_device *bdev) warn_if_metadata_device_too_big() 3034 static sector_t get_metadata_dev_size(struct block_device *bdev) get_metadata_dev_size() 3044 static dm_block_t get_metadata_dev_size_in_blocks(struct block_device *bdev) get_metadata_dev_size_in_blocks()
|
H A D | dm-switch.c | 515 struct block_device **bdev, fmode_t *mode) switch_prepare_ioctl()
|
H A D | dm-era-target.c | 261 struct block_device *bdev; 778 static struct era_metadata *metadata_open(struct block_device *bdev, metadata_open()
|
H A D | dm-mpath.c | 387 struct block_device *bdev; __multipath_map() 1537 struct block_device **bdev, fmode_t *mode) multipath_prepare_ioctl()
|
H A D | dm-log-writes.c | 718 struct block_device **bdev, fmode_t *mode) log_writes_prepare_ioctl()
|
H A D | dm-verity.c | 635 struct block_device **bdev, fmode_t *mode) verity_prepare_ioctl()
|
H A D | dm-bufio.c | 92 struct block_device *bdev; 1580 struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsigned block_size, dm_bufio_client_create()
|
H A D | dm-thin-metadata.c | 145 struct block_device *bdev; 826 struct dm_pool_metadata *dm_pool_metadata_open(struct block_device *bdev, dm_pool_metadata_open()
|
H A D | md.c | 2164 struct block_device *bdev; lock_rdev() 2180 struct block_device *bdev = rdev->bdev; unlock_rdev() 3904 static int do_md_stop(struct mddev *mddev, int ro, struct block_device *bdev); 3905 static int md_set_readonly(struct mddev *mddev, struct block_device *bdev); 5536 static int md_set_readonly(struct mddev *mddev, struct block_device *bdev) md_set_readonly() 5600 struct block_device *bdev) do_md_stop() 6654 static int md_getgeo(struct block_device *bdev, struct hd_geometry *geo) md_getgeo() 6690 static int md_ioctl(struct block_device *bdev, fmode_t mode, md_ioctl() 6989 static int md_compat_ioctl(struct block_device *bdev, fmode_t mode, md_compat_ioctl() 7008 static int md_open(struct block_device *bdev, fmode_t mode) md_open()
|
H A D | raid5-cache.c | 656 struct block_device *bdev = log->rdev->bdev; r5l_write_super_and_discard_space()
|
/linux-4.4.14/drivers/char/ |
H A D | raw.c | 30 struct block_device *binding; 57 struct block_device *bdev; raw_open() 104 struct block_device *bdev; raw_release() 123 struct block_device *bdev = filp->private_data; raw_ioctl() 190 struct block_device *bdev; bind_get()
|
/linux-4.4.14/drivers/block/ |
H A D | loop.h | 50 struct block_device *lo_device;
|
H A D | brd.c | 328 struct block_device *bdev = bio->bi_bdev; brd_make_request() 370 static int brd_rw_page(struct block_device *bdev, sector_t sector, brd_rw_page() 380 static long brd_direct_access(struct block_device *bdev, sector_t sector, brd_direct_access() 400 static int brd_ioctl(struct block_device *bdev, fmode_t mode, brd_ioctl()
|
H A D | swim.c | 617 static int floppy_open(struct block_device *bdev, fmode_t mode) floppy_open() 665 static int floppy_unlocked_open(struct block_device *bdev, fmode_t mode) floppy_unlocked_open() 692 static int floppy_ioctl(struct block_device *bdev, fmode_t mode, floppy_ioctl() 724 static int floppy_getgeo(struct block_device *bdev, struct hd_geometry *geo) floppy_getgeo()
|
H A D | cpqarray.c | 162 static int ida_unlocked_open(struct block_device *bdev, fmode_t mode); 164 static int ida_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg); 165 static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo); 823 static int ida_open(struct block_device *bdev, fmode_t mode) ida_open() 845 static int ida_unlocked_open(struct block_device *bdev, fmode_t mode) ida_unlocked_open() 1123 static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo) ida_getgeo() 1144 static int ida_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) ida_locked_ioctl() 1212 static int ida_ioctl(struct block_device *bdev, fmode_t mode, ida_ioctl()
|
H A D | swim3.c | 252 static int floppy_ioctl(struct block_device *bdev, fmode_t mode, 254 static int floppy_open(struct block_device *bdev, fmode_t mode); 904 static int floppy_locked_ioctl(struct block_device *bdev, fmode_t mode, floppy_locked_ioctl() 932 static int floppy_ioctl(struct block_device *bdev, fmode_t mode, floppy_ioctl() 944 static int floppy_open(struct block_device *bdev, fmode_t mode) floppy_open() 1013 static int floppy_unlocked_open(struct block_device *bdev, fmode_t mode) floppy_unlocked_open()
|
H A D | loop.c | 228 struct block_device *bdev = lo->lo_device; figure_loop_size() 630 struct block_device *bdev) loop_reread_partitions() 659 static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, loop_change_fd() 870 struct block_device *bdev, unsigned int arg) loop_set_fd() 963 /* Grab the block_device to prevent its destruction after we loop_set_fd() 1018 struct block_device *bdev = lo->lo_device; loop_clr_fd() 1312 static int loop_set_capacity(struct loop_device *lo, struct block_device *bdev) loop_set_capacity() 1334 static int lo_ioctl(struct block_device *bdev, fmode_t mode, lo_ioctl() 1510 static int lo_compat_ioctl(struct block_device *bdev, fmode_t mode, lo_compat_ioctl() 1546 static int lo_open(struct block_device *bdev, fmode_t mode) lo_open()
|
H A D | z2ram.c | 148 static int z2_open(struct block_device *bdev, fmode_t mode) z2_open()
|
H A D | cciss.c | 166 static int cciss_open(struct block_device *bdev, fmode_t mode); 167 static int cciss_unlocked_open(struct block_device *bdev, fmode_t mode); 169 static int cciss_ioctl(struct block_device *bdev, fmode_t mode, 171 static int cciss_getgeo(struct block_device *bdev, struct hd_geometry *geo); 226 static int cciss_compat_ioctl(struct block_device *, fmode_t, 1094 static int cciss_open(struct block_device *bdev, fmode_t mode) cciss_open() 1129 static int cciss_unlocked_open(struct block_device *bdev, fmode_t mode) cciss_unlocked_open() 1159 static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode, 1161 static int cciss_ioctl32_big_passthru(struct block_device *bdev, fmode_t mode, 1164 static int cciss_compat_ioctl(struct block_device *bdev, fmode_t mode, cciss_compat_ioctl() 1195 static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode, cciss_ioctl32_passthru() 1235 static int cciss_ioctl32_big_passthru(struct block_device *bdev, fmode_t mode, cciss_ioctl32_big_passthru() 1278 static int cciss_getgeo(struct block_device *bdev, struct hd_geometry *geo) cciss_getgeo() 1716 static int cciss_ioctl(struct block_device *bdev, fmode_t mode, cciss_ioctl()
|
H A D | ataflop.c | 366 static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int 371 static int floppy_open(struct block_device *bdev, fmode_t mode); 1509 static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, fd_locked_ioctl() 1694 static int fd_ioctl(struct block_device *bdev, fmode_t mode, fd_ioctl() 1841 static int floppy_open(struct block_device *bdev, fmode_t mode) floppy_open() 1878 static int floppy_unlocked_open(struct block_device *bdev, fmode_t mode) floppy_unlocked_open()
|
H A D | xen-blkfront.c | 410 static int blkif_getgeo(struct block_device *bd, struct hd_geometry *hg) blkif_getgeo() 426 static int blkif_ioctl(struct block_device *bdev, fmode_t mode, blkif_ioctl() 1797 struct block_device *bdev = NULL; blkfront_closing() 2128 struct block_device *bdev = NULL; blkfront_remove() 2181 static int blkif_open(struct block_device *bdev, fmode_t mode) blkif_open() 2212 struct block_device *bdev; blkif_release()
|
H A D | virtio_blk.c | 261 static int virtblk_ioctl(struct block_device *bdev, fmode_t mode, virtblk_ioctl() 278 static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) virtblk_getgeo()
|
H A D | amiflop.c | 1453 static int fd_getgeo(struct block_device *bdev, struct hd_geometry *geo) fd_getgeo() 1463 static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, fd_locked_ioctl() 1540 static int fd_ioctl(struct block_device *bdev, fmode_t mode, fd_ioctl() 1587 static int floppy_open(struct block_device *bdev, fmode_t mode) floppy_open()
|
H A D | floppy.c | 412 static struct block_device *opened_bdev[N_DRIVE]; 3221 static int invalidate_drive(struct block_device *bdev) invalidate_drive() 3231 int drive, int type, struct block_device *bdev) set_geometry() 3257 struct block_device *bdev = opened_bdev[cnt]; set_geometry() 3364 static int fd_getgeo(struct block_device *bdev, struct hd_geometry *geo) fd_getgeo() 3381 static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, fd_locked_ioctl() 3557 static int fd_ioctl(struct block_device *bdev, fmode_t mode, fd_ioctl() 3642 static int floppy_open(struct block_device *bdev, fmode_t mode) floppy_open() 3787 static int __floppy_read_block_0(struct block_device *bdev, int drive) __floppy_read_block_0()
|
H A D | nbd.c | 644 static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd, __nbd_ioctl() 808 static int nbd_ioctl(struct block_device *bdev, fmode_t mode, nbd_ioctl()
|
H A D | sunvdc.c | 110 static int vdc_getgeo(struct block_device *bdev, struct hd_geometry *geo) vdc_getgeo() 130 static int vdc_ioctl(struct block_device *bdev, fmode_t mode, vdc_ioctl()
|
H A D | xsysace.c | 900 static int ace_open(struct block_device *bdev, fmode_t mode) ace_open() 937 static int ace_getgeo(struct block_device *bdev, struct hd_geometry *geo) ace_getgeo()
|
H A D | hd.c | 661 static int hd_getgeo(struct block_device *bdev, struct hd_geometry *geo) hd_getgeo()
|
H A D | null_blk.c | 572 static int null_open(struct block_device *bdev, fmode_t mode) null_open()
|
H A D | pktcdvd.c | 1134 struct block_device *pkt_bdev; pkt_start_recovery() 2273 static int pkt_open(struct block_device *bdev, fmode_t mode) pkt_open() 2597 struct block_device *bdev; pkt_new_dev() 2652 static int pkt_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) pkt_ioctl()
|
H A D | sx8.c | 410 static int carm_bdev_getgeo(struct block_device *bdev, struct hd_geometry *geo); 436 static int carm_bdev_getgeo(struct block_device *bdev, struct hd_geometry *geo) carm_bdev_getgeo()
|
H A D | mg_disk.c | 769 static int mg_getgeo(struct block_device *bdev, struct hd_geometry *geo) mg_getgeo()
|
H A D | umem.c | 769 static int mm_getgeo(struct block_device *bdev, struct hd_geometry *geo) mm_getgeo()
|
/linux-4.4.14/fs/logfs/ |
H A D | dev_bdev.c | 17 static int sync_request(struct page *page, struct block_device *bdev, int rw) sync_request() 39 struct block_device *bdev = logfs_super(sb)->s_bdev; bdev_readpage() 269 struct block_device *bdev = logfs_super(sb)->s_bdev; bdev_write_sb() 300 struct block_device *bdev; logfs_get_sb_bdev()
|
H A D | logfs.h | 325 struct block_device *s_bdev; /* underlying device */
|
/linux-4.4.14/fs/xfs/ |
H A D | xfs_super.h | 62 struct block_device;
|
H A D | xfs_super.c | 659 struct block_device **bdevp) xfs_blkdev_get() 675 struct block_device *bdev) xfs_blkdev_put() 693 struct block_device *logdev = mp->m_logdev_targp->bt_bdev; xfs_close_devices() 698 struct block_device *rtdev = mp->m_rtdev_targp->bt_bdev; xfs_close_devices() 719 struct block_device *ddev = mp->m_super->s_bdev; xfs_open_devices() 720 struct block_device *logdev = NULL, *rtdev = NULL; xfs_open_devices()
|
H A D | xfs_buf.h | 107 struct block_device *bt_bdev; 387 struct block_device *);
|
H A D | xfs_discard.c | 44 struct block_device *bdev = mp->m_ddev_targp->bt_bdev; xfs_trim_extents()
|
H A D | xfs_buf.c | 1677 struct block_device *bdev) xfs_setsize_buftarg_early() 1685 struct block_device *bdev) xfs_alloc_buftarg()
|
H A D | xfs_aops.c | 58 STATIC struct block_device * xfs_find_bdev_for_inode() 1681 struct block_device *bdev; xfs_vm_do_dio()
|
/linux-4.4.14/drivers/s390/block/ |
H A D | dasd_ioctl.c | 44 dasd_ioctl_enable(struct block_device *bdev) dasd_ioctl_enable() 70 dasd_ioctl_disable(struct block_device *bdev) dasd_ioctl_disable() 231 struct block_device *bdev = bdget_disk(block->gdp, 0); dasd_format() 266 dasd_ioctl_format(struct block_device *bdev, void __user *argp) dasd_ioctl_format() 461 dasd_ioctl_set_ro(struct block_device *bdev, void __user *argp) dasd_ioctl_set_ro() 499 int dasd_ioctl(struct block_device *bdev, fmode_t mode, dasd_ioctl()
|
H A D | dasd_genhd.c | 101 struct block_device *bdev; dasd_scan_partitions() 147 struct block_device *bdev; dasd_destroy_partitions()
|
H A D | dcssblk.c | 28 static int dcssblk_open(struct block_device *bdev, fmode_t mode); 32 static long dcssblk_direct_access(struct block_device *bdev, sector_t secnum, 774 dcssblk_open(struct block_device *bdev, fmode_t mode) dcssblk_open() 885 dcssblk_direct_access (struct block_device *bdev, sector_t secnum, dcssblk_direct_access()
|
H A D | xpram.c | 232 static int xpram_getgeo(struct block_device *bdev, struct hd_geometry *geo) xpram_getgeo()
|
H A D | dasd_int.h | 490 struct block_device *bdev; 772 int dasd_ioctl(struct block_device *, fmode_t, unsigned int, unsigned long);
|
/linux-4.4.14/fs/nfs/blocklayout/ |
H A D | blocklayout.h | 93 struct block_device *bdev; 106 struct block_device *bdev;
|
H A D | blocklayout.c | 118 bl_alloc_init_bio(int npg, struct block_device *bdev, sector_t disk_sector, bl_alloc_init_bio()
|
/linux-4.4.14/fs/btrfs/ |
H A D | disk-io.h | 62 struct buffer_head *btrfs_read_dev_super(struct block_device *bdev); 63 int btrfs_read_dev_one_super(struct block_device *bdev, int copy_num,
|
H A D | extent_map.h | 35 struct block_device *bdev;
|
H A D | volumes.h | 68 struct block_device *bdev; 231 struct block_device *latest_bdev; 496 void btrfs_scratch_superblocks(struct block_device *bdev, char *device_path);
|
H A D | check-integrity.c | 199 struct block_device *bdev; 276 struct block_device *bdev, 286 struct block_device *bdev_ref_to, 288 struct block_device *bdev_ref_from, 298 struct block_device *bdev, 387 struct block_device *bdev); 526 struct block_device *bdev, btrfsic_block_hashtable_lookup() 579 struct block_device *bdev_ref_to, btrfsic_block_link_hashtable_lookup() 581 struct block_device *bdev_ref_from, btrfsic_block_link_hashtable_lookup() 636 struct block_device *bdev, btrfsic_dev_state_hashtable_lookup() 804 struct block_device *const superblock_bdev = device->bdev; btrfsic_process_superblock_dev_mirror() 1830 struct block_device *bdev = dev_state->bdev; btrfsic_process_written_block() 2891 struct block_device *bdev) btrfsic_dev_state_lookup()
|
H A D | compression.c | 97 static struct bio *compressed_bio_alloc(struct block_device *bdev, compressed_bio_alloc() 340 struct block_device *bdev; btrfs_submit_compressed_write() 575 struct block_device *bdev; btrfs_submit_compressed_read()
|
H A D | extent_io.h | 348 btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs,
|
H A D | volumes.c | 193 static void btrfs_kobject_uevent(struct block_device *bdev, btrfs_kobject_uevent() 269 int flush, struct block_device **bdev, btrfs_get_bdev_and_sb() 891 struct block_device *bdev; __btrfs_open_devices() 998 struct block_device *bdev; btrfs_scan_one_device() 1694 struct block_device *bdev; btrfs_rm_device() 2053 struct block_device *bdev; btrfs_find_device_by_path() 2246 struct block_device *bdev; btrfs_init_new_device() 2457 struct block_device *bdev; btrfs_init_dev_replace_tgtdev() 4723 em->bdev = (struct block_device *)map; __btrfs_alloc_chunk() 6234 em->bdev = (struct block_device *)map; read_one_chunk() 6865 void btrfs_scratch_superblocks(struct block_device *bdev, char *device_path) btrfs_scratch_superblocks()
|
H A D | extent_io.c | 2752 btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs, btrfs_bio_alloc() 2858 struct block_device *bdev, submit_extent_page() 2992 struct block_device *bdev; __do_readpage() 3453 struct block_device *bdev; __extent_writepage_io() 3853 struct block_device *bdev = fs_info->fs_devices->latest_bdev; write_one_eb()
|
/linux-4.4.14/fs/f2fs/ |
H A D | gc.h | 106 struct block_device *bdev = sbi->sb->s_bdev; is_idle()
|
H A D | segment.h | 685 struct block_device *bdev = sbi->sb->s_bdev; max_hw_blocks()
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
H A D | lloop.c | 125 struct block_device *lo_device; 474 struct block_device *bdev, struct file *file) loop_set_fd() 551 static int loop_clr_fd(struct lloop_device *lo, struct block_device *bdev, loop_clr_fd() 588 static int lo_open(struct block_device *bdev, fmode_t mode) lo_open() 609 static int lo_ioctl(struct block_device *bdev, fmode_t mode, lo_ioctl() 672 struct block_device *bdev = NULL; lloop_ioctl()
|
/linux-4.4.14/drivers/nvdimm/ |
H A D | pmem.c | 73 struct block_device *bdev = bio->bi_bdev; pmem_make_request() 90 static int pmem_rw_page(struct block_device *bdev, sector_t sector, pmem_rw_page() 103 static long pmem_direct_access(struct block_device *bdev, sector_t sector, pmem_direct_access()
|
H A D | blk.c | 166 struct block_device *bdev = bio->bi_bdev; nd_blk_make_request()
|
H A D | btt.c | 1204 static int btt_rw_page(struct block_device *bdev, sector_t sector, btt_rw_page() 1215 static int btt_getgeo(struct block_device *bd, struct hd_geometry *geo) btt_getgeo()
|
/linux-4.4.14/drivers/block/aoe/ |
H A D | aoeblk.c | 234 aoeblk_open(struct block_device *bdev, fmode_t mode) aoeblk_open() 297 aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo) aoeblk_getgeo() 313 aoeblk_ioctl(struct block_device *bdev, fmode_t mode, uint cmd, ulong arg) aoeblk_ioctl()
|
H A D | aoecmd.c | 957 struct block_device *bd; aoecmd_sleepwork()
|
/linux-4.4.14/drivers/md/persistent-data/ |
H A D | dm-block-manager.h | 35 struct block_device *bdev, unsigned block_size,
|
H A D | dm-block-manager.c | 370 struct dm_block_manager *dm_block_manager_create(struct block_device *bdev, dm_block_manager_create()
|
/linux-4.4.14/drivers/block/rsxx/ |
H A D | dev.c | 68 static int rsxx_blkdev_ioctl(struct block_device *bdev, rsxx_blkdev_ioctl() 85 static int rsxx_getgeo(struct block_device *bdev, struct hd_geometry *geo) rsxx_getgeo()
|
/linux-4.4.14/drivers/md/bcache/ |
H A D | super.c | 64 static const char *read_super(struct cache_sb *sb, struct block_device *bdev, read_super() 621 static int open_dev(struct block_device *b, fmode_t mode) open_dev() 637 static int ioctl_dev(struct block_device *b, fmode_t mode, ioctl_dev() 1142 struct block_device *bdev, register_bdev() 1842 struct block_device *bdev, struct cache *ca) register_cache() 1900 static bool bch_is_open_backing(struct block_device *bdev) { bch_is_open_backing() 1914 static bool bch_is_open_cache(struct block_device *bdev) { bch_is_open_cache() 1926 static bool bch_is_open(struct block_device *bdev) { bch_is_open() 1937 struct block_device *bdev = NULL; register_bcache()
|
H A D | util.h | 569 static inline sector_t bdev_sectors(struct block_device *bdev) bdev_sectors()
|
H A D | bcache.h | 293 struct block_device *bdev; 387 struct block_device *bdev;
|
/linux-4.4.14/kernel/trace/ |
H A D | blktrace.c | 417 struct block_device *bdev) blk_trace_setup_lba() 437 struct block_device *bdev, do_blk_trace_setup() 535 struct block_device *bdev, blk_trace_setup() 559 dev_t dev, struct block_device *bdev, compat_blk_trace_setup() 639 int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) blk_trace_ioctl() 1480 struct block_device *bdev) blk_trace_setup_queue() 1618 static struct request_queue *blk_trace_get_queue(struct block_device *bdev) blk_trace_get_queue() 1632 struct block_device *bdev; sysfs_blk_trace_attr_show() 1673 struct block_device *bdev; sysfs_blk_trace_attr_store()
|
/linux-4.4.14/drivers/mtd/ |
H A D | mtd_blkdevs.c | 187 static int blktrans_open(struct block_device *bdev, fmode_t mode) blktrans_open() 264 static int blktrans_getgeo(struct block_device *bdev, struct hd_geometry *geo) blktrans_getgeo() 284 static int blktrans_ioctl(struct block_device *bdev, fmode_t mode, blktrans_ioctl()
|
H A D | mtdsuper.c | 126 struct block_device *bdev; mount_mtd()
|
/linux-4.4.14/arch/m68k/emu/ |
H A D | nfblock.c | 83 static int nfhd_getgeo(struct block_device *bdev, struct hd_geometry *geo) nfhd_getgeo()
|
/linux-4.4.14/drivers/mtd/devices/ |
H A D | block2mtd.c | 37 struct block_device *blkdev; 228 struct block_device *bdev = ERR_PTR(-ENODEV); add_device()
|
/linux-4.4.14/fs/nilfs2/ |
H A D | the_nilfs.h | 109 struct block_device *ns_bdev; 287 struct the_nilfs *alloc_nilfs(struct block_device *bdev);
|
H A D | the_nilfs.c | 68 struct the_nilfs *alloc_nilfs(struct block_device *bdev) alloc_nilfs()
|
H A D | super.c | 1215 struct block_device *bdev;
|
/linux-4.4.14/arch/um/drivers/ |
H A D | ubd_kern.c | 89 static int ubd_open(struct block_device *bdev, fmode_t mode); 91 static int ubd_ioctl(struct block_device *bdev, fmode_t mode, 93 static int ubd_getgeo(struct block_device *bdev, struct hd_geometry *geo); 1113 static int ubd_open(struct block_device *bdev, fmode_t mode) ubd_open() 1331 static int ubd_getgeo(struct block_device *bdev, struct hd_geometry *geo) ubd_getgeo() 1341 static int ubd_ioctl(struct block_device *bdev, fmode_t mode, ubd_ioctl()
|
/linux-4.4.14/drivers/block/paride/ |
H A D | pf.c | 208 static int pf_open(struct block_device *bdev, fmode_t mode); 210 static int pf_ioctl(struct block_device *bdev, fmode_t mode, 212 static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo); 305 static int pf_open(struct block_device *bdev, fmode_t mode) pf_open() 330 static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo) pf_getgeo() 348 static int pf_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) pf_ioctl()
|
H A D | pcd.c | 228 static int pcd_block_open(struct block_device *bdev, fmode_t mode) pcd_block_open() 248 static int pcd_block_ioctl(struct block_device *bdev, fmode_t mode, pcd_block_ioctl()
|
H A D | pd.c | 741 static int pd_open(struct block_device *bdev, fmode_t mode) pd_open() 756 static int pd_getgeo(struct block_device *bdev, struct hd_geometry *geo) pd_getgeo() 773 static int pd_ioctl(struct block_device *bdev, fmode_t mode, pd_ioctl()
|
/linux-4.4.14/drivers/block/zram/ |
H A D | zram_drv.c | 922 static void zram_slot_free_notify(struct block_device *bdev, zram_slot_free_notify() 937 static int zram_rw_page(struct block_device *bdev, sector_t sector, zram_rw_page() 1087 struct block_device *bdev; reset_store() 1126 static int zram_open(struct block_device *bdev, fmode_t mode) zram_open() 1295 struct block_device *bdev; zram_remove()
|
/linux-4.4.14/drivers/block/xen-blkback/ |
H A D | common.h | 239 struct block_device *bdev; 387 struct block_device *bdev;
|
H A D | xenbus.c | 382 struct block_device *bdev; xen_vbd_create() 473 struct block_device *bdev = be->blkif->vbd.bdev; xen_blkbk_discard()
|
/linux-4.4.14/drivers/nvme/host/ |
H A D | pci.c | 1931 static int nvme_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, nvme_ioctl() 1956 static int nvme_compat_ioctl(struct block_device *bdev, fmode_t mode, nvme_compat_ioctl() 1986 static int nvme_open(struct block_device *bdev, fmode_t mode) nvme_open() 2008 static int nvme_getgeo(struct block_device *bd, struct hd_geometry *geo) nvme_getgeo() 2122 static int nvme_pr_command(struct block_device *bdev, u32 cdw10, nvme_pr_command() 2140 static int nvme_pr_register(struct block_device *bdev, u64 old, nvme_pr_register() 2154 static int nvme_pr_reserve(struct block_device *bdev, u64 key, nvme_pr_reserve() 2167 static int nvme_pr_preempt(struct block_device *bdev, u64 old, u64 new, nvme_pr_preempt() 2174 static int nvme_pr_clear(struct block_device *bdev, u64 key) nvme_pr_clear() 2180 static int nvme_pr_release(struct block_device *bdev, u64 key, enum pr_type type) nvme_pr_release() 2309 struct block_device *bd = bdget_disk(ns->disk, 0); nvme_alloc_ns()
|
/linux-4.4.14/drivers/message/fusion/ |
H A D | mptscsih.h | 125 extern int mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);
|
/linux-4.4.14/arch/xtensa/platforms/iss/ |
H A D | simdisk.c | 125 static int simdisk_open(struct block_device *bdev, fmode_t mode) simdisk_open()
|
/linux-4.4.14/fs/ext4/ |
H A D | readpage.c | 150 struct block_device *bdev = inode->i_sb->s_bdev; ext4_mpage_readpages()
|
H A D | super.c | 735 static struct block_device *ext4_blkdev_get(dev_t dev, struct super_block *sb) ext4_blkdev_get() 737 struct block_device *bdev; ext4_blkdev_get() 754 static void ext4_blkdev_put(struct block_device *bdev) ext4_blkdev_put() 761 struct block_device *bdev; ext4_blkdev_remove() 4104 struct block_device *bdev; ext4_get_dev_journal()
|
/linux-4.4.14/arch/powerpc/sysdev/ |
H A D | axonram.c | 144 axon_ram_direct_access(struct block_device *device, sector_t sector, axon_ram_direct_access()
|
/linux-4.4.14/arch/ia64/hp/sim/ |
H A D | simscsi.c | 114 simscsi_biosparam (struct scsi_device *sdev, struct block_device *n, simscsi_biosparam()
|
/linux-4.4.14/drivers/mtd/ubi/ |
H A D | block.c | 225 static int ubiblock_open(struct block_device *bdev, fmode_t mode) ubiblock_open() 281 static int ubiblock_getgeo(struct block_device *bdev, struct hd_geometry *geo) ubiblock_getgeo()
|
/linux-4.4.14/drivers/cdrom/ |
H A D | gdrom.c | 497 static int gdrom_bdops_open(struct block_device *bdev, fmode_t mode) gdrom_bdops_open() 519 static int gdrom_bdops_ioctl(struct block_device *bdev, fmode_t mode, gdrom_bdops_ioctl()
|
/linux-4.4.14/mm/ |
H A D | swapfile.c | 46 static sector_t map_swap_entry(swp_entry_t, struct block_device**); 1030 int swap_type_of(dev_t device, sector_t offset, struct block_device **bdev_p) swap_type_of() 1032 struct block_device *bdev = NULL; swap_type_of() 1078 struct block_device *bdev; swapdev_block() 1621 static sector_t map_swap_entry(swp_entry_t entry, struct block_device **bdev) map_swap_entry() 1652 sector_t map_swap_page(struct page *page, struct block_device **bdev) map_swap_page() 1969 struct block_device *bdev = I_BDEV(inode); SYSCALL_DEFINE1()
|
/linux-4.4.14/drivers/mmc/card/ |
H A D | block.c | 296 static int mmc_blk_open(struct block_device *bdev, fmode_t mode) mmc_blk_open() 327 mmc_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) mmc_blk_getgeo() 591 static int mmc_blk_ioctl_cmd(struct block_device *bdev, mmc_blk_ioctl_cmd() 639 static int mmc_blk_ioctl_multi_cmd(struct block_device *bdev, mmc_blk_ioctl_multi_cmd() 709 static int mmc_blk_ioctl(struct block_device *bdev, fmode_t mode, mmc_blk_ioctl() 725 static int mmc_blk_compat_ioctl(struct block_device *bdev, fmode_t mode, mmc_blk_compat_ioctl()
|
/linux-4.4.14/drivers/block/mtip32xx/ |
H A D | mtip32xx.h | 503 struct block_device *bdev;
|
H A D | mtip32xx.c | 3526 * @dev Pointer to the block_device structure. 3536 static int mtip_block_ioctl(struct block_device *dev, mtip_block_ioctl() 3564 * @dev Pointer to the block_device structure. 3574 static int mtip_block_compat_ioctl(struct block_device *dev, mtip_block_compat_ioctl() 3649 * @dev Pointer to the block_device strucutre. 3656 static int mtip_block_getgeo(struct block_device *dev, mtip_block_getgeo() 3678 static int mtip_block_open(struct block_device *dev, fmode_t mode) mtip_block_open()
|
/linux-4.4.14/drivers/memstick/core/ |
H A D | mspro_block.c | 185 static int mspro_block_bd_open(struct block_device *bdev, fmode_t mode) mspro_block_bd_open() 234 static int mspro_block_bd_getgeo(struct block_device *bdev, mspro_block_bd_getgeo()
|
H A D | ms_block.c | 1943 static int msb_bd_open(struct block_device *bdev, fmode_t mode) msb_bd_open() 1995 static int msb_bd_getgeo(struct block_device *bdev, msb_bd_getgeo()
|
/linux-4.4.14/fs/gfs2/ |
H A D | ops_fstype.c | 1231 struct block_device *bdev = ptr; test_gfs2_super() 1252 struct block_device *bdev; gfs2_mount()
|
/linux-4.4.14/drivers/scsi/pcmcia/ |
H A D | sym53c500_cs.c | 603 struct block_device *dev, SYM53C500_biosparm()
|
/linux-4.4.14/drivers/misc/ |
H A D | lkdtm.c | 232 struct block_device *bdev, unsigned int cmd, jp_generic_ide_ioctl()
|
/linux-4.4.14/drivers/block/drbd/ |
H A D | drbd_int.h | 610 struct block_device *backing_bdev; 611 struct block_device *md_bdev; 847 struct block_device *this_bdev; 1843 static inline sector_t drbd_get_capacity(struct block_device *bdev) drbd_get_capacity()
|
/linux-4.4.14/fs/jbd2/ |
H A D | revoke.c | 329 struct block_device *bdev; jbd2_journal_revoke()
|
/linux-4.4.14/fs/jfs/ |
H A D | jfs_logmgr.h | 372 struct block_device *bdev; /* 4: log lv pointer */
|
H A D | jfs_logmgr.c | 1082 struct block_device *bdev; lmLogOpen() 1462 struct block_device *bdev; lmLogClose()
|
/linux-4.4.14/fs/quota/ |
H A D | quota.c | 730 struct block_device *bdev; quotactl_block()
|
/linux-4.4.14/drivers/scsi/libsas/ |
H A D | sas_scsi_host.c | 910 struct block_device *bdev, sas_bios_param()
|