Lines Matching refs:fwspec
81 struct irq_fwspec fwspec; in allocate_gic_irq() local
100 fwspec.fwnode = domain->parent->fwnode; in allocate_gic_irq()
101 fwspec.param_count = 3; in allocate_gic_irq()
102 fwspec.param[0] = 0; /* SPI */ in allocate_gic_irq()
103 fwspec.param[1] = i; in allocate_gic_irq()
104 fwspec.param[2] = IRQ_TYPE_LEVEL_HIGH; in allocate_gic_irq()
106 err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); in allocate_gic_irq()
118 struct irq_fwspec *fwspec = data; in crossbar_domain_alloc() local
122 if (fwspec->param_count != 3) in crossbar_domain_alloc()
124 if (fwspec->param[0] != 0) in crossbar_domain_alloc()
127 hwirq = fwspec->param[1]; in crossbar_domain_alloc()
173 struct irq_fwspec *fwspec, in crossbar_domain_translate() argument
177 if (is_of_node(fwspec->fwnode)) { in crossbar_domain_translate()
178 if (fwspec->param_count != 3) in crossbar_domain_translate()
182 if (fwspec->param[0] != 0) in crossbar_domain_translate()
185 *hwirq = fwspec->param[1]; in crossbar_domain_translate()
186 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; in crossbar_domain_translate()