Home
last modified time | relevance | path

Searched refs:virq (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/linux-6.6.21/arch/powerpc/platforms/ps3/
Dinterrupt.c170 unsigned int *virq) in ps3_virq_setup() argument
182 *virq = irq_create_mapping(NULL, outlet); in ps3_virq_setup()
184 if (!*virq) { in ps3_virq_setup()
192 outlet, cpu, *virq); in ps3_virq_setup()
194 result = irq_set_chip_data(*virq, pd); in ps3_virq_setup()
202 ps3_chip_mask(irq_get_irq_data(*virq)); in ps3_virq_setup()
207 irq_dispose_mapping(*virq); in ps3_virq_setup()
219 static int ps3_virq_destroy(unsigned int virq) in ps3_virq_destroy() argument
221 const struct ps3_private *pd = irq_get_chip_data(virq); in ps3_virq_destroy()
224 __LINE__, pd->ppe_id, pd->thread_id, virq); in ps3_virq_destroy()
[all …]
/linux-6.6.21/kernel/irq/
Dirqdomain.c577 static int irq_domain_associate_locked(struct irq_domain *domain, unsigned int virq, in irq_domain_associate_locked() argument
580 struct irq_data *irq_data = irq_get_irq_data(virq); in irq_domain_associate_locked()
586 if (WARN(!irq_data, "error: virq%i is not allocated", virq)) in irq_domain_associate_locked()
588 if (WARN(irq_data->domain, "error: virq%i is already associated", virq)) in irq_domain_associate_locked()
594 ret = domain->ops->map(domain, virq, hwirq); in irq_domain_associate_locked()
603 domain->name, hwirq, virq, ret); in irq_domain_associate_locked()
614 irq_clear_status_flags(virq, IRQ_NOREQUEST); in irq_domain_associate_locked()
619 int irq_domain_associate(struct irq_domain *domain, unsigned int virq, in irq_domain_associate() argument
625 ret = irq_domain_associate_locked(domain, virq, hwirq); in irq_domain_associate()
661 unsigned int virq; in irq_create_direct_mapping() local
[all …]
Dipi.c28 int virq, i; in irq_reserve_ipi() local
78 virq = irq_domain_alloc_descs(-1, nr_irqs, 0, NUMA_NO_NODE, NULL); in irq_reserve_ipi()
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
[all …]
/linux-6.6.21/drivers/mfd/
Darizona-irq.c124 irq_find_mapping(arizona->virq, 0)); in arizona_irq_thread()
134 handle_nested_irq(irq_find_mapping(arizona->virq, 1)); in arizona_irq_thread()
186 static int arizona_irq_map(struct irq_domain *h, unsigned int virq, in arizona_irq_map() argument
191 irq_set_chip_data(virq, data); in arizona_irq_map()
192 irq_set_lockdep_class(virq, &arizona_irq_lock_class, in arizona_irq_map()
194 irq_set_chip_and_handler(virq, &arizona_irq_chip, handle_simple_irq); in arizona_irq_map()
195 irq_set_nested_thread(virq, 1); in arizona_irq_map()
196 irq_set_noprobe(virq); in arizona_irq_map()
212 unsigned int virq; in arizona_irq_init() local
315 arizona->virq = irq_domain_add_linear(NULL, 2, &arizona_domain_ops, in arizona_irq_init()
[all …]
/linux-6.6.21/arch/powerpc/platforms/cell/
Dspider-pic.c159 static int spider_host_map(struct irq_domain *h, unsigned int virq, in spider_host_map() argument
162 irq_set_chip_data(virq, h->host_data); in spider_host_map()
163 irq_set_chip_and_handler(virq, &spider_pic, handle_level_irq); 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
224 virq = irq_of_parse_and_map(of_node, 0); in spider_find_cascade_and_node()
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()
[all …]
Daxon_msi.c254 unsigned int virq, rc; in axon_msi_setup_msi_irqs() local
268 virq = irq_create_direct_mapping(msic->irq_domain); in axon_msi_setup_msi_irqs()
269 if (!virq) { in axon_msi_setup_msi_irqs()
274 dev_dbg(&dev->dev, "axon_msi: allocated virq 0x%x\n", 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()
304 static int msic_host_map(struct irq_domain *h, unsigned int virq, in msic_host_map() argument
307 irq_set_chip_data(virq, h->host_data); in msic_host_map()
308 irq_set_chip_and_handler(virq, &msic_irq_chip, handle_simple_irq); in msic_host_map()
[all …]
Dinterrupt.c134 unsigned int virq; in iic_get_irq() local
141 virq = irq_linear_revmap(iic_host, iic_pending_to_hwnum(pending)); in iic_get_irq()
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
[all …]
/linux-6.6.21/drivers/misc/ocxl/
Dafu_irq.c13 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()
79 pr_debug("hw_irq %d mapped to virq %u\n", irq->hw_irq, 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()
87 rc = request_irq(irq->virq, afu_irq_handler, 0, irq->name, irq); in setup_afu_irq()
91 irq_dispose_mapping(irq->virq); in setup_afu_irq()
[all …]
Dtrace.h174 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
/linux-6.6.21/drivers/vlynq/
Dvlynq.c128 int virq; in vlynq_irq_unmask() local
132 virq = d->irq - dev->irq_start; in vlynq_irq_unmask()
133 val = readl(&dev->remote->int_device[virq >> 2]); in vlynq_irq_unmask()
134 val |= (VINT_ENABLE | virq) << VINT_OFFSET(virq); in vlynq_irq_unmask()
135 writel(val, &dev->remote->int_device[virq >> 2]); in vlynq_irq_unmask()
141 int virq; in vlynq_irq_mask() local
145 virq = d->irq - dev->irq_start; in vlynq_irq_mask()
146 val = readl(&dev->remote->int_device[virq >> 2]); in vlynq_irq_mask()
147 val &= ~(VINT_ENABLE << VINT_OFFSET(virq)); in vlynq_irq_mask()
148 writel(val, &dev->remote->int_device[virq >> 2]); in vlynq_irq_mask()
[all …]
/linux-6.6.21/drivers/irqchip/
Dirq-armada-370-xp.c243 static int armada_370_xp_msi_alloc(struct irq_domain *domain, unsigned int virq, in armada_370_xp_msi_alloc() argument
257 irq_domain_set_info(domain, virq + i, hwirq + i, in armada_370_xp_msi_alloc()
267 unsigned int virq, unsigned int nr_irqs) in armada_370_xp_msi_free() argument
269 struct irq_data *d = irq_domain_get_irq_data(domain, virq); in armada_370_xp_msi_free()
400 unsigned int virq, in armada_370_xp_ipi_alloc() argument
406 irq_set_percpu_devid(virq + i); in armada_370_xp_ipi_alloc()
407 irq_domain_set_info(d, virq + i, i, &ipi_irqchip, 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
518 virq = irq_linear_revmap(armada_370_xp_mpic_domain, irq); in armada_xp_mpic_reenable_percpu()
[all …]
Dirq-alpine-msi.c120 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 - 1); 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()
/linux-6.6.21/arch/x86/platform/uv/
Duv_irq.c75 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 …]
/linux-6.6.21/arch/powerpc/sysdev/xics/
Dxics-common.c183 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()
278 int xics_get_irq_server(unsigned int virq, const struct cpumask *cpumask, in xics_get_irq_server() argument
326 static int xics_host_map(struct irq_domain *domain, unsigned int virq, in xics_host_map() argument
329 pr_devel("xics: map virq %d, hwirq 0x%lx\n", virq, hwirq); in xics_host_map()
[all …]
/linux-6.6.21/arch/powerpc/platforms/pseries/
Devent_sources.c15 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()
/linux-6.6.21/arch/powerpc/platforms/pasemi/
Dmsi.c76 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()
/linux-6.6.21/drivers/iommu/
Dhyperv-iommu.c66 unsigned int virq, unsigned int nr_irqs, in hyperv_irq_remapping_alloc() argument
76 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in hyperv_irq_remapping_alloc()
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
284 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in hyperv_root_irq_remapping_alloc()
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()
[all …]
/linux-6.6.21/arch/powerpc/sysdev/
Dmpic_u3msi.c118 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()
Dfsl_msi.c51 int virq; member
74 cascade_virq = msi_data->cascade_array[srs]->virq; in fsl_msi_print_chip()
87 static int fsl_msi_host_map(struct irq_domain *h, unsigned int virq, in fsl_msi_host_map() argument
93 irq_set_status_flags(virq, IRQ_TYPE_EDGE_FALLING); in fsl_msi_host_map()
95 irq_set_chip_data(virq, msi_data); in fsl_msi_host_map()
96 irq_set_chip_and_handler(virq, chip, handle_edge_irq); in fsl_msi_host_map()
183 unsigned int virq; in fsl_setup_msi_irqs() local
247 virq = irq_create_mapping(msi_data->irqhost, hwirq); in fsl_setup_msi_irqs()
249 if (!virq) { in fsl_setup_msi_irqs()
256 irq_set_msi_desc(virq, entry); in fsl_setup_msi_irqs()
[all …]
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dvas.c33 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()
/linux-6.6.21/drivers/usb/typec/tcpm/qcom/
Dqcom_pmic_typec.c289 .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,
309 .virq = PMIC_PDPHY_MSG_TX_DISCARD_IRQ,
313 .virq = PMIC_PDPHY_MSG_RX_DISCARD_IRQ,
324 .virq = PMIC_TYPEC_VPD_IRQ,
329 .virq = PMIC_TYPEC_CC_STATE_IRQ,
333 .virq = PMIC_TYPEC_VCONN_OC_IRQ,
[all …]
/linux-6.6.21/drivers/misc/cxl/
Dirq.c227 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()
238 cxl_ops->setup_irq(adapter, hwirq, virq); in cxl_map_irq()
240 pr_devel("hwirq %#lx mapped to virq %u\n", hwirq, virq); in cxl_map_irq()
242 result = request_irq(virq, handler, 0, name, cookie); in cxl_map_irq()
248 return virq; in cxl_map_irq()
251 void cxl_unmap_irq(unsigned int virq, void *cookie) in cxl_unmap_irq() argument
253 free_irq(virq, cookie); in cxl_unmap_irq()
263 int hwirq, virq; in cxl_register_one_irq() local
[all …]
/linux-6.6.21/include/linux/
Dirqdomain.h93 int (*map)(struct irq_domain *d, unsigned int virq, irq_hw_number_t hw);
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,
285 extern int irq_domain_alloc_descs(int virq, unsigned int nr_irqs,
402 extern void irq_dispose_mapping(unsigned int virq);
471 unsigned int virq);
472 extern void irq_domain_set_info(struct irq_domain *domain, unsigned int virq,
500 extern void irq_domain_free_irqs(unsigned int virq, unsigned int nr_irqs);
515 unsigned int virq,
[all …]
/linux-6.6.21/drivers/platform/x86/intel/
Dbxtwc_tmu.c53 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()
/linux-6.6.21/arch/powerpc/include/asm/
Dps3.h181 unsigned int *virq);
182 int ps3_irq_plug_destroy(unsigned int virq);
183 int ps3_event_receive_port_setup(enum ps3_cpu_binding cpu, unsigned int *virq);
184 int ps3_event_receive_port_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);
[all …]

12345678910>>...13