/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_ttm.c | 70 struct nouveau_drm *drm = nouveau_bdev(bo->bdev); 105 struct nouveau_drm *drm = nouveau_bdev(bo->bdev); 131 struct nouveau_drm *drm = nouveau_bdev(bo->bdev); 191 ttm_resource_manager_init(man, &drm->ttm.bdev, 193 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, man); 197 return ttm_range_man_init(&drm->ttm.bdev, TTM_PL_VRAM, false, 205 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); 209 ttm_resource_manager_evict_all(&drm->ttm.bdev, man); 211 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, NULL); 214 ttm_range_man_fini(&drm->ttm.bdev, TTM_PL_VRA [all...] |
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); 473 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); 550 struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev); 765 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg) argument 781 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) argument 1160 nouveau_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource *reg) argument 1270 nouveau_ttm_io_mem_free(struct ttm_device *bdev, struct ttm_resource *reg) argument 1325 nouveau_ttm_tt_populate(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) argument 1347 nouveau_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) argument 1364 nouveau_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) argument [all...] |
/linux-master/block/ |
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 | 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); 49 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); local 56 if (blkdev_dio_unaligned(bdev, pos, iter)) 69 bio_init(&bio, bdev, vecs, nr_pages, REQ_OP_READ); 73 bio_init(&bio, bdev, vecs, nr_pages, dio_bio_write_op(iocb)); 166 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); local 175 if (blkdev_dio_unaligned(bdev, pos, iter)) 180 bio = bio_alloc_bioset(bdev, nr_page 307 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); local 388 struct block_device *bdev = I_BDEV(inode); local 544 struct block_device *bdev = I_BDEV(filp->f_mapping->host); local 604 struct block_device *bdev; local 671 struct block_device *bdev = I_BDEV(file->f_mapping->host); local 719 struct block_device *bdev = I_BDEV(iocb->ki_filp->f_mapping->host); local 770 struct block_device *bdev = I_BDEV(inode); local [all...] |
/linux-master/include/drm/ |
H A D | drm_gem_vram_helper.h | 172 * @bdev: The TTM BO device. 178 * &struct drm_vram_mm.bdev to access the TTM BO device. 184 struct ttm_device bdev; member in struct:drm_vram_mm 189 * field bdev. 190 * @bdev: the TTM BO device 196 struct ttm_device *bdev) 198 return container_of(bdev, struct drm_vram_mm, bdev); 195 drm_vram_mm_of_bdev( struct ttm_device *bdev) argument
|
/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 i_size_read(factory->bdev->bd_inode); 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/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/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. 104 struct ttm_device *bdev; member in struct:ttm_buffer_object 293 spin_lock(&bo->bdev->lru_lock); 295 spin_unlock(&bo->bdev->lru_lock); 360 int ttm_bo_init_reserved(struct ttm_device *bdev, struct ttm_buffer_object *bo, 365 int ttm_bo_init_validate(struct ttm_device *bdev, struct ttm_buffer_object *bo, 380 int ttm_mem_evict_first(struct ttm_device *bdev, 406 int ttm_mem_io_reserve(struct ttm_device *bdev, 408 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, 336 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, argument 341 gfp = mapping_gfp_constraint(bdev->bd_inode->i_mapping, ~__GFP_FS); 344 return bdev_getblk(bdev, block, size, gfp); 347 static inline struct buffer_head *__getblk(struct block_device *bdev, argument 352 gfp = mapping_gfp_constraint(bdev->bd_inode->i_mapping, ~__GFP_FS); 355 return bdev_getblk(bdev, bloc 450 __bread(struct block_device *bdev, sector_t block, unsigned size) argument [all...] |
/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/scsi/ |
H A D | scsicam.c | 51 * @bdev: block device to parse 60 bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]) argument 68 buf = scsi_bios_ptable(bdev); 208 * @bdev: which device 218 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) argument 224 if (scsi_partsize(bdev, capacity, ip))
|
/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/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->bd_partno < disk->minors) { 342 devt = MKDEV(disk->major, disk->first_minor + bdev->bd_partno); 353 bdev->bd_meta_info = kmemdup(info, sizeof(*info), GFP_KERNEL); 354 if (!bdev [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_debugfs.c | 109 struct ttm_device *bdev = &xe->ttm; local 125 man = ttm_manager_type(bdev, mem_type); 135 man = ttm_manager_type(bdev, XE_PL_TT); 138 man = ttm_manager_type(bdev, XE_PL_STOLEN);
|