Lines Matching refs:vector
28 unsigned int vector; member
128 static void apic_update_irq_cfg(struct irq_data *irqd, unsigned int vector, in apic_update_irq_cfg() argument
135 apicd->hw_irq_cfg.vector = vector; in apic_update_irq_cfg()
138 trace_vector_config(irqd->irq, vector, cpu, in apic_update_irq_cfg()
151 trace_vector_update(irqd->irq, newvec, newcpu, apicd->vector, in apic_update_vector()
161 if (!apicd->vector || apicd->vector == MANAGED_IRQ_SHUTDOWN_VECTOR) in apic_update_vector()
173 apicd->prev_vector = apicd->vector; in apic_update_vector()
177 irq_matrix_free(vector_matrix, apicd->cpu, apicd->vector, in apic_update_vector()
182 apicd->vector = newvec; in apic_update_vector()
238 int vector = apicd->vector; in assign_vector_locked() local
247 if (vector && cpu_online(cpu) && cpumask_test_cpu(cpu, dest)) in assign_vector_locked()
259 vector = irq_matrix_alloc(vector_matrix, dest, resvd, &cpu); in assign_vector_locked()
260 trace_vector_alloc(irqd->irq, vector, resvd, vector); in assign_vector_locked()
261 if (vector < 0) in assign_vector_locked()
262 return vector; in assign_vector_locked()
263 apic_update_vector(irqd, vector, cpu); in assign_vector_locked()
264 apic_update_irq_cfg(irqd, vector, cpu); in assign_vector_locked()
328 int vector, cpu; in assign_managed_vector() local
333 if (apicd->vector && cpumask_test_cpu(apicd->cpu, vector_searchmask)) in assign_managed_vector()
335 vector = irq_matrix_alloc_managed(vector_matrix, vector_searchmask, in assign_managed_vector()
337 trace_vector_alloc_managed(irqd->irq, vector, vector); in assign_managed_vector()
338 if (vector < 0) in assign_managed_vector()
339 return vector; in assign_managed_vector()
340 apic_update_vector(irqd, vector, cpu); in assign_managed_vector()
341 apic_update_irq_cfg(irqd, vector, cpu); in assign_managed_vector()
349 unsigned int vector = apicd->vector; in clear_irq_vector() local
353 if (!vector) in clear_irq_vector()
356 trace_vector_clear(irqd->irq, vector, apicd->cpu, apicd->prev_vector, in clear_irq_vector()
359 per_cpu(vector_irq, apicd->cpu)[vector] = VECTOR_SHUTDOWN; in clear_irq_vector()
360 irq_matrix_free(vector_matrix, apicd->cpu, vector, managed); in clear_irq_vector()
361 apicd->vector = 0; in clear_irq_vector()
364 vector = apicd->prev_vector; in clear_irq_vector()
365 if (!vector) in clear_irq_vector()
368 per_cpu(vector_irq, apicd->prev_cpu)[vector] = VECTOR_SHUTDOWN; in clear_irq_vector()
369 irq_matrix_free(vector_matrix, apicd->prev_cpu, vector, managed); in clear_irq_vector()
520 apicd->vector = ISA_IRQ_VECTOR(virq); in vector_configure_legacy()
530 apic_update_irq_cfg(irqd, apicd->vector, apicd->cpu); in vector_configure_legacy()
644 seq_printf(m, "%*sVector: %5u\n", ind, "", apicd.vector); in x86_vector_debug_show()
770 unsigned int i, vector; in lapic_assign_system_vectors() local
772 for_each_set_bit(vector, system_vectors, NR_VECTORS) in lapic_assign_system_vectors()
773 irq_matrix_assign_system(vector_matrix, vector, false); in lapic_assign_system_vectors()
819 static struct irq_desc *__setup_vector_irq(int vector) in __setup_vector_irq() argument
821 int isairq = vector - ISA_IRQ_VECTOR(0); in __setup_vector_irq()
835 unsigned int vector; in lapic_online() local
851 for (vector = 0; vector < NR_VECTORS; vector++) in lapic_online()
852 this_cpu_write(vector_irq[vector], __setup_vector_irq(vector)); in lapic_online()
901 __apic_send_IPI(apicd->cpu, apicd->vector); in apic_retrigger_irq()
937 unsigned int vector = apicd->prev_vector; in free_moved_vector() local
951 trace_vector_free_moved(apicd->irq, cpu, vector, managed); in free_moved_vector()
952 irq_matrix_free(vector_matrix, cpu, vector, managed); in free_moved_vector()
953 per_cpu(vector_irq, cpu)[vector] = VECTOR_UNUSED; in free_moved_vector()
968 unsigned int irr, vector = apicd->prev_vector; in __vector_cleanup() local
982 irr = check_irr ? apic_read(APIC_IRR + (vector / 32 * 0x10)) : 0; in __vector_cleanup()
983 if (irr & (1U << (vector % 32))) { in __vector_cleanup()
1078 unsigned int vector; in irq_force_complete_move() local
1102 vector = apicd->prev_vector; in irq_force_complete_move()
1103 if (!vector) in irq_force_complete_move()
1155 irqd->irq, vector); in irq_force_complete_move()