/linux-6.1.9/drivers/media/platform/st/sti/hva/ |
D | hva-hw.c | 103 struct hva_dev *hva = data; in hva_hw_its_interrupt() local 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() 110 writel_relaxed(0x1, hva->regs + HVA_HIF_REG_IT_ACK); in hva_hw_its_interrupt() 117 struct hva_dev *hva = arg; in hva_hw_its_irq_thread() local 118 struct device *dev = hva_to_dev(hva); in hva_hw_its_irq_thread() 119 u32 status = hva->sts_reg & 0xFF; in hva_hw_its_irq_thread() 124 HVA_PREFIX, __func__, hva->sts_reg & 0xFF, hva->sfl_reg & 0xF); in hva_hw_its_irq_thread() 130 ctx_id = (hva->sts_reg & 0xFF00) >> 8; in hva_hw_its_irq_thread() 137 ctx = hva->instances[ctx_id]; in hva_hw_its_irq_thread() [all …]
|
D | hva-v4l2.c | 124 struct hva_dev *hva = ctx_to_hdev(ctx); in hva_find_encoder() local 128 for (i = 0; i < hva->nb_of_encoders; i++) { in hva_find_encoder() 129 enc = hva->encoders[i]; in hva_find_encoder() 154 static void register_formats(struct hva_dev *hva) in register_formats() argument 158 for (i = 0; i < hva->nb_of_encoders; i++) { in register_formats() 159 register_format(hva->encoders[i]->pixelformat, in register_formats() 160 hva->pixelformats, in register_formats() 161 &hva->nb_of_pixelformats); in register_formats() 163 register_format(hva->encoders[i]->streamformat, in register_formats() 164 hva->streamformats, in register_formats() [all …]
|
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
|
D | hva-debugfs.c | 276 struct hva_dev *hva = s->private; in device_show() local 278 seq_printf(s, "[%s]\n", hva->v4l2_dev.name); in device_show() 279 seq_printf(s, "registered as /dev/video%d\n", hva->vdev->num); in device_show() 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() 293 seq_printf(s, "|- %s: %4.4s => %4.4s\n", hva->encoders[i]->name, in encoders_show() 294 (char *)&hva->encoders[i]->pixelformat, in encoders_show() 295 (char *)&hva->encoders[i]->streamformat); in encoders_show() 304 struct hva_dev *hva = s->private; in last_show() local [all …]
|
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);
|
D | hva.h | 401 void hva_debugfs_create(struct hva_dev *hva); 402 void hva_debugfs_remove(struct hva_dev *hva);
|
/linux-6.1.9/arch/arm64/kvm/ |
D | mmu.c | 725 hva_t hva = memslot->userspace_addr; in stage2_unmap_memslot() local 728 hva_t reg_end = hva + size; in stage2_unmap_memslot() 746 vma = find_vma_intersection(current->mm, hva, reg_end); in stage2_unmap_memslot() 753 vm_start = max(hva, vma->vm_start); in stage2_unmap_memslot() 760 hva = vm_end; in stage2_unmap_memslot() 761 } while (hva < reg_end); in stage2_unmap_memslot() 941 unsigned long hva, in fault_supports_stage2_huge_mapping() argument 997 return (hva & ~(map_size - 1)) >= uaddr_start && in fault_supports_stage2_huge_mapping() 998 (hva & ~(map_size - 1)) + map_size <= uaddr_end; in fault_supports_stage2_huge_mapping() 1011 unsigned long hva, kvm_pfn_t *pfnp, in transparent_hugepage_adjust() argument [all …]
|
/linux-6.1.9/Documentation/devicetree/bindings/media/ |
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.1.9/include/trace/events/ |
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.1.9/tools/testing/selftests/kvm/ |
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()
|
D | demand_paging_test.c | 217 void *hva, void *alias, uint64_t len) in setup_demand_paging() argument 251 uffdio_register.range.start = (uint64_t)hva; in setup_demand_paging() 267 hva, hva + len); in setup_demand_paging()
|
/linux-6.1.9/arch/riscv/kvm/ |
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() 496 struct vm_area_struct *vma = find_vma(current->mm, hva); 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() 619 gpa_t gpa, unsigned long hva, bool is_write) in kvm_riscv_gstage_map() argument 635 vma = find_vma_intersection(current->mm, hva, hva + 1); in kvm_riscv_gstage_map() [all …]
|
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.1.9/arch/x86/kvm/vmx/ |
D | sgx.c | 61 static int sgx_read_hva(struct kvm_vcpu *vcpu, unsigned long hva, void *data, in sgx_read_hva() argument 64 if (__copy_from_user(data, (void __user *)hva, size)) { in sgx_read_hva() 65 sgx_handle_emulation_failure(vcpu, hva, size); in sgx_read_hva() 90 static int sgx_gpa_to_hva(struct kvm_vcpu *vcpu, gpa_t gpa, unsigned long *hva) in sgx_gpa_to_hva() argument 92 *hva = kvm_vcpu_gfn_to_hva(vcpu, PFN_DOWN(gpa)); in sgx_gpa_to_hva() 93 if (kvm_is_error_hva(*hva)) { in sgx_gpa_to_hva() 98 *hva |= gpa & ~PAGE_MASK; in sgx_gpa_to_hva()
|
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
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()
|
D | emulator_error_test.c | 156 uint64_t *hva; in main() local 179 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in main() 180 memset(hva, 0, PAGE_SIZE); in main()
|
/linux-6.1.9/virt/kvm/ |
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.1.9/arch/s390/kvm/ |
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() 831 r = get_guest_storage_key(current->mm, hva, &storage_key); 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() 895 r = get_guest_storage_key(current->mm, hva, &storage_key); in vcpu_check_access_key() 1018 hva_t hva; in access_guest_page_with_key() local 1023 hva = gfn_to_hva_memslot_prot(slot, gfn, &writable); in access_guest_page_with_key() 1025 if (kvm_is_error_hva(hva)) in access_guest_page_with_key() [all …]
|
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.1.9/arch/powerpc/kvm/ |
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.1.9/drivers/media/platform/st/sti/ |
D | Makefile | 5 obj-y += hva/
|
D | Kconfig | 5 source "drivers/media/platform/st/sti/hva/Kconfig"
|
/linux-6.1.9/drivers/media/platform/st/ |
D | Makefile | 6 obj-y += sti/hva/
|
/linux-6.1.9/arch/s390/mm/ |
D | pgtable.c | 1020 int pgste_perform_essa(struct mm_struct *mm, unsigned long hva, int orc, in pgste_perform_essa() argument 1034 vma = vma_lookup(mm, hva); in pgste_perform_essa() 1037 ptep = get_locked_pte(mm, hva, &ptl); in pgste_perform_essa() 1126 int set_pgste_bits(struct mm_struct *mm, unsigned long hva, in set_pgste_bits() argument 1134 vma = vma_lookup(mm, hva); in set_pgste_bits() 1137 ptep = get_locked_pte(mm, hva, &ptl); in set_pgste_bits() 1159 int get_pgste(struct mm_struct *mm, unsigned long hva, unsigned long *pgstep) in get_pgste() argument 1165 vma = vma_lookup(mm, hva); in get_pgste() 1168 ptep = get_locked_pte(mm, hva, &ptl); in get_pgste()
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 668 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, vm_vaddr_t gva, size_t len) in kvm_memcmp_hva_gva() argument 677 uintptr_t ptr1 = (uintptr_t)hva + offset; in kvm_memcmp_hva_gva() 768 uint64_t gpa, uint64_t size, void *hva) in __vm_set_user_memory_region() argument 775 .userspace_addr = (uintptr_t)hva, in __vm_set_user_memory_region() 782 uint64_t gpa, uint64_t size, void *hva) in vm_set_user_memory_region() argument 784 int ret = __vm_set_user_memory_region(vm, slot, flags, gpa, size, hva); in vm_set_user_memory_region() 1384 vm_paddr_t addr_hva2gpa(struct kvm_vm *vm, void *hva) in addr_hva2gpa() argument 1392 if (hva >= region->host_mem) { in addr_hva2gpa() 1393 if (hva <= (region->host_mem in addr_hva2gpa() 1397 + (hva - (uintptr_t)region->host_mem)); in addr_hva2gpa() [all …]
|