Lines Matching refs:placement

32 	struct ttm_placement *placement;  in ttm_placement_kunit_init()  local
34 placement = kunit_kzalloc(test, sizeof(*placement), GFP_KERNEL); in ttm_placement_kunit_init()
35 KUNIT_ASSERT_NOT_NULL(test, placement); in ttm_placement_kunit_init()
37 placement->num_placement = num_places; in ttm_placement_kunit_init()
38 placement->placement = places; in ttm_placement_kunit_init()
40 return placement; in ttm_placement_kunit_init()
111 struct ttm_placement *placement; in ttm_bo_init_reserved_sys_man() local
120 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_init_reserved_sys_man()
124 err = ttm_bo_init_reserved(priv->ttm_dev, bo, bo_type, placement, in ttm_bo_init_reserved_sys_man()
157 struct ttm_placement *placement; in ttm_bo_init_reserved_mock_man() local
169 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_init_reserved_mock_man()
173 err = ttm_bo_init_reserved(priv->ttm_dev, bo, bo_type, placement, in ttm_bo_init_reserved_mock_man()
199 struct ttm_placement *placement; in ttm_bo_init_reserved_resv() local
209 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_init_reserved_resv()
215 err = ttm_bo_init_reserved(priv->ttm_dev, bo, bo_type, placement, in ttm_bo_init_reserved_resv()
265 KUNIT_EXPECT_EQ(test, bo->resource->placement, in ttm_bo_validate_basic()
278 struct ttm_placement *placement; in ttm_bo_validate_invalid_placement() local
284 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_invalid_placement()
290 err = ttm_bo_validate(bo, placement, &ctx); in ttm_bo_validate_invalid_placement()
304 struct ttm_placement *placement; in ttm_bo_validate_failed_alloc() local
316 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_failed_alloc()
319 err = ttm_bo_validate(bo, placement, &ctx); in ttm_bo_validate_failed_alloc()
334 struct ttm_placement *placement; in ttm_bo_validate_pinned() local
340 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_pinned()
347 err = ttm_bo_validate(bo, placement, &ctx); in ttm_bo_validate_pinned()
379 struct ttm_placement *placement; in ttm_bo_validate_same_placement() local
385 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_same_placement()
396 placement, PAGE_SIZE, &ctx_init, NULL, in ttm_bo_validate_same_placement()
400 err = ttm_bo_validate(bo, placement, &ctx_val); in ttm_bo_validate_same_placement()
526 struct ttm_placement *placement; in ttm_bo_validate_no_placement_signaled() local
549 placement = kunit_kzalloc(test, sizeof(*placement), GFP_KERNEL); in ttm_bo_validate_no_placement_signaled()
550 KUNIT_ASSERT_NOT_NULL(test, placement); in ttm_bo_validate_no_placement_signaled()
553 err = ttm_bo_validate(bo, placement, &ctx); in ttm_bo_validate_no_placement_signaled()
595 struct ttm_placement *placement; in ttm_bo_validate_no_placement_not_signaled() local
609 placement = kunit_kzalloc(test, sizeof(*placement), GFP_KERNEL); in ttm_bo_validate_no_placement_not_signaled()
610 KUNIT_ASSERT_NOT_NULL(test, placement); in ttm_bo_validate_no_placement_not_signaled()
622 err = ttm_bo_validate(bo, placement, &ctx); in ttm_bo_validate_no_placement_not_signaled()
648 struct ttm_placement *placement; in ttm_bo_validate_move_fence_signaled() local
660 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_move_fence_signaled()
663 err = ttm_bo_validate(bo, placement, &ctx); in ttm_bo_validate_move_fence_signaled()
767 struct ttm_placement *placement; in ttm_bo_validate_swapout() local
779 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_swapout()
786 err = ttm_bo_init_reserved(priv->ttm_dev, bo_small, bo_type, placement, in ttm_bo_validate_swapout()
795 err = ttm_bo_validate(bo_big, placement, &ctx); in ttm_bo_validate_swapout()
821 struct ttm_placement *placement; in ttm_bo_validate_happy_evict() local
830 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_happy_evict()
838 err = ttm_bo_init_reserved(priv->ttm_dev, &bos[i], bo_type, placement, in ttm_bo_validate_happy_evict()
848 err = ttm_bo_validate(bo_val, placement, &ctx_val); in ttm_bo_validate_happy_evict()
872 struct ttm_placement *placement; in ttm_bo_validate_all_pinned_evict() local
881 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_all_pinned_evict()
887 err = ttm_bo_init_reserved(priv->ttm_dev, bo_big, bo_type, placement, in ttm_bo_validate_all_pinned_evict()
899 err = ttm_bo_validate(bo_small, placement, &ctx_val); in ttm_bo_validate_all_pinned_evict()
923 struct ttm_placement *placement; in ttm_bo_validate_allowed_only_evict() local
932 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_allowed_only_evict()
938 err = ttm_bo_init_reserved(priv->ttm_dev, bo_pinned, bo_type, placement, in ttm_bo_validate_allowed_only_evict()
949 err = ttm_bo_init_reserved(priv->ttm_dev, bo_evictable, bo_type, placement, in ttm_bo_validate_allowed_only_evict()
959 err = ttm_bo_validate(bo, placement, &ctx_val); in ttm_bo_validate_allowed_only_evict()
989 struct ttm_placement *placement; in ttm_bo_validate_deleted_evict() local
997 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_deleted_evict()
1003 err = ttm_bo_init_reserved(priv->ttm_dev, bo_big, bo_type, placement, in ttm_bo_validate_deleted_evict()
1016 err = ttm_bo_validate(bo_small, placement, &ctx_val); in ttm_bo_validate_deleted_evict()
1037 struct ttm_placement *placement; in ttm_bo_validate_busy_domain_evict() local
1054 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_busy_domain_evict()
1060 err = ttm_bo_init_reserved(priv->ttm_dev, bo_init, bo_type, placement, in ttm_bo_validate_busy_domain_evict()
1070 err = ttm_bo_validate(bo_val, placement, &ctx_val); in ttm_bo_validate_busy_domain_evict()
1091 struct ttm_placement *placement; in ttm_bo_validate_evict_gutting() local
1098 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_validate_evict_gutting()
1104 err = ttm_bo_init_reserved(priv->ttm_dev, bo_evict, bo_type, placement, in ttm_bo_validate_evict_gutting()
1114 err = ttm_bo_validate(bo, placement, &ctx_val); in ttm_bo_validate_evict_gutting()