Lines Matching refs:fwspec
58 struct irq_fwspec *fwspec, in ti_sci_intr_irq_domain_translate() argument
64 if (fwspec->param_count != 1) in ti_sci_intr_irq_domain_translate()
67 *hwirq = fwspec->param[0]; in ti_sci_intr_irq_domain_translate()
139 struct irq_fwspec fwspec; in ti_sci_intr_alloc_parent_irq() local
152 fwspec.fwnode = of_node_to_fwnode(parent_node); in ti_sci_intr_alloc_parent_irq()
156 fwspec.param_count = 3; in ti_sci_intr_alloc_parent_irq()
157 fwspec.param[0] = 0; /* SPI */ in ti_sci_intr_alloc_parent_irq()
158 fwspec.param[1] = p_hwirq - 32; /* SPI offset */ in ti_sci_intr_alloc_parent_irq()
159 fwspec.param[2] = intr->type; in ti_sci_intr_alloc_parent_irq()
162 fwspec.param_count = 1; in ti_sci_intr_alloc_parent_irq()
163 fwspec.param[0] = p_hwirq; in ti_sci_intr_alloc_parent_irq()
166 err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); in ti_sci_intr_alloc_parent_irq()
198 struct irq_fwspec *fwspec = data; in ti_sci_intr_irq_domain_alloc() local
203 err = ti_sci_intr_irq_domain_translate(domain, fwspec, &hwirq, &flags); in ti_sci_intr_irq_domain_alloc()