Searched refs:os_mem (Results 1 – 7 of 7) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/ |
| H A D | mali_memory_os_alloc.c | 153 int mali_mem_os_alloc_pages(mali_mem_os_mem *os_mem, u32 size) in mali_mem_os_alloc_pages() argument 162 MALI_DEBUG_ASSERT_POINTER(os_mem); in mali_mem_os_alloc_pages() 172 INIT_LIST_HEAD(&os_mem->pages); in mali_mem_os_alloc_pages() 173 os_mem->count = page_count; in mali_mem_os_alloc_pages() 194 list_move_tail(&m_page->list, &os_mem->pages); in mali_mem_os_alloc_pages() 224 os_mem->count = (page_count - remaining) + i; in mali_mem_os_alloc_pages() 225 atomic_add(os_mem->count, &mali_mem_os_allocator.allocated_pages); in mali_mem_os_alloc_pages() 226 mali_mem_os_free(&os_mem->pages, os_mem->count, MALI_FALSE); in mali_mem_os_alloc_pages() 243 os_mem->count = (page_count - remaining) + i; in mali_mem_os_alloc_pages() 244 atomic_add(os_mem->count, &mali_mem_os_allocator.allocated_pages); in mali_mem_os_alloc_pages() [all …]
|
| H A D | mali_memory_defer_bind.c | 69 mali_mem_os_mem os_mem; in mali_mem_defer_alloc_mem() local 71 retval = mali_mem_os_alloc_pages(&os_mem, num_pages * _MALI_OSK_MALI_PAGE_SIZE); in mali_mem_defer_alloc_mem() 76 list_splice(&os_mem.pages, &dblock->free_pages); in mali_mem_defer_alloc_mem() 77 atomic_add(os_mem.count, &dblock->num_free_pages); in mali_mem_defer_alloc_mem() 78 atomic_add(os_mem.count, &session->mali_mem_allocated_pages); in mali_mem_defer_alloc_mem() 130 if (mem_bkend->os_mem.count > 0) { in mali_mem_defer_bind_allocation_prepare() 137 INIT_LIST_HEAD(&mem_bkend->os_mem.pages); in mali_mem_defer_bind_allocation_prepare() 164 list_splice(pages, &mem_bkend->os_mem.pages); in mali_mem_defer_bind_allocation() 165 mem_bkend->os_mem.count = bk_node->page_num; in mali_mem_defer_bind_allocation() 168 mali_mem_os_mali_map(&mem_bkend->os_mem, session, bk_node->vaddr, 0, in mali_mem_defer_bind_allocation() [all …]
|
| H A D | mali_memory_manager.c | 250 ret = mali_mem_os_resize_pages(&tmp_os_mem, &mem_backend->os_mem, 0, tmp_os_mem.count); in mali_mem_resize() 275 …ret = mali_mem_os_mali_map(&mem_backend->os_mem, session, mali_allocation->mali_vma_node.vm_node.s… in mali_mem_resize() 296 …ret = mali_mem_os_resize_pages(&mem_backend->os_mem, &tmp_os_mem, physical_size / MALI_MMU_PAGE_SI… in mali_mem_resize() 340 …mali_mem_os_resize_pages(&mem_backend->os_mem, &tmp_os_mem, mem_backend->size / MALI_MMU_PAGE_SIZE, in mali_mem_resize() 343 mali_mem_os_resize_pages(&tmp_os_mem, &mem_backend->os_mem, 0, tmp_os_mem.count); in mali_mem_resize() 487 mem_backend->os_mem.count = 0; in _mali_ukk_mem_allocate() 488 INIT_LIST_HEAD(&mem_backend->os_mem.pages); in _mali_ukk_mem_allocate() 496 mem_backend->os_mem.count = 0; in _mali_ukk_mem_allocate() 497 INIT_LIST_HEAD(&mem_backend->os_mem.pages); in _mali_ukk_mem_allocate() 522 retval = mali_mem_os_alloc_pages(&mem_backend->os_mem, mem_backend->size); in _mali_ukk_mem_allocate() [all …]
|
| H A D | mali_memory_os_alloc.h | 38 int mali_mem_os_alloc_pages(mali_mem_os_mem *os_mem, u32 size); 46 _mali_osk_errcode_t mali_mem_os_mali_map(mali_mem_os_mem *os_mem, struct mali_session_data *session…
|
| H A D | mali_memory_cow.c | 38 mali_mem_os_mem os_mem; in mali_mem_cow_alloc_page() local 44 ret = mali_mem_os_alloc_pages(&os_mem, _MALI_OSK_MALI_PAGE_SIZE); in mali_mem_cow_alloc_page() 50 MALI_DEBUG_ASSERT(1 == os_mem.count); in mali_mem_cow_alloc_page() 52 node = _MALI_OSK_CONTAINER_OF(os_mem.pages.next, struct mali_page_node, list); in mali_mem_cow_alloc_page() 70 MALI_DEBUG_ASSERT(&target_bk->os_mem); in _mali_memory_cow_get_node_list() 71 …MALI_DEBUG_ASSERT(((target_size + target_offset) / _MALI_OSK_MALI_PAGE_SIZE) <= target_bk->os_mem.… in _mali_memory_cow_get_node_list() 72 return &target_bk->os_mem.pages; in _mali_memory_cow_get_node_list()
|
| H A D | mali_memory_types.h | 198 mali_mem_os_mem os_mem; /**< MALI_MEM_OS */ member
|
| /OK3568_Linux_fs/external/mpp/osal/ |
| H A D | CMakeLists.txt | 59 android/os_mem.c 63 linux/os_mem.c 67 windows/os_mem.c
|