utmisc.c (87d8a69709d971913e6cc7210450fcb8be963667) utmisc.c (f6a22b0bc417042e83117f52ab1a03696af185ab)
1/*******************************************************************************
2 *
3 * Module Name: utmisc - common utility procedures
4 *
5 ******************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2010, Intel Corp.

--- 191 unchanged lines hidden (view full) ---

200 u32 k;
201 acpi_status status;
202
203 ACPI_FUNCTION_TRACE(ut_allocate_owner_id);
204
205 /* Guard against multiple allocations of ID to the same location */
206
207 if (*owner_id) {
1/*******************************************************************************
2 *
3 * Module Name: utmisc - common utility procedures
4 *
5 ******************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2010, Intel Corp.

--- 191 unchanged lines hidden (view full) ---

200 u32 k;
201 acpi_status status;
202
203 ACPI_FUNCTION_TRACE(ut_allocate_owner_id);
204
205 /* Guard against multiple allocations of ID to the same location */
206
207 if (*owner_id) {
208 ACPI_ERROR((AE_INFO, "Owner ID [%2.2X] already exists",
208 ACPI_ERROR((AE_INFO, "Owner ID [0x%2.2X] already exists",
209 *owner_id));
210 return_ACPI_STATUS(AE_ALREADY_EXISTS);
211 }
212
213 /* Mutex for the global ID mask */
214
215 status = acpi_ut_acquire_mutex(ACPI_MTX_CACHES);
216 if (ACPI_FAILURE(status)) {

--- 93 unchanged lines hidden (view full) ---

310
311 /* Always clear the input owner_id (zero is an invalid ID) */
312
313 *owner_id_ptr = 0;
314
315 /* Zero is not a valid owner_iD */
316
317 if (owner_id == 0) {
209 *owner_id));
210 return_ACPI_STATUS(AE_ALREADY_EXISTS);
211 }
212
213 /* Mutex for the global ID mask */
214
215 status = acpi_ut_acquire_mutex(ACPI_MTX_CACHES);
216 if (ACPI_FAILURE(status)) {

--- 93 unchanged lines hidden (view full) ---

310
311 /* Always clear the input owner_id (zero is an invalid ID) */
312
313 *owner_id_ptr = 0;
314
315 /* Zero is not a valid owner_iD */
316
317 if (owner_id == 0) {
318 ACPI_ERROR((AE_INFO, "Invalid OwnerId: %2.2X", owner_id));
318 ACPI_ERROR((AE_INFO, "Invalid OwnerId: 0x%2.2X", owner_id));
319 return_VOID;
320 }
321
322 /* Mutex for the global ID mask */
323
324 status = acpi_ut_acquire_mutex(ACPI_MTX_CACHES);
325 if (ACPI_FAILURE(status)) {
326 return_VOID;

--- 9 unchanged lines hidden (view full) ---

336 bit = 1 << ACPI_MOD_32(owner_id);
337
338 /* Free the owner ID only if it is valid */
339
340 if (acpi_gbl_owner_id_mask[index] & bit) {
341 acpi_gbl_owner_id_mask[index] ^= bit;
342 } else {
343 ACPI_ERROR((AE_INFO,
319 return_VOID;
320 }
321
322 /* Mutex for the global ID mask */
323
324 status = acpi_ut_acquire_mutex(ACPI_MTX_CACHES);
325 if (ACPI_FAILURE(status)) {
326 return_VOID;

--- 9 unchanged lines hidden (view full) ---

336 bit = 1 << ACPI_MOD_32(owner_id);
337
338 /* Free the owner ID only if it is valid */
339
340 if (acpi_gbl_owner_id_mask[index] & bit) {
341 acpi_gbl_owner_id_mask[index] ^= bit;
342 } else {
343 ACPI_ERROR((AE_INFO,
344 "Release of non-allocated OwnerId: %2.2X",
344 "Release of non-allocated OwnerId: 0x%2.2X",
345 owner_id + 1));
346 }
347
348 (void)acpi_ut_release_mutex(ACPI_MTX_CACHES);
349 return_VOID;
350}
351
352/*******************************************************************************

--- 851 unchanged lines hidden ---
345 owner_id + 1));
346 }
347
348 (void)acpi_ut_release_mutex(ACPI_MTX_CACHES);
349 return_VOID;
350}
351
352/*******************************************************************************

--- 851 unchanged lines hidden ---