/linux-master/block/ |
H A D | fops.c | 37 static bool blkdev_dio_unaligned(struct block_device *bdev, loff_t pos, argument 40 return pos & (bdev_logical_block_size(bdev) - 1) || 41 !bdev_iter_is_aligned(bdev, iter); 47 struct iov_iter *iter, struct block_device *bdev, 66 bio_init(&bio, bdev, vecs, nr_pages, REQ_OP_READ); 70 bio_init(&bio, bdev, vecs, nr_pages, dio_bio_write_op(iocb)); 161 struct block_device *bdev, unsigned int nr_pages) 173 bio = bio_alloc_bioset(bdev, nr_pages, opf, GFP_KERNEL, 246 bio = bio_alloc(bdev, nr_pages, opf, GFP_KERNEL); 298 struct block_device *bdev, 46 __blkdev_direct_IO_simple(struct kiocb *iocb, struct iov_iter *iter, struct block_device *bdev, unsigned int nr_pages) argument 160 __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, struct block_device *bdev, unsigned int nr_pages) argument 296 __blkdev_direct_IO_async(struct kiocb *iocb, struct iov_iter *iter, struct block_device *bdev, unsigned int nr_pages) argument 361 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); local 383 struct block_device *bdev = I_BDEV(inode); local 539 struct block_device *bdev = I_BDEV(filp->f_mapping->host); local 599 struct block_device *bdev; local 667 struct block_device *bdev = I_BDEV(bd_inode); local 714 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); local 765 struct block_device *bdev = I_BDEV(inode); local [all...] |
H A D | blk-crypto.c | 360 bool blk_crypto_config_supported_natively(struct block_device *bdev, argument 363 return __blk_crypto_cfg_supported(bdev_get_queue(bdev)->crypto_profile, 372 bool blk_crypto_config_supported(struct block_device *bdev, argument 376 blk_crypto_config_supported_natively(bdev, cfg); 381 * @bdev: block device to operate on 394 int blk_crypto_start_using_key(struct block_device *bdev, argument 397 if (blk_crypto_config_supported_natively(bdev, &key->crypto_cfg)) 404 * @bdev: a block_device on which I/O using the key may have been done 417 void blk_crypto_evict_key(struct block_device *bdev, argument 420 struct request_queue *q = bdev_get_queue(bdev); [all...] |
H A D | blk-zoned.c | 120 * @bdev: Target device 125 unsigned int bdev_nr_zones(struct block_device *bdev) argument 127 sector_t zone_sectors = bdev_zone_sectors(bdev); 129 if (!bdev_is_zoned(bdev)) 131 return (bdev_nr_sectors(bdev) + zone_sectors - 1) >> 138 * @bdev: Target block device 155 int blkdev_report_zones(struct block_device *bdev, sector_t sector, argument 158 struct gendisk *disk = bdev->bd_disk; 161 if (!bdev_is_zoned(bdev) || WARN_ON_ONCE(!disk->fops->report_zones)) 197 static int blkdev_zone_reset_all_emulated(struct block_device *bdev) argument 242 blkdev_zone_reset_all(struct block_device *bdev) argument 265 blkdev_zone_mgmt(struct block_device *bdev, enum req_op op, sector_t sector, sector_t nr_sectors) argument 341 blkdev_report_zones_ioctl(struct block_device *bdev, unsigned int cmd, unsigned long arg) argument 374 blkdev_truncate_zone_range(struct block_device *bdev, blk_mode_t mode, const struct blk_zone_range *zrange) argument 394 blkdev_zone_mgmt_ioctl(struct block_device *bdev, blk_mode_t mode, unsigned int cmd, unsigned long arg) argument 1108 struct block_device *bdev = bio->bi_bdev; local 1294 struct block_device *bdev; local [all...] |
/linux-master/drivers/md/dm-vdo/indexer/ |
H A D | index-layout.h | 27 struct block_device *bdev);
|
H A D | io-factory.h | 27 int __must_check uds_make_io_factory(struct block_device *bdev, 31 struct block_device *bdev);
|
H A D | io-factory.c | 25 struct block_device *bdev; member in struct:io_factory 62 int uds_make_io_factory(struct block_device *bdev, struct io_factory **factory_ptr) argument 71 factory->bdev = bdev; 78 int uds_replace_storage(struct io_factory *factory, struct block_device *bdev) argument 80 factory->bdev = bdev; 93 return bdev_nr_bytes(factory->bdev); 102 client = dm_bufio_client_create(factory->bdev, block_size, reserved_buffers, 0,
|
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ttm_buffer.c | 273 static int vmw_ttm_bind(struct ttm_device *bdev, argument 320 static void vmw_ttm_unbind(struct ttm_device *bdev, argument 348 static void vmw_ttm_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) argument 362 static int vmw_ttm_populate(struct ttm_device *bdev, argument 375 return ttm_pool_alloc(&bdev->pool, ttm, ctx); 378 static void vmw_ttm_unpopulate(struct ttm_device *bdev, argument 388 vmw_ttm_unbind(bdev, ttm); 397 ttm_pool_free(&bdev->pool, ttm); 411 vmw_be->dev_priv = vmw_priv_from_ttm(bo->bdev); 438 static int vmw_ttm_io_mem_reserve(struct ttm_device *bdev, struc argument [all...] |
H A D | vmwgfx_gmrid_manager.c | 167 ttm_resource_manager_init(man, &dev_priv->bdev, 0); 185 ttm_set_driver_manager(&dev_priv->bdev, type, &gman->manager); 192 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, type); 197 ttm_resource_manager_evict_all(&dev_priv->bdev, man); 201 ttm_set_driver_manager(&dev_priv->bdev, type, NULL);
|
/linux-master/include/drm/ |
H A D | drm_gem_vram_helper.h | 172 * @bdev: The TTM BO device. 177 * &struct drm_vram_mm.bdev to access the TTM BO device. 183 struct ttm_device bdev; member in struct:drm_vram_mm 188 * field bdev. 189 * @bdev: the TTM BO device 195 struct ttm_device *bdev) 197 return container_of(bdev, struct drm_vram_mm, bdev); 194 drm_vram_mm_of_bdev( struct ttm_device *bdev) argument
|
/linux-master/drivers/gpu/drm/ttm/ |
H A D | ttm_bo_vm.c | 87 struct ttm_device *bdev = bo->bdev; local 89 if (bdev->funcs->io_mem_pfn) 90 return bdev->funcs->io_mem_pfn(bo, page_offset); 187 struct ttm_device *bdev = bo->bdev; local 206 err = ttm_mem_io_reserve(bdev, bo->resource); 227 err = ttm_tt_populate(bdev, bo->ttm, &ctx); 354 WARN_ON(bo->bdev->dev_mapping != vma->vm_file->f_mapping); 431 if (bo->bdev [all...] |
H A D | ttm_range_manager.c | 169 * @bdev: ttm device 178 int ttm_range_man_init_nocheck(struct ttm_device *bdev, argument 194 ttm_resource_manager_init(man, bdev, p_size); 199 ttm_set_driver_manager(bdev, type, &rman->manager); 209 * @bdev: ttm device 214 int ttm_range_man_fini_nocheck(struct ttm_device *bdev, argument 217 struct ttm_resource_manager *man = ttm_manager_type(bdev, type); 227 ret = ttm_resource_manager_evict_all(bdev, man); 236 ttm_set_driver_manager(bdev, type, NULL);
|
/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo.c | 47 static int nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, 49 static void nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm); 139 struct nouveau_drm *drm = nouveau_bdev(bo->bdev); 177 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); 229 nvbo->bo.bdev = &drm->ttm.bdev; 362 ret = ttm_bo_init_reserved(nvbo->bo.bdev, &nvbo->bo, type, 410 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); 472 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); 545 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); 782 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg) argument 798 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) argument 1177 nouveau_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource *reg) argument 1287 nouveau_ttm_io_mem_free(struct ttm_device *bdev, struct ttm_resource *reg) argument 1342 nouveau_ttm_tt_populate(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) argument 1364 nouveau_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) argument 1381 nouveau_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) argument [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_bio_io.c | 14 struct block_device *bdev, 29 bio = bio_alloc(bdev, bio_max_vecs(left), op | REQ_META | REQ_SYNC, 13 xfs_rw_bdev( struct block_device *bdev, sector_t sector, unsigned int count, char *data, enum req_op op) argument
|
/linux-master/include/drm/ttm/ |
H A D | ttm_bo.h | 77 * @bdev: Pointer to the buffer object device structure. 107 struct ttm_device *bdev; member in struct:ttm_buffer_object 298 spin_lock(&bo->bdev->lru_lock); 300 spin_unlock(&bo->bdev->lru_lock); 365 int ttm_bo_init_reserved(struct ttm_device *bdev, struct ttm_buffer_object *bo, 370 int ttm_bo_init_validate(struct ttm_device *bdev, struct ttm_buffer_object *bo, 385 int ttm_mem_evict_first(struct ttm_device *bdev, 411 int ttm_mem_io_reserve(struct ttm_device *bdev, 413 void ttm_mem_io_free(struct ttm_device *bdev,
|
/linux-master/drivers/md/bcache/ |
H A D | io.c | 40 bio_set_dev(bio, c->cache->bdev); 70 dc->bdev); 77 dc->bdev); 128 ca->bdev, m, 133 ca->bdev, m);
|
/linux-master/drivers/md/ |
H A D | dm-linear.c | 92 bio_set_dev(bio, lc->dev->bdev); 121 static int linear_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) argument 126 *bdev = dev->bdev; 131 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev)) 142 return dm_report_zones(lc->dev->bdev, lc->start, 164 *pgoff = (get_start_sect(lc->dev->bdev) + sector) >> PAGE_SECTORS_SHIFT;
|
H A D | dm-clone-metadata.h | 57 * @bdev: The device storing the metadata 63 * This function reads the superblock of @bdev and checks if it's all zeroes. 64 * If it is, it formats @bdev and creates fresh metadata. If it isn't, it 65 * validates the metadata stored in @bdev. 67 struct dm_clone_metadata *dm_clone_metadata_open(struct block_device *bdev,
|
/linux-master/drivers/platform/x86/ |
H A D | nvidia-wmi-ec-backlight.c | 94 struct backlight_device *bdev; local 118 bdev = devm_backlight_device_register(&wdev->dev, 123 return PTR_ERR_OR_ZERO(bdev);
|
/linux-master/include/linux/ |
H A D | blktrace_api.h | 77 struct block_device *bdev, 83 # define blk_trace_ioctl(bdev, cmd, arg) (-ENOTTY) 86 # define blk_trace_setup(q, name, dev, bdev, arg) (-ENOTTY)
|
H A D | buffer_head.h | 215 void clean_bdev_aliases(struct block_device *bdev, sector_t block, 225 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block, 227 struct buffer_head *bdev_getblk(struct block_device *bdev, sector_t block, 242 void write_boundary_block(struct block_device *bdev, 362 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, argument 367 gfp = mapping_gfp_constraint(bdev->bd_mapping, ~__GFP_FS); 370 return bdev_getblk(bdev, block, size, gfp); 373 static inline struct buffer_head *__getblk(struct block_device *bdev, argument 378 gfp = mapping_gfp_constraint(bdev->bd_mapping, ~__GFP_FS); 381 return bdev_getblk(bdev, bloc 479 __bread(struct block_device *bdev, sector_t block, unsigned size) argument [all...] |
H A D | dm-io.h | 20 struct block_device *bdev; member in struct:dm_io_region
|
/linux-master/fs/iomap/ |
H A D | trace.h | 127 __field(dev_t, bdev) 137 __entry->bdev = iomap->bdev ? iomap->bdev->bd_dev : 0; 139 TP_printk("dev %d:%d ino 0x%llx bdev %d:%d addr 0x%llx offset 0x%llx " 143 MAJOR(__entry->bdev), MINOR(__entry->bdev), 172 __field(dev_t, bdev) 184 __entry->bdev = iomap->bdev [all...] |
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_ttm_pm.c | 50 container_of(bo->bdev, typeof(*i915), bdev); 93 err = ttm_tt_populate(backup_bo->bdev, backup_bo->ttm, &ctx); 192 err = ttm_tt_populate(backup_bo->bdev, backup_bo->ttm, &ctx);
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_debugfs.c | 123 struct ttm_device *bdev = &xe->ttm; local 139 man = ttm_manager_type(bdev, mem_type); 149 man = ttm_manager_type(bdev, XE_PL_TT); 152 man = ttm_manager_type(bdev, XE_PL_STOLEN);
|
/linux-master/block/partitions/ |
H A D | core.c | 295 struct block_device *bdev; local 321 bdev = bdev_alloc(disk, partno); 322 if (!bdev) 325 bdev->bd_start_sect = start; 326 bdev_set_nr_sectors(bdev, len); 328 pdev = &bdev->bd_device; 341 if (bdev_partno(bdev) < disk->minors) { 342 devt = MKDEV(disk->major, disk->first_minor + bdev_partno(bdev)); 353 bdev->bd_meta_info = kmemdup(info, sizeof(*info), GFP_KERNEL); 354 if (!bdev [all...] |