Lines Matching defs:notify

1937  * We get here when we've gotten the immediate notify
2040 isp_handle_platform_srr(ispsoftc_t *isp, isp_notify_t *notify)
2042 in_fcentry_24xx_t *inot = notify->nt_lreserved;
2044 uint32_t tag = notify->nt_tagval & 0xffffffff;
2046 atp = isp_find_atpd(isp, notify->nt_channel, tag);
2168 * We never *not* notify CAM when there has been any error (ok == 0),
2319 * We show up here with a notify structure filled out.
2324 isp_handle_platform_target_tmf(ispsoftc_t *isp, isp_notify_t *notify)
2333 isp_prt(isp, ISP_LOGTDEBUG0, "%s: code 0x%x sid 0x%x tagval 0x%016llx chan %d lun %x", __func__, notify->nt_ncode,
2334 notify->nt_sid, (unsigned long long) notify->nt_tagval, notify->nt_channel, notify->nt_lun);
2335 if (notify->nt_lun == LUN_ANY) {
2336 if (notify->nt_tagval == TAG_ANY) {
2339 atp = isp_find_atpd(isp, notify->nt_channel,
2340 notify->nt_tagval & 0xffffffff);
2344 lun = notify->nt_lun;
2346 tptr = get_lun_statep(isp, notify->nt_channel, lun);
2348 tptr = get_lun_statep(isp, notify->nt_channel, CAM_LUN_WILDCARD);
2350 isp_prt(isp, ISP_LOGWARN, "%s: no state pointer found for chan %d lun 0x%x", __func__, notify->nt_channel, lun);
2356 isp_prt(isp, ISP_LOGWARN, "%s: out of immediate notify structures for chan %d lun 0x%x", __func__, notify->nt_channel, lun);
2360 if (isp_find_pdb_by_portid(isp, notify->nt_channel, notify->nt_sid, &lp) == 0 &&
2361 isp_find_pdb_by_handle(isp, notify->nt_channel, notify->nt_nphdl, &lp) == 0) {
2364 inot->initiator_id = FC_PORTDB_TGT(isp, notify->nt_channel, lp);
2366 inot->seq_id = notify->nt_tagval;
2367 inot->tag_id = notify->nt_tagval >> 32;
2369 switch (notify->nt_ncode) {
2371 isp_target_mark_aborted_early(isp, notify->nt_channel, tptr, inot->tag_id);
2375 isp_target_mark_aborted_early(isp, notify->nt_channel, tptr, TAG_ANY);
2397 isp_prt(isp, ISP_LOGWARN, "%s: unknown TMF code 0x%x for chan %d lun 0x%x", __func__, notify->nt_ncode, notify->nt_channel, lun);
2401 ntp = isp_get_ntpd(isp, notify->nt_channel);
2406 ISP_MEMCPY(&ntp->nt, notify, sizeof (isp_notify_t));
2407 if (notify->nt_lreserved) {
2408 ISP_MEMCPY(&ntp->data, notify->nt_lreserved, QENTRY_LEN);
2411 ntp->seq_id = notify->nt_tagval;
2412 ntp->tag_id = notify->nt_tagval >> 32;
2420 if (notify->nt_need_ack) {
2421 if (((isphdr_t *)notify->nt_lreserved)->rqs_entry_type == RQSTYPE_ABTS_RCVD) {
2422 if (isp_acknak_abts(isp, notify->nt_lreserved, ENOMEM)) {
2426 isp_async(isp, ISPASYNC_TARGET_NOTIFY_ACK, notify->nt_lreserved);
3093 case XPT_NOTIFY_ACKNOWLEDGE: /* notify ack */
3098 * XXX: Because we cannot guarantee that the path information in the notify acknowledge ccb
3099 * XXX: matches that for the immediate notify, we have to *search* for the notify structure
3102 * All the relevant path information is in the associated immediate notify
3867 isp_notify_t *notify;
3869 notify = va_arg(ap, isp_notify_t *);
3871 switch (notify->nt_ncode) {
3883 isp_handle_platform_target_tmf(isp, notify);
3899 isp_handle_platform_target_notify_ack(isp, notify, 0);
3902 isp_handle_platform_srr(isp, notify);
3905 isp_prt(isp, ISP_LOGALL, "target notify code 0x%x", notify->nt_ncode);
3906 isp_handle_platform_target_notify_ack(isp, notify, 0);
3927 isp_prt(isp, ISP_LOGERR, "you lose- cannot allocate a notify refire");