Home
last modified time | relevance | path

Searched refs:vpu_addr (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/accel/ivpu/
H A Divpu_mmu_context.c240 u64 vpu_addr, dma_addr_t dma_addr, u64 prot) in ivpu_mmu_context_map_page() argument
243 int pgd_idx = FIELD_GET(IVPU_MMU_PGD_INDEX_MASK, vpu_addr); in ivpu_mmu_context_map_page()
244 int pud_idx = FIELD_GET(IVPU_MMU_PUD_INDEX_MASK, vpu_addr); in ivpu_mmu_context_map_page()
245 int pmd_idx = FIELD_GET(IVPU_MMU_PMD_INDEX_MASK, vpu_addr); in ivpu_mmu_context_map_page()
246 int pte_idx = FIELD_GET(IVPU_MMU_PTE_INDEX_MASK, vpu_addr); in ivpu_mmu_context_map_page()
274 ivpu_mmu_context_map_cont_64k(struct ivpu_device *vdev, struct ivpu_mmu_context *ctx, u64 vpu_addr, in ivpu_mmu_context_map_cont_64k() argument
279 drm_WARN_ON(&vdev->drm, !IS_ALIGNED(vpu_addr, size)); in ivpu_mmu_context_map_cont_64k()
285 int ret = ivpu_mmu_context_map_page(vdev, ctx, vpu_addr, dma_addr, prot); in ivpu_mmu_context_map_cont_64k()
291 vpu_addr += IVPU_MMU_PAGE_SIZE; in ivpu_mmu_context_map_cont_64k()
298 static void ivpu_mmu_context_unmap_page(struct ivpu_mmu_context *ctx, u64 vpu_addr) in ivpu_mmu_context_unmap_page() argument
[all …]
H A Divpu_gem.h21 u64 vpu_addr; member
76 static inline void *ivpu_to_cpu_addr(struct ivpu_bo *bo, u32 vpu_addr) in ivpu_to_cpu_addr() argument
78 if (vpu_addr < bo->vpu_addr) in ivpu_to_cpu_addr()
81 if (vpu_addr >= (bo->vpu_addr + ivpu_bo_size(bo))) in ivpu_to_cpu_addr()
84 return ivpu_bo_vaddr(bo) + (vpu_addr - bo->vpu_addr); in ivpu_to_cpu_addr()
95 return bo->vpu_addr + (cpu_addr - ivpu_bo_vaddr(bo)); in cpu_to_vpu_addr()
H A Divpu_gem.c29 action, bo, bo->vpu_addr, ivpu_bo_size(bo), bo->ctx ? bo->ctx->id : 0, in ivpu_dbg_bo()
60 ret = ivpu_mmu_context_map_sgt(vdev, bo->ctx, bo->vpu_addr, sgt, in ivpu_bo_pin()
90 bo->vpu_addr = bo->mm_node.start; in ivpu_bo_alloc_vpu_addr()
112 drm_WARN_ON(&vdev->drm, !bo->vpu_addr); in ivpu_bo_unbind_locked()
114 ivpu_mmu_context_unmap_sgt(vdev, bo->ctx, bo->vpu_addr, bo->base.sgt); in ivpu_bo_unbind_locked()
283 args->vpu_addr = bo->vpu_addr; in ivpu_bo_create_ioctl()
370 args->vpu_addr = bo->vpu_addr; in ivpu_bo_info_ioctl()
412 bo, bo->ctx ? bo->ctx->id : 0, bo->vpu_addr, bo->base.base.size, in ivpu_bo_print_info()
H A Divpu_fw.c581 boot_params->ipc_header_area_start = ipc_mem_rx->vpu_addr; in ivpu_fw_boot_params_setup()
584 boot_params->ipc_payload_area_start = ipc_mem_rx->vpu_addr + ivpu_bo_size(ipc_mem_rx) / 2; in ivpu_fw_boot_params_setup()
601 boot_params->shave_nn_fw_base = vdev->fw->mem_shave_nn->vpu_addr; in ivpu_fw_boot_params_setup()
618 boot_params->crit_tracing_buff_addr = vdev->fw->mem_log_crit->vpu_addr; in ivpu_fw_boot_params_setup()
620 boot_params->verbose_tracing_buff_addr = vdev->fw->mem_log_verb->vpu_addr; in ivpu_fw_boot_params_setup()
H A Divpu_hw_ip.h29 void ivpu_hw_ip_ipc_tx_set(struct ivpu_device *vdev, u32 vpu_addr);