Lines Matching refs:resource
84 static acpi_status acpi_pci_link_check_possible(struct acpi_resource *resource, in acpi_pci_link_check_possible() argument
90 switch (resource->type) { in acpi_pci_link_check_possible()
96 struct acpi_resource_irq *p = &resource->data.irq; in acpi_pci_link_check_possible()
122 &resource->data.extended_irq; in acpi_pci_link_check_possible()
147 resource->type); in acpi_pci_link_check_possible()
172 static acpi_status acpi_pci_link_check_current(struct acpi_resource *resource, in acpi_pci_link_check_current() argument
177 switch (resource->type) { in acpi_pci_link_check_current()
183 struct acpi_resource_irq *p = &resource->data.irq; in acpi_pci_link_check_current()
199 &resource->data.extended_irq; in acpi_pci_link_check_current()
215 resource->type); in acpi_pci_link_check_current()
284 } *resource; in acpi_pci_link_set() local
290 resource = kzalloc(sizeof(*resource) + 1, irqs_disabled() ? GFP_ATOMIC: GFP_KERNEL); in acpi_pci_link_set()
291 if (!resource) in acpi_pci_link_set()
294 buffer.length = sizeof(*resource) + 1; in acpi_pci_link_set()
295 buffer.pointer = resource; in acpi_pci_link_set()
299 resource->res.type = ACPI_RESOURCE_TYPE_IRQ; in acpi_pci_link_set()
300 resource->res.length = sizeof(struct acpi_resource); in acpi_pci_link_set()
301 resource->res.data.irq.triggering = link->irq.triggering; in acpi_pci_link_set()
302 resource->res.data.irq.polarity = in acpi_pci_link_set()
305 resource->res.data.irq.shareable = in acpi_pci_link_set()
308 resource->res.data.irq.shareable = ACPI_SHARED; in acpi_pci_link_set()
309 resource->res.data.irq.interrupt_count = 1; in acpi_pci_link_set()
310 resource->res.data.irq.interrupts[0] = irq; in acpi_pci_link_set()
314 resource->res.type = ACPI_RESOURCE_TYPE_EXTENDED_IRQ; in acpi_pci_link_set()
315 resource->res.length = sizeof(struct acpi_resource); in acpi_pci_link_set()
316 resource->res.data.extended_irq.producer_consumer = in acpi_pci_link_set()
318 resource->res.data.extended_irq.triggering = in acpi_pci_link_set()
320 resource->res.data.extended_irq.polarity = in acpi_pci_link_set()
323 resource->res.data.extended_irq.shareable = in acpi_pci_link_set()
326 resource->res.data.extended_irq.shareable = ACPI_SHARED; in acpi_pci_link_set()
327 resource->res.data.extended_irq.interrupt_count = 1; in acpi_pci_link_set()
328 resource->res.data.extended_irq.interrupts[0] = irq; in acpi_pci_link_set()
337 resource->end.type = ACPI_RESOURCE_TYPE_END_TAG; in acpi_pci_link_set()
338 resource->end.length = sizeof(struct acpi_resource); in acpi_pci_link_set()
388 kfree(resource); in acpi_pci_link_set()