isp_library.c (288714) | isp_library.c (290787) |
---|---|
1/*- 2 * Copyright (c) 1997-2009 by Matthew Jacob 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 21 unchanged lines hidden (view full) --- 30 */ 31#ifdef __NetBSD__ 32#include <sys/cdefs.h> 33__KERNEL_RCSID(0, "$NetBSD$"); 34#include <dev/ic/isp_netbsd.h> 35#endif 36#ifdef __FreeBSD__ 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997-2009 by Matthew Jacob 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 21 unchanged lines hidden (view full) --- 30 */ 31#ifdef __NetBSD__ 32#include <sys/cdefs.h> 33__KERNEL_RCSID(0, "$NetBSD$"); 34#include <dev/ic/isp_netbsd.h> 35#endif 36#ifdef __FreeBSD__ 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: stable/10/sys/dev/isp/isp_library.c 288714 2015-10-05 08:31:48Z mav $"); | 38__FBSDID("$FreeBSD: stable/10/sys/dev/isp/isp_library.c 290787 2015-11-13 19:45:15Z mav $"); |
39#include <dev/isp/isp_freebsd.h> 40#endif 41#ifdef __OpenBSD__ 42#include <dev/ic/isp_openbsd.h> 43#endif 44#ifdef __linux__ 45#include "isp_linux.h" 46#endif --- 2369 unchanged lines hidden (view full) --- 2416 } 2417 } 2418} 2419 2420/* 2421 * Add an initiator device to the port database 2422 */ 2423void | 39#include <dev/isp/isp_freebsd.h> 40#endif 41#ifdef __OpenBSD__ 42#include <dev/ic/isp_openbsd.h> 43#endif 44#ifdef __linux__ 45#include "isp_linux.h" 46#endif --- 2369 unchanged lines hidden (view full) --- 2416 } 2417 } 2418} 2419 2420/* 2421 * Add an initiator device to the port database 2422 */ 2423void |
2424isp_add_wwn_entry(ispsoftc_t *isp, int chan, uint64_t ini, uint16_t nphdl, uint32_t s_id, uint16_t prli_params) | 2424isp_add_wwn_entry(ispsoftc_t *isp, int chan, uint64_t wwpn, uint64_t wwnn, 2425 uint16_t nphdl, uint32_t s_id, uint16_t prli_params) |
2425{ 2426 char buf[64]; 2427 fcparam *fcp; 2428 fcportdb_t *lp; 2429 int i, change; 2430 2431 fcp = FCPARAM(isp, chan); 2432 if (nphdl >= MAX_NPORT_HANDLE) { 2433 isp_prt(isp, ISP_LOGTINFO|ISP_LOGWARN, "Chan %d WWPN 0x%016llx " 2434 "PortID 0x%06x handle 0x%x -- bad handle", | 2426{ 2427 char buf[64]; 2428 fcparam *fcp; 2429 fcportdb_t *lp; 2430 int i, change; 2431 2432 fcp = FCPARAM(isp, chan); 2433 if (nphdl >= MAX_NPORT_HANDLE) { 2434 isp_prt(isp, ISP_LOGTINFO|ISP_LOGWARN, "Chan %d WWPN 0x%016llx " 2435 "PortID 0x%06x handle 0x%x -- bad handle", |
2435 chan, (unsigned long long) ini, s_id, nphdl); | 2436 chan, (unsigned long long) wwpn, s_id, nphdl); |
2436 return; 2437 } 2438 2439 /* 2440 * If valid record for requested handle already exists, update it 2441 * with new parameters. Some cases of update can be suspicious, 2442 * so log them verbosely and dump the whole port database. 2443 */ | 2437 return; 2438 } 2439 2440 /* 2441 * If valid record for requested handle already exists, update it 2442 * with new parameters. Some cases of update can be suspicious, 2443 * so log them verbosely and dump the whole port database. 2444 */ |
2444 if ((VALID_INI(ini) && isp_find_pdb_by_wwn(isp, chan, ini, &lp)) || | 2445 if ((VALID_INI(wwpn) && isp_find_pdb_by_wwn(isp, chan, wwpn, &lp)) || |
2445 (s_id != PORT_NONE && isp_find_pdb_by_sid(isp, chan, s_id, &lp))) { 2446 change = 0; 2447 lp->new_portid = lp->portid; 2448 lp->new_prli_word3 = lp->prli_word3; 2449 if (s_id != PORT_NONE && lp->portid != s_id) { 2450 if (lp->portid == PORT_NONE) { 2451 isp_prt(isp, ISP_LOGTINFO, 2452 "Chan %d WWPN 0x%016llx handle 0x%x " --- 7 unchanged lines hidden (view full) --- 2460 chan, (unsigned long long) lp->port_wwn, 2461 nphdl, lp->portid, s_id); 2462 if (isp->isp_dblev & (ISP_LOGTINFO|ISP_LOGWARN)) 2463 isp_dump_portdb(isp, chan); 2464 } 2465 lp->new_portid = s_id; 2466 change++; 2467 } | 2446 (s_id != PORT_NONE && isp_find_pdb_by_sid(isp, chan, s_id, &lp))) { 2447 change = 0; 2448 lp->new_portid = lp->portid; 2449 lp->new_prli_word3 = lp->prli_word3; 2450 if (s_id != PORT_NONE && lp->portid != s_id) { 2451 if (lp->portid == PORT_NONE) { 2452 isp_prt(isp, ISP_LOGTINFO, 2453 "Chan %d WWPN 0x%016llx handle 0x%x " --- 7 unchanged lines hidden (view full) --- 2461 chan, (unsigned long long) lp->port_wwn, 2462 nphdl, lp->portid, s_id); 2463 if (isp->isp_dblev & (ISP_LOGTINFO|ISP_LOGWARN)) 2464 isp_dump_portdb(isp, chan); 2465 } 2466 lp->new_portid = s_id; 2467 change++; 2468 } |
2468 if (VALID_INI(ini) && lp->port_wwn != ini) { | 2469 if (VALID_INI(wwpn) && lp->port_wwn != wwpn) { |
2469 if (!VALID_INI(lp->port_wwn)) { 2470 isp_prt(isp, ISP_LOGTINFO, 2471 "Chan %d PortID 0x%06x handle 0x%x " | 2470 if (!VALID_INI(lp->port_wwn)) { 2471 isp_prt(isp, ISP_LOGTINFO, 2472 "Chan %d PortID 0x%06x handle 0x%x " |
2472 "gets WWN 0x%016llxx", | 2473 "gets WWPN 0x%016llxx", |
2473 chan, lp->portid, nphdl, | 2474 chan, lp->portid, nphdl, |
2474 (unsigned long long) ini); 2475 } else if (lp->port_wwn != ini) { | 2475 (unsigned long long) wwpn); 2476 } else if (lp->port_wwn != wwpn) { |
2476 isp_prt(isp, ISP_LOGTINFO|ISP_LOGWARN, 2477 "Chan %d PortID 0x%06x handle 0x%x " | 2477 isp_prt(isp, ISP_LOGTINFO|ISP_LOGWARN, 2478 "Chan %d PortID 0x%06x handle 0x%x " |
2478 "changes WWN 0x%016llx to 0x%016llx", | 2479 "changes WWPN 0x%016llx to 0x%016llx", |
2479 chan, lp->portid, nphdl, 2480 (unsigned long long) lp->port_wwn, | 2480 chan, lp->portid, nphdl, 2481 (unsigned long long) lp->port_wwn, |
2481 (unsigned long long) ini); | 2482 (unsigned long long) wwpn); |
2482 if (isp->isp_dblev & (ISP_LOGTINFO|ISP_LOGWARN)) 2483 isp_dump_portdb(isp, chan); 2484 } | 2483 if (isp->isp_dblev & (ISP_LOGTINFO|ISP_LOGWARN)) 2484 isp_dump_portdb(isp, chan); 2485 } |
2485 lp->port_wwn = ini; | 2486 lp->port_wwn = wwpn; |
2486 change++; 2487 } | 2487 change++; 2488 } |
2489 if (VALID_INI(wwnn) && lp->node_wwn != wwnn) { 2490 if (!VALID_INI(lp->node_wwn)) { 2491 isp_prt(isp, ISP_LOGTINFO, 2492 "Chan %d PortID 0x%06x handle 0x%x " 2493 "gets WWNN 0x%016llxx", 2494 chan, lp->portid, nphdl, 2495 (unsigned long long) wwnn); 2496 } else if (lp->port_wwn != wwnn) { 2497 isp_prt(isp, ISP_LOGTINFO, 2498 "Chan %d PortID 0x%06x handle 0x%x " 2499 "changes WWNN 0x%016llx to 0x%016llx", 2500 chan, lp->portid, nphdl, 2501 (unsigned long long) lp->node_wwn, 2502 (unsigned long long) wwnn); 2503 } 2504 lp->node_wwn = wwnn; 2505 change++; 2506 } |
|
2488 if (prli_params != 0 && lp->prli_word3 != prli_params) { 2489 isp_gen_role_str(buf, sizeof (buf), prli_params); 2490 isp_prt(isp, ISP_LOGTINFO|ISP_LOGCONFIG, 2491 "Chan %d WWPN 0x%016llx PortID 0x%06x " 2492 "handle 0x%x changes PRLI Word 3 %s", 2493 chan, (unsigned long long) lp->port_wwn, 2494 lp->portid, lp->handle, buf); 2495 lp->new_prli_word3 = prli_params; --- 30 unchanged lines hidden (view full) --- 2526 for (i = 0; i < MAX_FC_TARG; i++) { 2527 if (fcp->portdb[i].state == FC_PORTDB_STATE_NIL) 2528 break; 2529 } 2530 if (i >= MAX_FC_TARG) { 2531 isp_prt(isp, ISP_LOGTINFO|ISP_LOGWARN, 2532 "Chan %d WWPN 0x%016llx PortID 0x%06x handle 0x%x " 2533 "-- no room in port database", | 2507 if (prli_params != 0 && lp->prli_word3 != prli_params) { 2508 isp_gen_role_str(buf, sizeof (buf), prli_params); 2509 isp_prt(isp, ISP_LOGTINFO|ISP_LOGCONFIG, 2510 "Chan %d WWPN 0x%016llx PortID 0x%06x " 2511 "handle 0x%x changes PRLI Word 3 %s", 2512 chan, (unsigned long long) lp->port_wwn, 2513 lp->portid, lp->handle, buf); 2514 lp->new_prli_word3 = prli_params; --- 30 unchanged lines hidden (view full) --- 2545 for (i = 0; i < MAX_FC_TARG; i++) { 2546 if (fcp->portdb[i].state == FC_PORTDB_STATE_NIL) 2547 break; 2548 } 2549 if (i >= MAX_FC_TARG) { 2550 isp_prt(isp, ISP_LOGTINFO|ISP_LOGWARN, 2551 "Chan %d WWPN 0x%016llx PortID 0x%06x handle 0x%x " 2552 "-- no room in port database", |
2534 chan, (unsigned long long) ini, s_id, nphdl); | 2553 chan, (unsigned long long) wwpn, s_id, nphdl); |
2535 if (isp->isp_dblev & (ISP_LOGTINFO|ISP_LOGWARN)) 2536 isp_dump_portdb(isp, chan); 2537 return; 2538 } 2539 2540 /* Insert new record and mark it valid. */ 2541 lp = &fcp->portdb[i]; 2542 ISP_MEMZERO(lp, sizeof (fcportdb_t)); 2543 lp->handle = nphdl; 2544 lp->portid = s_id; | 2554 if (isp->isp_dblev & (ISP_LOGTINFO|ISP_LOGWARN)) 2555 isp_dump_portdb(isp, chan); 2556 return; 2557 } 2558 2559 /* Insert new record and mark it valid. */ 2560 lp = &fcp->portdb[i]; 2561 ISP_MEMZERO(lp, sizeof (fcportdb_t)); 2562 lp->handle = nphdl; 2563 lp->portid = s_id; |
2545 lp->port_wwn = ini; | 2564 lp->port_wwn = wwpn; 2565 lp->node_wwn = wwnn; |
2546 lp->prli_word3 = (prli_params != 0) ? prli_params : PRLI_WD3_INITIATOR_FUNCTION; 2547 lp->state = FC_PORTDB_STATE_VALID; 2548 2549 isp_gen_role_str(buf, sizeof (buf), lp->prli_word3); 2550 isp_prt(isp, ISP_LOGTINFO, "Chan %d WWPN 0x%016llx " 2551 "PortID 0x%06x handle 0x%x vtgt %d %s added", chan, | 2566 lp->prli_word3 = (prli_params != 0) ? prli_params : PRLI_WD3_INITIATOR_FUNCTION; 2567 lp->state = FC_PORTDB_STATE_VALID; 2568 2569 isp_gen_role_str(buf, sizeof (buf), lp->prli_word3); 2570 isp_prt(isp, ISP_LOGTINFO, "Chan %d WWPN 0x%016llx " 2571 "PortID 0x%06x handle 0x%x vtgt %d %s added", chan, |
2552 (unsigned long long) ini, s_id, nphdl, i, buf); | 2572 (unsigned long long) wwpn, s_id, nphdl, i, buf); |
2553 2554 /* Notify above levels about new port arrival. */ 2555 isp_async(isp, ISPASYNC_DEV_ARRIVED, chan, lp); 2556} 2557 2558/* 2559 * Remove a target device to the port database 2560 */ 2561void | 2573 2574 /* Notify above levels about new port arrival. */ 2575 isp_async(isp, ISPASYNC_DEV_ARRIVED, chan, lp); 2576} 2577 2578/* 2579 * Remove a target device to the port database 2580 */ 2581void |
2562isp_del_wwn_entry(ispsoftc_t *isp, int chan, uint64_t ini, uint16_t nphdl, uint32_t s_id) | 2582isp_del_wwn_entry(ispsoftc_t *isp, int chan, uint64_t wwpn, uint16_t nphdl, uint32_t s_id) |
2563{ 2564 fcparam *fcp; 2565 fcportdb_t *lp; 2566 2567 if (nphdl >= MAX_NPORT_HANDLE) { 2568 isp_prt(isp, ISP_LOGWARN, "Chan %d WWPN 0x%016llx PortID 0x%06x bad handle 0x%x", | 2583{ 2584 fcparam *fcp; 2585 fcportdb_t *lp; 2586 2587 if (nphdl >= MAX_NPORT_HANDLE) { 2588 isp_prt(isp, ISP_LOGWARN, "Chan %d WWPN 0x%016llx PortID 0x%06x bad handle 0x%x", |
2569 chan, (unsigned long long) ini, s_id, nphdl); | 2589 chan, (unsigned long long) wwpn, s_id, nphdl); |
2570 return; 2571 } 2572 2573 fcp = FCPARAM(isp, chan); 2574 if (isp_find_pdb_by_handle(isp, chan, nphdl, &lp) == 0) { 2575 isp_prt(isp, ISP_LOGWARN, "Chan %d WWPN 0x%016llx PortID 0x%06x handle 0x%x cannot be found to be deleted", | 2590 return; 2591 } 2592 2593 fcp = FCPARAM(isp, chan); 2594 if (isp_find_pdb_by_handle(isp, chan, nphdl, &lp) == 0) { 2595 isp_prt(isp, ISP_LOGWARN, "Chan %d WWPN 0x%016llx PortID 0x%06x handle 0x%x cannot be found to be deleted", |
2576 chan, (unsigned long long) ini, s_id, nphdl); | 2596 chan, (unsigned long long) wwpn, s_id, nphdl); |
2577 isp_dump_portdb(isp, chan); 2578 return; 2579 } 2580 isp_prt(isp, ISP_LOGTINFO, "Chan %d WWPN 0x%016llx PortID 0x%06x handle 0x%x vtgt %d deleted", 2581 chan, (unsigned long long) lp->port_wwn, lp->portid, nphdl, FC_PORTDB_TGT(isp, chan, lp)); 2582 lp->state = FC_PORTDB_STATE_NIL; 2583 2584 /* Notify above levels about gone port. */ --- 878 unchanged lines hidden (view full) --- 3463 isp_put_hdr(isp, &src->in_header, &dst->in_header); 3464 ISP_IOXPUT_32(isp, src->in_reserved, &dst->in_reserved); 3465 ISP_IOXPUT_16(isp, src->in_nphdl, &dst->in_nphdl); 3466 ISP_IOXPUT_16(isp, src->in_reserved1, &dst->in_reserved1); 3467 ISP_IOXPUT_16(isp, src->in_flags, &dst->in_flags); 3468 ISP_IOXPUT_16(isp, src->in_srr_rxid, &dst->in_srr_rxid); 3469 ISP_IOXPUT_16(isp, src->in_status, &dst->in_status); 3470 ISP_IOXPUT_8(isp, src->in_status_subcode, &dst->in_status_subcode); | 2597 isp_dump_portdb(isp, chan); 2598 return; 2599 } 2600 isp_prt(isp, ISP_LOGTINFO, "Chan %d WWPN 0x%016llx PortID 0x%06x handle 0x%x vtgt %d deleted", 2601 chan, (unsigned long long) lp->port_wwn, lp->portid, nphdl, FC_PORTDB_TGT(isp, chan, lp)); 2602 lp->state = FC_PORTDB_STATE_NIL; 2603 2604 /* Notify above levels about gone port. */ --- 878 unchanged lines hidden (view full) --- 3483 isp_put_hdr(isp, &src->in_header, &dst->in_header); 3484 ISP_IOXPUT_32(isp, src->in_reserved, &dst->in_reserved); 3485 ISP_IOXPUT_16(isp, src->in_nphdl, &dst->in_nphdl); 3486 ISP_IOXPUT_16(isp, src->in_reserved1, &dst->in_reserved1); 3487 ISP_IOXPUT_16(isp, src->in_flags, &dst->in_flags); 3488 ISP_IOXPUT_16(isp, src->in_srr_rxid, &dst->in_srr_rxid); 3489 ISP_IOXPUT_16(isp, src->in_status, &dst->in_status); 3490 ISP_IOXPUT_8(isp, src->in_status_subcode, &dst->in_status_subcode); |
3471 ISP_IOXPUT_16(isp, src->in_reserved2, &dst->in_reserved2); | 3491 ISP_IOXPUT_8(isp, src->in_fwhandle, &dst->in_fwhandle); |
3472 ISP_IOXPUT_32(isp, src->in_rxid, &dst->in_rxid); 3473 ISP_IOXPUT_16(isp, src->in_srr_reloff_hi, &dst->in_srr_reloff_hi); 3474 ISP_IOXPUT_16(isp, src->in_srr_reloff_lo, &dst->in_srr_reloff_lo); 3475 ISP_IOXPUT_16(isp, src->in_srr_iu, &dst->in_srr_iu); 3476 ISP_IOXPUT_16(isp, src->in_srr_oxid, &dst->in_srr_oxid); 3477 ISP_IOXPUT_16(isp, src->in_nport_id_hi, &dst->in_nport_id_hi); 3478 ISP_IOXPUT_8(isp, src->in_nport_id_lo, &dst->in_nport_id_lo); 3479 ISP_IOXPUT_8(isp, src->in_reserved3, &dst->in_reserved3); --- 46 unchanged lines hidden (view full) --- 3526 isp_get_hdr(isp, &src->in_header, &dst->in_header); 3527 ISP_IOXGET_32(isp, &src->in_reserved, dst->in_reserved); 3528 ISP_IOXGET_16(isp, &src->in_nphdl, dst->in_nphdl); 3529 ISP_IOXGET_16(isp, &src->in_reserved1, dst->in_reserved1); 3530 ISP_IOXGET_16(isp, &src->in_flags, dst->in_flags); 3531 ISP_IOXGET_16(isp, &src->in_srr_rxid, dst->in_srr_rxid); 3532 ISP_IOXGET_16(isp, &src->in_status, dst->in_status); 3533 ISP_IOXGET_8(isp, &src->in_status_subcode, dst->in_status_subcode); | 3492 ISP_IOXPUT_32(isp, src->in_rxid, &dst->in_rxid); 3493 ISP_IOXPUT_16(isp, src->in_srr_reloff_hi, &dst->in_srr_reloff_hi); 3494 ISP_IOXPUT_16(isp, src->in_srr_reloff_lo, &dst->in_srr_reloff_lo); 3495 ISP_IOXPUT_16(isp, src->in_srr_iu, &dst->in_srr_iu); 3496 ISP_IOXPUT_16(isp, src->in_srr_oxid, &dst->in_srr_oxid); 3497 ISP_IOXPUT_16(isp, src->in_nport_id_hi, &dst->in_nport_id_hi); 3498 ISP_IOXPUT_8(isp, src->in_nport_id_lo, &dst->in_nport_id_lo); 3499 ISP_IOXPUT_8(isp, src->in_reserved3, &dst->in_reserved3); --- 46 unchanged lines hidden (view full) --- 3546 isp_get_hdr(isp, &src->in_header, &dst->in_header); 3547 ISP_IOXGET_32(isp, &src->in_reserved, dst->in_reserved); 3548 ISP_IOXGET_16(isp, &src->in_nphdl, dst->in_nphdl); 3549 ISP_IOXGET_16(isp, &src->in_reserved1, dst->in_reserved1); 3550 ISP_IOXGET_16(isp, &src->in_flags, dst->in_flags); 3551 ISP_IOXGET_16(isp, &src->in_srr_rxid, dst->in_srr_rxid); 3552 ISP_IOXGET_16(isp, &src->in_status, dst->in_status); 3553 ISP_IOXGET_8(isp, &src->in_status_subcode, dst->in_status_subcode); |
3534 ISP_IOXGET_16(isp, &src->in_reserved2, dst->in_reserved2); | 3554 ISP_IOXGET_8(isp, &src->in_fwhandle, dst->in_fwhandle); |
3535 ISP_IOXGET_32(isp, &src->in_rxid, dst->in_rxid); 3536 ISP_IOXGET_16(isp, &src->in_srr_reloff_hi, dst->in_srr_reloff_hi); 3537 ISP_IOXGET_16(isp, &src->in_srr_reloff_lo, dst->in_srr_reloff_lo); 3538 ISP_IOXGET_16(isp, &src->in_srr_iu, dst->in_srr_iu); 3539 ISP_IOXGET_16(isp, &src->in_srr_oxid, dst->in_srr_oxid); 3540 ISP_IOXGET_16(isp, &src->in_nport_id_hi, dst->in_nport_id_hi); 3541 ISP_IOXGET_8(isp, &src->in_nport_id_lo, dst->in_nport_id_lo); 3542 ISP_IOXGET_8(isp, &src->in_reserved3, dst->in_reserved3); --- 102 unchanged lines hidden (view full) --- 3645 isp_put_hdr(isp, &src->na_header, &dst->na_header); 3646 ISP_IOXPUT_32(isp, src->na_handle, &dst->na_handle); 3647 ISP_IOXPUT_16(isp, src->na_nphdl, &dst->na_nphdl); 3648 ISP_IOXPUT_16(isp, src->na_reserved1, &dst->na_reserved1); 3649 ISP_IOXPUT_16(isp, src->na_flags, &dst->na_flags); 3650 ISP_IOXPUT_16(isp, src->na_srr_rxid, &dst->na_srr_rxid); 3651 ISP_IOXPUT_16(isp, src->na_status, &dst->na_status); 3652 ISP_IOXPUT_8(isp, src->na_status_subcode, &dst->na_status_subcode); | 3555 ISP_IOXGET_32(isp, &src->in_rxid, dst->in_rxid); 3556 ISP_IOXGET_16(isp, &src->in_srr_reloff_hi, dst->in_srr_reloff_hi); 3557 ISP_IOXGET_16(isp, &src->in_srr_reloff_lo, dst->in_srr_reloff_lo); 3558 ISP_IOXGET_16(isp, &src->in_srr_iu, dst->in_srr_iu); 3559 ISP_IOXGET_16(isp, &src->in_srr_oxid, dst->in_srr_oxid); 3560 ISP_IOXGET_16(isp, &src->in_nport_id_hi, dst->in_nport_id_hi); 3561 ISP_IOXGET_8(isp, &src->in_nport_id_lo, dst->in_nport_id_lo); 3562 ISP_IOXGET_8(isp, &src->in_reserved3, dst->in_reserved3); --- 102 unchanged lines hidden (view full) --- 3665 isp_put_hdr(isp, &src->na_header, &dst->na_header); 3666 ISP_IOXPUT_32(isp, src->na_handle, &dst->na_handle); 3667 ISP_IOXPUT_16(isp, src->na_nphdl, &dst->na_nphdl); 3668 ISP_IOXPUT_16(isp, src->na_reserved1, &dst->na_reserved1); 3669 ISP_IOXPUT_16(isp, src->na_flags, &dst->na_flags); 3670 ISP_IOXPUT_16(isp, src->na_srr_rxid, &dst->na_srr_rxid); 3671 ISP_IOXPUT_16(isp, src->na_status, &dst->na_status); 3672 ISP_IOXPUT_8(isp, src->na_status_subcode, &dst->na_status_subcode); |
3653 ISP_IOXPUT_16(isp, src->na_reserved2, &dst->na_reserved2); | 3673 ISP_IOXPUT_8(isp, src->na_fwhandle, &dst->na_fwhandle); |
3654 ISP_IOXPUT_32(isp, src->na_rxid, &dst->na_rxid); 3655 ISP_IOXPUT_16(isp, src->na_srr_reloff_hi, &dst->na_srr_reloff_hi); 3656 ISP_IOXPUT_16(isp, src->na_srr_reloff_lo, &dst->na_srr_reloff_lo); 3657 ISP_IOXPUT_16(isp, src->na_srr_iu, &dst->na_srr_iu); 3658 ISP_IOXPUT_16(isp, src->na_srr_flags, &dst->na_srr_flags); 3659 for (i = 0; i < 18; i++) { 3660 ISP_IOXPUT_8(isp, src->na_reserved3[i], &dst->na_reserved3[i]); 3661 } --- 54 unchanged lines hidden (view full) --- 3716 isp_get_hdr(isp, &src->na_header, &dst->na_header); 3717 ISP_IOXGET_32(isp, &src->na_handle, dst->na_handle); 3718 ISP_IOXGET_16(isp, &src->na_nphdl, dst->na_nphdl); 3719 ISP_IOXGET_16(isp, &src->na_reserved1, dst->na_reserved1); 3720 ISP_IOXGET_16(isp, &src->na_flags, dst->na_flags); 3721 ISP_IOXGET_16(isp, &src->na_srr_rxid, dst->na_srr_rxid); 3722 ISP_IOXGET_16(isp, &src->na_status, dst->na_status); 3723 ISP_IOXGET_8(isp, &src->na_status_subcode, dst->na_status_subcode); | 3674 ISP_IOXPUT_32(isp, src->na_rxid, &dst->na_rxid); 3675 ISP_IOXPUT_16(isp, src->na_srr_reloff_hi, &dst->na_srr_reloff_hi); 3676 ISP_IOXPUT_16(isp, src->na_srr_reloff_lo, &dst->na_srr_reloff_lo); 3677 ISP_IOXPUT_16(isp, src->na_srr_iu, &dst->na_srr_iu); 3678 ISP_IOXPUT_16(isp, src->na_srr_flags, &dst->na_srr_flags); 3679 for (i = 0; i < 18; i++) { 3680 ISP_IOXPUT_8(isp, src->na_reserved3[i], &dst->na_reserved3[i]); 3681 } --- 54 unchanged lines hidden (view full) --- 3736 isp_get_hdr(isp, &src->na_header, &dst->na_header); 3737 ISP_IOXGET_32(isp, &src->na_handle, dst->na_handle); 3738 ISP_IOXGET_16(isp, &src->na_nphdl, dst->na_nphdl); 3739 ISP_IOXGET_16(isp, &src->na_reserved1, dst->na_reserved1); 3740 ISP_IOXGET_16(isp, &src->na_flags, dst->na_flags); 3741 ISP_IOXGET_16(isp, &src->na_srr_rxid, dst->na_srr_rxid); 3742 ISP_IOXGET_16(isp, &src->na_status, dst->na_status); 3743 ISP_IOXGET_8(isp, &src->na_status_subcode, dst->na_status_subcode); |
3724 ISP_IOXGET_16(isp, &src->na_reserved2, dst->na_reserved2); | 3744 ISP_IOXGET_8(isp, &src->na_fwhandle, dst->na_fwhandle); |
3725 ISP_IOXGET_32(isp, &src->na_rxid, dst->na_rxid); 3726 ISP_IOXGET_16(isp, &src->na_srr_reloff_hi, dst->na_srr_reloff_hi); 3727 ISP_IOXGET_16(isp, &src->na_srr_reloff_lo, dst->na_srr_reloff_lo); 3728 ISP_IOXGET_16(isp, &src->na_srr_iu, dst->na_srr_iu); 3729 ISP_IOXGET_16(isp, &src->na_srr_flags, dst->na_srr_flags); 3730 for (i = 0; i < 18; i++) { 3731 ISP_IOXGET_8(isp, &src->na_reserved3[i], dst->na_reserved3[i]); 3732 } --- 138 unchanged lines hidden --- | 3745 ISP_IOXGET_32(isp, &src->na_rxid, dst->na_rxid); 3746 ISP_IOXGET_16(isp, &src->na_srr_reloff_hi, dst->na_srr_reloff_hi); 3747 ISP_IOXGET_16(isp, &src->na_srr_reloff_lo, dst->na_srr_reloff_lo); 3748 ISP_IOXGET_16(isp, &src->na_srr_iu, dst->na_srr_iu); 3749 ISP_IOXGET_16(isp, &src->na_srr_flags, dst->na_srr_flags); 3750 for (i = 0; i < 18; i++) { 3751 ISP_IOXGET_8(isp, &src->na_reserved3[i], dst->na_reserved3[i]); 3752 } --- 138 unchanged lines hidden --- |