Lines Matching refs:fwspec
116 struct irq_fwspec fwspec; in xgene_gpio_sb_to_irq() local
122 fwspec.fwnode = gc->parent->fwnode; in xgene_gpio_sb_to_irq()
123 fwspec.param_count = 2; in xgene_gpio_sb_to_irq()
124 fwspec.param[0] = GPIO_TO_HWIRQ(priv, gpio); in xgene_gpio_sb_to_irq()
125 fwspec.param[1] = IRQ_TYPE_EDGE_RISING; in xgene_gpio_sb_to_irq()
126 return irq_create_fwspec_mapping(&fwspec); in xgene_gpio_sb_to_irq()
162 struct irq_fwspec *fwspec, in xgene_gpio_sb_domain_translate() argument
168 if ((fwspec->param_count != 2) || in xgene_gpio_sb_domain_translate()
169 (fwspec->param[0] >= priv->nirq)) in xgene_gpio_sb_domain_translate()
171 *hwirq = fwspec->param[0]; in xgene_gpio_sb_domain_translate()
172 *type = fwspec->param[1]; in xgene_gpio_sb_domain_translate()
180 struct irq_fwspec *fwspec = data; in xgene_gpio_sb_domain_alloc() local
186 hwirq = fwspec->param[0]; in xgene_gpio_sb_domain_alloc()
197 parent_fwspec.param[2] = fwspec->param[1]; in xgene_gpio_sb_domain_alloc()
201 parent_fwspec.param[1] = fwspec->param[1]; in xgene_gpio_sb_domain_alloc()