/openbmc/linux/arch/powerpc/platforms/ps3/ |
H A D | interrupt.c | 170 unsigned int *virq) in ps3_virq_setup() argument 184 if (!*virq) { in ps3_virq_setup() 192 outlet, cpu, *virq); in ps3_virq_setup() 244 unsigned int *virq) in ps3_irq_plug_setup() argument 304 ps3_virq_destroy(virq); in ps3_irq_plug_destroy() 331 *virq = 0; in ps3_event_receive_port_setup() 410 *virq = 0; in ps3_sb_event_receive_port_setup() 422 unsigned int virq) in ps3_sb_event_receive_port_destroy() argument 467 unsigned int *virq) in ps3_io_irq_setup() argument 524 unsigned int *virq) in ps3_vuart_irq_setup() argument [all …]
|
/openbmc/linux/kernel/irq/ |
H A D | irqdomain.c | 677 if (irq_domain_associate(domain, virq, virq)) { in irq_create_direct_mapping() 692 int virq; in irq_create_mapping_affinity_locked() local 730 int virq; in irq_create_mapping_affinity() local 744 if (virq) { in irq_create_mapping_affinity() 794 int virq; in irq_create_fwspec_mapping() local 827 if (virq) { in irq_create_fwspec_mapping() 853 virq = 0; in irq_create_fwspec_mapping() 861 virq = 0; in irq_create_fwspec_mapping() 867 if (!virq) in irq_create_fwspec_mapping() 873 virq = 0; in irq_create_fwspec_mapping() [all …]
|
H A D | ipi.c | 28 int virq, i; in irq_reserve_ipi() local 79 if (virq <= 0) { in irq_reserve_ipi() 84 virq = __irq_domain_alloc_irqs(domain, virq, nr_irqs, NUMA_NO_NODE, in irq_reserve_ipi() 87 if (virq <= 0) { in irq_reserve_ipi() 93 data = irq_get_irq_data(virq + i); in irq_reserve_ipi() 96 irq_set_status_flags(virq + i, IRQ_NO_BALANCING); in irq_reserve_ipi() 98 return virq; in irq_reserve_ipi() 101 irq_free_descs(virq, nr_irqs); in irq_reserve_ipi() 313 int ipi_send_single(unsigned int virq, unsigned int cpu) in ipi_send_single() argument 315 struct irq_desc *desc = irq_to_desc(virq); in ipi_send_single() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | arizona-irq.c | 196 irq_set_noprobe(virq); in arizona_irq_map() 212 unsigned int virq; in arizona_irq_init() local 317 if (!arizona->virq) { in arizona_irq_init() 324 virq = irq_create_mapping(arizona->virq, ARIZONA_AOD_IRQ_INDEX); in arizona_irq_init() 325 if (!virq) { in arizona_irq_init() 340 virq = irq_create_mapping(arizona->virq, ARIZONA_MAIN_IRQ_INDEX); in arizona_irq_init() 341 if (!virq) { in arizona_irq_init() 433 unsigned int virq; in arizona_irq_exit() local 439 virq = irq_find_mapping(arizona->virq, ARIZONA_MAIN_IRQ_INDEX); in arizona_irq_exit() 441 irq_dispose_mapping(virq); in arizona_irq_exit() [all …]
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | event_sources.c | 15 int i, virq, rc; in request_event_sources_irqs() local 18 virq = of_irq_get(np, i); in request_event_sources_irqs() 19 if (virq < 0) in request_event_sources_irqs() 21 if (WARN(!virq, "event-sources: Unable to allocate " in request_event_sources_irqs() 25 rc = request_irq(virq, handler, 0, name, NULL); in request_event_sources_irqs() 27 virq, np)) in request_event_sources_irqs()
|
/openbmc/linux/arch/powerpc/platforms/cell/ |
H A D | spider-pic.c | 162 irq_set_chip_data(virq, h->host_data); in spider_host_map() 166 irq_set_irq_type(virq, IRQ_TYPE_NONE); in spider_host_map() 213 unsigned int virq; in spider_find_cascade_and_node() local 225 if (virq) in spider_find_cascade_and_node() 226 return virq; in spider_find_cascade_and_node() 263 virq = irq_create_mapping(NULL, in spider_find_cascade_and_node() 267 if (!virq) in spider_find_cascade_and_node() 269 return virq; in spider_find_cascade_and_node() 277 int i, virq; in spider_init_one() local 304 if (!virq) in spider_init_one() [all …]
|
H A D | axon_msi.c | 254 unsigned int virq, rc; in axon_msi_setup_msi_irqs() local 269 if (!virq) { in axon_msi_setup_msi_irqs() 276 irq_set_msi_desc(virq, entry); in axon_msi_setup_msi_irqs() 277 msg.data = virq; in axon_msi_setup_msi_irqs() 278 pci_write_msi_msg(virq, &msg); in axon_msi_setup_msi_irqs() 307 irq_set_chip_data(virq, h->host_data); in msic_host_map() 333 unsigned int virq; in axon_msi_probe() local 370 virq = irq_of_parse_and_map(dn, 0); in axon_msi_probe() 371 if (!virq) { in axon_msi_probe() 386 irq_set_handler_data(virq, msic); in axon_msi_probe() [all …]
|
H A D | interrupt.c | 134 unsigned int virq; in iic_get_irq() local 142 if (!virq) in iic_get_irq() 146 return virq; in iic_get_irq() 176 int virq; in iic_request_ipi() local 178 virq = irq_create_mapping(iic_host, iic_msg_to_irq(msg)); in iic_request_ipi() 179 if (!virq) { in iic_request_ipi() 189 if (smp_request_message_ipi(virq, msg)) in iic_request_ipi() 190 irq_dispose_mapping(virq); in iic_request_ipi() 211 static int iic_host_map(struct irq_domain *h, unsigned int virq, in iic_host_map() argument 216 irq_set_chip_and_handler(virq, &iic_chip, handle_percpu_irq); in iic_host_map() [all …]
|
/openbmc/linux/drivers/misc/ocxl/ |
H A D | afu_irq.c | 13 unsigned int virq; member 58 static irqreturn_t afu_irq_handler(int virq, void *data) in afu_irq_handler() argument 62 trace_ocxl_afu_irq_receive(virq); in afu_irq_handler() 74 irq->virq = irq_create_mapping(NULL, irq->hw_irq); in setup_afu_irq() 75 if (!irq->virq) { in setup_afu_irq() 81 irq->name = kasprintf(GFP_KERNEL, "ocxl-afu-%u", irq->virq); in setup_afu_irq() 83 irq_dispose_mapping(irq->virq); in setup_afu_irq() 91 irq_dispose_mapping(irq->virq); in setup_afu_irq() 100 free_irq(irq->virq, irq); in release_afu_irq() 101 irq_dispose_mapping(irq->virq); in release_afu_irq() [all …]
|
H A D | trace.h | 174 TP_PROTO(int pasid, int irq_id, unsigned int virq, int hw_irq), 175 TP_ARGS(pasid, irq_id, virq, hw_irq), 180 __field(unsigned int, virq) 187 __entry->virq = virq; 194 __entry->virq, 220 TP_PROTO(int virq), 221 TP_ARGS(virq), 224 __field(int, virq) 228 __entry->virq = virq; 232 __entry->virq
|
/openbmc/linux/arch/x86/platform/uv/ |
H A D | uv_irq.c | 75 static int uv_domain_alloc(struct irq_domain *domain, unsigned int virq, in uv_domain_alloc() argument 80 struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); in uv_domain_alloc() 91 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in uv_domain_alloc() 94 irq_set_status_flags(virq, IRQ_NO_BALANCING); in uv_domain_alloc() 96 irq_set_status_flags(virq, IRQ_MOVE_PCNTXT); in uv_domain_alloc() 100 irq_domain_set_info(domain, virq, virq, &uv_irq_chip, chip_data, in uv_domain_alloc() 109 static void uv_domain_free(struct irq_domain *domain, unsigned int virq, in uv_domain_free() argument 112 struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); in uv_domain_free() 116 irq_clear_status_flags(virq, IRQ_MOVE_PCNTXT); in uv_domain_free() 117 irq_clear_status_flags(virq, IRQ_NO_BALANCING); in uv_domain_free() [all …]
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-armada-370-xp.c | 400 unsigned int virq, in armada_370_xp_ipi_alloc() argument 406 irq_set_percpu_devid(virq + i); in armada_370_xp_ipi_alloc() 417 unsigned int virq, in armada_370_xp_ipi_free() argument 516 int virq; in armada_xp_mpic_reenable_percpu() local 519 if (virq == 0) in armada_xp_mpic_reenable_percpu() 522 data = irq_get_irq_data(virq); in armada_xp_mpic_reenable_percpu() 582 irq_set_percpu_devid(virq); in armada_370_xp_mpic_irq_map() 590 irq_set_probe(virq); in armada_370_xp_mpic_irq_map() 716 int virq; in armada_370_xp_mpic_resume() local 719 if (virq == 0) in armada_370_xp_mpic_resume() [all …]
|
H A D | irq-alpine-msi.c | 120 unsigned int virq, int sgi) in alpine_msix_gic_domain_alloc() argument 135 ret = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); in alpine_msix_gic_domain_alloc() 139 d = irq_domain_get_irq_data(domain->parent, virq); in alpine_msix_gic_domain_alloc() 146 unsigned int virq, in alpine_msix_middle_domain_alloc() argument 157 err = alpine_msix_gic_domain_alloc(domain, virq + i, sgi + i); in alpine_msix_middle_domain_alloc() 161 irq_domain_set_hwirq_and_chip(domain, virq + i, sgi + i, in alpine_msix_middle_domain_alloc() 168 irq_domain_free_irqs_parent(domain, virq, i); in alpine_msix_middle_domain_alloc() 174 unsigned int virq, in alpine_msix_middle_domain_free() argument 177 struct irq_data *d = irq_domain_get_irq_data(domain, virq); in alpine_msix_middle_domain_free() 180 irq_domain_free_irqs_parent(domain, virq, nr_irqs); in alpine_msix_middle_domain_free()
|
/openbmc/linux/drivers/vlynq/ |
H A D | vlynq.c | 128 int virq; in vlynq_irq_unmask() local 134 val |= (VINT_ENABLE | virq) << VINT_OFFSET(virq); in vlynq_irq_unmask() 141 int virq; in vlynq_irq_mask() local 154 int virq; in vlynq_irq_type() local 206 int virq = 0; in vlynq_irq() local 218 virq++; in vlynq_irq() 248 int i, virq; in vlynq_setup_irq() local 277 virq = i - dev->irq_start; in vlynq_setup_irq() 629 dev->local_irq = virq; in vlynq_set_local_irq() 644 if (virq == dev->local_irq) in vlynq_set_remote_irq() [all …]
|
/openbmc/linux/arch/powerpc/sysdev/xics/ |
H A D | xics-common.c | 183 unsigned int irq, virq; in xics_migrate_irqs_away() local 198 for_each_irq_desc(virq, desc) { in xics_migrate_irqs_away() 205 if (virq < NR_IRQS_LEGACY) in xics_migrate_irqs_away() 211 irqd = irq_domain_get_irq_data(xics_host, virq); in xics_migrate_irqs_away() 228 __func__, virq, irq); in xics_migrate_irqs_away() 242 virq, cpu); in xics_migrate_irqs_away() 246 irq_set_affinity(virq, cpu_all_mask); in xics_migrate_irqs_away() 336 irq_clear_status_flags(virq, IRQ_LEVEL); in xics_host_map() 340 irq_set_chip_and_handler(virq, &xics_ipi_chip, in xics_host_map() 444 unsigned int virq, unsigned int nr_irqs) in xics_host_domain_free() argument [all …]
|
/openbmc/linux/arch/powerpc/platforms/pasemi/ |
H A D | msi.c | 76 unsigned int virq; in pasemi_msi_setup_msi_irqs() local 102 virq = irq_create_mapping(msi_mpic->irqhost, hwirq); in pasemi_msi_setup_msi_irqs() 103 if (!virq) { in pasemi_msi_setup_msi_irqs() 115 mpic_set_vector(virq, 0); in pasemi_msi_setup_msi_irqs() 117 irq_set_msi_desc(virq, entry); in pasemi_msi_setup_msi_irqs() 118 irq_set_chip(virq, &mpic_pasemi_msi_chip); in pasemi_msi_setup_msi_irqs() 119 irq_set_irq_type(virq, IRQ_TYPE_EDGE_RISING); in pasemi_msi_setup_msi_irqs() 122 "addr 0x%x\n", virq, hwirq, msg.address_lo); in pasemi_msi_setup_msi_irqs() 128 pci_write_msi_msg(virq, &msg); in pasemi_msi_setup_msi_irqs()
|
/openbmc/linux/drivers/iommu/ |
H A D | hyperv-iommu.c | 66 unsigned int virq, unsigned int nr_irqs, in hyperv_irq_remapping_alloc() argument 80 irq_data = irq_domain_get_irq_data(domain, virq); in hyperv_irq_remapping_alloc() 82 irq_domain_free_irqs_common(domain, virq, nr_irqs); in hyperv_irq_remapping_alloc() 98 unsigned int virq, unsigned int nr_irqs) in hyperv_irq_remapping_free() argument 100 irq_domain_free_irqs_common(domain, virq, nr_irqs); in hyperv_irq_remapping_free() 273 unsigned int virq, unsigned int nr_irqs, in hyperv_root_irq_remapping_alloc() argument 290 irq_domain_free_irqs_common(domain, virq, nr_irqs); in hyperv_root_irq_remapping_alloc() 294 irq_data = irq_domain_get_irq_data(domain, virq); in hyperv_root_irq_remapping_alloc() 297 irq_domain_free_irqs_common(domain, virq, nr_irqs); in hyperv_root_irq_remapping_alloc() 311 unsigned int virq, unsigned int nr_irqs) in hyperv_root_irq_remapping_free() argument [all …]
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | mpic_u3msi.c | 118 unsigned int virq; in u3msi_setup_msi_irqs() local 148 virq = irq_create_mapping(msi_mpic->irqhost, hwirq); in u3msi_setup_msi_irqs() 149 if (!virq) { in u3msi_setup_msi_irqs() 155 irq_set_msi_desc(virq, entry); in u3msi_setup_msi_irqs() 156 irq_set_chip(virq, &mpic_u3msi_chip); in u3msi_setup_msi_irqs() 157 irq_set_irq_type(virq, IRQ_TYPE_EDGE_RISING); in u3msi_setup_msi_irqs() 160 virq, hwirq, (unsigned long)addr); in u3msi_setup_msi_irqs() 163 virq, hwirq, (unsigned long)addr); in u3msi_setup_msi_irqs() 165 pci_write_msi_msg(virq, &msg); in u3msi_setup_msi_irqs()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | vas.c | 33 rc = request_threaded_irq(vinst->virq, vas_fault_handler, in vas_irq_fault_window_setup() 38 vinst->vas_id, vinst->virq, rc); in vas_irq_fault_window_setup() 44 free_irq(vinst->virq, vinst); in vas_irq_fault_window_setup() 117 vinst->virq = irq_create_mapping(NULL, hwirq); in init_vas_instance() 118 if (!vinst->virq) { in init_vas_instance() 124 xd = irq_get_handler_data(vinst->virq); in init_vas_instance() 127 vinst->vas_id, vinst->virq); in init_vas_instance() 134 vinst->paste_win_id_shift, vinst->virq, in init_vas_instance() 151 if (vinst->virq) { in init_vas_instance() 159 vinst->virq = 0; in init_vas_instance()
|
/openbmc/linux/drivers/usb/typec/tcpm/qcom/ |
H A D | qcom_pmic_typec.c | 289 .virq = PMIC_PDPHY_SIG_TX_IRQ, 293 .virq = PMIC_PDPHY_SIG_RX_IRQ, 297 .virq = PMIC_PDPHY_MSG_TX_IRQ, 301 .virq = PMIC_PDPHY_MSG_RX_IRQ, 305 .virq = PMIC_PDPHY_MSG_TX_FAIL_IRQ, 324 .virq = PMIC_TYPEC_VPD_IRQ, 329 .virq = PMIC_TYPEC_CC_STATE_IRQ, 333 .virq = PMIC_TYPEC_VCONN_OC_IRQ, 338 .virq = PMIC_TYPEC_VBUS_IRQ, 347 .virq = PMIC_TYPEC_LEGACY_CABLE_IRQ, [all …]
|
/openbmc/linux/drivers/misc/cxl/ |
H A D | irq.c | 227 unsigned int virq; in cxl_map_irq() local 231 virq = irq_create_mapping(NULL, hwirq); in cxl_map_irq() 232 if (!virq) { in cxl_map_irq() 248 return virq; in cxl_map_irq() 253 free_irq(virq, cookie); in cxl_unmap_irq() 263 int hwirq, virq; in cxl_register_one_irq() local 272 *dest_virq = virq; in cxl_register_one_irq() 405 unsigned int virq; in afu_release_irqs() local 411 virq = irq_find_mapping(NULL, hwirq); in afu_release_irqs() 412 if (virq) in afu_release_irqs() [all …]
|
/openbmc/linux/drivers/platform/x86/intel/ |
H A D | bxtwc_tmu.c | 53 int ret, virq, irq; in bxt_wcove_tmu_probe() local 67 virq = regmap_irq_get_virq(regmap_irq_chip, irq); in bxt_wcove_tmu_probe() 68 if (virq < 0) { in bxt_wcove_tmu_probe() 71 return virq; in bxt_wcove_tmu_probe() 74 ret = devm_request_threaded_irq(&pdev->dev, virq, in bxt_wcove_tmu_probe() 79 ret, virq); in bxt_wcove_tmu_probe() 82 wctmu->irq = virq; in bxt_wcove_tmu_probe()
|
/openbmc/linux/include/linux/ |
H A D | irqdomain.h | 94 void (*unmap)(struct irq_domain *d, unsigned int virq); 100 int (*alloc)(struct irq_domain *d, unsigned int virq, 102 void (*free)(struct irq_domain *d, unsigned int virq, 402 extern void irq_dispose_mapping(unsigned int virq); 471 unsigned int virq); 515 unsigned int virq, 520 unsigned int virq, 523 unsigned int virq, unsigned int nr_irqs); 537 unsigned int virq); 582 static inline void irq_domain_free_irqs(unsigned int virq, in irq_domain_free_irqs() argument [all …]
|
/openbmc/linux/drivers/soundwire/ |
H A D | irq.c | 12 static int sdw_irq_map(struct irq_domain *h, unsigned int virq, in sdw_irq_map() argument 17 irq_set_chip_data(virq, bus); in sdw_irq_map() 18 irq_set_chip(virq, &bus->irq_chip); in sdw_irq_map() 19 irq_set_nested_thread(virq, 1); in sdw_irq_map() 20 irq_set_noprobe(virq); in sdw_irq_map()
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | ps3.h | 181 unsigned int *virq); 182 int ps3_irq_plug_destroy(unsigned int virq); 185 int ps3_send_event_locally(unsigned int virq); 188 unsigned int *virq); 189 int ps3_io_irq_destroy(unsigned int virq); 191 unsigned int *virq); 192 int ps3_vuart_irq_destroy(unsigned int virq); 194 unsigned int class, unsigned int *virq); 195 int ps3_spe_irq_destroy(unsigned int virq); 198 enum ps3_cpu_binding cpu, unsigned int *virq); [all …]
|