Lines Matching refs:notify
531 isp_notify_t notify; in isp_target_async() local
533 ISP_MEMZERO(¬ify, sizeof (isp_notify_t)); in isp_target_async()
534 notify.nt_hba = isp; in isp_target_async()
535 notify.nt_wwn = INI_ANY; in isp_target_async()
536 notify.nt_nphdl = NIL_HANDLE; in isp_target_async()
537 notify.nt_sid = PORT_ANY; in isp_target_async()
538 notify.nt_did = PORT_ANY; in isp_target_async()
539 notify.nt_tgt = TGT_ANY; in isp_target_async()
540 notify.nt_channel = bus; in isp_target_async()
541 notify.nt_lun = LUN_ANY; in isp_target_async()
542 notify.nt_tagval = TAG_ANY; in isp_target_async()
543 notify.nt_tagval |= (((uint64_t)(isp->isp_serno++)) << 32); in isp_target_async()
549 notify.nt_ncode = NT_LINK_UP; in isp_target_async()
550 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_target_async()
554 notify.nt_ncode = NT_LINK_DOWN; in isp_target_async()
555 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_target_async()
562 notify.nt_ncode = NT_LIP_RESET; in isp_target_async()
563 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_target_async()
568 notify.nt_ncode = NT_BUS_RESET; in isp_target_async()
569 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_target_async()
573 notify.nt_ncode = NT_TARGET_RESET; in isp_target_async()
574 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_target_async()
610 isp_notify_t notify; in isp_got_msg_fc() local
615 ISP_MEMZERO(¬ify, sizeof (isp_notify_t)); in isp_got_msg_fc()
616 notify.nt_hba = isp; in isp_got_msg_fc()
617 notify.nt_wwn = INI_ANY; in isp_got_msg_fc()
619 notify.nt_nphdl = ((in_fcentry_e_t *)inp)->in_iid; in isp_got_msg_fc()
623 notify.nt_nphdl = inp->in_iid; in isp_got_msg_fc()
627 notify.nt_sid = PORT_ANY; in isp_got_msg_fc()
628 notify.nt_did = PORT_ANY; in isp_got_msg_fc()
632 notify.nt_lun = inp->in_scclun; in isp_got_msg_fc()
634 notify.nt_lun = inp->in_lun; in isp_got_msg_fc()
636 notify.nt_tagval = seqid; in isp_got_msg_fc()
637 notify.nt_tagval |= (((uint64_t)(isp->isp_serno++)) << 32); in isp_got_msg_fc()
638 notify.nt_need_ack = 1; in isp_got_msg_fc()
639 notify.nt_lreserved = inp; in isp_got_msg_fc()
642 …isp_prt(isp, ISP_LOGINFO, f2, "immediate notify status", inp->in_status, notify.nt_lun, nphdl, inp… in isp_got_msg_fc()
648 isp_prt(isp, ISP_LOGINFO, f1, "ABORT TASK SET", nphdl, notify.nt_lun, inp->in_seqid); in isp_got_msg_fc()
649 notify.nt_ncode = NT_ABORT_TASK_SET; in isp_got_msg_fc()
651 isp_prt(isp, ISP_LOGINFO, f1, "CLEAR TASK SET", nphdl, notify.nt_lun, inp->in_seqid); in isp_got_msg_fc()
652 notify.nt_ncode = NT_CLEAR_TASK_SET; in isp_got_msg_fc()
654 isp_prt(isp, ISP_LOGINFO, f1, "LUN RESET", nphdl, notify.nt_lun, inp->in_seqid); in isp_got_msg_fc()
655 notify.nt_ncode = NT_LUN_RESET; in isp_got_msg_fc()
657 isp_prt(isp, ISP_LOGINFO, f1, "TARGET RESET", nphdl, notify.nt_lun, inp->in_seqid); in isp_got_msg_fc()
658 notify.nt_ncode = NT_TARGET_RESET; in isp_got_msg_fc()
660 isp_prt(isp, ISP_LOGINFO, f1, "CLEAR ACA", nphdl, notify.nt_lun, inp->in_seqid); in isp_got_msg_fc()
661 notify.nt_ncode = NT_CLEAR_ACA; in isp_got_msg_fc()
663 …isp_prt(isp, ISP_LOGWARN, f2, "task flag", inp->in_status, notify.nt_lun, nphdl, inp->in_task_flag… in isp_got_msg_fc()
667 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_got_msg_fc()
673 isp_notify_t notify; in isp_got_tmf_24xx() local
680 ISP_MEMZERO(¬ify, sizeof (isp_notify_t)); in isp_got_tmf_24xx()
681 notify.nt_hba = isp; in isp_got_tmf_24xx()
682 notify.nt_wwn = INI_ANY; in isp_got_tmf_24xx()
683 notify.nt_lun = CAM_EXTLUN_BYTE_SWIZZLE(be64dec(aep->at_cmnd.fcp_cmnd_lun)); in isp_got_tmf_24xx()
684 notify.nt_tagval = aep->at_rxid; in isp_got_tmf_24xx()
685 notify.nt_tagval |= (((uint64_t)(isp->isp_serno++)) << 32); in isp_got_tmf_24xx()
686 notify.nt_lreserved = aep; in isp_got_tmf_24xx()
704 notify.nt_nphdl = lp->handle; in isp_got_tmf_24xx()
706 notify.nt_nphdl = NIL_HANDLE; in isp_got_tmf_24xx()
707 notify.nt_sid = sid; in isp_got_tmf_24xx()
708 notify.nt_did = did; in isp_got_tmf_24xx()
709 notify.nt_channel = chan; in isp_got_tmf_24xx()
711 isp_prt(isp, ISP_LOGINFO, f1, "QUERY TASK SET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
712 notify.nt_ncode = NT_QUERY_TASK_SET; in isp_got_tmf_24xx()
714 isp_prt(isp, ISP_LOGINFO, f1, "ABORT TASK SET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
715 notify.nt_ncode = NT_ABORT_TASK_SET; in isp_got_tmf_24xx()
717 isp_prt(isp, ISP_LOGINFO, f1, "CLEAR TASK SET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
718 notify.nt_ncode = NT_CLEAR_TASK_SET; in isp_got_tmf_24xx()
720 isp_prt(isp, ISP_LOGINFO, f1, "QUERY ASYNC EVENT", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
721 notify.nt_ncode = NT_QUERY_ASYNC_EVENT; in isp_got_tmf_24xx()
723 isp_prt(isp, ISP_LOGINFO, f1, "LUN RESET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
724 notify.nt_ncode = NT_LUN_RESET; in isp_got_tmf_24xx()
726 isp_prt(isp, ISP_LOGINFO, f1, "TARGET RESET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
727 notify.nt_ncode = NT_TARGET_RESET; in isp_got_tmf_24xx()
729 isp_prt(isp, ISP_LOGINFO, f1, "CLEAR ACA", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
730 notify.nt_ncode = NT_CLEAR_ACA; in isp_got_tmf_24xx()
732 …isp_prt(isp, ISP_LOGWARN, f2, aep->at_cmnd.fcp_cmnd_task_management, notify.nt_lun, sid, aep->at_r… in isp_got_tmf_24xx()
733 notify.nt_ncode = NT_UNKNOWN; in isp_got_tmf_24xx()
734 isp_endcmd(isp, aep, notify.nt_nphdl, chan, ECMD_RVALID | (0x4 << 12), 0); in isp_got_tmf_24xx()
737 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_got_tmf_24xx()
886 isp_notify_t notify, *nt = ¬ify; in isp_handle_abts() local
927 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_handle_abts()
1339 isp_notify_t notify; in isp_handle_notify() local
1367 ISP_MEMZERO(¬ify, sizeof (isp_notify_t)); in isp_handle_notify()
1368 notify.nt_hba = isp; in isp_handle_notify()
1369 notify.nt_wwn = wwn; in isp_handle_notify()
1370 notify.nt_tgt = FCPARAM(isp, 0)->isp_wwpn; in isp_handle_notify()
1371 notify.nt_nphdl = nphdl; in isp_handle_notify()
1372 notify.nt_sid = sid; in isp_handle_notify()
1373 notify.nt_did = PORT_ANY; in isp_handle_notify()
1375 notify.nt_lun = inp->in_scclun; in isp_handle_notify()
1377 notify.nt_lun = inp->in_lun; in isp_handle_notify()
1378 notify.nt_tagval = inp->in_seqid; in isp_handle_notify()
1379 notify.nt_tagval |= (((uint64_t)(isp->isp_serno++)) << 32); in isp_handle_notify()
1380 notify.nt_need_ack = 1; in isp_handle_notify()
1381 notify.nt_channel = 0; in isp_handle_notify()
1382 notify.nt_lreserved = inp; in isp_handle_notify()
1386 notify.nt_ncode = NT_BUS_RESET; in isp_handle_notify()
1389 notify.nt_ncode = NT_LOGOUT; in isp_handle_notify()
1392 notify.nt_ncode = NT_ABORT_TASK; in isp_handle_notify()
1395 notify.nt_ncode = NT_GLOBAL_LOGOUT; in isp_handle_notify()
1398 notify.nt_ncode = NT_CHANGED; in isp_handle_notify()
1406 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_handle_notify()
1419 isp_notify_t notify; in isp_handle_notify_24xx() local
1526 ISP_MEMZERO(¬ify, sizeof (isp_notify_t)); in isp_handle_notify_24xx()
1527 notify.nt_hba = isp; in isp_handle_notify_24xx()
1528 notify.nt_wwn = INI_ANY; in isp_handle_notify_24xx()
1529 notify.nt_tgt = FCPARAM(isp, chan)->isp_wwpn; in isp_handle_notify_24xx()
1530 notify.nt_nphdl = nphdl; in isp_handle_notify_24xx()
1531 notify.nt_sid = portid; in isp_handle_notify_24xx()
1532 notify.nt_did = PORT_ANY; in isp_handle_notify_24xx()
1533 notify.nt_lun = LUN_ANY; in isp_handle_notify_24xx()
1534 notify.nt_tagval = inot->in_rxid; in isp_handle_notify_24xx()
1535 notify.nt_tagval |= ((uint64_t)inot->in_srr_rxid << 32); in isp_handle_notify_24xx()
1536 notify.nt_need_ack = 1; in isp_handle_notify_24xx()
1537 notify.nt_channel = chan; in isp_handle_notify_24xx()
1538 notify.nt_lreserved = inot; in isp_handle_notify_24xx()
1539 notify.nt_ncode = NT_SRR; in isp_handle_notify_24xx()
1540 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); in isp_handle_notify_24xx()