Lines Matching refs:iosapic_intr_info
135 static struct iosapic_intr_info { struct
146 } iosapic_intr_info[NR_IRQS]; argument
180 struct iosapic_intr_info *info; in __gsi_to_irq()
184 info = &iosapic_intr_info[irq]; in __gsi_to_irq()
208 list_for_each_entry(rte, &iosapic_intr_info[irq].rtes, rte_list) in find_rte()
231 pol = iosapic_intr_info[irq].polarity; in set_rte()
232 trigger = iosapic_intr_info[irq].trigger; in set_rte()
233 dmode = iosapic_intr_info[irq].dmode; in set_rte()
252 iosapic_intr_info[irq].low32 = low32; in set_rte()
253 iosapic_intr_info[irq].dest = dest; in set_rte()
267 struct iosapic_intr_info *info; in kexec_disable_iosapic()
273 info = &iosapic_intr_info[irq]; in kexec_disable_iosapic()
294 if (!iosapic_intr_info[irq].count) in mask_irq()
298 low32 = iosapic_intr_info[irq].low32 |= IOSAPIC_MASK; in mask_irq()
299 list_for_each_entry(rte, &iosapic_intr_info[irq].rtes, rte_list) { in mask_irq()
313 if (!iosapic_intr_info[irq].count) in unmask_irq()
316 low32 = iosapic_intr_info[irq].low32 &= ~IOSAPIC_MASK; in unmask_irq()
317 list_for_each_entry(rte, &iosapic_intr_info[irq].rtes, rte_list) { in unmask_irq()
347 if (!iosapic_intr_info[irq].count) in iosapic_set_affinity()
355 low32 = iosapic_intr_info[irq].low32 & ~(7 << IOSAPIC_DELIVERY_SHIFT); in iosapic_set_affinity()
365 iosapic_intr_info[irq].low32 = low32; in iosapic_set_affinity()
366 iosapic_intr_info[irq].dest = dest; in iosapic_set_affinity()
367 list_for_each_entry(rte, &iosapic_intr_info[irq].rtes, rte_list) { in iosapic_set_affinity()
404 list_for_each_entry(rte, &iosapic_intr_info[irq].rtes, rte_list) in iosapic_unmask_level_irq()
486 struct iosapic_intr_info *info; in iosapic_find_sharable_irq()
496 info = &iosapic_intr_info[i]; in iosapic_find_sharable_irq()
519 if (iosapic_intr_info[irq].count) { in iosapic_reassign_vector()
525 memcpy(&iosapic_intr_info[new_irq], &iosapic_intr_info[irq], in iosapic_reassign_vector()
526 sizeof(struct iosapic_intr_info)); in iosapic_reassign_vector()
527 INIT_LIST_HEAD(&iosapic_intr_info[new_irq].rtes); in iosapic_reassign_vector()
528 list_move(iosapic_intr_info[irq].rtes.next, in iosapic_reassign_vector()
529 &iosapic_intr_info[new_irq].rtes); in iosapic_reassign_vector()
530 memset(&iosapic_intr_info[irq], 0, in iosapic_reassign_vector()
531 sizeof(struct iosapic_intr_info)); in iosapic_reassign_vector()
532 iosapic_intr_info[irq].low32 = IOSAPIC_MASK; in iosapic_reassign_vector()
533 INIT_LIST_HEAD(&iosapic_intr_info[irq].rtes); in iosapic_reassign_vector()
539 return (iosapic_intr_info[irq].count > 1); in irq_is_shared()
578 list_add_tail(&rte->rte_list, &iosapic_intr_info[irq].rtes); in register_intr()
579 iosapic_intr_info[irq].count++; in register_intr()
583 struct iosapic_intr_info *info = &iosapic_intr_info[irq]; in register_intr()
592 iosapic_intr_info[irq].count++; in register_intr()
596 iosapic_intr_info[irq].polarity = polarity; in register_intr()
597 iosapic_intr_info[irq].dmode = delivery; in register_intr()
598 iosapic_intr_info[irq].trigger = trigger; in register_intr()
629 if (iosapic_intr_info[irq].count) in get_target_cpu()
630 return iosapic_intr_info[irq].dest; in get_target_cpu()
732 if(iosapic_intr_info[irq].count == 0) { in iosapic_register_intr()
764 low32 = iosapic_intr_info[irq].low32; in iosapic_register_intr()
817 low32 = iosapic_intr_info[irq].low32 | IOSAPIC_MASK; in iosapic_unregister_intr()
820 iosapic_intr_info[irq].count--; in iosapic_unregister_intr()
825 trigger = iosapic_intr_info[irq].trigger; in iosapic_unregister_intr()
826 polarity = iosapic_intr_info[irq].polarity; in iosapic_unregister_intr()
827 dest = iosapic_intr_info[irq].dest; in iosapic_unregister_intr()
834 if (iosapic_intr_info[irq].count == 0) { in iosapic_unregister_intr()
840 iosapic_intr_info[irq].dest = 0; in iosapic_unregister_intr()
841 iosapic_intr_info[irq].dmode = 0; in iosapic_unregister_intr()
842 iosapic_intr_info[irq].polarity = 0; in iosapic_unregister_intr()
843 iosapic_intr_info[irq].trigger = 0; in iosapic_unregister_intr()
844 iosapic_intr_info[irq].low32 |= IOSAPIC_MASK; in iosapic_unregister_intr()
955 iosapic_intr_info[irq].low32 = IOSAPIC_MASK; in iosapic_system_init()
957 INIT_LIST_HEAD(&iosapic_intr_info[irq].rtes); in iosapic_system_init()
959 iosapic_intr_info[irq].count = 0; in iosapic_system_init()
1014 list_for_each_entry_safe(rte, temp, &iosapic_intr_info[irq].rtes, in iosapic_delete_rte()