Home
last modified time | relevance | path

Searched refs:irq_res (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/soc/intel/common/
Dsoc_gpio.c46 struct acpi_irq_resource irq_res; in soc_acpi_gpio_resource_get() local
66 irq_res.irq_vector_max = ARRAY_SIZE(irqs); in soc_acpi_gpio_resource_get()
67 irq_res.irqs = irqs; in soc_acpi_gpio_resource_get()
68 ret = acpi_device_irq_get(acpi_child, &irq_res); in soc_acpi_gpio_resource_get()
74 res->irq = irq_res.irqs[0]; in soc_acpi_gpio_resource_get()
75 res->irq_flags = irq_res.flags; in soc_acpi_gpio_resource_get()
/Zephyr-latest/lib/acpi/
Dacpi_shell.c31 ACPI_RESOURCE_IRQ *irq_res = &res->Data.Irq; in dump_dev_res() local
33 shell_print(sh, "\tDescriptorLength: %x", irq_res->DescriptorLength); in dump_dev_res()
34 shell_print(sh, "\tTriggering: %x", irq_res->Triggering); in dump_dev_res()
35 shell_print(sh, "\tPolarity: %x", irq_res->Polarity); in dump_dev_res()
36 shell_print(sh, "\tShareable: %x", irq_res->Shareable); in dump_dev_res()
37 shell_print(sh, "\tInterruptCount: %d", irq_res->InterruptCount); in dump_dev_res()
38 shell_print(sh, "\tInterrupts[0]: %x", irq_res->Interrupts[0]); in dump_dev_res()
280 struct acpi_irq_resource irq_res; in get_acpi_dev_resource() local
311 irq_res.irq_vector_max = ARRAY_SIZE(irqs); in get_acpi_dev_resource()
312 irq_res.irqs = irqs; in get_acpi_dev_resource()
[all …]
Dacpi.c450 int acpi_device_irq_get(struct acpi_dev *child_dev, struct acpi_irq_resource *irq_res) in acpi_device_irq_get() argument
460 if (res->Data.ExtendedIrq.InterruptCount > irq_res->irq_vector_max) { in acpi_device_irq_get()
464 irq_res->irq_vector_max = res->Data.ExtendedIrq.InterruptCount; in acpi_device_irq_get()
465 for (int i = 0; i < irq_res->irq_vector_max; i++) { in acpi_device_irq_get()
466 irq_res->irqs[i] = (uint16_t)res->Data.ExtendedIrq.Interrupts[i]; in acpi_device_irq_get()
469 irq_res->flags = arch_acpi_encode_irq_flags(res->Data.ExtendedIrq.Polarity, in acpi_device_irq_get()
472 if (res->Data.Irq.InterruptCount > irq_res->irq_vector_max) { in acpi_device_irq_get()
476 irq_res->irq_vector_max = res->Data.Irq.InterruptCount; in acpi_device_irq_get()
477 for (int i = 0; i < irq_res->irq_vector_max; i++) { in acpi_device_irq_get()
478 irq_res->irqs[i] = (uint16_t)res->Data.Irq.Interrupts[i]; in acpi_device_irq_get()
[all …]
/Zephyr-latest/tests/lib/acpi/integration/src/
Dmain.c50 struct acpi_irq_resource irq_res; in ZTEST() local
68 irq_res.irq_vector_max = ARRAY_SIZE(irqs); in ZTEST()
69 irq_res.irqs = irqs; in ZTEST()
70 ret = acpi_device_irq_get(dev, &irq_res); in ZTEST()
/Zephyr-latest/include/zephyr/acpi/
Dacpi.h208 int acpi_device_irq_get(struct acpi_dev *child_dev, struct acpi_irq_resource *irq_res);