/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/ |
H A D | mali_kbase_csf_heap_context_alloc.c | 28 /* Total size of the GPU memory region allocated for heap contexts, in bytes. */ 32 * sub_alloc - Sub-allocate a heap context from a GPU memory region 82 * sub_free - Free a heap context sub-allocated from a GPU memory region 96 if (WARN_ON(!ctx_alloc->region)) in sub_free() 123 ctx_alloc->region = NULL; in kbase_csf_heap_context_allocator_init() 143 if (ctx_alloc->region) { in kbase_csf_heap_context_allocator_term() 145 ctx_alloc->region->flags &= ~KBASE_REG_NO_USER_FREE; in kbase_csf_heap_context_allocator_term() 146 kbase_mem_free_region(kctx, ctx_alloc->region); in kbase_csf_heap_context_allocator_term() 176 if (!ctx_alloc->region) { in kbase_csf_heap_context_allocator_alloc() 177 ctx_alloc->region in kbase_csf_heap_context_allocator_alloc() [all...] |
H A D | mali_kbase_csf_tiler_heap.c | 84 * in the header of the preceding chunk. This requires the GPU memory region 207 chunk->region = kbase_mem_alloc(kctx, nr_pages, nr_pages, 0, &flags, in create_chunk() 210 if (unlikely(!chunk->region)) { in create_chunk() 218 chunk->region->flags &= ~KBASE_REG_NO_USER_FREE; in create_chunk() 219 kbase_mem_free_region(kctx, chunk->region); in create_chunk() 256 chunk->region->flags &= ~KBASE_REG_NO_USER_FREE; in delete_chunk() 257 kbase_mem_free_region(kctx, chunk->region); in delete_chunk()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/mmu/ |
H A D | mali_kbase_mmu.c | 140 * before all accesses which might effect the flushed region have completed. 142 * If sync is set then accesses in the flushed region will be drained 170 * @handle: Address of DMA region. 171 * @size: Size of the region to sync. 226 * a region on a GPU page fault 228 * @reg: The region that will be backed with more pages 229 * @fault_rel_pfn: PFN of the fault relative to the start of the region 231 * This calculates how much to increase the backing of a region by, based on 232 * where a GPU page fault occurred and the flags in the region. 236 * interrupts on a region, o 344 struct kbase_va_region *region; kbase_gpu_mmu_handle_write_fault() local 470 page_fault_try_alloc(struct kbase_context *kctx, struct kbase_va_region *region, size_t new_pages, int *pages_to_grow, bool *grow_2mb_pool, struct kbase_sub_alloc **prealloc_sas) page_fault_try_alloc() argument 668 struct kbase_va_region *region; kbase_mmu_page_fault_worker() local [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/mmu/ |
H A D | mali_kbase_mmu.c | 64 * before all accesses which might effect the flushed region have completed. 66 * If sync is set then accesses in the flushed region will be drained 87 * @handle: Address of DMA region. 88 * @size: Size of the region to sync. 117 * a region on a GPU page fault 119 * @reg: The region that will be backed with more pages 120 * @fault_rel_pfn: PFN of the fault relative to the start of the region 122 * This calculates how much to increase the backing of a region by, based on 123 * where a GPU page fault occurred and the flags in the region. 127 * interrupts on a region, o 209 struct kbase_va_region *region; kbase_gpu_mmu_handle_write_fault() local 330 page_fault_try_alloc(struct kbase_context *kctx, struct kbase_va_region *region, size_t new_pages, int *pages_to_grow, bool *grow_2mb_pool, struct kbase_sub_alloc **prealloc_sas) page_fault_try_alloc() argument 522 struct kbase_va_region *region; kbase_mmu_page_fault_worker() local [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_10969_workaround.c | 47 struct kbase_va_region *region;
in kbasep_10969_workaround_clamp_coordinates() local 66 region = kbase_region_tracker_find_region_enclosing_address(katom->kctx, katom->jc);
in kbasep_10969_workaround_clamp_coordinates() 67 if (!region || (region->flags & KBASE_REG_FREE)) {
in kbasep_10969_workaround_clamp_coordinates() 71 page_array = kbase_get_cpu_phy_pages(region);
in kbasep_10969_workaround_clamp_coordinates() 76 page_index = (katom->jc >> PAGE_SHIFT) - region->start_pfn;
in kbasep_10969_workaround_clamp_coordinates()
|
H A D | mali_kbase_mmu.c | 65 * before all accesses which might effect the flushed region have completed.
67 * If sync is set then accesses in the flushed region will be drained
76 * @handle: Address of DMA region.
77 * @size: Size of the region to sync.
124 struct kbase_va_region *region;
in page_fault_worker() local 155 /* need to check against the region to handle this one */
in page_fault_worker() 196 region = kbase_region_tracker_find_region_enclosing_address(kctx, faulting_as->fault_addr);
in page_fault_worker() 197 if (!region || (region->flags & KBASE_REG_FREE)) {
in page_fault_worker() 203 if (region in page_fault_worker() [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_10969_workaround.c | 48 struct kbase_va_region *region; in kbasep_10969_workaround_clamp_coordinates() local 66 region = kbase_region_tracker_find_region_enclosing_address(katom->kctx, in kbasep_10969_workaround_clamp_coordinates() 68 if (!region || (region->flags & KBASE_REG_FREE)) in kbasep_10969_workaround_clamp_coordinates() 71 page_array = kbase_get_cpu_phy_pages(region); in kbasep_10969_workaround_clamp_coordinates() 75 page_index = (katom->jc >> PAGE_SHIFT) - region->start_pfn; in kbasep_10969_workaround_clamp_coordinates()
|
H A D | mali_kbase_mmu.c | 60 * before all accesses which might effect the flushed region have completed. 62 * If sync is set then accesses in the flushed region will be drained 72 * @handle: Address of DMA region. 73 * @size: Size of the region to sync. 122 struct kbase_va_region *region; in page_fault_worker() local 157 /* need to check against the region to handle this one */ in page_fault_worker() 203 region = kbase_region_tracker_find_region_enclosing_address(kctx, in page_fault_worker() 205 if (!region || region->flags & KBASE_REG_FREE) { in page_fault_worker() 212 if (region in page_fault_worker() [all...] |
/device/soc/hisilicon/common/hal/display/source/display_device/src/core/ |
H A D | hdi_layer.cpp | 135 int32_t HdiLayer::SetLayerDirtyRegion(IRect *region)
in SetLayerDirtyRegion() argument 137 DISPLAY_CHK_RETURN((region == nullptr), DISPLAY_FAILURE, DISPLAY_LOGE("the in rect is null"));
in SetLayerDirtyRegion() 139 region->x, region->y, region->w, region->h);
in SetLayerDirtyRegion()
|
/device/soc/rockchip/common/hardware/display/src/display_device/ |
H A D | hdi_layer.cpp | 137 int32_t HdiLayer::SetLayerDirtyRegion(IRect *region) in SetLayerDirtyRegion() argument 139 DISPLAY_CHK_RETURN((region == nullptr), DISPLAY_FAILURE, DISPLAY_LOGE("the in rect is null")); in SetLayerDirtyRegion() 142 region->x, region->y, region->w, region->h); in SetLayerDirtyRegion()
|
/device/soc/rockchip/rk3399/hardware/display/src/display_device/ |
H A D | hdi_layer.cpp | 136 int32_t HdiLayer::SetLayerDirtyRegion(IRect *region) in SetLayerDirtyRegion() argument 138 DISPLAY_CHK_RETURN((region == nullptr), DISPLAY_FAILURE, DISPLAY_LOGE("the in rect is null")); in SetLayerDirtyRegion() 140 region->x, region->y, region->w, region->h); in SetLayerDirtyRegion()
|
/device/soc/rockchip/rk3588/hardware/mpp/src/ |
H A D | mpi_enc_utils.c | 570 RoiRegionCfg *region = &p->roi_region; in hal_mpp_encode() local 573 region->x = MPP_ALIGN(p->width / 8, 16); in hal_mpp_encode() 574 region->y = MPP_ALIGN(p->height / 8, 16); in hal_mpp_encode() 575 region->w = 128; in hal_mpp_encode() 576 region->h = 256; in hal_mpp_encode() 577 region->force_intra = 0; in hal_mpp_encode() 578 region->qp_mode = 1; in hal_mpp_encode() 579 region->qp_val = 24; in hal_mpp_encode() 581 mpp_enc_roi_add_region(p->roi_ctx, region); in hal_mpp_encode() 583 region in hal_mpp_encode() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/ |
H A D | Makefile | 20 .PHONY:clean all base sys vi mcf vo vo_dev vpss avs chnl region vgs gdc venc vedu vdec vfmw jpegd dis isp audio audio_bin 26 HI_COMM_INC_FILE += $(CBB_ROOT)/region/include/hi_comm_region.h 78 region: 79 @cd region && make 132 @cd region && make clean
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem.h | 69 struct kbase_va_region *region; member 102 * is not shared with another region or client. CPU mappings are OK to 113 * @reg: Back reference to the region structure which created this 250 * A GPU memory region, and attributes for CPU mappings. 258 * @nr_pages: The size of the region in pages. 261 * @threshold_pages: If non-zero and the amount of memory committed to a region 265 * @cpu_alloc: The physical memory we mmap to the CPU when mapping this region. 266 * @gpu_alloc: The physical memory we mmap to the GPU when mapping this region. 268 * @jit_usage_id: The last just-in-time memory usage ID for this region. 269 * @jit_bin_id: The just-in-time memory bin this region cam 488 kbase_va_region_alloc_get(struct kbase_context *kctx, struct kbase_va_region *region) kbase_va_region_alloc_get() argument 502 kbase_va_region_alloc_put(struct kbase_context *kctx, struct kbase_va_region *region) kbase_va_region_alloc_put() argument [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_mem.h | 70 struct kbase_va_region *region; member 102 * is not shared with another region or client. CPU mappings are OK to 119 * @reg: Back reference to the region structure which created this 228 * counter for a memory region to prevent commit and flag changes 240 * counter for a memory region to allow commit and flag changes 282 * struct kbase_va_region - A GPU memory region, and attributes for CPU mappings 290 * @user_data: The address of GPU command queue when VA region represents 292 * @nr_pages: The size of the region in pages. 295 * @threshold_pages: If non-zero and the amount of memory committed to a region 300 * @cpu_alloc: The physical memory we mmap to the CPU when mapping this region 565 kbase_va_region_alloc_get( struct kbase_context *kctx, struct kbase_va_region *region) kbase_va_region_alloc_get() argument 580 kbase_va_region_alloc_put( struct kbase_context *kctx, struct kbase_va_region *region) kbase_va_region_alloc_put() argument [all...] |
/device/qemu/drivers/virtio/ |
H A D | virtgpu.c | 726 static ssize_t FbMmap(struct fb_vtable_s *vtable, LosVmMapRegion *region) in FbMmap() argument 731 if ((region->range.size + (region->pgOff << PAGE_SHIFT)) > VirtgpuFbPageSize()) { in FbMmap() 735 if (region->regionFlags & VM_MAP_REGION_FLAG_PERM_EXECUTE) { in FbMmap() 740 region->regionFlags |= VM_MAP_REGION_FLAG_UNCACHED; in FbMmap() 741 n = LOS_ArchMmuMap(®ion->space->archMmu, region->range.base, in FbMmap() 742 VMM_TO_DMA_ADDR((VADDR_T)g_virtGpu->fb + (region->pgOff << PAGE_SHIFT)), in FbMmap() 743 region->range.size >> PAGE_SHIFT, region in FbMmap() [all...] |
/device/soc/rockchip/rk3566/hardware/display/src/display_device/ |
H A D | hdi_layer.cpp | 147 int32_t HdiLayer::SetLayerDirtyRegion(IRect *region) in SetLayerDirtyRegion() argument 149 DISPLAY_CHK_RETURN((region == nullptr), DISPLAY_FAILURE, DISPLAY_LOGE("the in rect is null")); in SetLayerDirtyRegion() 151 region->x, region->y, region->w, region->h); in SetLayerDirtyRegion()
|
/device/soc/rockchip/rk3568/hardware/display/src/display_device/ |
H A D | hdi_layer.cpp | 147 int32_t HdiLayer::SetLayerDirtyRegion(IRect *region) in SetLayerDirtyRegion() argument 149 DISPLAY_CHK_RETURN((region == nullptr), DISPLAY_FAILURE, DISPLAY_LOGE("the in rect is null")); in SetLayerDirtyRegion() 151 region->x, region->y, region->w, region->h); in SetLayerDirtyRegion()
|
/device/soc/rockchip/rk3588/hardware/display/src/display_device/ |
H A D | hdi_layer.cpp | 147 int32_t HdiLayer::SetLayerDirtyRegion(IRect *region)
in SetLayerDirtyRegion() argument 149 DISPLAY_CHK_RETURN((region == nullptr), DISPLAY_FAILURE, DISPLAY_LOGE("the in rect is null"));
in SetLayerDirtyRegion() 151 region->x, region->y, region->w, region->h);
in SetLayerDirtyRegion()
|
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | memblock.h | 33 * enum memblock_flags - definition of memory region attributes 35 * @MEMBLOCK_HOTPLUG: hotpluggable region 36 * @MEMBLOCK_MIRROR: mirrored region 41 MEMBLOCK_HOTPLUG = 0x1, /* hotpluggable region */ 42 MEMBLOCK_MIRROR = 0x2, /* mirrored region */ 47 * struct memblock_region - represents a memory region 48 * @base: base address of the region 49 * @size: size of the region 50 * @flags: memory region attributes 465 * memblock_region_memory_base_pfn - get the lowest pfn of the memory region [all...] |
/device/qemu/drivers/char/mmz/ |
H A D | mmz.c | 190 LosVmMapRegion *region = NULL; in MmzFree() local 200 region = LOS_RegionFind(curVmSpace, (VADDR_T)(unsigned int)mmzm->vaddr); in MmzFree() 201 if (region == NULL) { in MmzFree() 202 PRINT_ERR("find region failed"); in MmzFree() 207 ret = LOS_RegionFree(curVmSpace, region); in MmzFree() 209 PRINT_ERR("free region failed, ret = %d", ret); in MmzFree()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_mmu_hw_direct.c | 30 u64 region; in lock_region() local 35 region = pfn << PAGE_SHIFT; in lock_region() 46 region |= 0x0B; in lock_region() 57 region |= region_width; in lock_region() 60 return region; in lock_region() 286 /* Lock the region that needs to be updated */ in kbase_mmu_hw_do_operation() 302 multiple page faults occur within an 8 page region in kbase_mmu_hw_do_operation() 308 region is now unlocked we need to issue 2 UNLOCK in kbase_mmu_hw_do_operation()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_mmu_hw_direct.c | 32 u64 region; in lock_region() local 37 region = pfn << PAGE_SHIFT; in lock_region() 48 region |= 11; in lock_region() 59 region |= region_width; in lock_region() 62 return region; in lock_region() 316 /* Lock the region that needs to be updated */ in kbase_mmu_hw_do_operation() 334 multiple page faults occur within an 8 page region in kbase_mmu_hw_do_operation() 340 region is now unlocked we need to issue 2 UNLOCK in kbase_mmu_hw_do_operation()
|
/device/soc/rockchip/common/sdk_linux/drivers/iommu/ |
H A D | dma-iommu.c | 99 * @base: Start address of IOVA region for MSI mappings 104 * contiguous IOVA region, starting at @base, large enough to accommodate the 162 * iommu_dma_get_resv_regions - Reserved region driver helper 164 * @list: Reserved region list from iommu_get_resv_regions() 168 * ITS region reservation on ACPI based ARM platforms that may require HW MSI 252 struct iommu_resv_region *region; in iova_reserve_iommu_regions() local 264 list_for_each_entry(region, &resv_regions, list) in iova_reserve_iommu_regions() 269 if (region->type == IOMMU_RESV_SW_MSI) { in iova_reserve_iommu_regions() 273 lo = iova_pfn(iovad, region->start); in iova_reserve_iommu_regions() 274 hi = iova_pfn(iovad, region in iova_reserve_iommu_regions() [all...] |
/device/soc/rockchip/common/sdk_linux/kernel/power/ |
H A D | snapshot.c | 949 * register_nosave_region - Register a region of unsaveable memory. 956 struct nosave_region *region; in register_nosave_region() local 963 /* Try to extend the previous region (they should be sorted) */ in register_nosave_region() 964 region = list_entry(nosave_regions.prev, in register_nosave_region() 966 if (region->end_pfn == start_pfn) { in register_nosave_region() 967 region->end_pfn = end_pfn; in register_nosave_region() 972 region = memblock_alloc(sizeof(struct nosave_region), in register_nosave_region() 974 if (!region) in register_nosave_region() 977 region->start_pfn = start_pfn; in register_nosave_region() 978 region in register_nosave_region() 1047 struct nosave_region *region; mark_nosave_pages() local [all...] |