Lines Matching refs:domain
18 struct irq_domain *domain; member
112 irqnum = irq_find_mapping(work_ctx->domain, offset); in irq_sim_handle_irq()
117 static int irq_sim_domain_map(struct irq_domain *domain, in irq_sim_domain_map() argument
120 struct irq_sim_work_ctx *work_ctx = domain->host_data; in irq_sim_domain_map()
136 static void irq_sim_domain_unmap(struct irq_domain *domain, unsigned int virq) in irq_sim_domain_unmap() argument
141 irqd = irq_domain_get_irq_data(domain, virq); in irq_sim_domain_unmap()
177 work_ctx->domain = irq_domain_create_linear(fwnode, num_irqs, in irq_domain_create_sim()
180 if (!work_ctx->domain) in irq_domain_create_sim()
186 return work_ctx->domain; in irq_domain_create_sim()
203 void irq_domain_remove_sim(struct irq_domain *domain) in irq_domain_remove_sim() argument
205 struct irq_sim_work_ctx *work_ctx = domain->host_data; in irq_domain_remove_sim()
211 irq_domain_remove(domain); in irq_domain_remove_sim()
217 struct irq_domain *domain = data; in devm_irq_domain_remove_sim() local
219 irq_domain_remove_sim(domain); in devm_irq_domain_remove_sim()
237 struct irq_domain *domain; in devm_irq_domain_create_sim() local
240 domain = irq_domain_create_sim(fwnode, num_irqs); in devm_irq_domain_create_sim()
241 if (IS_ERR(domain)) in devm_irq_domain_create_sim()
242 return domain; in devm_irq_domain_create_sim()
244 ret = devm_add_action_or_reset(dev, devm_irq_domain_remove_sim, domain); in devm_irq_domain_create_sim()
248 return domain; in devm_irq_domain_create_sim()