/linux-6.3-rc2/drivers/media/platform/st/sti/hva/ |
A D | hva-hw.c | 106 hva->sts_reg = readl_relaxed(hva->regs + HVA_HIF_FIFO_STS); in hva_hw_its_interrupt() 107 hva->sfl_reg = readl_relaxed(hva->regs + HVA_HIF_REG_SFL); in hva_hw_its_interrupt() 124 HVA_PREFIX, __func__, hva->sts_reg & 0xFF, hva->sfl_reg & 0xF); in hva_hw_its_irq_thread() 204 hva->sts_reg = readl_relaxed(hva->regs + HVA_HIF_FIFO_STS); in hva_hw_err_interrupt() 205 hva->sfl_reg = readl_relaxed(hva->regs + HVA_HIF_REG_SFL); in hva_hw_err_interrupt() 210 hva->hec_mif_err_reg = readl_relaxed(hva->regs + in hva_hw_err_interrupt() 227 HVA_PREFIX, hva->sts_reg & 0xFF, hva->sfl_reg & 0xF); in hva_hw_err_irq_thread() 304 WARN_ON(!hva); in hva_hw_probe() 323 HVA_PREFIX, hva->esram_addr, hva->esram_size); in hva_hw_probe() 392 hva->ip_version = hva_hw_get_ip_version(hva); in hva_hw_probe() [all …]
|
A D | hva-v4l2.c | 160 hva->pixelformats, in register_formats() 183 hva->encoders[hva->nb_of_encoders++] = hva_encoders[i]; in register_encoders() 263 hva->pdev->name); in hva_querycap() 1289 if (!hva) in hva_register_device() 1326 hva->vdev = vdev; in hva_register_device() 1340 if (!hva) in hva_unregister_device() 1343 if (hva->m2m_dev) in hva_unregister_device() 1355 hva = devm_kzalloc(dev, sizeof(*hva), GFP_KERNEL); in hva_probe() 1356 if (!hva) { in hva_probe() 1365 hva->dev = dev; in hva_probe() [all …]
|
A D | Makefile | 2 obj-$(CONFIG_VIDEO_STI_HVA) += st-hva.o 3 st-hva-y := hva-v4l2.o hva-hw.o hva-mem.o hva-h264.o 4 st-hva-$(CONFIG_VIDEO_STI_HVA_DEBUGFS) += hva-debugfs.o
|
A D | hva-debugfs.c | 276 struct hva_dev *hva = s->private; in device_show() local 286 struct hva_dev *hva = s->private; in encoders_show() local 290 hva->nb_of_encoders); in encoders_show() 292 while (hva->encoders[i]) { in encoders_show() 304 struct hva_dev *hva = s->private; in last_show() local 321 struct hva_dev *hva = s->private; in regs_show() local 323 hva_hw_dump_regs(hva, s); in regs_show() 329 debugfs_create_file(#name, 0444, hva->dbg.debugfs_entry, hva, \ 350 hva->dbg.debugfs_entry = NULL; in hva_debugfs_remove() 373 struct hva_dev *hva = ctx->hva_dev; in hva_dbg_ctx_create() local [all …]
|
A D | hva-hw.h | 35 int hva_hw_probe(struct platform_device *pdev, struct hva_dev *hva); 36 void hva_hw_remove(struct hva_dev *hva); 42 void hva_hw_dump_regs(struct hva_dev *hva, struct seq_file *s);
|
/linux-6.3-rc2/arch/arm64/kvm/ |
A D | mmu.c | 776 hva_t reg_end = hva + size; in stage2_unmap_memslot() 808 hva = vm_end; in stage2_unmap_memslot() 809 } while (hva < reg_end); in stage2_unmap_memslot() 1014 unsigned long hva, in fault_supports_stage2_huge_mapping() argument 1225 vma = vma_lookup(current->mm, hva); in user_mem_abort() 1351 hva, &pfn, in user_mem_abort() 1436 unsigned long hva; in kvm_handle_guest_abort() local 1786 hva_t hva, reg_end; in kvm_arch_prepare_memory_region() local 1800 hva = new->userspace_addr; in kvm_arch_prepare_memory_region() 1834 hva = min(reg_end, vma->vm_end); in kvm_arch_prepare_memory_region() [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/media/ |
A D | st,st-hva.txt | 1 st-hva: multi-format video encoder for STMicroelectronics SoC. 4 - compatible: should be "st,st-hva". 16 hva@8c85000{ 17 compatible = "st,st-hva";
|
/linux-6.3-rc2/include/trace/events/ |
A D | kvm.h | 460 TP_PROTO(unsigned long hva), 461 TP_ARGS(hva), 464 __field( unsigned long, hva ) 468 __entry->hva = hva; 471 TP_printk("mmu notifier set pte hva: %#016lx", __entry->hva) 493 TP_PROTO(unsigned long hva), 494 TP_ARGS(hva), 497 __field( unsigned long, hva ) 501 __entry->hva = hva; 504 TP_printk("mmu notifier test age hva: %#016lx", __entry->hva)
|
/linux-6.3-rc2/tools/testing/selftests/kvm/ |
A D | set_memory_region_test.c | 115 uint64_t *hva; in spawn_vm() local 134 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in spawn_vm() 135 memset(hva, 0, 2 * 4096); in spawn_vm() 181 uint64_t *hva; in test_move_memory_region() local 185 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in test_move_memory_region() 193 WRITE_ONCE(*hva, 2); in test_move_memory_region() 206 WRITE_ONCE(*hva, 1); in test_move_memory_region()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/x86_64/ |
A D | smaller_maxphyaddr_emulation_test.c | 54 uint64_t *hva; in main() local 79 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in main() 80 memset(hva, 0, PAGE_SIZE); in main()
|
A D | nx_huge_pages_test.c | 116 void *hva; in run_test() local 154 hva = addr_gpa2hva(vm, HPAGE_GPA); in run_test() 155 memset(hva, RETURN_OPCODE, nr_bytes); in run_test()
|
/linux-6.3-rc2/arch/s390/kvm/ |
A D | gaccess.c | 820 unsigned long hva; in vm_check_access_key() local 826 hva = gfn_to_hva(kvm, gpa_to_gfn(gpa)); in vm_check_access_key() 827 if (kvm_is_error_hva(hva)) in vm_check_access_key() 883 unsigned long hva; in vcpu_check_access_key() local 893 hva = gfn_to_hva(vcpu->kvm, gpa_to_gfn(gpa)); in vcpu_check_access_key() 1018 hva_t hva; in access_guest_page_with_key() local 1025 if (kvm_is_error_hva(hva)) in access_guest_page_with_key() 1033 hva += offset_in_page(gpa); in access_guest_page_with_key() 1195 hva_t hva; in cmpxchg_guest_abs_with_key() local 1202 if (kvm_is_error_hva(hva)) in cmpxchg_guest_abs_with_key() [all …]
|
A D | pci.c | 230 unsigned long hva, bit; in kvm_s390_pci_aif_enable() local 252 hva = gfn_to_hva(kvm, gpa_to_gfn((gpa_t)fib->fmt0.aibv)); in kvm_s390_pci_aif_enable() 253 npages = pin_user_pages_fast(hva, 1, FOLL_WRITE | FOLL_LONGTERM, pages); in kvm_s390_pci_aif_enable() 267 hva = gfn_to_hva(kvm, gpa_to_gfn((gpa_t)fib->fmt0.aisb)); in kvm_s390_pci_aif_enable() 268 npages = pin_user_pages_fast(hva, 1, FOLL_WRITE | FOLL_LONGTERM, in kvm_s390_pci_aif_enable()
|
/linux-6.3-rc2/arch/riscv/kvm/ |
A D | mmu.c | 458 hva_t hva, reg_end, size; in kvm_arch_prepare_memory_region() local 475 hva = new->userspace_addr; in kvm_arch_prepare_memory_region() 477 reg_end = hva + size; in kvm_arch_prepare_memory_region() 512 vm_start = max(hva, vma->vm_start); in kvm_arch_prepare_memory_region() 516 gpa_t gpa = base_gpa + (vm_start - hva); in kvm_arch_prepare_memory_region() 534 hva = vm_end; in kvm_arch_prepare_memory_region() 535 } while (hva < reg_end); in kvm_arch_prepare_memory_region() 617 gpa_t gpa, unsigned long hva, bool is_write) in kvm_riscv_gstage_map() argument 633 vma = vma_lookup(current->mm, hva); in kvm_riscv_gstage_map() 635 kvm_err("Failed to find VMA for hva 0x%lx\n", hva); in kvm_riscv_gstage_map() [all …]
|
A D | vcpu_exit.c | 17 unsigned long hva, fault_addr; in gstage_page_fault() local 25 hva = gfn_to_hva_memslot_prot(memslot, gfn, &writable); in gstage_page_fault() 27 if (kvm_is_error_hva(hva) || in gstage_page_fault() 43 ret = kvm_riscv_gstage_map(vcpu, memslot, fault_addr, hva, in gstage_page_fault()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/ |
A D | userfaultfd_util.c | 112 void *hva, uint64_t len, in uffd_setup_demand_paging() argument 143 uffdio_register.range.start = (uint64_t)hva; in uffd_setup_demand_paging() 162 hva, hva + len); in uffd_setup_demand_paging()
|
A D | ucall_common.c | 33 uc->hva = uc; in ucall_init() 90 ucall_arch_do_ucall((vm_vaddr_t)uc->hva); in ucall()
|
A D | kvm_util.c | 753 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, vm_vaddr_t gva, size_t len) in kvm_memcmp_hva_gva() argument 762 uintptr_t ptr1 = (uintptr_t)hva + offset; in kvm_memcmp_hva_gva() 853 uint64_t gpa, uint64_t size, void *hva) in __vm_set_user_memory_region() argument 860 .userspace_addr = (uintptr_t)hva, in __vm_set_user_memory_region() 867 uint64_t gpa, uint64_t size, void *hva) in vm_set_user_memory_region() argument 869 int ret = __vm_set_user_memory_region(vm, slot, flags, gpa, size, hva); in vm_set_user_memory_region() 1483 vm_paddr_t addr_hva2gpa(struct kvm_vm *vm, void *hva) in addr_hva2gpa() argument 1491 if (hva >= region->host_mem) { in addr_hva2gpa() 1492 if (hva <= (region->host_mem in addr_hva2gpa() 1496 + (hva - (uintptr_t)region->host_mem)); in addr_hva2gpa() [all …]
|
/linux-6.3-rc2/arch/x86/kvm/vmx/ |
A D | sgx.c | 62 static int sgx_read_hva(struct kvm_vcpu *vcpu, unsigned long hva, void *data, in sgx_read_hva() argument 65 if (__copy_from_user(data, (void __user *)hva, size)) { in sgx_read_hva() 66 sgx_handle_emulation_failure(vcpu, hva, size); in sgx_read_hva() 91 static int sgx_gpa_to_hva(struct kvm_vcpu *vcpu, gpa_t gpa, unsigned long *hva) in sgx_gpa_to_hva() argument 93 *hva = kvm_vcpu_gfn_to_hva(vcpu, PFN_DOWN(gpa)); in sgx_gpa_to_hva() 94 if (kvm_is_error_hva(*hva)) { in sgx_gpa_to_hva() 99 *hva |= gpa & ~PAGE_MASK; in sgx_gpa_to_hva()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/aarch64/ |
A D | page_fault_test.c | 306 void *hva; member 321 ASSERT_EQ(addr, (uint64_t)args->hva); in uffd_generic_handler() 377 pt_args.hva, in setup_uffd() 384 data_args.hva, in setup_uffd() 420 ret = madvise(hva, paging_size, MADV_DONTNEED); in punch_hole_in_backing_store() 430 void *hva; in mmio_on_test_gpa_handler() local 433 hva = (void *)region->region.userspace_addr; in mmio_on_test_gpa_handler() 437 memcpy(hva, run->mmio.data, run->mmio.len); in mmio_on_test_gpa_handler() 532 void *hva; in load_exec_code_for_test() local 535 hva = (void *)region->region.userspace_addr; in load_exec_code_for_test() [all …]
|
/linux-6.3-rc2/virt/kvm/ |
A D | async_pf.c | 164 unsigned long hva, struct kvm_arch_async_pf *arch) in kvm_setup_async_pf() argument 172 if (unlikely(kvm_is_error_hva(hva))) in kvm_setup_async_pf() 186 work->addr = hva; in kvm_setup_async_pf()
|
/linux-6.3-rc2/arch/powerpc/kvm/ |
A D | e500_mmu_host.c | 329 unsigned long hva; in kvmppc_e500_shadow_map() local 354 hva = gfn_to_hva_memslot(slot, gfn); in kvmppc_e500_shadow_map() 360 vma = find_vma(kvm->mm, hva); in kvmppc_e500_shadow_map() 361 if (vma && hva >= vma->vm_start && in kvmppc_e500_shadow_map() 379 pfn = start + ((hva - vma->vm_start) >> PAGE_SHIFT); in kvmppc_e500_shadow_map() 424 } else if (vma && hva >= vma->vm_start && in kvmppc_e500_shadow_map() 477 ptep = find_linux_pte(pgdir, hva, NULL, NULL); in kvmppc_e500_shadow_map()
|
/linux-6.3-rc2/drivers/media/platform/st/sti/ |
A D | Makefile | 5 obj-y += hva/
|
/linux-6.3-rc2/drivers/media/platform/st/ |
A D | Makefile | 6 obj-y += sti/hva/
|
/linux-6.3-rc2/arch/s390/mm/ |
A D | pgtable.c | 1045 int pgste_perform_essa(struct mm_struct *mm, unsigned long hva, int orc, in pgste_perform_essa() argument 1059 vma = vma_lookup(mm, hva); in pgste_perform_essa() 1062 ptep = get_locked_pte(mm, hva, &ptl); in pgste_perform_essa() 1151 int set_pgste_bits(struct mm_struct *mm, unsigned long hva, in set_pgste_bits() argument 1159 vma = vma_lookup(mm, hva); in set_pgste_bits() 1162 ptep = get_locked_pte(mm, hva, &ptl); in set_pgste_bits() 1184 int get_pgste(struct mm_struct *mm, unsigned long hva, unsigned long *pgstep) in get_pgste() argument 1190 vma = vma_lookup(mm, hva); in get_pgste() 1193 ptep = get_locked_pte(mm, hva, &ptl); in get_pgste()
|