Lines Matching refs:memory_pool
845 struct smu_table *memory_pool = &smu_table->memory_pool; in smu_alloc_memory_pool() local
852 memory_pool->size = pool_size; in smu_alloc_memory_pool()
853 memory_pool->align = PAGE_SIZE; in smu_alloc_memory_pool()
854 memory_pool->domain = AMDGPU_GEM_DOMAIN_GTT; in smu_alloc_memory_pool()
862 memory_pool->size, in smu_alloc_memory_pool()
863 memory_pool->align, in smu_alloc_memory_pool()
864 memory_pool->domain, in smu_alloc_memory_pool()
865 &memory_pool->bo, in smu_alloc_memory_pool()
866 &memory_pool->mc_address, in smu_alloc_memory_pool()
867 &memory_pool->cpu_addr); in smu_alloc_memory_pool()
881 struct smu_table *memory_pool = &smu_table->memory_pool; in smu_free_memory_pool() local
883 if (memory_pool->size == SMU_MEMORY_POOL_SIZE_ZERO) in smu_free_memory_pool()
886 amdgpu_bo_free_kernel(&memory_pool->bo, in smu_free_memory_pool()
887 &memory_pool->mc_address, in smu_free_memory_pool()
888 &memory_pool->cpu_addr); in smu_free_memory_pool()
890 memset(memory_pool, 0, sizeof(struct smu_table)); in smu_free_memory_pool()
2966 struct smu_table *memory_pool = &smu_table->memory_pool; in smu_get_prv_buffer_details() local
2973 if (memory_pool->bo) { in smu_get_prv_buffer_details()
2974 *addr = memory_pool->cpu_addr; in smu_get_prv_buffer_details()
2975 *size = memory_pool->size; in smu_get_prv_buffer_details()