Lines Matching full:placement
51 struct ttm_placement *placement) in ttm_bo_mem_space_debug() argument
57 for (i = 0; i < placement->num_placement; i++) { in ttm_bo_mem_space_debug()
58 mem_type = placement->placement[i].mem_type; in ttm_bo_mem_space_debug()
59 drm_printf(&p, " placement[%d]=0x%08X (%d)\n", in ttm_bo_mem_space_debug()
60 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug()
341 hop_placement.placement = hop; in ttm_bo_bounce_temp_buffer()
361 struct ttm_placement placement; in ttm_bo_evict() local
369 placement.num_placement = 0; in ttm_bo_evict()
370 bdev->funcs->evict_flags(bo, &placement); in ttm_bo_evict()
372 if (!placement.num_placement) { in ttm_bo_evict()
384 ret = ttm_bo_mem_space(bo, &placement, &evict_mem, ctx); in ttm_bo_evict()
389 ttm_bo_mem_space_debug(bo, &placement); in ttm_bo_evict()
415 * @place: the placement we need to make room for
417 * Check if it is valuable to evict the BO to make room for the given placement.
430 * requested placement range in ttm_bo_eviction_valuable()
690 * @placement: Proposed new placement for the buffer object
696 * placement flags in @placement, potentially evicting other buffer objects when
706 struct ttm_placement *placement, in ttm_bo_alloc_resource() argument
720 for (i = 0; i < placement->num_placement; ++i) { in ttm_bo_alloc_resource()
721 const struct ttm_place *place = &placement->placement[i]; in ttm_bo_alloc_resource()
773 * @placement: Proposed new placement for the buffer object
781 struct ttm_placement *placement, in ttm_bo_mem_space() argument
789 ret = ttm_bo_alloc_resource(bo, placement, ctx, in ttm_bo_mem_space()
802 * @placement: Proposed placement for the buffer object.
805 * Changes placement and caching policy of the buffer object
806 * according proposed placement.
808 * -EINVAL on invalid proposed placement.
814 struct ttm_placement *placement, in ttm_bo_validate() argument
825 * Remove the backing store if no placement is given. in ttm_bo_validate()
827 if (!placement->num_placement) in ttm_bo_validate()
834 ttm_resource_compatible(bo->resource, placement, in ttm_bo_validate()
851 ret = ttm_bo_alloc_resource(bo, placement, ctx, force_space, in ttm_bo_validate()
896 * @placement: Initial placement for buffer object.
920 * -EINVAL: Invalid placement flags.
924 enum ttm_bo_type type, struct ttm_placement *placement, in ttm_bo_init_reserved() argument
964 ret = ttm_bo_validate(bo, placement, ctx); in ttm_bo_init_reserved()
986 * @placement: Initial placement for buffer object.
1013 * -EINVAL: Invalid placement flags.
1017 enum ttm_bo_type type, struct ttm_placement *placement, in ttm_bo_init_validate() argument
1025 ret = ttm_bo_init_reserved(bdev, bo, type, placement, alignment, &ctx, in ttm_bo_init_validate()
1109 * While the bo may already reside in SYSTEM placement, set in ttm_bo_swapout_cb()
1110 * SYSTEM as new placement to cover also the move further below. in ttm_bo_swapout_cb()