Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 20 of 20) sorted by relevance

/kvm-unit-tests/lib/riscv/asm/
H A Dprocessor.h51 void install_exception_handler(unsigned long cause, void (*handler)(struct pt_regs *));
52 void install_irq_handler(unsigned long cause, void (*handler)(struct pt_regs *));
H A Dsbi.h273 sbi_sse_handler_fn handler; member
/kvm-unit-tests/lib/riscv/
H A Dprocessor.c63 void install_irq_handler(unsigned long cause, void (*handler)(struct pt_regs *)) in install_irq_handler()
68 info->interrupt_handlers[cause] = handler; in install_irq_handler()
71 void install_exception_handler(unsigned long cause, void (*handler)(struct pt_regs *)) in install_exception_handler()
76 info->exception_handlers[cause] = handler; in install_exception_handler()
H A Dasm-offsets.c71 OFFSET(SBI_SSE_HANDLER, sbi_sse_handler_arg, handler); in main()
/kvm-unit-tests/riscv/
H A Dselftest.c24 static void handler(struct pt_regs *regs) in handler() function
32 install_exception_handler(EXC_INST_ILLEGAL, handler); in check_exceptions()
H A Dsbi-sse.c537 .handler = sse_simple_handler, in sse_test_inject_simple()
758 cpu_arg->args.handler = sse_foreign_cpu_handler; in sse_test_inject_local()
871 .handler = sse_foreign_cpu_handler, in sse_test_inject_global()
936 sbi_sse_handler_fn handler, in sse_test_injection_priority_arg() argument
975 event_arg->handler = handler; in sse_test_injection_priority_arg()
H A Dsbi.c151 static void timer_setup(void (*handler)(struct pt_regs *)) in timer_setup()
153 install_irq_handler(IRQ_S_TIMER, handler); in timer_setup()
/kvm-unit-tests/lib/x86/
H A Ddesc.c105 unsigned long handler; member
188 regs->rip = ex->handler; in check_exception_table()
195 static handler exception_handlers[32];
197 handler handle_exception(u8 v, handler fn) in handle_exception()
199 handler old; in handle_exception()
483 handler old; in test_for_exception()
H A Dusermode.c41 handler old_ex; in run_in_user()
H A Dfault_test.c22 handler old; in fault_test()
H A Ddesc.h98 typedef void (*handler)(struct ex_regs *regs); typedef
256 handler handle_exception(u8 v, handler fn);
/kvm-unit-tests/arm/
H A Dpsci.c34 static void install_invalid_function_handler(exception_fn handler) in install_invalid_function_handler() argument
37 install_exception_handler(EXCPTN_UND, handler); in install_invalid_function_handler()
39 install_exception_handler(EL1H_SYNC, ESR_EL1_EC_UNKNOWN, handler); in install_invalid_function_handler()
H A Dgic.c177 static void setup_irq(irq_handler_fn handler) in setup_irq() argument
181 install_exception_handler(EXCPTN_IRQ, handler); in setup_irq()
183 install_irq_handler(EL1H_IRQ, handler); in setup_irq()
/kvm-unit-tests/lib/
H A Dacpi.c106 int acpi_table_parse_madt(enum acpi_madt_type mtype, acpi_table_handler handler) in acpi_table_parse_madt() argument
121 handler(header); in acpi_table_parse_madt()
H A Dpci.h36 extern void pci_cap_walk(struct pci_dev *dev, pci_cap_handler_t handler);
H A Dpci.c10 void pci_cap_walk(struct pci_dev *dev, pci_cap_handler_t handler) in pci_cap_walk() argument
20 handler(dev, cap_offset, cap_id); in pci_cap_walk()
H A Dacpi.h300 int acpi_table_parse_madt(enum acpi_madt_type mtype, acpi_table_handler handler);
/kvm-unit-tests/x86/
H A Demulator.c449 handler old; in test_sse_exceptions()
730 handler old_db_handler = handle_exception(DB_VECTOR, handle_db); in test_mov_pop_ss_code_db()
H A Dvmx_tests.c5063 handler old_gp, old_db; in vmx_mtf_test()
6644 static handler setup_x2apic_gp_handler(void) in setup_x2apic_gp_handler()
6646 handler old_handler; in setup_x2apic_gp_handler()
6655 static void teardown_x2apic_gp_handler(handler old_handler) in teardown_x2apic_gp_handler()
6679 handler old_handler; in virt_x2apic_mode_guest()
8946 handler old_db; in vmx_preemption_timer_zero_test()
9060 handler old_db; in vmx_preemption_timer_tf_test()
10759 handler old_handler = handle_exception(vector, vmx_exception_handler); in handle_exception_in_l2()
H A Dsvm_tests.c3263 handler old_handler = handle_exception(vector, svm_exception_handler); in handle_exception_in_l2()