Lines Matching refs:notify

1560 isp_handle_platform_srr(ispsoftc_t *isp, isp_notify_t *notify)  in isp_handle_platform_srr()  argument
1562 in_fcentry_24xx_t *inot = notify->nt_lreserved; in isp_handle_platform_srr()
1564 uint32_t tag = notify->nt_tagval & 0xffffffff; in isp_handle_platform_srr()
1566 atp = isp_find_atpd(isp, notify->nt_channel, tag); in isp_handle_platform_srr()
1784 isp_handle_platform_target_tmf(ispsoftc_t *isp, isp_notify_t *notify) in isp_handle_platform_target_tmf() argument
1793 …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()
1794 notify->nt_sid, (unsigned long long) notify->nt_tagval, notify->nt_channel, notify->nt_lun); in isp_handle_platform_target_tmf()
1795 if (notify->nt_lun == LUN_ANY) { in isp_handle_platform_target_tmf()
1796 if (notify->nt_tagval == TAG_ANY) { in isp_handle_platform_target_tmf()
1799 atp = isp_find_atpd(isp, notify->nt_channel, in isp_handle_platform_target_tmf()
1800 notify->nt_tagval & 0xffffffff); in isp_handle_platform_target_tmf()
1804 lun = notify->nt_lun; in isp_handle_platform_target_tmf()
1806 tptr = get_lun_statep(isp, notify->nt_channel, lun); in isp_handle_platform_target_tmf()
1808 tptr = get_lun_statep(isp, notify->nt_channel, CAM_LUN_WILDCARD); in isp_handle_platform_target_tmf()
1810 …isp_prt(isp, ISP_LOGWARN, "%s: no state pointer found for chan %d lun %#jx", __func__, notify->nt_… in isp_handle_platform_target_tmf()
1816 …"%s: out of immediate notify structures for chan %d lun %#jx", __func__, notify->nt_channel, (uint… in isp_handle_platform_target_tmf()
1822 if (isp_find_pdb_by_portid(isp, notify->nt_channel, notify->nt_sid, &lp) == 0 && in isp_handle_platform_target_tmf()
1823 isp_find_pdb_by_handle(isp, notify->nt_channel, notify->nt_nphdl, &lp) == 0) { in isp_handle_platform_target_tmf()
1826 inot->initiator_id = FC_PORTDB_TGT(isp, notify->nt_channel, lp); in isp_handle_platform_target_tmf()
1828 inot->seq_id = notify->nt_tagval; in isp_handle_platform_target_tmf()
1829 inot->tag_id = notify->nt_tagval >> 32; in isp_handle_platform_target_tmf()
1831 switch (notify->nt_ncode) { in isp_handle_platform_target_tmf()
1833 isp_target_mark_aborted_early(isp, notify->nt_channel, tptr, inot->tag_id); in isp_handle_platform_target_tmf()
1837 isp_target_mark_aborted_early(isp, notify->nt_channel, tptr, TAG_ANY); in isp_handle_platform_target_tmf()
1859 …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()
1863 ntp = isp_get_ntpd(isp, notify->nt_channel); in isp_handle_platform_target_tmf()
1868 ISP_MEMCPY(&ntp->nt, notify, sizeof (isp_notify_t)); in isp_handle_platform_target_tmf()
1869 if (notify->nt_lreserved) { in isp_handle_platform_target_tmf()
1870 ISP_MEMCPY(&ntp->data, notify->nt_lreserved, QENTRY_LEN); in isp_handle_platform_target_tmf()
1873 ntp->seq_id = notify->nt_tagval; in isp_handle_platform_target_tmf()
1874 ntp->tag_id = notify->nt_tagval >> 32; in isp_handle_platform_target_tmf()
1882 if (notify->nt_need_ack) { in isp_handle_platform_target_tmf()
1883 if (((isphdr_t *)notify->nt_lreserved)->rqs_entry_type == RQSTYPE_ABTS_RCVD) { in isp_handle_platform_target_tmf()
1884 if (isp_acknak_abts(isp, notify->nt_lreserved, ENOMEM)) { in isp_handle_platform_target_tmf()
1888 isp_async(isp, ISPASYNC_TARGET_NOTIFY_ACK, notify->nt_lreserved); in isp_handle_platform_target_tmf()
3074 isp_notify_t *notify; in isp_async() local
3076 notify = va_arg(ap, isp_notify_t *); in isp_async()
3078 switch (notify->nt_ncode) { in isp_async()
3090 isp_handle_platform_target_tmf(isp, notify); in isp_async()
3101 isp_handle_platform_srr(isp, notify); in isp_async()
3104 isp_prt(isp, ISP_LOGALL, "target notify code 0x%x", notify->nt_ncode); in isp_async()
3105 isp_handle_platform_target_notify_ack(isp, notify, 0); in isp_async()