Home
last modified time | relevance | path

Searched refs:hva (Results 1 – 25 of 57) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/media/platform/sti/hva/
Dhva-hw.c103 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 …]
DMakefile2 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
Dhva-v4l2.c124 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 …]
Dhva-debugfs.c276 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 …]
Dhva-hw.h35 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);
Dhva.h401 void hva_debugfs_create(struct hva_dev *hva);
402 void hva_debugfs_remove(struct hva_dev *hva);
Dhva-h264.c590 struct hva_dev *hva = ctx_to_hdev(pctx); in hva_h264_prepare_task() local
601 u32 addr_esram = hva->esram_addr; in hva_h264_prepare_task()
891 struct hva_dev *hva = ctx_to_hdev(pctx); in hva_h264_open() local
903 if (hva->esram_size < size) { in hva_h264_open()
905 pctx->name, hva->esram_size, size); in hva_h264_open()
/kernel/linux/linux-5.10/arch/arm64/kvm/
Dmmu.c406 hva_t hva = memslot->userspace_addr; in stage2_unmap_memslot() local
409 hva_t reg_end = hva + size; in stage2_unmap_memslot()
424 struct vm_area_struct *vma = find_vma(current->mm, hva); in stage2_unmap_memslot()
433 vm_start = max(hva, vma->vm_start); in stage2_unmap_memslot()
440 hva = vm_end; in stage2_unmap_memslot()
441 } while (hva < reg_end); in stage2_unmap_memslot()
628 unsigned long hva, in fault_supports_stage2_huge_mapping() argument
684 return (hva & ~(map_size - 1)) >= uaddr_start && in fault_supports_stage2_huge_mapping()
685 (hva & ~(map_size - 1)) + map_size <= uaddr_end; in fault_supports_stage2_huge_mapping()
698 unsigned long hva, kvm_pfn_t *pfnp, in transparent_hugepage_adjust() argument
[all …]
Dtrace_arm.h157 TP_PROTO(unsigned long hva),
158 TP_ARGS(hva),
161 __field( unsigned long, hva )
165 __entry->hva = hva;
168 TP_printk("mmu notifier set pte hva: %#016lx", __entry->hva)
190 TP_PROTO(unsigned long hva),
191 TP_ARGS(hva),
194 __field( unsigned long, hva )
198 __entry->hva = hva;
201 TP_printk("mmu notifier test age hva: %#016lx", __entry->hva)
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/
Dst,st-hva.txt1 st-hva: multi-format video encoder for STMicroelectronics SoC.
4 - compatible: should be "st,st-hva".
16 hva@8c85000{
17 compatible = "st,st-hva";
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dtrace_booke.h73 TP_PROTO(unsigned long hva),
74 TP_ARGS(hva),
77 __field( unsigned long, hva )
81 __entry->hva = hva;
84 TP_printk("unmap hva 0x%lx\n", __entry->hva)
De500_mmu_host.c329 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()
724 static int kvm_unmap_hva(struct kvm *kvm, unsigned long hva) in kvm_unmap_hva() argument
726 trace_kvm_unmap_hva(hva); in kvm_unmap_hva()
752 int kvm_test_age_hva(struct kvm *kvm, unsigned long hva) in kvm_test_age_hva() argument
[all …]
Dbook3s.h16 extern int kvm_test_age_hva_hv(struct kvm *kvm, unsigned long hva);
17 extern void kvm_set_spte_hva_hv(struct kvm *kvm, unsigned long hva, pte_t pte);
Dbook3s_64_mmu_hv.c491 unsigned long gpa, gfn, hva, pfn, hpa; in kvmppc_book3s_hv_page_fault() local
580 hva = gfn_to_hva_memslot(memslot, gfn); in kvmppc_book3s_hv_page_fault()
588 if (get_user_page_fast_only(hva, FOLL_WRITE, &page)) { in kvmppc_book3s_hv_page_fault()
609 ptep = find_kvm_host_pte(kvm, mmu_seq, hva, &shift); in kvmppc_book3s_hv_page_fault()
632 hpa |= hva & (pte_size - psize); in kvmppc_book3s_hv_page_fault()
793 static int kvm_handle_hva(struct kvm *kvm, unsigned long hva, in kvm_handle_hva() argument
796 return kvm_handle_hva_range(kvm, hva, hva + 1, handler); in kvm_handle_hva()
1011 int kvm_test_age_hva_hv(struct kvm *kvm, unsigned long hva) in kvm_test_age_hva_hv() argument
1016 return kvm_handle_hva(kvm, hva, handler); in kvm_test_age_hva_hv()
1019 void kvm_set_spte_hva_hv(struct kvm *kvm, unsigned long hva, pte_t pte) in kvm_set_spte_hva_hv() argument
[all …]
Dbook3s_hv_rm_mmu.c202 unsigned long slot_fn, hva; in kvmppc_do_h_enter() local
250 hva = __gfn_to_hva_memslot(memslot, gfn); in kvmppc_do_h_enter()
253 ptep = find_kvm_host_pte(kvm, mmu_seq, hva, &hpage_shift); in kvmppc_do_h_enter()
277 pa |= hva & (host_pte_size - 1); in kvmppc_do_h_enter()
887 unsigned long gfn, hva, pa, psize = PAGE_SHIFT; in kvmppc_get_hpa() local
898 hva = __gfn_to_hva_memslot(memslot, gfn); in kvmppc_get_hpa()
901 ptep = find_kvm_host_pte(kvm, mmu_seq, hva, &shift); in kvmppc_get_hpa()
912 pa |= hva & (psize - 1); in kvmppc_get_hpa()
Dbook3s_64_mmu_radix.c801 unsigned long hva, gfn = gpa >> PAGE_SHIFT; in kvmppc_book3s_instantiate_page() local
819 hva = gfn_to_hva_memslot(memslot, gfn); in kvmppc_book3s_instantiate_page()
820 if (!kvm_ro && get_user_page_fast_only(hva, FOLL_WRITE, &page)) { in kvmppc_book3s_instantiate_page()
843 ptep = find_kvm_host_pte(kvm, mmu_seq, hva, &shift); in kvmppc_book3s_instantiate_page()
864 (hva & (PUD_SIZE - PAGE_SIZE))) { in kvmppc_book3s_instantiate_page()
868 (hva & (PMD_SIZE - PAGE_SIZE))) { in kvmppc_book3s_instantiate_page()
879 pte = __pte(pte_val(pte) | (hva & rpnmask)); in kvmppc_book3s_instantiate_page()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/
Dset_memory_region_test.c119 uint64_t *hva; in spawn_vm() local
140 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in spawn_vm()
141 memset(hva, 0, 2 * 4096); in spawn_vm()
186 uint64_t *hva; in test_move_memory_region() local
190 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in test_move_memory_region()
198 WRITE_ONCE(*hva, 2); in test_move_memory_region()
211 WRITE_ONCE(*hva, 1); in test_move_memory_region()
Ddemand_paging_test.c206 void *hva, uint64_t len) in setup_demand_paging() argument
225 uffdio_register.range.start = (uint64_t)hva; in setup_demand_paging()
246 hva, hva + len); in setup_demand_paging()
/kernel/linux/linux-5.10/arch/s390/mm/
Dpgtable.c988 int pgste_perform_essa(struct mm_struct *mm, unsigned long hva, int orc, in pgste_perform_essa() argument
1002 vma = find_vma(mm, hva); in pgste_perform_essa()
1003 if (!vma || hva < vma->vm_start || is_vm_hugetlb_page(vma)) in pgste_perform_essa()
1005 ptep = get_locked_pte(mm, hva, &ptl); in pgste_perform_essa()
1094 int set_pgste_bits(struct mm_struct *mm, unsigned long hva, in set_pgste_bits() argument
1102 vma = find_vma(mm, hva); in set_pgste_bits()
1103 if (!vma || hva < vma->vm_start || is_vm_hugetlb_page(vma)) in set_pgste_bits()
1105 ptep = get_locked_pte(mm, hva, &ptl); in set_pgste_bits()
1127 int get_pgste(struct mm_struct *mm, unsigned long hva, unsigned long *pgstep) in get_pgste() argument
1133 vma = find_vma(mm, hva); in get_pgste()
[all …]
/kernel/linux/linux-5.10/virt/kvm/
Dasync_pf.c164 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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/st/
Dst,flexgen.txt94 "clk-hva",
98 "clk-rx-icn-hva",
/kernel/linux/linux-5.10/include/linux/
Dkvm_types.h51 unsigned long hva; member
Dkvm_host.h216 unsigned long hva, struct kvm_arch_async_pf *arch);
239 void *hva; member
250 return !!map->hva; in kvm_vcpu_mapped()
1152 hva_to_gfn_memslot(unsigned long hva, struct kvm_memory_slot *slot) in hva_to_gfn_memslot() argument
1154 gfn_t gfn_offset = (hva - slot->userspace_addr) >> PAGE_SHIFT; in hva_to_gfn_memslot()
1182 unsigned long hva = gfn_to_hva(kvm, gpa_to_gfn(gpa)); in kvm_is_error_gpa() local
1184 return kvm_is_error_hva(hva); in kvm_is_error_gpa()
/kernel/linux/linux-5.10/include/trace/events/
Dkvm.h263 __field( u64, hva )
272 __entry->hva = ((gfn - slot->base_gfn) <<
278 __entry->hva, __entry->gfn, __entry->level,
/kernel/linux/linux-5.10/arch/mips/kvm/
Dmmu.c529 int kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte) in kvm_set_spte_hva() argument
531 unsigned long end = hva + PAGE_SIZE; in kvm_set_spte_hva()
534 ret = handle_hva_to_gpa(kvm, hva, end, &kvm_set_spte_handler, &pte); in kvm_set_spte_hva()
562 int kvm_test_age_hva(struct kvm *kvm, unsigned long hva) in kvm_test_age_hva() argument
564 return handle_hva_to_gpa(kvm, hva, hva, kvm_test_age_hva_handler, NULL); in kvm_test_age_hva()

123