Lines Matching refs:notify
1579 isp_handle_platform_srr(ispsoftc_t *isp, isp_notify_t *notify) in isp_handle_platform_srr() argument
1581 in_fcentry_24xx_t *inot = notify->nt_lreserved; in isp_handle_platform_srr()
1583 uint32_t tag = notify->nt_tagval & 0xffffffff; in isp_handle_platform_srr()
1585 atp = isp_find_atpd(isp, notify->nt_channel, tag); in isp_handle_platform_srr()
1779 isp_handle_platform_target_tmf(ispsoftc_t *isp, isp_notify_t *notify) in isp_handle_platform_target_tmf() argument
1788 …LOGTDEBUG0, "%s: code 0x%x sid 0x%x tagval 0x%016llx chan %d lun %jx", __func__, notify->nt_ncode, in isp_handle_platform_target_tmf()
1789 notify->nt_sid, (unsigned long long) notify->nt_tagval, notify->nt_channel, notify->nt_lun); in isp_handle_platform_target_tmf()
1790 if (notify->nt_lun == LUN_ANY) { in isp_handle_platform_target_tmf()
1791 if (notify->nt_tagval == TAG_ANY) { in isp_handle_platform_target_tmf()
1794 atp = isp_find_atpd(isp, notify->nt_channel, in isp_handle_platform_target_tmf()
1795 notify->nt_tagval & 0xffffffff); in isp_handle_platform_target_tmf()
1799 lun = notify->nt_lun; in isp_handle_platform_target_tmf()
1801 tptr = get_lun_statep(isp, notify->nt_channel, lun); in isp_handle_platform_target_tmf()
1803 tptr = get_lun_statep(isp, notify->nt_channel, CAM_LUN_WILDCARD); in isp_handle_platform_target_tmf()
1805 …isp_prt(isp, ISP_LOGWARN, "%s: no state pointer found for chan %d lun %#jx", __func__, notify->nt_… in isp_handle_platform_target_tmf()
1811 …"%s: out of immediate notify structures for chan %d lun %#jx", __func__, notify->nt_channel, (uint… in isp_handle_platform_target_tmf()
1817 if (isp_find_pdb_by_portid(isp, notify->nt_channel, notify->nt_sid, &lp) == 0 && in isp_handle_platform_target_tmf()
1818 isp_find_pdb_by_handle(isp, notify->nt_channel, notify->nt_nphdl, &lp) == 0) { in isp_handle_platform_target_tmf()
1821 inot->initiator_id = FC_PORTDB_TGT(isp, notify->nt_channel, lp); in isp_handle_platform_target_tmf()
1823 inot->seq_id = notify->nt_tagval; in isp_handle_platform_target_tmf()
1824 inot->tag_id = notify->nt_tagval >> 32; in isp_handle_platform_target_tmf()
1826 switch (notify->nt_ncode) { in isp_handle_platform_target_tmf()
1828 isp_target_mark_aborted_early(isp, notify->nt_channel, tptr, inot->tag_id); in isp_handle_platform_target_tmf()
1832 isp_target_mark_aborted_early(isp, notify->nt_channel, tptr, TAG_ANY); in isp_handle_platform_target_tmf()
1854 …RN, "%s: unknown TMF code 0x%x for chan %d lun %#jx", __func__, notify->nt_ncode, notify->nt_chann… in isp_handle_platform_target_tmf()
1858 ntp = isp_get_ntpd(isp, notify->nt_channel); in isp_handle_platform_target_tmf()
1863 ISP_MEMCPY(&ntp->nt, notify, sizeof (isp_notify_t)); in isp_handle_platform_target_tmf()
1864 if (notify->nt_lreserved) { in isp_handle_platform_target_tmf()
1865 ISP_MEMCPY(&ntp->data, notify->nt_lreserved, QENTRY_LEN); in isp_handle_platform_target_tmf()
1868 ntp->seq_id = notify->nt_tagval; in isp_handle_platform_target_tmf()
1869 ntp->tag_id = notify->nt_tagval >> 32; in isp_handle_platform_target_tmf()
1877 if (notify->nt_need_ack) { in isp_handle_platform_target_tmf()
1878 if (((isphdr_t *)notify->nt_lreserved)->rqs_entry_type == RQSTYPE_ABTS_RCVD) { in isp_handle_platform_target_tmf()
1879 if (isp_acknak_abts(isp, notify->nt_lreserved, ENOMEM)) { in isp_handle_platform_target_tmf()
1883 isp_async(isp, ISPASYNC_TARGET_NOTIFY_ACK, notify->nt_lreserved); in isp_handle_platform_target_tmf()
3079 isp_notify_t *notify; in isp_async() local
3081 notify = va_arg(ap, isp_notify_t *); in isp_async()
3083 switch (notify->nt_ncode) { in isp_async()
3095 isp_handle_platform_target_tmf(isp, notify); in isp_async()
3106 isp_handle_platform_srr(isp, notify); in isp_async()
3109 isp_prt(isp, ISP_LOGALL, "target notify code 0x%x", notify->nt_ncode); in isp_async()
3110 isp_handle_platform_target_notify_ack(isp, notify, 0); in isp_async()