Lines Matching refs:resource
84 static acpi_status acpi_pci_link_check_possible(struct acpi_resource *resource, in acpi_pci_link_check_possible() argument
91 switch (resource->type) { in acpi_pci_link_check_possible()
97 struct acpi_resource_irq *p = &resource->data.irq; in acpi_pci_link_check_possible()
123 &resource->data.extended_irq; in acpi_pci_link_check_possible()
148 resource->type); in acpi_pci_link_check_possible()
173 static acpi_status acpi_pci_link_check_current(struct acpi_resource *resource, in acpi_pci_link_check_current() argument
178 switch (resource->type) { in acpi_pci_link_check_current()
184 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()
214 resource->type); in acpi_pci_link_check_current()
282 } *resource; in acpi_pci_link_set() local
291 resource = kzalloc(sizeof(*resource) + 1, irqs_disabled() ? GFP_ATOMIC: GFP_KERNEL); in acpi_pci_link_set()
292 if (!resource) in acpi_pci_link_set()
295 buffer.length = sizeof(*resource) + 1; in acpi_pci_link_set()
296 buffer.pointer = resource; in acpi_pci_link_set()
300 resource->res.type = ACPI_RESOURCE_TYPE_IRQ; in acpi_pci_link_set()
301 resource->res.length = sizeof(struct acpi_resource); in acpi_pci_link_set()
302 resource->res.data.irq.triggering = link->irq.triggering; in acpi_pci_link_set()
303 resource->res.data.irq.polarity = in acpi_pci_link_set()
306 resource->res.data.irq.shareable = in acpi_pci_link_set()
309 resource->res.data.irq.shareable = ACPI_SHARED; in acpi_pci_link_set()
310 resource->res.data.irq.interrupt_count = 1; in acpi_pci_link_set()
311 resource->res.data.irq.interrupts[0] = irq; in acpi_pci_link_set()
315 resource->res.type = ACPI_RESOURCE_TYPE_EXTENDED_IRQ; in acpi_pci_link_set()
316 resource->res.length = sizeof(struct acpi_resource); in acpi_pci_link_set()
317 resource->res.data.extended_irq.producer_consumer = in acpi_pci_link_set()
319 resource->res.data.extended_irq.triggering = in acpi_pci_link_set()
321 resource->res.data.extended_irq.polarity = in acpi_pci_link_set()
324 resource->res.data.extended_irq.shareable = in acpi_pci_link_set()
327 resource->res.data.extended_irq.shareable = ACPI_SHARED; in acpi_pci_link_set()
328 resource->res.data.extended_irq.interrupt_count = 1; in acpi_pci_link_set()
329 resource->res.data.extended_irq.interrupts[0] = irq; in acpi_pci_link_set()
339 resource->end.type = ACPI_RESOURCE_TYPE_END_TAG; in acpi_pci_link_set()
340 resource->end.length = sizeof(struct acpi_resource); in acpi_pci_link_set()
384 kfree(resource); in acpi_pci_link_set()