emlxs_diag.c (b3660a96) emlxs_diag.c (a9800beb)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright 2009 Emulex. All rights reserved.
23 * Copyright 2010 Emulex. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27
28#include <emlxs.h>
29
30
31/* Required for EMLXS_CONTEXT in EMLXS_MSGF calls */

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

402 != DDI_FM_OK) {
403 EMLXS_MSGF(EMLXS_CONTEXT,
404 &emlxs_invalid_dma_handle_msg,
405 "emlxs_diag_biu_run: hdl=%p",
406 mp->dma_handle);
407 rval = EMLXS_TEST_FAILED;
408 }
409#endif /* FMA_SUPPORT */
24 * Use is subject to license terms.
25 */
26
27
28#include <emlxs.h>
29
30
31/* Required for EMLXS_CONTEXT in EMLXS_MSGF calls */

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

402 != DDI_FM_OK) {
403 EMLXS_MSGF(EMLXS_CONTEXT,
404 &emlxs_invalid_dma_handle_msg,
405 "emlxs_diag_biu_run: hdl=%p",
406 mp->dma_handle);
407 rval = EMLXS_TEST_FAILED;
408 }
409#endif /* FMA_SUPPORT */
410 (void) emlxs_mem_put(hba, MEM_BUF, (uint8_t *)mp);
410 emlxs_mem_put(hba, MEM_BUF, (void *)mp);
411 }
412 if (mp1) {
413#ifdef FMA_SUPPORT
414 if (emlxs_fm_check_dma_handle(hba, mp1->dma_handle)
415 != DDI_FM_OK) {
416 EMLXS_MSGF(EMLXS_CONTEXT,
417 &emlxs_invalid_dma_handle_msg,
418 "emlxs_diag_biu_run: hdl=%p",
419 mp1->dma_handle);
420 rval = EMLXS_TEST_FAILED;
421 }
422#endif /* FMA_SUPPORT */
411 }
412 if (mp1) {
413#ifdef FMA_SUPPORT
414 if (emlxs_fm_check_dma_handle(hba, mp1->dma_handle)
415 != DDI_FM_OK) {
416 EMLXS_MSGF(EMLXS_CONTEXT,
417 &emlxs_invalid_dma_handle_msg,
418 "emlxs_diag_biu_run: hdl=%p",
419 mp1->dma_handle);
420 rval = EMLXS_TEST_FAILED;
421 }
422#endif /* FMA_SUPPORT */
423 (void) emlxs_mem_put(hba, MEM_BUF, (uint8_t *)mp1);
423 emlxs_mem_put(hba, MEM_BUF, (void *)mp1);
424 }
425 if (mbq) {
424 }
425 if (mbq) {
426 (void) emlxs_mem_put(hba, MEM_MBOX, (uint8_t *)mbq);
426 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq);
427 }
428
429 return (rval);
430
431} /* emlxs_diag_biu_run() */
432
433
434extern uint32_t

--- 59 unchanged lines hidden ---
427 }
428
429 return (rval);
430
431} /* emlxs_diag_biu_run() */
432
433
434extern uint32_t

--- 59 unchanged lines hidden ---