Home
last modified time | relevance | path

Searched refs:fwspec (Results 1 – 10 of 10) sorted by relevance

/arch/arm/mach-imx/
Dgpc.c173 struct irq_fwspec *fwspec, in imx_gpc_domain_translate() argument
177 if (is_of_node(fwspec->fwnode)) { in imx_gpc_domain_translate()
178 if (fwspec->param_count != 3) in imx_gpc_domain_translate()
182 if (fwspec->param[0] != 0) in imx_gpc_domain_translate()
185 *hwirq = fwspec->param[1]; in imx_gpc_domain_translate()
186 *type = fwspec->param[2]; in imx_gpc_domain_translate()
197 struct irq_fwspec *fwspec = data; in imx_gpc_domain_alloc() local
202 if (fwspec->param_count != 3) in imx_gpc_domain_alloc()
204 if (fwspec->param[0] != 0) in imx_gpc_domain_alloc()
207 hwirq = fwspec->param[1]; in imx_gpc_domain_alloc()
[all …]
/arch/arm/mach-exynos/
Dsuspend.c137 struct irq_fwspec *fwspec, in exynos_pmu_domain_translate() argument
141 if (is_of_node(fwspec->fwnode)) { in exynos_pmu_domain_translate()
142 if (fwspec->param_count != 3) in exynos_pmu_domain_translate()
146 if (fwspec->param[0] != 0) in exynos_pmu_domain_translate()
149 *hwirq = fwspec->param[1]; in exynos_pmu_domain_translate()
150 *type = fwspec->param[2]; in exynos_pmu_domain_translate()
161 struct irq_fwspec *fwspec = data; in exynos_pmu_domain_alloc() local
166 if (fwspec->param_count != 3) in exynos_pmu_domain_alloc()
168 if (fwspec->param[0] != 0) in exynos_pmu_domain_alloc()
171 hwirq = fwspec->param[1]; in exynos_pmu_domain_alloc()
[all …]
/arch/arm/mach-omap2/
Domap-wakeupgen.c488 struct irq_fwspec *fwspec, in wakeupgen_domain_translate() argument
492 if (is_of_node(fwspec->fwnode)) { in wakeupgen_domain_translate()
493 if (fwspec->param_count != 3) in wakeupgen_domain_translate()
497 if (fwspec->param[0] != 0) in wakeupgen_domain_translate()
500 *hwirq = fwspec->param[1]; in wakeupgen_domain_translate()
501 *type = fwspec->param[2]; in wakeupgen_domain_translate()
512 struct irq_fwspec *fwspec = data; in wakeupgen_domain_alloc() local
517 if (fwspec->param_count != 3) in wakeupgen_domain_alloc()
519 if (fwspec->param[0] != 0) in wakeupgen_domain_alloc()
522 hwirq = fwspec->param[1]; in wakeupgen_domain_alloc()
[all …]
/arch/x86/include/asm/
Dirqdomain.h15 extern int x86_fwspec_is_ioapic(struct irq_fwspec *fwspec);
16 extern int x86_fwspec_is_hpet(struct irq_fwspec *fwspec);
/arch/powerpc/sysdev/xics/
Dxics-common.c415 static int xics_host_domain_translate(struct irq_domain *d, struct irq_fwspec *fwspec, in xics_host_domain_translate() argument
418 return xics_host_xlate(d, to_of_node(fwspec->fwnode), fwspec->param, in xics_host_domain_translate()
419 fwspec->param_count, hwirq, type); in xics_host_domain_translate()
425 struct irq_fwspec *fwspec = arg; in xics_host_domain_alloc() local
430 rc = xics_host_domain_translate(domain, fwspec, &hwirq, &type); in xics_host_domain_alloc()
/arch/x86/kernel/
Ddevicetree.c218 struct irq_fwspec *fwspec = (struct irq_fwspec *)arg; in dt_irqdomain_alloc() local
223 if (WARN_ON(fwspec->param_count < 2)) in dt_irqdomain_alloc()
226 type_index = fwspec->param[1]; in dt_irqdomain_alloc()
233 tmp.ioapic.pin = fwspec->param[0]; in dt_irqdomain_alloc()
Dhpet.c548 struct irq_fwspec fwspec; in hpet_create_irq_domain() local
567 fwspec.fwnode = fn; in hpet_create_irq_domain()
568 fwspec.param_count = 1; in hpet_create_irq_domain()
569 fwspec.param[0] = hpet_id; in hpet_create_irq_domain()
571 parent = irq_find_matching_fwspec(&fwspec, DOMAIN_BUS_ANY); in hpet_create_irq_domain()
/arch/x86/kernel/apic/
Dvector.c651 int x86_fwspec_is_ioapic(struct irq_fwspec *fwspec) in x86_fwspec_is_ioapic() argument
653 if (fwspec->param_count != 1) in x86_fwspec_is_ioapic()
656 if (is_fwnode_irqchip(fwspec->fwnode)) { in x86_fwspec_is_ioapic()
657 const char *fwname = fwnode_get_name(fwspec->fwnode); in x86_fwspec_is_ioapic()
659 simple_strtol(fwname+8, NULL, 10) == fwspec->param[0]; in x86_fwspec_is_ioapic()
661 return to_of_node(fwspec->fwnode) && in x86_fwspec_is_ioapic()
662 of_device_is_compatible(to_of_node(fwspec->fwnode), in x86_fwspec_is_ioapic()
666 int x86_fwspec_is_hpet(struct irq_fwspec *fwspec) in x86_fwspec_is_hpet() argument
668 if (fwspec->param_count != 1) in x86_fwspec_is_hpet()
671 if (is_fwnode_irqchip(fwspec->fwnode)) { in x86_fwspec_is_hpet()
[all …]
Dio_apic.c2341 struct irq_fwspec fwspec; in mp_irqdomain_create() local
2355 fwspec.fwnode = fn; in mp_irqdomain_create()
2356 fwspec.param_count = 1; in mp_irqdomain_create()
2357 fwspec.param[0] = mpc_ioapic_id(ioapic); in mp_irqdomain_create()
2359 parent = irq_find_matching_fwspec(&fwspec, DOMAIN_BUS_ANY); in mp_irqdomain_create()
/arch/powerpc/sysdev/xive/
Dcommon.c1372 struct irq_fwspec *fwspec, in xive_irq_domain_translate() argument
1376 return xive_irq_domain_xlate(d, to_of_node(fwspec->fwnode), in xive_irq_domain_translate()
1377 fwspec->param, fwspec->param_count, in xive_irq_domain_translate()
1384 struct irq_fwspec *fwspec = arg; in xive_irq_domain_alloc() local
1389 rc = xive_irq_domain_translate(domain, fwspec, &hwirq, &type); in xive_irq_domain_alloc()