Lines Matching refs:handle

2221 static inline bool dmar_detect_dsm(acpi_handle handle, int func)  in dmar_detect_dsm()  argument
2223 return acpi_check_dsm(handle, &dmar_hp_guid, DMAR_DSM_REV_ID, 1 << func); in dmar_detect_dsm()
2226 static int dmar_walk_dsm_resource(acpi_handle handle, int func, in dmar_walk_dsm_resource() argument
2240 if (!dmar_detect_dsm(handle, func)) in dmar_walk_dsm_resource()
2243 obj = acpi_evaluate_dsm_typed(handle, &dmar_hp_guid, DMAR_DSM_REV_ID, in dmar_walk_dsm_resource()
2315 static int dmar_hotplug_insert(acpi_handle handle) in dmar_hotplug_insert() argument
2320 ret = dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_DRHD, in dmar_hotplug_insert()
2325 ret = dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_DRHD, in dmar_hotplug_insert()
2334 ret = dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_RHSA, in dmar_hotplug_insert()
2339 ret = dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_ATSR, in dmar_hotplug_insert()
2344 ret = dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_DRHD, in dmar_hotplug_insert()
2349 dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_DRHD, in dmar_hotplug_insert()
2352 dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_ATSR, in dmar_hotplug_insert()
2355 dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_DRHD, in dmar_hotplug_insert()
2361 static int dmar_hotplug_remove(acpi_handle handle) in dmar_hotplug_remove() argument
2365 ret = dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_ATSR, in dmar_hotplug_remove()
2370 ret = dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_DRHD, in dmar_hotplug_remove()
2373 WARN_ON(dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_ATSR, in dmar_hotplug_remove()
2375 WARN_ON(dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_DRHD, in dmar_hotplug_remove()
2378 dmar_walk_dsm_resource(handle, DMAR_DSM_FUNC_DRHD, in dmar_hotplug_remove()
2385 static acpi_status dmar_get_dsm_handle(acpi_handle handle, u32 lvl, in dmar_get_dsm_handle() argument
2390 if (dmar_detect_dsm(handle, DMAR_DSM_FUNC_DRHD)) { in dmar_get_dsm_handle()
2391 *phdl = handle; in dmar_get_dsm_handle()
2398 static int dmar_device_hotplug(acpi_handle handle, bool insert) in dmar_device_hotplug() argument
2407 if (dmar_detect_dsm(handle, DMAR_DSM_FUNC_DRHD)) { in dmar_device_hotplug()
2408 tmp = handle; in dmar_device_hotplug()
2410 status = acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, in dmar_device_hotplug()
2432 int dmar_device_add(acpi_handle handle) in dmar_device_add() argument
2434 return dmar_device_hotplug(handle, true); in dmar_device_add()
2437 int dmar_device_remove(acpi_handle handle) in dmar_device_remove() argument
2439 return dmar_device_hotplug(handle, false); in dmar_device_remove()