/linux-master/include/drm/ttm/ |
H A D | ttm_placement.h | 37 * Memory regions for data placement. 42 * placement they need to be able to handle the issues that arise due to the 48 * placement that can handle such scenarios is a good idea. 94 * @placement: preferred placements 96 * Structure indicating the placement you request for an object. 100 const struct ttm_place *placement; member in struct:ttm_placement
|
H A D | ttm_bo.h | 83 * @resource: structure describing current placement. 87 * Base class for TTM buffer object, that deals with data placement and CPU 89 * the driver can usually use the placement offset @offset directly as the 93 * placement and caching for these GPU maps. This makes it possible to use 175 * Context for TTM operations like changing buffer placement or general memory 353 struct ttm_placement *placement, 361 enum ttm_bo_type type, struct ttm_placement *placement, 366 enum ttm_bo_type type, struct ttm_placement *placement, 398 struct ttm_placement *placement,
|
H A D | ttm_device.h | 114 * @place: placement we need room for 117 * for a certain placement. 134 struct ttm_placement *placement); 144 * @hop: placement for driver directed intermediate hop
|
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_gem.c | 216 const char *placement; local 221 placement = " CPU"; 224 placement = " GMR"; 227 placement = " MOB"; 230 placement = "VCPU"; 233 placement = "VRAM"; 236 placement = "None"; 256 id, bo->tbo.base.size, placement, type);
|
H A D | vmwgfx_bo.c | 59 * vmw_bo_pin_in_placement - Validate a buffer to placement. 63 * @placement: The placement to pin it. 70 struct ttm_placement *placement, 83 ret = ttm_bo_validate(bo, placement, &ctx); 122 ret = ttm_bo_validate(bo, &buf->placement, &ctx); 129 ret = ttm_bo_validate(bo, &buf->placement, &ctx); 200 (void)ttm_bo_validate(bo, &buf->placement, &ctx); 208 ret = ttm_bo_validate(bo, &buf->placement, &ctx); 253 * vmw_bo_get_guest_ptr - Get the guest ptr representing the current placement 68 vmw_bo_pin_in_placement(struct vmw_private *dev_priv, struct vmw_bo *buf, struct ttm_placement *placement, bool interruptible) argument 283 struct ttm_placement placement; local [all...] |
H A D | vmwgfx_ttm_buffer.c | 48 .placement = &vram_placement_flags, 53 .placement = &sys_placement_flags, 433 struct ttm_placement *placement) 435 *placement = vmw_sys_placement; 432 vmw_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *placement) argument
|
/linux-master/drivers/gpu/drm/ttm/ |
H A D | ttm_bo.c | 50 struct ttm_placement *placement) 56 for (i = 0; i < placement->num_placement; i++) { 57 mem_type = placement->placement[i].mem_type; 58 drm_printf(&p, " placement[%d]=0x%08X (%d)\n", 59 i, placement->placement[i].flags, mem_type); 414 hop_placement.placement = hop; 434 struct ttm_placement placement; local 442 placement 49 ttm_bo_mem_space_debug(struct ttm_buffer_object *bo, struct ttm_placement *placement) argument 776 ttm_bo_mem_space(struct ttm_buffer_object *bo, struct ttm_placement *placement, struct ttm_resource **mem, struct ttm_operation_ctx *ctx) argument 849 ttm_bo_move_buffer(struct ttm_buffer_object *bo, struct ttm_placement *placement, struct ttm_operation_ctx *ctx) argument 901 ttm_bo_validate(struct ttm_buffer_object *bo, struct ttm_placement *placement, struct ttm_operation_ctx *ctx) argument 975 ttm_bo_init_reserved(struct ttm_device *bdev, struct ttm_buffer_object *bo, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t alignment, struct ttm_operation_ctx *ctx, struct sg_table *sg, struct dma_resv *resv, void (*destroy) (struct ttm_buffer_object *)) argument 1068 ttm_bo_init_validate(struct ttm_device *bdev, struct ttm_buffer_object *bo, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t alignment, bool interruptible, struct sg_table *sg, struct dma_resv *resv, void (*destroy) (struct ttm_buffer_object *)) argument [all...] |
H A D | ttm_resource.c | 174 * @place: placement of the resource 188 res->placement = place->flags; 268 * @place: The placement to test 274 * Returns true if the res placement intersects with @place and @size. 294 * ttm_resource_compatible - check if resource is compatible with placement 297 * @placement: the placement to check against 299 * Returns true if the placement is compatible. 302 struct ttm_placement *placement) 308 if (res->placement 301 ttm_resource_compatible(struct ttm_resource *res, struct ttm_placement *placement) argument [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_drm_client.c | 111 if (bo->placement.placement) 112 mem_type = bo->placement.placement->mem_type;
|
H A D | xe_bo_types.h | 39 /** @placement: current placement for this BO */ 40 struct ttm_placement placement; member in struct:xe_bo
|
H A D | xe_bo.c | 48 .placement = &sys_placement_flags, 68 .placement = tt_placement_flags, 220 bo->placement = (struct ttm_placement) { 222 .placement = bo->placements, 236 struct ttm_placement *placement) 241 placement->num_placement = 0; 245 *placement = sys_placement; 257 *placement = tt_placement; 261 *placement = sys_placement; 431 mem->placement 235 xe_evict_flags(struct ttm_buffer_object *tbo, struct ttm_placement *placement) argument 809 struct ttm_placement placement = { local 1213 struct ttm_placement *placement; local 2134 struct ttm_placement placement; local 2184 struct ttm_placement placement; local [all...] |
H A D | xe_ttm_vram_mgr.c | 107 (vres->base.placement & TTM_PL_FLAG_CONTIGUOUS)))) { 177 if (!(vres->base.placement & TTM_PL_FLAG_CONTIGUOUS) && 179 vres->base.placement |= TTM_PL_FLAG_CONTIGUOUS; 185 if (vres->base.placement & TTM_PL_FLAG_CONTIGUOUS) {
|
/linux-master/drivers/gpu/drm/qxl/ |
H A D | qxl_ttm.c | 51 struct ttm_placement *placement) 62 placement->placement = &placements; 63 placement->num_placement = 1; 68 *placement = qbo->placement; 50 qxl_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *placement) argument
|
H A D | qxl_object.c | 68 qbo->placement.placement = qbo->placements; 87 qbo->placement.num_placement = c; 143 &bo->placement, 0, &ctx, NULL, NULL, 304 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
|
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_ttm.c | 67 .placement = &sys_placement_flags, 77 * Return: A pointer to a static variable for sys placement. 159 struct ttm_placement *placement) 178 placement->num_placement = num_allowed + 1; 179 placement->placement = places; 379 struct ttm_placement *placement) 381 *placement = i915_sys_placement; 775 struct ttm_placement *placement) 785 /* First try only the requested placement 157 i915_ttm_placement_from_obj(const struct drm_i915_gem_object *obj, struct ttm_place *places, struct ttm_placement *placement) argument 378 i915_ttm_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *placement) argument 774 __i915_ttm_get_pages(struct drm_i915_gem_object *obj, struct ttm_placement *placement) argument 838 struct ttm_placement placement; local 871 struct ttm_placement placement; local [all...] |
/linux-master/drivers/gpu/drm/radeon/ |
H A D | radeon_mn.c | 75 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
|
H A D | radeon_object.c | 80 rbo->placement.placement = rbo->placements; 115 rbo->placement.num_placement = c; 204 &bo->placement, page_align, !kernel, sg, resv, 307 for (i = 0; i < bo->placement.num_placement; i++) { 318 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); 514 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); 750 for (i = 0; i < rbo->placement.num_placement; i++) { 756 r = ttm_bo_validate(bo, &rbo->placement, &ctx); 759 r = ttm_bo_validate(bo, &rbo->placement, [all...] |
/linux-master/drivers/mtd/nand/ |
H A D | ecc.c | 162 /* Define default OOB placement schemes for large and small page devices */ 369 enum nand_ecc_placement placement; local 373 err = of_property_read_string(np, "nand-ecc-placement", &pm); 375 for (placement = NAND_ECC_PLACEMENT_OOB; 376 placement < ARRAY_SIZE(nand_ecc_placement); placement++) { 377 if (!strcasecmp(pm, nand_ecc_placement[placement])) 378 return placement; 435 nand->ecc.user_conf.placement = of_get_nand_ecc_placement(dn);
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_object.c | 118 * amdgpu_bo_placement_from_domain - set buffer's placement 119 * @abo: &amdgpu_bo buffer object whose placement is to be set 122 * Sets buffer's placement according to requested domain and the buffer's 128 struct ttm_placement *placement = &abo->placement; local 221 placement->num_placement = c; 222 placement->placement = places; 402 for (i = 0; i < (*bo_ptr)->placement.num_placement; ++i) { 406 r = ttm_bo_mem_space(&(*bo_ptr)->tbo, &(*bo_ptr)->placement, 1589 const char *placement; local [all...] |
H A D | amdgpu_dma_buf.c | 164 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); 261 ret = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); 376 struct ttm_placement placement = {}; local 387 r = ttm_bo_validate(&bo->tbo, &placement, &ctx);
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_gem_vram_helper.c | 149 gbo->placement.placement = gbo->placements; 161 gbo->placement.num_placement = c; 229 &gbo->placement, pg_align, false, NULL, NULL, 291 ret = ttm_bo_validate(&gbo->bo, &gbo->placement, &ctx); 547 *pl = gbo->placement; 879 struct ttm_placement *placement) 889 drm_gem_vram_bo_driver_evict_flags(gbo, placement); 878 bo_driver_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *placement) argument
|
H A D | drm_gem_ttm_helper.c | 44 drm_printf_indent(p, indent, "placement="); 45 drm_print_bits(p, bo->resource->placement, plname, ARRAY_SIZE(plname));
|
/linux-master/drivers/gpu/drm/loongson/ |
H A D | lsdc_ttm.h | 43 struct ttm_placement placement; member in struct:lsdc_bo
|
H A D | lsdc_ttm.c | 56 lbo->placement.placement = lbo->placements; 78 lbo->placement.num_placement = c; 155 *tplacement = lbo->placement; 302 ret = ttm_bo_validate(tbo, &lbo->placement, &ctx); 479 ret = ttm_bo_init_validate(bdev, tbo, bo_type, &lbo->placement, 0,
|
/linux-master/include/drm/ |
H A D | drm_gem_vram_helper.h | 36 * @placement: TTM placement information. Supported placements are %TTM_PL_VRAM 38 * @placements: TTM placement information. 65 struct ttm_placement placement; member in struct:drm_gem_vram_object
|