Lines Matching refs:x86_vector
164 uint64_t x86_vector = frame->vector; in platform_irq() local
165 DEBUG_ASSERT(x86_vector >= X86_INT_PLATFORM_BASE && in platform_irq()
166 x86_vector <= X86_INT_PLATFORM_MAX); in platform_irq()
169 struct int_handler_struct* handler = &int_handler_table[x86_vector]; in platform_irq()
192 uint8_t x86_vector = apic_io_fetch_irq_vector(vector); in register_int_handler() local
193 if ((x86_vector < X86_INT_PLATFORM_BASE) || in register_int_handler()
194 (x86_vector > X86_INT_PLATFORM_MAX)) in register_int_handler()
195 x86_vector = 0; in register_int_handler()
197 if (x86_vector && !handler) { in register_int_handler()
200 p2ra_free_range(&x86_irq_vector_allocator, x86_vector, 1); in register_int_handler()
201 x86_vector = 0; in register_int_handler()
202 } else if (!x86_vector && handler) { in register_int_handler()
223 x86_vector = (uint8_t)range_start; in register_int_handler()
227 DEBUG_ASSERT(!!x86_vector == !!handler); in register_int_handler()
231 AutoSpinLockNoIrqSave handler_guard(&int_handler_table[x86_vector].lock); in register_int_handler()
233 if (handler && int_handler_table[x86_vector].handler) { in register_int_handler()
234 p2ra_free_range(&x86_irq_vector_allocator, x86_vector, 1); in register_int_handler()
238 int_handler_table[x86_vector].handler = handler; in register_int_handler()
239 int_handler_table[x86_vector].arg = handler ? arg : NULL; in register_int_handler()
242 apic_io_configure_irq_vector(vector, x86_vector); in register_int_handler()
354 uint x86_vector = msi_id + block->base_irq_id; in msi_register_handler() local
355 DEBUG_ASSERT((x86_vector >= X86_INT_PLATFORM_BASE) && in msi_register_handler()
356 (x86_vector <= X86_INT_PLATFORM_MAX)); in msi_register_handler()
358 AutoSpinLock guard(&int_handler_table[x86_vector].lock); in msi_register_handler()
359 int_handler_table[x86_vector].handler = handler; in msi_register_handler()
360 int_handler_table[x86_vector].arg = handler ? ctx : NULL; in msi_register_handler()