Lines Matching refs:vector
53 int vector = prev_vector; in z_x86_allocate_vector() local
60 if (vector == -1) { in z_x86_allocate_vector()
61 vector = (priority * VECTORS_PER_PRIORITY) + IV_IRQS; in z_x86_allocate_vector()
64 for (i = 0; i < VECTORS_PER_PRIORITY; ++i, ++vector) { in z_x86_allocate_vector()
65 if (prev_vector != 1 && vector == prev_vector) { in z_x86_allocate_vector()
70 if (vector == CONFIG_IRQ_OFFLOAD_VECTOR) { in z_x86_allocate_vector()
74 if (vector == Z_X86_OOPS_VECTOR) { in z_x86_allocate_vector()
78 if (x86_irq_funcs[vector - IV_IRQS] == irq_spurious) { in z_x86_allocate_vector()
79 return vector; in z_x86_allocate_vector()
87 uint8_t vector, in z_x86_irq_connect_on_vector() argument
91 _irq_to_interrupt_vector[irq] = vector; in z_x86_irq_connect_on_vector()
92 x86_irq_funcs[vector - IV_IRQS] = func; in z_x86_irq_connect_on_vector()
93 x86_irq_args[vector - IV_IRQS] = arg; in z_x86_irq_connect_on_vector()
107 int vector; in arch_irq_connect_dynamic() local
113 vector = z_x86_allocate_vector(priority, -1); in arch_irq_connect_dynamic()
114 if (vector >= 0) { in arch_irq_connect_dynamic()
121 vtd_set_irte_vector(vtd, irte, vector); in arch_irq_connect_dynamic()
126 z_irq_controller_irq_config(vector, irq, flags); in arch_irq_connect_dynamic()
127 z_x86_irq_connect_on_vector(irq, vector, routine, parameter); in arch_irq_connect_dynamic()
131 return vector; in arch_irq_connect_dynamic()