Lines Matching refs:handle

14 	acpi_handle		handle;  member
26 acpi_handle handle; member
56 static acpi_status riscv_acpi_update_gsi_handle(u32 gsi_base, acpi_handle handle) in riscv_acpi_update_gsi_handle() argument
64 ext_intc_element->handle = handle; in riscv_acpi_update_gsi_handle()
80 if (ext_intc_element->handle == ACPI_HANDLE_FWNODE(fwnode)) { in riscv_acpi_get_gsi_info()
104 adev = acpi_fetch_acpi_dev(ext_intc_element->handle); in riscv_acpi_get_gsi_domain_id()
132 static acpi_status __init riscv_acpi_create_gsi_map(acpi_handle handle, u32 level, in riscv_acpi_create_gsi_map() argument
138 if (!acpi_has_method(handle, "_GSB")) { in riscv_acpi_create_gsi_map()
139 acpi_handle_err(handle, "_GSB method not found\n"); in riscv_acpi_create_gsi_map()
143 status = acpi_evaluate_integer(handle, "_GSB", NULL, &gbase); in riscv_acpi_create_gsi_map()
145 acpi_handle_err(handle, "failed to evaluate _GSB method\n"); in riscv_acpi_create_gsi_map()
149 status = riscv_acpi_update_gsi_handle((u32)gbase, handle); in riscv_acpi_create_gsi_map()
151 acpi_handle_err(handle, "failed to find the GSI mapping entry\n"); in riscv_acpi_create_gsi_map()
197 return ext_intc_element->handle; in riscv_acpi_get_gsi_handle()
216 ctx->handle = riscv_acpi_get_gsi_handle(irq->interrupts[ctx->index]); in riscv_acpi_irq_get_parent()
232 ctx->handle = riscv_acpi_get_gsi_handle(eirq->interrupts[ctx->index]); in riscv_acpi_irq_get_parent()
239 static int riscv_acpi_irq_get_dep(acpi_handle handle, unsigned int index, acpi_handle *gsi_handle) in riscv_acpi_irq_get_dep() argument
246 acpi_walk_resources(handle, METHOD_NAME__CRS, riscv_acpi_irq_get_parent, &ctx); in riscv_acpi_irq_get_dep()
247 *gsi_handle = ctx.handle; in riscv_acpi_irq_get_dep()
254 static u32 riscv_acpi_add_prt_dep(acpi_handle handle) in riscv_acpi_add_prt_dep() argument
264 status = acpi_get_irq_routing_table(handle, &buffer); in riscv_acpi_add_prt_dep()
266 acpi_handle_err(handle, "failed to get IRQ routing table\n"); in riscv_acpi_add_prt_dep()
274 acpi_get_handle(handle, entry->source, &link_handle); in riscv_acpi_add_prt_dep()
278 acpi_handle_err(handle, "failed to allocate memory\n"); in riscv_acpi_add_prt_dep()
283 count += acpi_scan_add_dep(handle, &dep_devices); in riscv_acpi_add_prt_dep()
289 acpi_handle_err(handle, "failed to allocate memory\n"); in riscv_acpi_add_prt_dep()
294 count += acpi_scan_add_dep(handle, &dep_devices); in riscv_acpi_add_prt_dep()
305 static u32 riscv_acpi_add_irq_dep(acpi_handle handle) in riscv_acpi_add_irq_dep() argument
313 riscv_acpi_irq_get_dep(handle, i, &gsi_handle); in riscv_acpi_add_irq_dep()
318 acpi_handle_err(handle, "failed to allocate memory\n"); in riscv_acpi_add_irq_dep()
323 count += acpi_scan_add_dep(handle, &dep_devices); in riscv_acpi_add_irq_dep()
329 u32 arch_acpi_add_auto_dep(acpi_handle handle) in arch_acpi_add_auto_dep() argument
331 if (acpi_has_method(handle, "_PRT")) in arch_acpi_add_auto_dep()
332 return riscv_acpi_add_prt_dep(handle); in arch_acpi_add_auto_dep()
334 return riscv_acpi_add_irq_dep(handle); in arch_acpi_add_auto_dep()