Lines Matching refs:intr
71 struct ti_sci_intr_irq_domain *intr = domain->host_data; in ti_sci_intr_irq_domain_translate() local
77 *type = intr->type; in ti_sci_intr_irq_domain_translate()
91 struct ti_sci_intr_irq_domain *intr = domain->host_data; in ti_sci_intr_irq_domain_free() local
100 intr->sci->ops.rm_irq_ops.free_irq(intr->sci, dev_id, irq_index, in ti_sci_intr_irq_domain_free()
101 intr->dst_id, parent_data->hwirq); in ti_sci_intr_irq_domain_free()
102 ti_sci_release_resource(intr->dst_irq, parent_data->hwirq); in ti_sci_intr_irq_domain_free()
118 struct ti_sci_intr_irq_domain *intr = domain->host_data; in ti_sci_intr_alloc_gic_irq() local
127 dst_irq = ti_sci_get_free_resource(intr->dst_irq); in ti_sci_intr_alloc_gic_irq()
135 fwspec.param[2] = intr->type; in ti_sci_intr_alloc_gic_irq()
141 err = intr->sci->ops.rm_irq_ops.set_irq(intr->sci, dev_id, irq_index, in ti_sci_intr_alloc_gic_irq()
142 intr->dst_id, dst_irq); in ti_sci_intr_alloc_gic_irq()
151 ti_sci_release_resource(intr->dst_irq, dst_irq); in ti_sci_intr_alloc_gic_irq()
196 struct ti_sci_intr_irq_domain *intr; in ti_sci_intr_irq_domain_probe() local
213 intr = devm_kzalloc(dev, sizeof(*intr), GFP_KERNEL); in ti_sci_intr_irq_domain_probe()
214 if (!intr) in ti_sci_intr_irq_domain_probe()
218 &intr->type); in ti_sci_intr_irq_domain_probe()
224 intr->sci = devm_ti_sci_get_by_phandle(dev, "ti,sci"); in ti_sci_intr_irq_domain_probe()
225 if (IS_ERR(intr->sci)) { in ti_sci_intr_irq_domain_probe()
226 ret = PTR_ERR(intr->sci); in ti_sci_intr_irq_domain_probe()
229 intr->sci = NULL; in ti_sci_intr_irq_domain_probe()
234 &intr->dst_id); in ti_sci_intr_irq_domain_probe()
240 intr->dst_irq = devm_ti_sci_get_of_resource(intr->sci, dev, in ti_sci_intr_irq_domain_probe()
241 intr->dst_id, in ti_sci_intr_irq_domain_probe()
243 if (IS_ERR(intr->dst_irq)) { in ti_sci_intr_irq_domain_probe()
245 return PTR_ERR(intr->dst_irq); in ti_sci_intr_irq_domain_probe()
249 &ti_sci_intr_irq_domain_ops, intr); in ti_sci_intr_irq_domain_probe()