Home
last modified time | relevance | path

Searched refs:mem_type (Results 1 – 25 of 156) sorted by relevance

1234567

/drivers/firmware/cirrus/test/
A Dcs_dsp_test_wmfw.c46 int mem_type; member
168 param->mem_type); in wmfw_write_multiple_oneblock_payloads()
187 param->mem_type, in wmfw_write_multiple_oneblock_payloads()
235 param->mem_type); in wmfw_write_multiple_oneblock_payloads_reverse()
254 param->mem_type, in wmfw_write_multiple_oneblock_payloads_reverse()
311 param->mem_type); in wmfw_write_multiple_payloads_sparse_unordered()
331 param->mem_type, in wmfw_write_multiple_payloads_sparse_unordered()
464 int mem_type; in wmfw_write_multiple_unpacked_mem() member
505 payload_defs[i].mem_type, in wmfw_write_multiple_unpacked_mem()
561 int mem_type; in wmfw_write_multiple_packed_unpacked_mem() member
[all …]
A Dcs_dsp_test_control_rw.c169 def.mem_type = param->mem_type; in cs_dsp_ctl_write_running()
240 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_running()
307 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_not_started()
357 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_stopped()
411 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_stopped_powered_down()
468 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
526 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_not_current_running_fw()
586 def.mem_type = param->mem_type; in cs_dsp_ctl_write_volatile_not_started()
643 def.mem_type = param->mem_type; in cs_dsp_ctl_write_volatile_stopped()
704 def.mem_type = param->mem_type; in cs_dsp_ctl_write_volatile_stopped_powered_down()
[all …]
A Dcs_dsp_test_bin.c69 int mem_type; member
129 param->mem_type); in bin_patch_one_word()
134 param->mem_type, in bin_patch_one_word()
178 param->mem_type); in bin_patch_one_multiword()
183 param->mem_type, in bin_patch_one_multiword()
234 param->mem_type, in bin_patch_multi_oneword()
291 param->mem_type, in bin_patch_multi_oneword_unordered()
352 param->mem_type, in bin_patch_multi_oneword_sparse_unordered()
634 param->mem_type, in bin_patch_1_packed()
694 param->mem_type, in bin_patch_1_packed_1_single_trailing()
[all …]
A Dcs_dsp_test_control_cache.c227 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_init()
277 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_init_write_only()
889 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_read_not_started()
950 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_read_stopped()
1016 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_read_powered_down()
1079 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_read_stopped_powered_down()
1147 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_read_not_current_loaded_fw()
1215 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_read_not_current_running_fw()
1287 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_read_running()
1372 def.mem_type = param->mem_type; in cs_dsp_ctl_cache_read_running_zero_flags()
[all …]
A Dcs_dsp_mock_mem_maps.c92 unsigned int cs_dsp_mock_size_of_region(const struct cs_dsp *dsp, int mem_type) in cs_dsp_mock_size_of_region() argument
107 if (dsp->mem[i].type == mem_type) in cs_dsp_mock_size_of_region()
130 if (region[i].type == mem_type) in cs_dsp_mock_base_addr_for_mem()
134 KUNIT_FAIL(priv->test, "Unexpected region %d\n", mem_type); in cs_dsp_mock_base_addr_for_mem()
178 switch (mem_type) { in cs_dsp_mock_reg_block_length_bytes()
190 switch (mem_type) { in cs_dsp_mock_reg_block_length_bytes()
227 return cs_dsp_mock_reg_block_length_bytes(priv, mem_type) / in cs_dsp_mock_reg_block_length_registers()
245 switch (mem_type) { in cs_dsp_mock_reg_block_length_dsp_words()
257 switch (mem_type) { in cs_dsp_mock_reg_block_length_dsp_words()
398 int mem_type) in cs_dsp_mock_xm_header_get_alg_base_in_words() argument
[all …]
/drivers/gpu/drm/ttm/tests/
A Dttm_resource_test.c14 u32 mem_type; member
50 u32 mem_type, u32 flags) in ttm_init_test_mocks() argument
63 u32 mem_type) in ttm_init_test_manager() argument
83 .mem_type = TTM_PL_SYSTEM,
87 .mem_type = TTM_PL_VRAM,
91 .mem_type = TTM_PRIV_DUMMY_REG,
95 .mem_type = TTM_PL_SYSTEM,
136 KUNIT_ASSERT_EQ(test, res->mem_type, place->mem_type); in ttm_resource_init_basic()
271 u32 mem_type = TTM_PL_SYSTEM; in ttm_sys_man_alloc_basic() local
283 KUNIT_ASSERT_EQ(test, res->mem_type, mem_type); in ttm_sys_man_alloc_basic()
[all …]
A Dttm_bo_validate_test.c23 u32 mem_type; member
158 u32 mem_type = TTM_PL_VRAM; in ttm_bo_init_reserved_mock_man() local
305 u32 mem_type = TTM_PL_VRAM; in ttm_bo_validate_failed_alloc() local
366 .mem_type = TTM_PL_VRAM,
668 KUNIT_EXPECT_EQ(test, bo->resource->mem_type, mem_type); in ttm_bo_validate_move_fence_signaled()
807 KUNIT_EXPECT_EQ(test, bos[1].resource->mem_type, mem_type); in ttm_bo_validate_happy_evict()
914 KUNIT_EXPECT_EQ(test, bo->resource->mem_type, mem_type); in ttm_bo_validate_allowed_only_evict()
915 KUNIT_EXPECT_EQ(test, bo_pinned->resource->mem_type, mem_type); in ttm_bo_validate_allowed_only_evict()
971 KUNIT_EXPECT_EQ(test, bo_small->resource->mem_type, mem_type); in ttm_bo_validate_deleted_evict()
1025 KUNIT_EXPECT_EQ(test, bo_init->resource->mem_type, mem_type); in ttm_bo_validate_busy_domain_evict()
[all …]
A Dttm_kunit_helpers.c15 .mem_type = TTM_PL_SYSTEM,
22 .mem_type = TTM_PL_MOCK1,
29 .mem_type = TTM_PL_MOCK2,
76 new_mem->mem_type == TTM_PL_SYSTEM) { in mock_move()
77 hop->mem_type = TTM_PL_TT; in mock_move()
84 if ((old_mem->mem_type == TTM_PL_SYSTEM && in mock_move()
85 new_mem->mem_type == TTM_PL_TT) || in mock_move()
86 (old_mem->mem_type == TTM_PL_TT && in mock_move()
87 new_mem->mem_type == TTM_PL_SYSTEM)) { in mock_move()
98 switch (bo->resource->mem_type) { in mock_evict_flags()
[all …]
A Dttm_mock_manager.c96 int ttm_mock_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size) in ttm_mock_manager_init() argument
121 ttm_set_driver_manager(bdev, mem_type, base); in ttm_mock_manager_init()
128 void ttm_mock_manager_fini(struct ttm_device *bdev, u32 mem_type) in ttm_mock_manager_fini() argument
134 man = ttm_manager_type(bdev, mem_type); in ttm_mock_manager_fini()
147 ttm_set_driver_manager(bdev, mem_type, NULL); in ttm_mock_manager_fini()
203 ttm_set_driver_manager(bdev, mem_type, man); in ttm_bad_manager_init()
214 ttm_bad_manager_init(bdev, mem_type, size); in ttm_busy_manager_init()
215 man = ttm_manager_type(bdev, mem_type); in ttm_busy_manager_init()
223 void ttm_bad_manager_fini(struct ttm_device *bdev, uint32_t mem_type) in ttm_bad_manager_fini() argument
227 man = ttm_manager_type(bdev, mem_type); in ttm_bad_manager_fini()
[all …]
A Dttm_mock_manager.h24 int ttm_mock_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size);
25 int ttm_bad_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size);
26 int ttm_busy_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size);
27 void ttm_mock_manager_fini(struct ttm_device *bdev, u32 mem_type);
28 void ttm_bad_manager_fini(struct ttm_device *bdev, u32 mem_type);
A Dttm_bo_test.c246 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_unreserve_basic() local
249 place = ttm_place_kunit_init(test, mem_type, 0); in ttm_bo_unreserve_basic()
272 man = ttm_manager_type(priv->ttm_dev, mem_type); in ttm_bo_unreserve_basic()
287 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_unreserve_pinned() local
298 place = ttm_place_kunit_init(test, mem_type, 0); in ttm_bo_unreserve_pinned()
331 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_unreserve_bulk() local
337 place = ttm_place_kunit_init(test, mem_type, 0); in ttm_bo_unreserve_bulk()
373 pos = &lru_bulk_move.pos[mem_type][bo_priority]; in ttm_bo_unreserve_bulk()
389 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_put_basic() local
504 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_pin_unpin_resource() local
[all …]
/drivers/gpu/drm/xe/
A Dxe_drm_client.c171 u32 mem_type = bo->ttm.resource->mem_type; in bo_meminfo() local
176 stats[mem_type].shared += sz; in bo_meminfo()
178 stats[mem_type].private += sz; in bo_meminfo()
181 stats[mem_type].resident += sz; in bo_meminfo()
185 stats[mem_type].active += sz; in bo_meminfo()
186 else if (mem_type == XE_PL_SYSTEM) in bo_meminfo()
187 stats[mem_type].purgeable += sz; in bo_meminfo()
202 u32 mem_type; in show_meminfo() local
255 for (mem_type = XE_PL_SYSTEM; mem_type < TTM_NUM_MEM_TYPES; ++mem_type) { in show_meminfo()
256 if (!xe_mem_type_to_name[mem_type]) in show_meminfo()
[all …]
A Dxe_bo_evict.c109 u32 mem_type; in xe_bo_evict_all_user() local
113 for (mem_type = XE_PL_TT; mem_type <= XE_PL_VRAM1; ++mem_type) { in xe_bo_evict_all_user()
115 ttm_manager_type(bdev, mem_type); in xe_bo_evict_all_user()
125 if (mem_type == XE_PL_TT && (IS_DGFX(xe) || !xe_device_has_flat_ccs(xe))) in xe_bo_evict_all_user()
299 unsigned int mem_type; in xe_bo_pci_dev_remove_all() local
305 for (mem_type = XE_PL_VRAM1; mem_type >= XE_PL_TT; --mem_type) { in xe_bo_pci_dev_remove_all()
307 ttm_manager_type(&xe->ttm, mem_type); in xe_bo_pci_dev_remove_all()
A Dxe_bo.c51 .mem_type = XE_PL_SYSTEM,
66 .mem_type = XE_PL_TT,
84 return mem_type >= XE_PL_VRAM0 && mem_type != XE_PL_STOLEN; in mem_type_is_vram()
163 xe_assert(xe, mem_type == XE_PL_STOLEN || mem_type_is_vram(mem_type)); in mem_type_to_migrate()
164 tile = &xe->tiles[mem_type == XE_PL_STOLEN ? 0 : (mem_type - XE_PL_VRAM0)]; in mem_type_to_migrate()
188 .mem_type = XE_PL_TT, in try_add_system()
213 struct ttm_place place = { .mem_type = mem_type }; in add_vram()
1061 struct ttm_place place = {.mem_type = bo->resource->mem_type}; in xe_bo_shrink()
2874 if (bo->placements[cur_place].mem_type == mem_type) in xe_bo_can_migrate()
2884 place->mem_type = mem_type; in xe_place_from_ttm_type()
[all …]
A Dxe_res_cursor.h55 u32 mem_type; member
76 mgr = ttm_manager_type(res->bo->bdev, res->mem_type); in xe_res_get_buddy()
101 cur->mem_type = res->mem_type; in xe_res_first()
103 switch (cur->mem_type) { in xe_res_first()
147 cur->mem_type = XE_PL_TT; in xe_res_first()
218 cur->mem_type = XE_PL_TT; in xe_res_first_sg()
249 cur->mem_type = XE_PL_TT; in xe_res_first_dma()
290 switch (cur->mem_type) { in xe_res_next()
345 switch (cur->mem_type) { in xe_res_is_vram()
/drivers/gpu/drm/nouveau/nvkm/falcon/
A Dbase.c47 switch (*mem_type) { in nvkm_falcon_dma()
57 enum nvkm_falcon_mem mem_type, u32 mem_base, int len, bool sec) in nvkm_falcon_dma_wr() argument
59 const struct nvkm_falcon_func_dma *dma = nvkm_falcon_dma(falcon, &mem_type, &mem_base); in nvkm_falcon_dma_wr()
60 const char *type = nvkm_falcon_mem(mem_type); in nvkm_falcon_dma_wr()
69 if (mem_type == DMEM) { in nvkm_falcon_dma_wr()
79 ret = dma->init(falcon, dma_addr, dmalen, mem_type, sec, &cmd); in nvkm_falcon_dma_wr()
123 switch (*mem_type) { in nvkm_falcon_pio()
144 const char *type = nvkm_falcon_mem(mem_type); in nvkm_falcon_pio_rd()
176 enum nvkm_falcon_mem mem_type, u32 mem_base, int len, u16 tag, bool sec) in nvkm_falcon_pio_wr() argument
179 const char *type = nvkm_falcon_mem(mem_type); in nvkm_falcon_pio_wr()
[all …]
/drivers/gpu/drm/loongson/
A Dlsdc_ttm.c17 switch (mem_type) { in lsdc_mem_type_to_str()
59 lbo->placements[c].mem_type = TTM_PL_VRAM; in lsdc_bo_set_placement()
64 lbo->placements[c].mem_type = TTM_PL_TT; in lsdc_bo_set_placement()
145 switch (resource->mem_type) { in lsdc_bo_evict_flags()
193 if (old_mem->mem_type == TTM_PL_SYSTEM && in lsdc_bo_move()
194 new_mem->mem_type == TTM_PL_TT) { in lsdc_bo_move()
201 if (old_mem->mem_type == TTM_PL_TT && in lsdc_bo_move()
202 new_mem->mem_type == TTM_PL_SYSTEM) { in lsdc_bo_move()
212 lsdc_mem_type_to_str(old_mem->mem_type), in lsdc_bo_move()
213 lsdc_mem_type_to_str(new_mem->mem_type), in lsdc_bo_move()
[all …]
/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_ttm_buffer.c35 .mem_type = TTM_PL_VRAM,
42 .mem_type = TTM_PL_SYSTEM,
291 vmw_be->mem_type = bo_mem->mem_type; in vmw_ttm_bind()
293 switch (bo_mem->mem_type) { in vmw_ttm_bind()
329 switch (vmw_be->mem_type) { in vmw_ttm_unbind()
442 switch (mem->mem_type) { in vmw_ttm_io_mem_reserve()
491 static bool vmw_memtype_is_system(uint32_t mem_type) in vmw_memtype_is_system() argument
493 return mem_type == TTM_PL_SYSTEM || mem_type == VMW_PL_SYSTEM; in vmw_memtype_is_system()
506 new_man = ttm_manager_type(bo->bdev, new_mem->mem_type); in vmw_move()
508 old_man = ttm_manager_type(bo->bdev, bo->resource->mem_type); in vmw_move()
[all …]
A Dvmwgfx_bo.c217 if (bo->resource->mem_type == TTM_PL_VRAM && in vmw_bo_pin_in_start_of_vram()
319 pl.mem_type = bo->resource->mem_type; in vmw_bo_pin_reserved()
731 if (mem->mem_type == TTM_PL_VRAM || bo->resource->mem_type == TTM_PL_VRAM) in vmw_bo_move_notify()
739 if (mem->mem_type != VMW_PL_MOB && bo->resource->mem_type == VMW_PL_MOB) in vmw_bo_move_notify()
764 pl[n].mem_type = VMW_PL_MOB; in set_placement_list()
772 pl[n].mem_type = VMW_PL_GMR; in set_placement_list()
780 pl[n].mem_type = TTM_PL_VRAM; in set_placement_list()
788 pl[n].mem_type = VMW_PL_SYSTEM; in set_placement_list()
796 pl[n].mem_type = TTM_PL_SYSTEM; in set_placement_list()
806 pl[n].mem_type = TTM_PL_SYSTEM; in set_placement_list()
[all …]
/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ttm.c98 .mem_type = TTM_PL_SYSTEM, in amdgpu_evict_flags()
121 switch (bo->resource->mem_type) { in amdgpu_evict_flags()
250 if (mem->mem_type == TTM_PL_TT) { in amdgpu_ttm_map_buffer()
449 if (res->mem_type == TTM_PL_SYSTEM || res->mem_type == TTM_PL_TT || in amdgpu_res_cpu_visible()
450 res->mem_type == AMDGPU_PL_PREEMPT || res->mem_type == AMDGPU_PL_DOORBELL) in amdgpu_res_cpu_visible()
453 if (res->mem_type != TTM_PL_VRAM) in amdgpu_res_cpu_visible()
478 if (mem->mem_type == TTM_PL_VRAM && in amdgpu_res_copyable()
567 hop->mem_type = TTM_PL_TT; in amdgpu_bo_move()
608 switch (mem->mem_type) { in amdgpu_ttm_io_mem_reserve()
1011 placements.mem_type = TTM_PL_TT; in amdgpu_ttm_alloc_gart()
[all …]
A Damdgpu_object.c133 places[c].mem_type = TTM_PL_VRAM; in amdgpu_bo_placement_from_domain()
151 places[c].mem_type = AMDGPU_PL_DOORBELL; in amdgpu_bo_placement_from_domain()
159 places[c].mem_type = in amdgpu_bo_placement_from_domain()
176 places[c].mem_type = TTM_PL_SYSTEM; in amdgpu_bo_placement_from_domain()
184 places[c].mem_type = AMDGPU_PL_GDS; in amdgpu_bo_placement_from_domain()
192 places[c].mem_type = AMDGPU_PL_GWS; in amdgpu_bo_placement_from_domain()
200 places[c].mem_type = AMDGPU_PL_OA; in amdgpu_bo_placement_from_domain()
208 places[c].mem_type = TTM_PL_SYSTEM; in amdgpu_bo_placement_from_domain()
947 uint32_t mem_type = bo->tbo.resource->mem_type; in amdgpu_bo_pin() local
953 if ((mem_type == TTM_PL_VRAM) && in amdgpu_bo_pin()
[all …]
A Damdgpu_atomfirmware.c309 u8 mem_type; in amdgpu_atomfirmware_get_vram_info() local
342 mem_type = igp_info->v11.memorytype; in amdgpu_atomfirmware_get_vram_info()
343 if (mem_type == LpDdr5MemType) in amdgpu_atomfirmware_get_vram_info()
363 mem_type = igp_info->v21.memorytype; in amdgpu_atomfirmware_get_vram_info()
364 if (mem_type == LpDdr5MemType) in amdgpu_atomfirmware_get_vram_info()
377 mem_type = igp_info->v23.memorytype; in amdgpu_atomfirmware_get_vram_info()
378 if (mem_type == LpDdr5MemType) in amdgpu_atomfirmware_get_vram_info()
433 mem_type = vram_info->v30.memory_type; in amdgpu_atomfirmware_get_vram_info()
456 mem_type = vram_module->v9.memory_type; in amdgpu_atomfirmware_get_vram_info()
477 mem_type = vram_module->v10.memory_type; in amdgpu_atomfirmware_get_vram_info()
[all …]
A Damdgpu_res_cursor.h41 uint32_t mem_type; member
67 cur->mem_type = res->mem_type; in amdgpu_res_first()
69 switch (cur->mem_type) { in amdgpu_res_first()
143 switch (cur->mem_type) { in amdgpu_res_next()
178 switch (cur->mem_type) { in amdgpu_res_cleared()
/drivers/gpu/drm/ttm/
A Dttm_bo.c57 int i, mem_type; in ttm_bo_mem_space_debug() local
60 mem_type = placement->placement[i].mem_type; in ttm_bo_mem_space_debug()
62 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug()
63 man = ttm_manager_type(bo->bdev, mem_type); in ttm_bo_mem_space_debug()
144 if (mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_handle_move_mem()
428 if (bo->resource->mem_type == TTM_PL_SYSTEM) in ttm_bo_eviction_valuable()
452 unsigned int mem_type; in ttm_bo_evict_first() local
466 mem_type = res->mem_type; in ttm_bo_evict_first()
471 if (!bo->resource || bo->resource->mem_type != mem_type) in ttm_bo_evict_first()
1108 struct ttm_place place = {.mem_type = bo->resource->mem_type}; in ttm_bo_swapout_cb()
[all …]
/drivers/gpu/drm/radeon/
A Dradeon_ttm.c88 .mem_type = TTM_PL_SYSTEM, in radeon_evict_flags()
100 switch (bo->resource->mem_type) { in radeon_evict_flags()
149 switch (old_mem->mem_type) { in radeon_move_blit()
160 switch (new_mem->mem_type) { in radeon_move_blit()
197 if (new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
213 if (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
214 new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
219 if (old_mem->mem_type == TTM_PL_TT && in radeon_bo_move()
220 new_mem->mem_type == TTM_PL_SYSTEM) { in radeon_bo_move()
233 hop->mem_type = TTM_PL_TT; in radeon_bo_move()
[all …]

Completed in 806 milliseconds

1234567