Searched refs:block_device (Results 1 - 200 of 261) sorted by relevance

12

/linux-4.1.27/include/linux/
H A Dmbcache.h12 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 Dblkdev.h243 struct block_device *bi_bdev;
816 extern int scsi_verify_blk_ioctl(struct block_device *, unsigned int);
817 extern int scsi_cmd_blk_ioctl(struct block_device *, fmode_t,
863 static inline struct request_queue *bdev_get_queue(struct block_device *bdev) bdev_get_queue()
1025 extern int bdev_stack_limits(struct queue_limits *t, struct block_device *bdev,
1027 extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev,
1047 extern struct backing_dev_info *blk_get_backing_dev_info(struct block_device *bdev);
1160 extern int blkdev_issue_flush(struct block_device *, gfp_t, sector_t *);
1161 extern int blkdev_issue_discard(struct block_device *bdev, sector_t sector,
1163 extern int blkdev_issue_write_same(struct block_device *bdev, sector_t sector,
1165 extern int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
1234 static inline unsigned short bdev_logical_block_size(struct block_device *bdev) bdev_logical_block_size()
1244 static inline unsigned int bdev_physical_block_size(struct block_device *bdev) bdev_physical_block_size()
1254 static inline int bdev_io_min(struct block_device *bdev) bdev_io_min()
1264 static inline int bdev_io_opt(struct block_device *bdev) bdev_io_opt()
1285 static inline int bdev_alignment_offset(struct block_device *bdev) bdev_alignment_offset()
1329 static inline int bdev_discard_alignment(struct block_device *bdev) bdev_discard_alignment()
1347 static inline unsigned int bdev_discard_zeroes_data(struct block_device *bdev) bdev_discard_zeroes_data()
1352 static inline unsigned int bdev_write_same(struct block_device *bdev) bdev_write_same()
1385 static inline unsigned int block_size(struct block_device *bdev) block_size()
1397 unsigned char *read_dev_sector(struct block_device *, sector_t, Sector *);
1503 struct blk_integrity *bdev_get_integrity(struct block_device *bdev) bdev_get_integrity()
1533 struct block_device;
1552 static inline struct blk_integrity *bdev_get_integrity(struct block_device *b) bdev_get_integrity()
1600 int (*open) (struct block_device *, fmode_t);
1602 int (*rw_page)(struct block_device *, sector_t, struct page *, int rw);
1603 int (*ioctl) (struct block_device *, fmode_t, unsigned, unsigned long);
1604 int (*compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long);
1605 long (*direct_access)(struct block_device *, sector_t,
1613 int (*getgeo)(struct block_device *, struct hd_geometry *);
1615 void (*swap_slot_free_notify) (struct block_device *, unsigned long);
1619 extern int __blkdev_driver_ioctl(struct block_device *, fmode_t, unsigned int,
1621 extern int bdev_read_page(struct block_device *, sector_t, struct page *);
1622 extern int bdev_write_page(struct block_device *, sector_t, struct page *,
1624 extern long bdev_direct_access(struct block_device *, sector_t, void **addr,
1628 struct block_device;
1665 static inline int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask, blkdev_issue_flush()
H A Dblktrace_api.h31 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 Dbuffer_head.h71 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,
361 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, getblk_unmovable()
368 static inline struct buffer_head *__getblk(struct block_device *bdev, __getblk()
377 * @bdev: the block_device to read from
386 __bread(struct block_device *bdev, sector_t block, unsigned size) __bread()
H A Ddm-io.h18 struct block_device *bdev;
H A Dcdrom.h96 /* 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 Dfs.h426 struct inode *host; /* owner: inode, block_device */
449 struct block_device { struct
463 struct block_device * bd_contains;
473 * Private data. You must have bd_claim'ed the block_device
658 struct block_device *i_bdev;
796 extern struct block_device *I_BDEV(struct inode *inode);
1302 struct block_device *s_bdev;
2239 extern struct block_device *bdget(dev_t);
2240 extern struct block_device *bdgrab(struct block_device *bdev);
2241 extern void bd_set_size(struct block_device *, loff_t size);
2243 extern void bdput(struct block_device *);
2244 extern void invalidate_bdev(struct block_device *);
2245 extern void iterate_bdevs(void (*)(struct block_device *, void *), void *);
2246 extern int sync_blockdev(struct block_device *bdev);
2247 extern void kill_bdev(struct block_device *);
2248 extern struct super_block *freeze_bdev(struct block_device *);
2250 extern int thaw_bdev(struct block_device *bdev, struct super_block *sb);
2251 extern int fsync_bdev(struct block_device *);
2255 static inline int sync_blockdev(struct block_device *bdev) { return 0; } kill_bdev()
2256 static inline void kill_bdev(struct block_device *bdev) {} invalidate_bdev()
2257 static inline void invalidate_bdev(struct block_device *bdev) {} invalidate_bdev()
2259 static inline struct super_block *freeze_bdev(struct block_device *sb) freeze_bdev()
2264 static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb) thaw_bdev()
2269 static inline void iterate_bdevs(void (*f)(struct block_device *, void *), void *arg) iterate_bdevs()
2282 extern int ioctl_by_bdev(struct block_device *, unsigned, unsigned long);
2283 extern int blkdev_ioctl(struct block_device *, fmode_t, unsigned, unsigned long);
2285 extern int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder);
2286 extern struct block_device *blkdev_get_by_path(const char *path, fmode_t mode,
2288 extern struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode,
2290 extern void blkdev_put(struct block_device *bdev, fmode_t mode);
2292 extern int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
2293 extern void bd_unlink_disk_holder(struct block_device *bdev,
2296 static inline int bd_link_disk_holder(struct block_device *bdev, bd_link_disk_holder()
2301 static inline void bd_unlink_disk_holder(struct block_device *bdev, bd_unlink_disk_holder()
2338 extern const char *bdevname(struct block_device *bdev, char *buffer);
2339 extern struct block_device *lookup_bdev(const char *);
2364 struct block_device *bdev);
2366 extern int check_disk_change(struct block_device *);
2367 extern int __invalidate_device(struct block_device *, bool);
2583 extern int bdev_read_only(struct block_device *);
2585 extern int set_blocksize(struct block_device *, int);
2665 struct block_device *bdev, struct iov_iter *iter,
2755 extern struct super_block *get_super(struct block_device *);
2756 extern struct super_block *get_super_thawed(struct block_device *);
2757 extern struct super_block *get_active_super(struct block_device *bdev);
H A Dblk_types.h14 struct block_device;
48 struct block_device *bi_bdev;
H A Dgenhd.h422 extern struct block_device *bdget_disk(struct gendisk *disk, int partno);
424 extern void set_device_ro(struct block_device *bdev, int flag);
441 static inline sector_t get_start_sect(struct block_device *bdev) get_start_sect()
607 extern int rescan_partitions(struct gendisk *disk, struct block_device *bdev);
608 extern int invalidate_partitions(struct gendisk *disk, struct block_device *bdev);
H A Dswap.h226 struct block_device *bdev; /* swap device or bdev of swap file */
430 extern int swap_type_of(dev_t, sector_t, struct block_device **);
432 extern sector_t map_swap_page(struct page *, struct block_device **);
H A Dpktcdvd.h165 struct block_device *bdev; /* dev attached */
H A Djbd.h670 struct block_device *j_dev;
678 struct block_device *j_fs_dev;
871 extern journal_t * journal_init_dev(struct block_device *bdev,
872 struct block_device *fs_dev,
H A Djbd2.h863 struct block_device *j_dev;
872 struct block_device *j_fs_dev;
1143 extern journal_t * jbd2_journal_init_dev(struct block_device *bdev,
1144 struct block_device *fs_dev,
H A Dide.h369 int (*ioctl)(struct ide_drive_s *, struct block_device *,
1038 int ide_setting_ioctl(ide_drive_t *, struct block_device *, unsigned int,
1041 int generic_ide_ioctl(ide_drive_t *, struct block_device *, unsigned, unsigned long);
H A Dbio.h430 extern int bio_get_nr_vecs(struct block_device *);
H A Ddevice-mapper.h125 struct block_device *bdev;
/linux-4.1.27/include/scsi/
H A Dscsicam.h15 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 Dlibsas.h41 struct block_device;
692 struct block_device *,
H A Dscsi_host.h14 struct block_device;
288 int (* bios_param)(struct scsi_device *, struct block_device *,
/linux-4.1.27/drivers/ide/
H A Dide-disk.h16 int ide_disk_ioctl(ide_drive_t *, struct block_device *, fmode_t, unsigned int,
H A Dide-disk_ioctl.c18 int ide_disk_ioctl(ide_drive_t *drive, struct block_device *bdev, fmode_t mode, ide_disk_ioctl()
H A Dide-floppy.h26 int ide_floppy_ioctl(ide_drive_t *, struct block_device *, fmode_t,
H A Dide-gd.c183 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 Dide-ioctls.c19 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 Dide-floppy_ioctl.c273 int ide_floppy_ioctl(ide_drive_t *drive, struct block_device *bdev, ide_floppy_ioctl()
H A Dide-cd.c1591 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 Dide-tape.c1907 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.1.27/drivers/target/
H A Dtarget_core_iblock.h21 struct block_device *ibd_bd;
H A Dtarget_core_pscsi.h46 struct block_device *pdv_bd;
H A Dtarget_core_iblock.c94 struct block_device *bd = NULL; iblock_configure_device()
110 pr_debug( "IBLOCK: Claiming struct block_device: %s\n", iblock_configure_device()
131 * Check if the underlying struct block_device request_queue supports iblock_configure_device()
215 struct block_device *bd, iblock_emulate_read_cap_with_block_size()
421 struct block_device *bdev = priv; iblock_do_unmap()
436 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; iblock_execute_unmap()
444 struct block_device *bdev = IBLOCK_DEV(cmd->se_dev)->ibd_bd; iblock_execute_write_same_unmap()
604 struct block_device *bd = ib_dev->ibd_bd; iblock_show_configfs_dev_params()
799 struct block_device *bd = ib_dev->ibd_bd; iblock_get_blocks()
808 struct block_device *bd = ib_dev->ibd_bd; iblock_get_alignment_offset_lbas()
822 struct block_device *bd = ib_dev->ibd_bd; iblock_get_lbppbe()
831 struct block_device *bd = ib_dev->ibd_bd; iblock_get_io_min()
839 struct block_device *bd = ib_dev->ibd_bd; iblock_get_io_opt()
861 struct block_device *bd = ib_dev->ibd_bd; iblock_get_write_cache()
H A Dtarget_core_file.c147 * fd_dev->fd_[block,dev]_size from struct block_device. fd_configure_device()
159 * one (1) logical sector from underlying struct block_device fd_configure_device()
165 " block_device blocks: %llu logical_block_size: %d\n", fd_configure_device()
169 * Check if the underlying struct block_device request_queue supports fd_configure_device()
199 " block_device\n"); fd_configure_device()
363 * block_device.
550 struct block_device *bdev = inode->i_bdev; fd_do_unmap()
818 * When using a file that references an underlying struct block_device, fd_get_blocks()
820 * to handle underlying block_device resize operations. fd_get_blocks()
H A Dtarget_core_pscsi.c375 struct block_device *bd;
386 * Claim exclusive struct block_device access to struct scsi_device
592 * Release exclusive pSCSI internal struct block_device claim for pscsi_free_device()
/linux-4.1.27/block/partitions/
H A Dcheck.h10 struct block_device *bdev;
28 check_partition(struct gendisk *, struct block_device *);
H A Dcheck.c142 check_partition(struct gendisk *hd, struct block_device *bdev) check_partition()
H A Daix.c78 static u64 last_lba(struct block_device *bdev) last_lba()
H A Dibm.c291 struct block_device *bdev = state->bdev; ibm_partition()
H A Defi.c148 static u64 last_lba(struct block_device *bdev) last_lba()
255 struct block_device *bdev = state->bdev; read_lba()
/linux-4.1.27/fs/
H A Dblock_dev.c34 struct block_device bdev;
45 inline struct block_device *I_BDEV(struct inode *inode) I_BDEV()
63 void kill_bdev(struct block_device *bdev) kill_bdev()
76 void invalidate_bdev(struct block_device *bdev) invalidate_bdev()
93 int set_blocksize(struct block_device *bdev, int size) set_blocksize()
159 int __sync_blockdev(struct block_device *bdev, int wait) __sync_blockdev()
172 int sync_blockdev(struct block_device *bdev) sync_blockdev()
183 int fsync_bdev(struct block_device *bdev) fsync_bdev()
207 struct super_block *freeze_bdev(struct block_device *bdev) freeze_bdev()
253 int thaw_bdev(struct block_device *bdev, struct super_block *sb) thaw_bdev()
339 struct block_device *bdev = I_BDEV(bd_inode); blkdev_fsync()
375 int bdev_read_page(struct block_device *bdev, sector_t sector, bdev_read_page()
404 int bdev_write_page(struct block_device *bdev, sector_t sector, bdev_write_page()
439 long bdev_direct_access(struct block_device *bdev, sector_t sector, bdev_direct_access()
493 struct block_device *bdev = &ei->bdev; init_once()
516 struct block_device *bdev = &BDEV_I(inode)->bdev; bdev_evict_inode()
592 struct block_device *bdget(dev_t dev) bdget()
594 struct block_device *bdev; bdget()
631 struct block_device *bdgrab(struct block_device *bdev) bdgrab()
640 struct block_device *bdev; nr_blockdev_pages()
650 void bdput(struct block_device *bdev) bdput()
657 static struct block_device *bd_acquire(struct inode *inode) bd_acquire()
659 struct block_device *bdev; bd_acquire()
699 struct block_device *bdev = NULL; bd_forget()
725 static bool bd_may_claim(struct block_device *bdev, struct block_device *whole, bd_may_claim()
761 static int bd_prepare_to_claim(struct block_device *bdev, bd_prepare_to_claim()
762 struct block_device *whole, void *holder) bd_prepare_to_claim()
809 static struct block_device *bd_start_claiming(struct block_device *bdev, bd_start_claiming()
813 struct block_device *whole; bd_start_claiming()
866 static struct bd_holder_disk *bd_find_holder_disk(struct block_device *bdev, bd_find_holder_disk()
915 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk) bd_link_disk_holder()
980 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk) bd_unlink_disk_holder()
1012 static void flush_disk(struct block_device *bdev, bool kill_dirty) flush_disk()
1037 void check_disk_size_change(struct gendisk *disk, struct block_device *bdev) check_disk_size_change()
1066 struct block_device *bdev; revalidate_disk()
1094 int check_disk_change(struct block_device *bdev) check_disk_change()
1113 void bd_set_size(struct block_device *bdev, loff_t size) bd_set_size()
1130 static void __blkdev_put(struct block_device *bdev, fmode_t mode, int for_part);
1139 static int __blkdev_get(struct block_device *bdev, fmode_t mode, int for_part) __blkdev_get()
1220 struct block_device *whole; __blkdev_get()
1292 * @bdev: block_device to open
1309 int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder) blkdev_get()
1311 struct block_device *whole = NULL; blkdev_get()
1384 * On success, the returned block_device has reference count of one.
1390 * Pointer to block_device on success, ERR_PTR(-errno) on failure.
1392 struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, blkdev_get_by_path()
1395 struct block_device *bdev; blkdev_get_by_path()
1429 * On success, the returned block_device has reference count of one.
1435 * Pointer to block_device on success, ERR_PTR(-errno) on failure.
1437 struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder) blkdev_get_by_dev()
1439 struct block_device *bdev; blkdev_get_by_dev()
1456 struct block_device *bdev; blkdev_open()
1482 static void __blkdev_put(struct block_device *bdev, fmode_t mode, int for_part) __blkdev_put()
1485 struct block_device *victim = NULL; __blkdev_put()
1524 void blkdev_put(struct block_device *bdev, fmode_t mode) blkdev_put()
1574 struct block_device *bdev = I_BDEV(filp->f_mapping->host); blkdev_close()
1581 struct block_device *bdev = I_BDEV(file->f_mapping->host); block_ioctl()
1693 int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg) ioctl_by_bdev()
1706 * lookup_bdev - lookup a struct block_device by name
1713 struct block_device *lookup_bdev(const char *pathname) lookup_bdev()
1715 struct block_device *bdev; lookup_bdev()
1747 int __invalidate_device(struct block_device *bdev, bool kill_dirty) __invalidate_device()
1768 void iterate_bdevs(void (*func)(struct block_device *, void *), void *arg) iterate_bdevs()
H A Dinternal.h25 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 Dmbcache.c396 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 Dmpage.c67 mpage_alloc(struct block_device *bdev, mpage_alloc()
154 struct block_device *bdev = NULL; do_mpage_readpage()
477 struct block_device *bdev = NULL; __mpage_writepage()
480 struct block_device *boundary_bdev = NULL; __mpage_writepage()
H A Dsync.c82 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 Dsuper.c576 struct super_block *get_super(struct block_device *bdev) get_super()
617 struct super_block *get_super_thawed(struct block_device *bdev) get_super_thawed()
639 struct super_block *get_active_super(struct block_device *bdev) get_active_super()
953 struct block_device *bdev; mount_bdev()
1028 struct block_device *bdev = sb->s_bdev; kill_block_super()
H A Dbuffer.c198 __find_get_block_slow(struct block_device *bdev, sector_t block) __find_get_block_slow()
588 void write_boundary_block(struct block_device *bdev, write_boundary_block()
925 static sector_t blkdev_max_block(struct block_device *bdev, unsigned int size) blkdev_max_block()
941 init_page_buffers(struct page *page, struct block_device *bdev, init_page_buffers()
975 grow_dev_page(struct block_device *bdev, sector_t block, grow_dev_page()
1043 grow_buffers(struct block_device *bdev, sector_t block, int size, gfp_t gfp) grow_buffers()
1074 __getblk_slow(struct block_device *bdev, sector_t block, __getblk_slow()
1306 lookup_bh_lru(struct block_device *bdev, sector_t block, unsigned size) lookup_bh_lru()
1341 __find_get_block(struct block_device *bdev, sector_t block, unsigned size) __find_get_block()
1359 * which corresponds to the passed block_device, block and size. The
1366 __getblk_gfp(struct block_device *bdev, sector_t block, __getblk_gfp()
1381 void __breadahead(struct block_device *bdev, sector_t block, unsigned size) __breadahead()
1393 * @bdev: the block_device to read from
1404 __bread_gfp(struct block_device *bdev, sector_t block, __bread_gfp()
1610 void unmap_underlying_metadata(struct block_device *bdev, sector_t block) unmap_underlying_metadata()
H A Ddirect-io.c356 struct block_device *bdev, dio_bio_alloc()
1099 struct block_device *bdev, struct iov_iter *iter, do_blockdev_direct_IO()
1313 struct block_device *bdev, struct iov_iter *iter, __blockdev_direct_IO()
H A Ddax.c32 struct block_device *bdev = inode->i_sb->s_bdev; dax_clear_blocks()
/linux-4.1.27/fs/udf/
H A Dlowlevel.c32 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.1.27/drivers/md/
H A Ddm-bio-record.h21 struct block_device *bi_bdev;
H A Ddm-bufio.h24 dm_bufio_client_create(struct block_device *bdev, unsigned block_size,
H A Ddm-cache-metadata.h56 struct dm_cache_metadata *dm_cache_metadata_open(struct block_device *bdev,
H A Ddm-exception-store.h191 static inline sector_t get_dev_size(struct block_device *bdev) get_dev_size()
H A Ddm-thin-metadata.h44 struct dm_pool_metadata *dm_pool_metadata_open(struct block_device *bdev,
H A Ddm-snap.c162 static int bdev_equal(struct block_device *lhs, struct block_device *rhs) bdev_equal()
287 struct block_device *bdev;
353 static unsigned origin_hash(struct block_device *bdev) origin_hash()
358 static struct origin *__lookup_origin(struct block_device *origin) __lookup_origin()
377 static struct dm_origin *__lookup_dm_origin(struct block_device *origin) __lookup_dm_origin()
524 struct block_device *bdev = snap->origin->bdev; register_snapshot()
566 struct block_device *bdev = s->origin->bdev; reregister_snapshot()
1557 struct block_device *bdev = s->origin->bdev; start_copy()
1941 static uint32_t get_origin_minimum_chunksize(struct block_device *bdev) get_origin_minimum_chunksize()
H A Ddm-cache-metadata.c100 struct block_device *bdev;
675 static struct dm_cache_metadata *metadata_open(struct block_device *bdev, metadata_open()
720 static struct dm_cache_metadata *lookup(struct block_device *bdev) lookup()
733 static struct dm_cache_metadata *lookup_or_open(struct block_device *bdev, lookup_or_open()
776 struct dm_cache_metadata *dm_cache_metadata_open(struct block_device *bdev, dm_cache_metadata_open()
H A Dmd.h52 struct block_device *meta_bdev;
53 struct block_device *bdev; /* block device handle */
487 static inline void md_sync_acct(struct block_device *bdev, unsigned long nr_sectors) md_sync_acct()
H A Ddm.c204 struct block_device *bdev;
442 static int dm_blk_open(struct block_device *bdev, fmode_t mode) dm_blk_open()
549 static int dm_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) dm_blk_getgeo()
556 static int dm_blk_ioctl(struct block_device *bdev, fmode_t mode, dm_blk_ioctl()
745 struct block_device *bdev; open_table_device()
2500 struct block_device *bdev = dev->bdev; dm_device_merge_is_compulsory()
H A Ddm-table.c282 struct block_device *bdev = dev->bdev; device_area_is_invalid()
378 struct block_device *bdev; dm_get_device()
423 struct block_device *bdev = dev->bdev; dm_set_device_limits()
H A Ddm-switch.c518 struct block_device *bdev; switch_ioctl()
H A Ddm-thin.c220 struct block_device *md_dev;
441 static struct pool *__pool_table_lookup_metadata_dev(struct block_device *md_dev) __pool_table_lookup_metadata_dev()
2427 struct block_device *data_bdev = pt->data_dev->bdev; disable_passdown_if_not_supported()
2524 struct block_device *metadata_dev, pool_create()
2667 struct block_device *metadata_dev, __pool_find()
2776 static sector_t get_dev_size(struct block_device *bdev) get_dev_size()
2781 static void warn_if_metadata_device_too_big(struct block_device *bdev) warn_if_metadata_device_too_big()
2791 static sector_t get_metadata_dev_size(struct block_device *bdev) get_metadata_dev_size()
2801 static dm_block_t get_metadata_dev_size_in_blocks(struct block_device *bdev) get_metadata_dev_size_in_blocks()
H A Ddm-era-target.c261 struct block_device *bdev;
774 static struct era_metadata *metadata_open(struct block_device *bdev, metadata_open()
H A Ddm-thin-metadata.c145 struct block_device *bdev;
823 struct dm_pool_metadata *dm_pool_metadata_open(struct block_device *bdev, dm_pool_metadata_open()
H A Ddm-bufio.c92 struct block_device *bdev;
1574 struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsigned block_size, dm_bufio_client_create()
H A Ddm-mpath.c390 struct block_device *bdev; __multipath_map()
1556 struct block_device *bdev; multipath_ioctl()
H A Dmd.c2140 struct block_device *bdev; lock_rdev()
2156 struct block_device *bdev = rdev->bdev; unlock_rdev()
3804 static int do_md_stop(struct mddev *mddev, int ro, struct block_device *bdev);
3805 static int md_set_readonly(struct mddev *mddev, struct block_device *bdev);
5397 static int md_set_readonly(struct mddev *mddev, struct block_device *bdev) md_set_readonly()
5457 struct block_device *bdev) do_md_stop()
6517 static int md_getgeo(struct block_device *bdev, struct hd_geometry *geo) md_getgeo()
6553 static int md_ioctl(struct block_device *bdev, fmode_t mode, md_ioctl()
6852 static int md_compat_ioctl(struct block_device *bdev, fmode_t mode, md_compat_ioctl()
6871 static int md_open(struct block_device *bdev, fmode_t mode) md_open()
/linux-4.1.27/drivers/scsi/
H A Dsym53c416.h30 static int sym53c416_bios_param(struct scsi_device *, struct block_device *,
H A Dultrastor.h21 static int ultrastor_biosparam(struct scsi_device *, struct block_device *,
H A Dscsicam.c35 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 Dqlogicfas408.h108 struct block_device *dev,
H A Ddtc.c285 * 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 Dt128.c270 * 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 Dpas16.c445 * 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 Ddpti.h39 static int adpt_bios_param(struct scsi_device * sdev, struct block_device *dev,
H A Dqlogicfas408.c468 int qlogicfas408_biosparam(struct scsi_device *disk, struct block_device *dev, DEF_SCSI_QCMD()
H A Din2000.h402 static int in2000_biosparam(struct scsi_device *, struct block_device *,
H A Dsr.c520 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 Dsd.c1164 static int sd_open(struct block_device *bdev, fmode_t mode) sd_open()
1258 static int sd_getgeo(struct block_device *bdev, struct hd_geometry *geo) sd_getgeo()
1297 static int sd_ioctl(struct block_device *bdev, fmode_t mode, sd_ioctl()
1519 static int sd_compat_ioctl(struct block_device *bdev, fmode_t mode, sd_compat_ioctl()
H A Dg_NCR5380.c500 generic_NCR5380_biosparam(struct scsi_device *sdev, struct block_device *bdev, generic_NCR5380_biosparam()
H A Dsym53c416.c799 struct block_device *dev, sym53c416_bios_param()
H A Daha1740.c504 struct block_device *dev, aha1740_biosparam()
H A Du14-34f.c438 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 Dmegaraid.h968 static int megaraid_biosparam(struct scsi_device *, struct block_device *,
H A Dppa.c815 static int ppa_biosparam(struct scsi_device *sdev, struct block_device *dev, ppa_biosparam()
H A Dimm.c941 static int imm_biosparam(struct scsi_device *sdev, struct block_device *dev, imm_biosparam()
H A Dips.h419 static int ips_biosparam(struct scsi_device *sdev, struct block_device *bdev,
H A Dultrastor.c1034 int ultrastor_biosparam(struct scsi_device *sdev, struct block_device *bdev,
H A Dwd719x.c538 static int wd719x_biosparam(struct scsi_device *sdev, struct block_device *bdev, wd719x_biosparam()
H A DBusLogic.h1294 static int blogic_diskparam(struct scsi_device *, struct block_device *, sector_t, int *);
H A DNCR53c406a.c751 struct block_device *dev, NCR53c406a_biosparm()
H A Daha1542.c922 struct block_device *bdev, sector_t capacity, int geom[]) aha1542_biosparam()
/linux-4.1.27/block/
H A Dioctl.c12 static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg __user *arg) blkpg_ioctl()
14 struct block_device *bdevp; blkpg_ioctl()
153 static int blkdev_reread_part(struct block_device *bdev) blkdev_reread_part()
169 static int blk_ioctl_discard(struct block_device *bdev, uint64_t start, blk_ioctl_discard()
188 static int blk_ioctl_zeroout(struct block_device *bdev, uint64_t start, blk_ioctl_zeroout()
234 int __blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, __blkdev_driver_ioctl()
274 int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, blkdev_ioctl()
H A Dblk-lib.c40 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, blkdev_issue_discard()
155 int blkdev_issue_write_same(struct block_device *bdev, sector_t sector, blkdev_issue_write_same()
229 static int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, __blkdev_issue_zeroout()
301 int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, blkdev_issue_zeroout()
H A Dpartition-generic.c46 const char *bdevname(struct block_device *bdev, char *buf) bdevname()
55 * have a struct block_device just about everywhere and use
394 static int drop_partitions(struct gendisk *disk, struct block_device *bdev) drop_partitions()
414 int rescan_partitions(struct gendisk *disk, struct block_device *bdev) rescan_partitions()
532 int invalidate_partitions(struct gendisk *disk, struct block_device *bdev) invalidate_partitions()
552 unsigned char *read_dev_sector(struct block_device *bdev, sector_t n, Sector *p) read_dev_sector()
H A Dcompat_ioctl.c51 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 Dgenhd.c510 struct block_device *bdev; register_disk()
717 * Resulting block_device on success, NULL on failure.
719 struct block_device *bdget_disk(struct gendisk *disk, int partno) bdget_disk()
722 struct block_device *bdev = NULL; bdget_disk()
1338 void set_device_ro(struct block_device *bdev, int flag) set_device_ro()
1363 int bdev_read_only(struct block_device *bdev) bdev_read_only()
1375 struct block_device *bdev = bdget_disk(disk, partno); invalidate_partition()
H A Dblk-settings.c657 * @bdev: the component block_device (bottom)
661 * Merges queue limits for a top device and a block_device. Returns
665 int bdev_stack_limits(struct queue_limits *t, struct block_device *bdev, bdev_stack_limits()
684 * block_device.
686 void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, disk_stack_limits()
H A Dscsi_ioctl.c689 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 Dblk-flush.c449 int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask, blkdev_issue_flush()
/linux-4.1.27/drivers/char/
H A Draw.c29 struct block_device *binding;
56 struct block_device *bdev; raw_open()
103 struct block_device *bdev; raw_release()
122 struct block_device *bdev = filp->private_data; raw_ioctl()
189 struct block_device *bdev; bind_get()
/linux-4.1.27/drivers/block/
H A Dloop.h50 struct block_device *lo_device;
H A Dpmem.c62 struct block_device *bdev = bio->bi_bdev; pmem_make_request()
89 static int pmem_rw_page(struct block_device *bdev, sector_t sector, pmem_rw_page()
100 static long pmem_direct_access(struct block_device *bdev, sector_t sector, pmem_direct_access()
H A Dbrd.c328 struct block_device *bdev = bio->bi_bdev; brd_make_request()
363 static int brd_rw_page(struct block_device *bdev, sector_t sector, brd_rw_page()
373 static long brd_direct_access(struct block_device *bdev, sector_t sector, brd_direct_access()
397 static int brd_ioctl(struct block_device *bdev, fmode_t mode, brd_ioctl()
H A Dloop.c172 struct block_device *bdev = lo->lo_device; figure_loop_size()
485 static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, loop_change_fd()
670 struct block_device *bdev, unsigned int arg) loop_set_fd()
764 /* Grab the block_device to prevent its destruction after we loop_set_fd()
819 struct block_device *bdev = lo->lo_device; loop_clr_fd()
1106 static int loop_set_capacity(struct loop_device *lo, struct block_device *bdev) loop_set_capacity()
1114 static int lo_ioctl(struct block_device *bdev, fmode_t mode, lo_ioctl()
1285 static int lo_compat_ioctl(struct block_device *bdev, fmode_t mode, lo_compat_ioctl()
1321 static int lo_open(struct block_device *bdev, fmode_t mode) lo_open()
H A Dswim.c617 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 Dcpqarray.c162 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 Dswim3.c252 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 Dz2ram.c148 static int z2_open(struct block_device *bdev, fmode_t mode) z2_open()
H A Dcciss.c168 static int cciss_open(struct block_device *bdev, fmode_t mode);
169 static int cciss_unlocked_open(struct block_device *bdev, fmode_t mode);
171 static int cciss_ioctl(struct block_device *bdev, fmode_t mode,
173 static int cciss_getgeo(struct block_device *bdev, struct hd_geometry *geo);
228 static int cciss_compat_ioctl(struct block_device *, fmode_t,
1078 static int cciss_open(struct block_device *bdev, fmode_t mode) cciss_open()
1113 static int cciss_unlocked_open(struct block_device *bdev, fmode_t mode) cciss_unlocked_open()
1143 static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode,
1145 static int cciss_ioctl32_big_passthru(struct block_device *bdev, fmode_t mode,
1148 static int cciss_compat_ioctl(struct block_device *bdev, fmode_t mode, cciss_compat_ioctl()
1179 static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode, cciss_ioctl32_passthru()
1219 static int cciss_ioctl32_big_passthru(struct block_device *bdev, fmode_t mode, cciss_ioctl32_big_passthru()
1262 static int cciss_getgeo(struct block_device *bdev, struct hd_geometry *geo) cciss_getgeo()
1700 static int cciss_ioctl(struct block_device *bdev, fmode_t mode, cciss_ioctl()
H A Dataflop.c366 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 Dxen-blkfront.c333 static int blkif_getgeo(struct block_device *bd, struct hd_geometry *hg) blkif_getgeo()
349 static int blkif_ioctl(struct block_device *bdev, fmode_t mode, blkif_ioctl()
1628 struct block_device *bdev = NULL; blkfront_closing()
1937 struct block_device *bdev = NULL; blkfront_remove()
1990 static int blkif_open(struct block_device *bdev, fmode_t mode) blkif_open()
2021 struct block_device *bdev; blkif_release()
H A Dnbd.c580 static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd, __nbd_ioctl()
739 static int nbd_ioctl(struct block_device *bdev, fmode_t mode, nbd_ioctl()
H A Dvirtio_blk.c261 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 Damiflop.c1453 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 Dfloppy.c412 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()
3786 static int __floppy_read_block_0(struct block_device *bdev, int drive) __floppy_read_block_0()
H A Dnull_blk.c409 static int null_open(struct block_device *bdev, fmode_t mode) null_open()
H A Dsunvdc.c110 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 Dxsysace.c900 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 Dhd.c661 static int hd_getgeo(struct block_device *bdev, struct hd_geometry *geo) hd_getgeo()
H A Dnvme-core.c1906 static int nvme_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, nvme_ioctl()
1931 static int nvme_compat_ioctl(struct block_device *bdev, fmode_t mode, nvme_compat_ioctl()
1944 static int nvme_open(struct block_device *bdev, fmode_t mode) nvme_open()
1970 static int nvme_getgeo(struct block_device *bd, struct hd_geometry *geo) nvme_getgeo()
H A Dpktcdvd.c1133 struct block_device *pkt_bdev; pkt_start_recovery()
2273 static int pkt_open(struct block_device *bdev, fmode_t mode) pkt_open()
2616 struct block_device *bdev; pkt_new_dev()
2671 static int pkt_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) pkt_ioctl()
H A Dsx8.c410 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 Dmg_disk.c769 static int mg_getgeo(struct block_device *bdev, struct hd_geometry *geo) mg_getgeo()
H A Dumem.c767 static int mm_getgeo(struct block_device *bdev, struct hd_geometry *geo) mm_getgeo()
/linux-4.1.27/fs/xfs/
H A Dxfs_super.h62 struct block_device;
H A Dxfs_super.c660 struct block_device **bdevp) xfs_blkdev_get()
676 struct block_device *bdev) xfs_blkdev_put()
694 struct block_device *logdev = mp->m_logdev_targp->bt_bdev; xfs_close_devices()
699 struct block_device *rtdev = mp->m_rtdev_targp->bt_bdev; xfs_close_devices()
720 struct block_device *ddev = mp->m_super->s_bdev; xfs_open_devices()
721 struct block_device *logdev = NULL, *rtdev = NULL; xfs_open_devices()
H A Dxfs_buf.h106 struct block_device *bt_bdev;
385 struct block_device *);
H A Dxfs_discard.c44 struct block_device *bdev = mp->m_ddev_targp->bt_bdev; xfs_trim_extents()
H A Dxfs_buf.c1678 struct block_device *bdev) xfs_setsize_buftarg_early()
1686 struct block_device *bdev) xfs_alloc_buftarg()
H A Dxfs_aops.c58 STATIC struct block_device * xfs_find_bdev_for_inode()
1617 struct block_device *bdev = xfs_find_bdev_for_inode(inode); xfs_vm_direct_IO()
/linux-4.1.27/fs/logfs/
H A Ddev_bdev.c17 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()
273 struct block_device *bdev = logfs_super(sb)->s_bdev; bdev_write_sb()
304 struct block_device *bdev; logfs_get_sb_bdev()
H A Dlogfs.h325 struct block_device *s_bdev; /* underlying device */
/linux-4.1.27/drivers/s390/block/
H A Ddasd_ioctl.c44 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 Ddasd_genhd.c101 struct block_device *bdev; dasd_scan_partitions()
156 struct block_device *bdev; dasd_destroy_partitions()
H A Ddcssblk.c28 static int dcssblk_open(struct block_device *bdev, fmode_t mode);
31 static long dcssblk_direct_access(struct block_device *bdev, sector_t secnum,
773 dcssblk_open(struct block_device *bdev, fmode_t mode) dcssblk_open()
881 dcssblk_direct_access (struct block_device *bdev, sector_t secnum, dcssblk_direct_access()
H A Dxpram.c230 static int xpram_getgeo(struct block_device *bdev, struct hd_geometry *geo) xpram_getgeo()
H A Ddasd_int.h490 struct block_device *bdev;
771 int dasd_ioctl(struct block_device *, fmode_t, unsigned int, unsigned long);
/linux-4.1.27/fs/nfs/blocklayout/
H A Dblocklayout.h100 struct block_device *bdev;
113 struct block_device *bdev;
H A Dblocklayout.c118 bl_alloc_init_bio(int npg, struct block_device *bdev, sector_t disk_sector, bl_alloc_init_bio()
/linux-4.1.27/fs/btrfs/
H A Dextent_map.h35 struct block_device *bdev;
H A Ddisk-io.h62 struct buffer_head *btrfs_read_dev_super(struct block_device *bdev);
H A Dcheck-integrity.c199 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 Dvolumes.h68 struct block_device *bdev;
231 struct block_device *latest_bdev;
H A Dcompression.c97 static struct bio *compressed_bio_alloc(struct block_device *bdev, compressed_bio_alloc()
343 struct block_device *bdev; btrfs_submit_compressed_write()
579 struct block_device *bdev; btrfs_submit_compressed_read()
H A Dextent_io.h329 btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs,
H A Dvolumes.c113 static void btrfs_kobject_uevent(struct block_device *bdev, btrfs_kobject_uevent()
189 int flush, struct block_device **bdev, btrfs_get_bdev_and_sb()
777 struct block_device *bdev; __btrfs_open_devices()
884 struct block_device *bdev; btrfs_scan_one_device()
1550 struct block_device *bdev; btrfs_rm_device()
1906 struct block_device *bdev; btrfs_find_device_by_path()
2101 struct block_device *bdev; btrfs_init_new_device()
2310 struct block_device *bdev; btrfs_init_dev_replace_tgtdev()
4455 em->bdev = (struct block_device *)map; __btrfs_alloc_chunk()
5720 static int bio_size_ok(struct block_device *bdev, struct bio *bio, bio_size_ok()
6047 em->bdev = (struct block_device *)map; read_one_chunk()
H A Dextent_io.c2691 btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs, btrfs_bio_alloc()
2792 struct block_device *bdev, submit_extent_page()
2925 struct block_device *bdev; __do_readpage()
3382 struct block_device *bdev; __extent_writepage_io()
3781 struct block_device *bdev = fs_info->fs_devices->latest_bdev; write_one_eb()
/linux-4.1.27/fs/f2fs/
H A Dgc.h106 struct block_device *bdev = sbi->sb->s_bdev; is_idle()
H A Dsegment.h702 struct block_device *bdev = sbi->sb->s_bdev; max_hw_blocks()
/linux-4.1.27/kernel/power/
H A Dblock_io.c28 static int submit(int rw, struct block_device *bdev, sector_t sector, submit()
H A Dpower.h167 extern struct block_device *hib_resume_bdev;
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Dlloop.c125 struct block_device *lo_device;
469 struct block_device *bdev, struct file *file) loop_set_fd()
546 static int loop_clr_fd(struct lloop_device *lo, struct block_device *bdev, loop_clr_fd()
583 static int lo_open(struct block_device *bdev, fmode_t mode) lo_open()
604 static int lo_ioctl(struct block_device *bdev, fmode_t mode, lo_ioctl()
667 struct block_device *bdev = NULL; lloop_ioctl()
/linux-4.1.27/drivers/block/aoe/
H A Daoeblk.c234 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 Daoecmd.c957 struct block_device *bd; aoecmd_sleepwork()
/linux-4.1.27/drivers/md/persistent-data/
H A Ddm-block-manager.h35 struct block_device *bdev, unsigned block_size,
H A Ddm-block-manager.c370 struct dm_block_manager *dm_block_manager_create(struct block_device *bdev, dm_block_manager_create()
/linux-4.1.27/drivers/block/rsxx/
H A Ddev.c68 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.1.27/drivers/md/bcache/
H A Dsuper.c87 static const char *read_super(struct cache_sb *sb, struct block_device *bdev, read_super()
644 static int open_dev(struct block_device *b, fmode_t mode) open_dev()
660 static int ioctl_dev(struct block_device *b, fmode_t mode, ioctl_dev()
1173 struct block_device *bdev, register_bdev()
1876 struct block_device *bdev, struct cache *ca) register_cache()
1934 static bool bch_is_open_backing(struct block_device *bdev) { bch_is_open_backing()
1948 static bool bch_is_open_cache(struct block_device *bdev) { bch_is_open_cache()
1960 static bool bch_is_open(struct block_device *bdev) { bch_is_open()
1971 struct block_device *bdev = NULL; register_bcache()
H A Dutil.h574 static inline sector_t bdev_sectors(struct block_device *bdev) bdev_sectors()
H A Dbcache.h308 struct block_device *bdev;
402 struct block_device *bdev;
/linux-4.1.27/kernel/trace/
H A Dblktrace.c417 struct block_device *bdev) blk_trace_setup_lba()
437 struct block_device *bdev, do_blk_trace_setup()
540 struct block_device *bdev, blk_trace_setup()
564 dev_t dev, struct block_device *bdev, compat_blk_trace_setup()
644 int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg) blk_trace_ioctl()
1488 struct block_device *bdev) blk_trace_setup_queue()
1629 static struct request_queue *blk_trace_get_queue(struct block_device *bdev) blk_trace_get_queue()
1643 struct block_device *bdev; sysfs_blk_trace_attr_show()
1684 struct block_device *bdev; sysfs_blk_trace_attr_store()
/linux-4.1.27/drivers/mtd/
H A Dmtd_blkdevs.c191 static int blktrans_open(struct block_device *bdev, fmode_t mode) blktrans_open()
268 static int blktrans_getgeo(struct block_device *bdev, struct hd_geometry *geo) blktrans_getgeo()
288 static int blktrans_ioctl(struct block_device *bdev, fmode_t mode, blktrans_ioctl()
H A Dmtdsuper.c126 struct block_device *bdev; mount_mtd()
/linux-4.1.27/arch/m68k/emu/
H A Dnfblock.c82 static int nfhd_getgeo(struct block_device *bdev, struct hd_geometry *geo) nfhd_getgeo()
/linux-4.1.27/drivers/mtd/devices/
H A Dblock2mtd.c36 struct block_device *blkdev;
227 struct block_device *bdev = ERR_PTR(-ENODEV); add_device()
/linux-4.1.27/fs/nilfs2/
H A Dthe_nilfs.h109 struct block_device *ns_bdev;
287 struct the_nilfs *alloc_nilfs(struct block_device *bdev);
H A Dthe_nilfs.c68 struct the_nilfs *alloc_nilfs(struct block_device *bdev) alloc_nilfs()
H A Dsuper.c1212 struct block_device *bdev;
/linux-4.1.27/arch/um/drivers/
H A Dubd_kern.c89 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.1.27/drivers/block/paride/
H A Dpf.c208 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);
304 static int pf_open(struct block_device *bdev, fmode_t mode) pf_open()
329 static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo) pf_getgeo()
347 static int pf_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) pf_ioctl()
H A Dpcd.c227 static int pcd_block_open(struct block_device *bdev, fmode_t mode) pcd_block_open()
247 static int pcd_block_ioctl(struct block_device *bdev, fmode_t mode, pcd_block_ioctl()
H A Dpd.c739 static int pd_open(struct block_device *bdev, fmode_t mode) pd_open()
754 static int pd_getgeo(struct block_device *bdev, struct hd_geometry *geo) pd_getgeo()
771 static int pd_ioctl(struct block_device *bdev, fmode_t mode, pd_ioctl()
/linux-4.1.27/drivers/block/xen-blkback/
H A Dcommon.h229 struct block_device *bdev;
376 struct block_device *bdev;
H A Dxenbus.c418 struct block_device *bdev; xen_vbd_create()
509 struct block_device *bdev = be->blkif->vbd.bdev; xen_blkbk_discard()
/linux-4.1.27/drivers/message/fusion/
H A Dmptscsih.h125 extern int mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);
/linux-4.1.27/arch/xtensa/platforms/iss/
H A Dsimdisk.c130 static int simdisk_open(struct block_device *bdev, fmode_t mode) simdisk_open()
/linux-4.1.27/arch/powerpc/sysdev/
H A Daxonram.c143 axon_ram_direct_access(struct block_device *device, sector_t sector, axon_ram_direct_access()
/linux-4.1.27/arch/ia64/hp/sim/
H A Dsimscsi.c114 simscsi_biosparam (struct scsi_device *sdev, struct block_device *n, simscsi_biosparam()
/linux-4.1.27/fs/ext4/
H A Dreadpage.c150 struct block_device *bdev = inode->i_sb->s_bdev; ext4_mpage_readpages()
/linux-4.1.27/drivers/mtd/ubi/
H A Dblock.c224 static int ubiblock_open(struct block_device *bdev, fmode_t mode) ubiblock_open()
280 static int ubiblock_getgeo(struct block_device *bdev, struct hd_geometry *geo) ubiblock_getgeo()
/linux-4.1.27/drivers/cdrom/
H A Dgdrom.c497 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.1.27/drivers/staging/i2o/
H A Di2o_block.c575 static int i2o_block_open(struct block_device *bdev, fmode_t mode) i2o_block_open()
634 static int i2o_block_getgeo(struct block_device *bdev, struct hd_geometry *geo) i2o_block_getgeo()
652 static int i2o_block_ioctl(struct block_device *bdev, fmode_t mode, i2o_block_ioctl()
H A Di2o_scsi.c745 struct block_device *dev, sector_t capacity, i2o_scsi_bios_param()
/linux-4.1.27/drivers/block/zram/
H A Dzram_drv.c882 struct block_device *bdev; reset_store()
1001 static void zram_slot_free_notify(struct block_device *bdev, zram_slot_free_notify()
1016 static int zram_rw_page(struct block_device *bdev, sector_t sector, zram_rw_page()
/linux-4.1.27/drivers/mmc/card/
H A Dblock.c294 static int mmc_blk_open(struct block_device *bdev, fmode_t mode) mmc_blk_open()
325 mmc_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) mmc_blk_getgeo()
447 static int mmc_blk_ioctl_cmd(struct block_device *bdev, mmc_blk_ioctl_cmd()
618 static int mmc_blk_ioctl(struct block_device *bdev, fmode_t mode, mmc_blk_ioctl()
628 static int mmc_blk_compat_ioctl(struct block_device *bdev, fmode_t mode, mmc_blk_compat_ioctl()
/linux-4.1.27/mm/
H A Dswapfile.c46 static sector_t map_swap_entry(swp_entry_t, struct block_device**);
988 int swap_type_of(dev_t device, sector_t offset, struct block_device **bdev_p) swap_type_of()
990 struct block_device *bdev = NULL; swap_type_of()
1036 struct block_device *bdev; swapdev_block()
1579 static sector_t map_swap_entry(swp_entry_t entry, struct block_device **bdev) map_swap_entry()
1610 sector_t map_swap_page(struct page *page, struct block_device **bdev) map_swap_page()
1927 struct block_device *bdev = I_BDEV(inode); SYSCALL_DEFINE1()
/linux-4.1.27/drivers/block/mtip32xx/
H A Dmtip32xx.h503 struct block_device *bdev;
H A Dmtip32xx.c3492 * @dev Pointer to the block_device structure.
3502 static int mtip_block_ioctl(struct block_device *dev, mtip_block_ioctl()
3530 * @dev Pointer to the block_device structure.
3540 static int mtip_block_compat_ioctl(struct block_device *dev, mtip_block_compat_ioctl()
3615 * @dev Pointer to the block_device strucutre.
3622 static int mtip_block_getgeo(struct block_device *dev, mtip_block_getgeo()
3644 static int mtip_block_open(struct block_device *dev, fmode_t mode) mtip_block_open()
/linux-4.1.27/drivers/memstick/core/
H A Dmspro_block.c185 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 Dms_block.c1943 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.1.27/fs/gfs2/
H A Dops_fstype.c1230 struct block_device *bdev = ptr; test_gfs2_super()
1251 struct block_device *bdev; gfs2_mount()
/linux-4.1.27/fs/ext3/
H A Dsuper.c357 static struct block_device *ext3_blkdev_get(dev_t dev, struct super_block *sb) ext3_blkdev_get()
359 struct block_device *bdev; ext3_blkdev_get()
377 static void ext3_blkdev_put(struct block_device *bdev) ext3_blkdev_put()
384 struct block_device *bdev; ext3_blkdev_remove()
2238 struct block_device *bdev; ext3_get_dev_journal()
/linux-4.1.27/fs/jbd/
H A Djournal.c798 journal_t * journal_init_dev(struct block_device *bdev, journal_init_dev()
799 struct block_device *fs_dev, journal_init_dev()
1655 struct block_device *bdev; journal_dev_name()
H A Drevoke.c337 struct block_device *bdev; journal_revoke()
/linux-4.1.27/drivers/misc/
H A Dlkdtm.c232 struct block_device *bdev, unsigned int cmd, jp_generic_ide_ioctl()
/linux-4.1.27/drivers/scsi/pcmcia/
H A Dsym53c500_cs.c603 struct block_device *dev, SYM53C500_biosparm()
/linux-4.1.27/drivers/block/drbd/
H A Ddrbd_int.h609 struct block_device *backing_bdev;
610 struct block_device *md_bdev;
846 struct block_device *this_bdev;
1842 static inline sector_t drbd_get_capacity(struct block_device *bdev) drbd_get_capacity()
/linux-4.1.27/fs/quota/
H A Dquota.c730 struct block_device *bdev; quotactl_block()
/linux-4.1.27/fs/jbd2/
H A Drevoke.c334 struct block_device *bdev; jbd2_journal_revoke()
/linux-4.1.27/fs/jfs/
H A Djfs_logmgr.h372 struct block_device *bdev; /* 4: log lv pointer */
H A Djfs_logmgr.c1082 struct block_device *bdev; lmLogOpen()
1462 struct block_device *bdev; lmLogClose()
/linux-4.1.27/drivers/scsi/libsas/
H A Dsas_scsi_host.c910 struct block_device *bdev, sas_bios_param()

Completed in 2899 milliseconds

12