Lines Matching full:resources
286 /* Collect all resources requested, to avoid conflict */
380 void apei_resources_fini(struct apei_resources *resources) in apei_resources_fini() argument
382 apei_res_clean(&resources->iomem); in apei_resources_fini()
383 apei_res_clean(&resources->ioport); in apei_resources_fini()
409 int apei_resources_add(struct apei_resources *resources, in apei_resources_add() argument
414 return apei_res_add(&resources->iomem, start, size); in apei_resources_add()
416 return apei_res_add(&resources->ioport, start, size); in apei_resources_add()
422 * entry), so common resources are subtracted from the trigger table
423 * resources before the second requesting.
439 struct apei_resources *resources = data; in apei_get_res_callback() local
440 return apei_res_add(&resources->iomem, start, size); in apei_get_res_callback()
443 static int apei_get_nvs_resources(struct apei_resources *resources) in apei_get_nvs_resources() argument
445 return acpi_nvs_for_each_region(apei_get_res_callback, resources); in apei_get_nvs_resources()
450 static int apei_get_arch_resources(struct apei_resources *resources) in apei_get_arch_resources() argument
453 return arch_apei_filter_addr(apei_get_res_callback, resources); in apei_get_arch_resources()
461 int apei_resources_request(struct apei_resources *resources, in apei_resources_request() argument
469 rc = apei_resources_sub(resources, &apei_resources_all); in apei_resources_request()
475 * busy, so exclude it from APEI resources to avoid false in apei_resources_request()
482 rc = apei_resources_sub(resources, &nvs_resources); in apei_resources_request()
491 rc = apei_resources_sub(resources, &arch_res); in apei_resources_request()
497 list_for_each_entry(res, &resources->iomem, list) { in apei_resources_request()
510 list_for_each_entry(res, &resources->ioport, list) { in apei_resources_request()
522 rc = apei_resources_merge(&apei_resources_all, resources); in apei_resources_request()
524 pr_err(APEI_PFX "Fail to merge resources!\n"); in apei_resources_request()
531 list_for_each_entry(res, &resources->ioport, list) { in apei_resources_request()
538 list_for_each_entry(res, &resources->iomem, list) { in apei_resources_request()
552 void apei_resources_release(struct apei_resources *resources) in apei_resources_release() argument
557 list_for_each_entry(res, &resources->iomem, list) in apei_resources_release()
559 list_for_each_entry(res, &resources->ioport, list) in apei_resources_release()
562 rc = apei_resources_sub(&apei_resources_all, resources); in apei_resources_release()
564 pr_err(APEI_PFX "Fail to sub resources!\n"); in apei_resources_release()
714 struct apei_resources *resources = data; in collect_res_callback() local
730 return apei_res_add(&resources->iomem, paddr, in collect_res_callback()
733 return apei_res_add(&resources->ioport, paddr, in collect_res_callback()
742 * resources are collected before requesting.
745 struct apei_resources *resources) in apei_exec_collect_resources() argument
748 resources, NULL); in apei_exec_collect_resources()