/linux-master/block/ |
H A D | blk-cgroup.c | 747 * blkg_conf_open_bdev - parse and open bdev for per-blkg config update 751 * @ctx->input and get and store the matching bdev in @ctx->bdev. @ctx->body is 756 * explicitly if bdev access is needed without resolving the blkcg / policy part 763 struct block_device *bdev; local 766 if (ctx->bdev) 777 bdev = blkdev_get_no_open(MKDEV(major, minor)); 778 if (!bdev) 780 if (bdev_is_partition(bdev)) { 781 blkdev_put_no_open(bdev); 1073 struct block_device *bdev = dev_to_bdev(dev); local [all...] |
H A D | blk.h | 411 int blkdev_report_zones_ioctl(struct block_device *bdev, unsigned int cmd, 413 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, blk_mode_t mode, 417 static inline int blkdev_report_zones_ioctl(struct block_device *bdev, argument 422 static inline int blkdev_zone_mgmt_ioctl(struct block_device *bdev, argument 430 void bdev_add(struct block_device *bdev, dev_t dev); 444 void bdev_set_nr_sectors(struct block_device *bdev, sector_t sectors); 481 int truncate_bdev_range(struct block_device *bdev, blk_mode_t mode, 599 int bdev_open(struct block_device *bdev, blk_mode_t mode, void *holder,
|
/linux-master/fs/bcachefs/ |
H A D | util.h | 324 static inline void prt_bdevname(struct printbuf *out, struct block_device *bdev) argument 327 prt_printf(out, "%pg", bdev); 329 prt_str(out, bdev->name); 448 static inline sector_t bdev_sectors(struct block_device *bdev) argument 450 return bdev->bd_inode->i_size >> 9;
|
H A D | journal_reclaim.c | 270 bdev_max_discard_sectors(ca->disk_sb.bdev)) 271 blkdev_issue_discard(ca->disk_sb.bdev,
|
H A D | debug.c | 47 bio = bio_alloc_bioset(ca->disk_sb.bdev, 209 bio = bio_alloc_bioset(ca->disk_sb.bdev,
|
/linux-master/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_wb.c | 101 adev = amdgpu_ttm_adev(rbo->tbo.bdev);
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_device.c | 4408 drain_workqueue(adev->mman.bdev.wq); 4429 ttm_device_clear_dma_mappings(&adev->mman.bdev);
|
H A D | amdgpu.h | 1183 static inline struct amdgpu_device *amdgpu_ttm_adev(struct ttm_device *bdev) argument 1185 return container_of(bdev, struct amdgpu_device, mman.bdev);
|
/linux-master/include/linux/ |
H A D | fs.h | 3180 struct block_device *bdev, struct iov_iter *iter,
|
H A D | libata.h | 1151 struct block_device *bdev,
|
/linux-master/fs/ |
H A D | super.c | 1087 * bdev buffer cache (eg. use a private mapping, or directories in 1090 * from bdev, we could get stale data, so invalidate it to give a best 1355 * Lock the superblock that is holder of the bdev. Returns the superblock 1357 * we return NULL and just unlock bdev->bd_holder_lock. 1359 * The function must be called with bdev->bd_holder_lock and releases it. 1361 static struct super_block *bdev_super_lock(struct block_device *bdev, bool excl) 1362 __releases(&bdev->bd_holder_lock) 1364 struct super_block *sb = bdev->bd_holder; 1367 lockdep_assert_held(&bdev->bd_holder_lock); 1369 lockdep_assert_not_held(&bdev 1397 fs_bdev_mark_dead(struct block_device *bdev, bool surprise) argument 1415 fs_bdev_sync(struct block_device *bdev) argument 1427 get_bdev_super(struct block_device *bdev) argument 1457 fs_bdev_freeze(struct block_device *bdev) argument 1497 fs_bdev_thaw(struct block_device *bdev) argument 1531 struct block_device *bdev; local 1673 struct block_device *bdev = sb->s_bdev; local [all...] |
/linux-master/fs/jfs/ |
H A D | jfs_logmgr.c | 2113 struct block_device *bdev = NULL; local 2118 bdev = file_bdev(log->bdev_file); 2120 bio = bio_alloc(bdev, 1, REQ_OP_WRITE | REQ_SYNC,
|
/linux-master/fs/f2fs/ |
H A D | super.c | 3204 devs[i] = FDEV(i).bdev; 3861 struct block_device *bdev = FDEV(devi).bdev; local 3862 sector_t nr_sectors = bdev_nr_sectors(bdev); 3870 zone_sectors = bdev_zone_sectors(bdev); 3890 ret = blkdev_report_zones(bdev, 0, BLK_ALL_ZONES, f2fs_report_zone_cb, 4213 FDEV(i).bdev = file_bdev(FDEV(i).bdev_file); 4217 if (logical_blksize != bdev_logical_block_size(FDEV(i).bdev)) 4221 if (bdev_is_zoned(FDEV(i).bdev)) {
|
/linux-master/fs/ext4/ |
H A D | super.c | 5571 * Save the original bdev mapping's wb_err value which could be 5846 struct block_device *bdev; local 5864 bdev = file_bdev(bdev_file); 5866 hblock = bdev_logical_block_size(bdev); 5876 set_blocksize(bdev, blocksize); 5877 bh = __bread(bdev, sb_block, blocksize); 6607 * around from a previously readonly bdev mount,
|
/linux-master/drivers/scsi/ |
H A D | myrb.c | 1750 static int myrb_biosparam(struct scsi_device *sdev, struct block_device *bdev, argument
|
/linux-master/drivers/mtd/devices/ |
H A D | block2mtd.c | 266 struct block_device *bdev; local 287 bdev = file_bdev(bdev_file); 289 if (MAJOR(bdev->bd_dev) == MTD_BLOCK_MAJOR) { 294 if ((long)bdev->bd_inode->i_size % erase_size) { 312 dev->mtd.size = bdev->bd_inode->i_size & PAGE_MASK;
|
/linux-master/fs/xfs/ |
H A D | xfs_aops.c | 566 sis->bdev = xfs_inode_buftarg(XFS_I(file_inode(swap_file)))->bt_bdev;
|
/linux-master/drivers/md/ |
H A D | dm-integrity.c | 545 io_loc.bdev = ic->meta_dev ? ic->meta_dev->bdev : ic->dev->bdev; 1072 io_loc.bdev = ic->meta_dev ? ic->meta_dev->bdev : ic->dev->bdev; 1189 io_loc.bdev = ic->dev->bdev; 1517 fr.io_reg.bdev = ic->dev->bdev, [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_bo.c | 129 struct xe_device *xe = ttm_to_xe_device(res->bo->bdev); 410 static int xe_ttm_io_mem_reserve(struct ttm_device *bdev, argument 413 struct xe_device *xe = ttm_to_xe_device(bdev); 526 struct xe_device *xe = ttm_to_xe_device(ttm_bo->bdev); 575 struct xe_device *xe = ttm_to_xe_device(ttm_bo->bdev); 617 struct xe_device *xe = ttm_to_xe_device(ttm_bo->bdev); 842 ret = ttm_tt_populate(bo->ttm.bdev, bo->ttm.ttm, &ctx); 899 ret = ttm_tt_populate(bo->ttm.bdev, bo->ttm.ttm, &ctx); 944 struct xe_device *xe = ttm_to_xe_device(ttm_bo->bdev); 955 spin_lock(&ttm_bo->bdev 2303 struct ttm_device *bdev = tbo->bdev; local [all...] |
/linux-master/fs/btrfs/ |
H A D | zoned.c | 84 static int sb_write_pointer(struct block_device *bdev, struct blk_zone *zones, argument 121 struct address_space *mapping = bdev->bd_inode->i_mapping; 180 struct block_device *bdev) 182 return (sector_t)zone_number << ilog2(bdev_zone_sectors(bdev)); 200 sector_t bdev_size = bdev_nr_sectors(device->bdev); 230 if (!bdev_is_zoned(device->bdev)) { 265 ret = blkdev_report_zones(device->bdev, pos >> SECTOR_SHIFT, *nr_zones, 346 if (!device->bdev) 362 struct block_device *bdev = device->bdev; local 179 zone_start_sector(u32 zone_number, struct block_device *bdev) argument 801 sb_log_location(struct block_device *bdev, struct blk_zone *zones, int rw, u64 *bytenr_ret) argument 862 btrfs_sb_log_location_bdev(struct block_device *bdev, int mirror, int rw, u64 *bytenr_ret) argument 1001 btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror) argument [all...] |
/linux-master/drivers/mmc/core/ |
H A D | block.c | 391 mmc_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument 393 geo->cylinders = get_capacity(bdev->bd_disk) / (4 * 16); 786 static int mmc_blk_check_blkdev(struct block_device *bdev) argument 793 if (!capable(CAP_SYS_RAWIO) || bdev_is_partition(bdev)) 798 static int mmc_blk_ioctl(struct block_device *bdev, blk_mode_t mode, argument 806 ret = mmc_blk_check_blkdev(bdev); 809 md = mmc_blk_get(bdev->bd_disk); 818 ret = mmc_blk_check_blkdev(bdev); 821 md = mmc_blk_get(bdev->bd_disk); 835 static int mmc_blk_compat_ioctl(struct block_device *bdev, blk_mode_ argument [all...] |
/linux-master/fs/gfs2/ |
H A D | bmap.c | 929 iomap->bdev = inode->i_sb->s_bdev;
|
/linux-master/drivers/nvme/host/ |
H A D | sysfs.c | 236 struct block_device *bdev = disk->part0; local 239 if (nvme_disk_is_ns_head(bdev->bd_disk)) 242 ret = ns_update_nuse(bdev->bd_disk->private_data);
|
H A D | pr.c | 52 static int nvme_send_ns_head_pr_command(struct block_device *bdev, argument 55 struct nvme_ns_head *head = bdev->bd_disk->private_data; 97 static int nvme_send_pr_command(struct block_device *bdev, argument 100 if (nvme_disk_is_ns_head(bdev->bd_disk)) 101 return nvme_send_ns_head_pr_command(bdev, c, data, data_len); 103 return nvme_send_ns_pr_command(bdev->bd_disk->private_data, c, data, 107 static int nvme_pr_command(struct block_device *bdev, u32 cdw10, argument 120 ret = nvme_send_pr_command(bdev, &c, data, sizeof(data)); 127 static int nvme_pr_register(struct block_device *bdev, u64 old, argument 138 return nvme_pr_command(bdev, cdw1 141 nvme_pr_reserve(struct block_device *bdev, u64 key, enum pr_type type, unsigned flags) argument 154 nvme_pr_preempt(struct block_device *bdev, u64 old, u64 new, enum pr_type type, bool abort) argument 162 nvme_pr_clear(struct block_device *bdev, u64 key) argument 169 nvme_pr_release(struct block_device *bdev, u64 key, enum pr_type type) argument 176 nvme_pr_resv_report(struct block_device *bdev, void *data, u32 data_len, bool *eds) argument 202 nvme_pr_read_keys(struct block_device *bdev, struct pr_keys *keys_info) argument 244 nvme_pr_read_reservation(struct block_device *bdev, struct pr_held_reservation *resv) argument [all...] |
/linux-master/drivers/mtd/ubi/ |
H A D | block.c | 285 static int ubiblock_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument 290 geo->sectors = get_capacity(bdev->bd_disk);
|