Home
last modified time | relevance | path

Searched refs:nr_blocks (Results 1 - 13 of 13) sorted by relevance

/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_ump.c24 u32 nr_blocks; in mali_mem_ump_map() local
43 nr_blocks = ump_dd_phys_block_count_get(ump_mem); in mali_mem_ump_map()
44 if (nr_blocks == 0) { in mali_mem_ump_map()
49 ump_blocks = _mali_osk_malloc(sizeof(*ump_blocks) * nr_blocks); in mali_mem_ump_map()
54 if (UMP_DD_INVALID == ump_dd_phys_blocks_get(ump_mem, ump_blocks, nr_blocks)) { in mali_mem_ump_map()
72 for (i = 0; i < nr_blocks; ++i) { in mali_mem_ump_map()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_ump.c25 u32 nr_blocks; in mali_mem_ump_map() local
44 nr_blocks = ump_dd_phys_block_count_get(ump_mem); in mali_mem_ump_map()
45 if (nr_blocks == 0) { in mali_mem_ump_map()
50 ump_blocks = mali_osk_malloc(sizeof(*ump_blocks) * nr_blocks); in mali_mem_ump_map()
55 if (UMP_DD_INVALID == ump_dd_phys_blocks_get(ump_mem, ump_blocks, nr_blocks)) { in mali_mem_ump_map()
73 for (i = 0; i < nr_blocks; ++i) { in mali_mem_ump_map()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/linux/
H A Dump_kernel_memory_backend_os.c121 descriptor->nr_blocks = ((left + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)) >> PAGE_SHIFT; in os_allocate()
123 DBG_MSG(5, ("Allocating page array. Size: %lu\n", descriptor->nr_blocks * sizeof(ump_dd_physical_block))); in os_allocate()
125 descriptor->block_array = (ump_dd_physical_block *)vmalloc(sizeof(ump_dd_physical_block) * descriptor->nr_blocks); in os_allocate()
205 BUG_ON(descriptor->nr_blocks > info->num_pages_allocated); in os_free()
212 DBG_MSG(5, ("Releasing %lu OS pages\n", descriptor->nr_blocks)); in os_free()
214 info->num_pages_allocated -= descriptor->nr_blocks; in os_free()
218 for (i = 0; i < descriptor->nr_blocks; i++) { in os_free()
H A Dump_kernel_memory_backend_dedicated.c154 mem->nr_blocks = ((left + UMP_BLOCK_SIZE - 1) & ~(UMP_BLOCK_SIZE - 1)) / UMP_BLOCK_SIZE; in block_allocator_allocate()
155 mem->block_array = (ump_dd_physical_block *)vmalloc(sizeof(ump_dd_physical_block) * mem->nr_blocks); in block_allocator_allocate()
H A Dump_osk_low_level_mem.c257 mem->secure_id, mem->nr_blocks, mem->size_bytes, size, offset, mem->block_array[0].addr)); in _ump_osk_msync()
262 for (i = 0 ; i < mem->nr_blocks; i++) { in _ump_osk_msync()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/common/
H A Dump_kernel_api.c62 return mem->nr_blocks; in ump_dd_phys_block_count_get()
78 if (mem->nr_blocks != num_blocks) { in ump_dd_phys_blocks_get()
85 _mali_osk_memcpy(blocks, mem->block_array, sizeof(ump_dd_physical_block) * mem->nr_blocks); in ump_dd_phys_blocks_get()
103 if (index >= mem->nr_blocks) { in ump_dd_phys_block_get()
H A Dump_kernel_types.h42 unsigned long nr_blocks; member
H A Dump_kernel_common.c277 mem->nr_blocks)); in _ump_ukk_map_mem()
281 for (block = 0; block < mem->nr_blocks; block++) { in _ump_ukk_map_mem()
H A Dump_kernel_ref_drv.c72 mem->nr_blocks = num_blocks; in ump_dd_handle_create_from_phys_blocks()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/ump/common/
H A Dump_kernel_types.h43 unsigned long nr_blocks; member
/device/soc/rockchip/common/sdk_linux/kernel/power/
H A Dsnapshot.c514 unsigned int i, nr_blocks; in create_zone_bm_rtree() local
527 nr_blocks = DIV_ROUND_UP(pages, BM_BITS_PER_BLOCK); in create_zone_bm_rtree()
529 for (i = 0; i < nr_blocks; i++) { in create_zone_bm_rtree()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
H A Dmali_kbase_vinstr.c280 u32 nr_blocks = fls64(core_mask); in kbase_vinstr_dump_size() local
283 dump_size = (0x2 + nr_l2 + nr_blocks) * NR_CNT_PER_BLOCK * NR_BYTES_PER_CNT; in kbase_vinstr_dump_size()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_vinstr.c308 u32 nr_blocks = fls64(core_mask); in kbase_vinstr_dump_size() local
311 dump_size = (2 + nr_l2 + nr_blocks) * in kbase_vinstr_dump_size()

Completed in 15 milliseconds