Lines Matching refs:isp

109 isp_target_notify(ispsoftc_t *isp, void *vptr, uint32_t *optrp, uint16_t ql)  in isp_target_notify()  argument
131 type = isp_get_response_type(isp, (isphdr_t *)vptr); in isp_target_notify()
134 if (isp->isp_dblev & ISP_LOGTDEBUG2) in isp_target_notify()
135 isp_print_qentry(isp, __func__, *optrp, vptr); in isp_target_notify()
139 isp_get_atio7(isp, at7iop, (at7_entry_t *) local); in isp_target_notify()
148 isp_prt(isp, ISP_LOGINFO, "long IU length (%d) ignored", len); in isp_target_notify()
158 isp_got_tmf_24xx(isp, at7iop); in isp_target_notify()
164 isp_async(isp, ISPASYNC_TARGET_ACTION, local); in isp_target_notify()
168 isp_get_ctio7(isp, ct7iop, (ct7_entry_t *) local); in isp_target_notify()
169 isp_handle_ctio7(isp, (ct7_entry_t *) local); in isp_target_notify()
173 isp_get_notify_24xx(isp, inot_24xx, (in_fcentry_24xx_t *)local); in isp_target_notify()
174 isp_handle_notify_24xx(isp, (in_fcentry_24xx_t *)local); in isp_target_notify()
182 isp_get_notify_ack_24xx(isp, nack_24xx, (na_fcentry_24xx_t *) local); in isp_target_notify()
188 …isp_prt(isp, level, "Notify Ack Status=0x%x; Subcode 0x%x seqid=0x%x", nack_24xx->na_status, nack_… in isp_target_notify()
192 isp_get_abts(isp, abts, (abts_t *)local); in isp_target_notify()
193 isp_handle_abts(isp, (abts_t *)local); in isp_target_notify()
196 isp_get_abts_rsp(isp, abts_rsp, (abts_rsp_t *)local); in isp_target_notify()
202 …isp_prt(isp, level, "ABTS RSP response[0x%x]: status=0x%x sub=(0x%x 0x%x)", abts_rsp->abts_rsp_rxi… in isp_target_notify()
206 isp_prt(isp, ISP_LOGERR, "%s: unknown entry type 0x%x", __func__, type); in isp_target_notify()
239 isp_endcmd(ispsoftc_t *isp, ...) in isp_endcmd() argument
248 va_start(ap, isp); in isp_endcmd()
258 …isp_prt(isp, ISP_LOGTDEBUG0, "%s: [RX_ID 0x%x] chan %d code %x", __func__, aep->at_rxid, vpidx, co… in isp_endcmd()
301 return (isp_send_entry(isp, cto)); in isp_endcmd()
309 isp_target_async(ispsoftc_t *isp, int bus, int event) in isp_target_async() argument
314 notify.nt_hba = isp; in isp_target_async()
323 notify.nt_tagval |= (((uint64_t)(isp->isp_serno++)) << 32); in isp_target_async()
328 isp_prt(isp, ISP_LOGTDEBUG0, "%s: LOOP UP", __func__); in isp_target_async()
330 isp_async(isp, ISPASYNC_TARGET_NOTIFY, &notify); in isp_target_async()
333 isp_prt(isp, ISP_LOGTDEBUG0, "%s: LOOP DOWN", __func__); in isp_target_async()
335 isp_async(isp, ISPASYNC_TARGET_NOTIFY, &notify); in isp_target_async()
341 isp_prt(isp, ISP_LOGTDEBUG0, "%s: LIP RESET", __func__); in isp_target_async()
343 isp_async(isp, ISPASYNC_TARGET_NOTIFY, &notify); in isp_target_async()
346 isp_prt(isp, ISP_LOGERR, "%s: unknown event 0x%x", __func__, event); in isp_target_async()
352 isp_got_tmf_24xx(ispsoftc_t *isp, at7_entry_t *aep) in isp_got_tmf_24xx() argument
362 notify.nt_hba = isp; in isp_got_tmf_24xx()
366 notify.nt_tagval |= (((uint64_t)(isp->isp_serno++)) << 32); in isp_got_tmf_24xx()
370 if (ISP_CAP_MULTI_ID(isp) && isp->isp_nchan > 1) { in isp_got_tmf_24xx()
372 isp_find_chan_by_did(isp, did, &chan); in isp_got_tmf_24xx()
374 isp_prt(isp, ISP_LOGWARN, in isp_got_tmf_24xx()
377 isp_endcmd(isp, aep, NIL_HANDLE, ISP_NOCHAN, in isp_got_tmf_24xx()
384 if (isp_find_pdb_by_portid(isp, chan, sid, &lp)) in isp_got_tmf_24xx()
392 isp_prt(isp, ISP_LOGINFO, f1, "QUERY TASK SET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
395 isp_prt(isp, ISP_LOGINFO, f1, "ABORT TASK SET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
398 isp_prt(isp, ISP_LOGINFO, f1, "CLEAR TASK SET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
401 isp_prt(isp, ISP_LOGINFO, f1, "QUERY ASYNC EVENT", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
404 isp_prt(isp, ISP_LOGINFO, f1, "LUN RESET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
407 isp_prt(isp, ISP_LOGINFO, f1, "TARGET RESET", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
410 isp_prt(isp, ISP_LOGINFO, f1, "CLEAR ACA", sid, notify.nt_lun, aep->at_rxid); in isp_got_tmf_24xx()
413 …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()
415 isp_endcmd(isp, aep, notify.nt_nphdl, chan, ECMD_RVALID | (0x4 << 12), 0); in isp_got_tmf_24xx()
418 isp_async(isp, ISPASYNC_TARGET_NOTIFY, &notify); in isp_got_tmf_24xx()
422 isp_notify_ack(ispsoftc_t *isp, void *arg) in isp_notify_ack() argument
430 return (isp_endcmd(isp, arg, NIL_HANDLE, 0, 0, 0)); in isp_notify_ack()
464 return (isp_send_entry(isp, na)); in isp_notify_ack()
468 isp_acknak_abts(ispsoftc_t *isp, void *arg, int errno) in isp_acknak_abts() argument
477 …isp_prt(isp, ISP_LOGERR, "%s: called for non-ABTS entry (0x%x)", __func__, abts->abts_header.rqs_e… in isp_acknak_abts()
484 isp_prt(isp, ISP_LOGTINFO, "[0x%x] ABTS of 0x%x being %s'd", in isp_acknak_abts()
526 return (isp_send_entry(isp, rsp)); in isp_acknak_abts()
530 isp_handle_abts(ispsoftc_t *isp, abts_t *abts) in isp_handle_abts() argument
541 nt->nt_hba = isp; in isp_handle_abts()
545 if (ISP_CAP_MULTI_ID(isp) && isp->isp_nchan > 1) { in isp_handle_abts()
547 isp_find_chan_by_did(isp, did, &chan); in isp_handle_abts()
549 isp_prt(isp, ISP_LOGWARN, in isp_handle_abts()
552 isp_acknak_abts(isp, abts, ENXIO); in isp_handle_abts()
557 nt->nt_tgt = FCPARAM(isp, chan)->isp_wwpn; in isp_handle_abts()
558 if (isp_find_pdb_by_handle(isp, chan, abts->abts_nphdl, &lp)) in isp_handle_abts()
566 isp_prt(isp, ISP_LOGTINFO, "[0x%x] ABTS from N-Port handle 0x%x" in isp_handle_abts()
573 isp_async(isp, ISPASYNC_TARGET_NOTIFY, &notify); in isp_handle_abts()
577 isp_handle_ctio7(ispsoftc_t *isp, ct7_entry_t *ct) in isp_handle_ctio7() argument
584 xs = isp_find_xs(isp, ct->ct_syshandle); in isp_handle_ctio7()
594 isp_prt(isp, ISP_LOGERR, "PCI DMA Bus Error"); in isp_handle_ctio7()
622 isp_prt(isp, ISP_LOGTDEBUG0, "CTIO7 destroyed by %s: RX_ID=0x%x", fmsg, ct->ct_rxid); in isp_handle_ctio7()
629 isp_prt(isp, ISP_LOGWARN, "Firmware timed out on %s", fmsg); in isp_handle_ctio7()
649 isp_prt(isp, ISP_LOGWARN, "CTIO returned by f/w- %s", fmsg); in isp_handle_ctio7()
657 isp_prt(isp, ISP_LOGWARN, "CTIO7 completed with Invalid RX_ID 0x%x", ct->ct_rxid); in isp_handle_ctio7()
661 isp_prt(isp, ISP_LOGWARN, "reassembly error"); in isp_handle_ctio7()
665 isp_prt(isp, ISP_LOGTDEBUG0, "SRR received"); in isp_handle_ctio7()
669 isp_prt(isp, ISP_LOGERR, "Unknown CTIO7 status 0x%x", ct->ct_nphdl); in isp_handle_ctio7()
683 isp_prt(isp, ISP_LOGINFO, "termination of [RX_ID 0x%x] complete", ct->ct_rxid); in isp_handle_ctio7()
685 isp_prt(isp, pl, "intermediate CTIO completed ok"); in isp_handle_ctio7()
687 isp_prt(isp, pl, "unmonitored CTIO completed ok"); in isp_handle_ctio7()
690 isp_prt(isp, pl, "NO xs for CTIO (handle 0x%x) status 0x%x", ct->ct_syshandle, ct->ct_nphdl); in isp_handle_ctio7()
693 ISP_DMAFREE(isp, xs); in isp_handle_ctio7()
703 isp_prt(isp, pl, "status CTIO complete"); in isp_handle_ctio7()
709 isp_prt(isp, pl, "data CTIO complete"); in isp_handle_ctio7()
711 isp_async(isp, ISPASYNC_TARGET_ACTION, ct); in isp_handle_ctio7()
719 isp_handle_notify_24xx(ispsoftc_t *isp, in_fcentry_24xx_t *inot) in isp_handle_notify_24xx() argument
738 chan = ISP_GET_VPIDX(isp, inot->in_vpidx); in isp_handle_notify_24xx()
739 if (chan >= isp->isp_nchan && in isp_handle_notify_24xx()
743 isp_prt(isp, ISP_LOGWARN, "%s: Received INOT with status %x on VP %x", in isp_handle_notify_24xx()
745 isp_async(isp, ISPASYNC_TARGET_NOTIFY_ACK, inot); in isp_handle_notify_24xx()
762 isp_del_wwn_entry(isp, chan, wwpn, nphdl, portid); in isp_handle_notify_24xx()
771 isp_add_wwn_entry(isp, chan, wwpn, wwnn, in isp_handle_notify_24xx()
780 isp_add_wwn_entry(isp, chan, wwpn, wwnn, in isp_handle_notify_24xx()
799 isp_prt(isp, ISP_LOGERR, "%s Chan %d ELS N-port handle %x" in isp_handle_notify_24xx()
804 isp_prt(isp, ISP_LOGTDEBUG0, "%s Chan %d ELS N-port handle %x" in isp_handle_notify_24xx()
807 isp_async(isp, ISPASYNC_TARGET_NOTIFY_ACK, inot); in isp_handle_notify_24xx()
813 if (isp_find_pdb_by_handle(isp, chan, nphdl, &lp)) in isp_handle_notify_24xx()
814 isp_del_wwn_entry(isp, chan, lp->port_wwn, nphdl, lp->portid); in isp_handle_notify_24xx()
823 isp_prt(isp, ISP_LOGINFO, "Chan %d %s (sub-status 0x%x) for " in isp_handle_notify_24xx()
833 isp_async(isp, ISPASYNC_TARGET_NOTIFY_ACK, inot); in isp_handle_notify_24xx()
839 notify.nt_hba = isp; in isp_handle_notify_24xx()
841 notify.nt_tgt = FCPARAM(isp, chan)->isp_wwpn; in isp_handle_notify_24xx()
852 isp_async(isp, ISPASYNC_TARGET_NOTIFY, &notify); in isp_handle_notify_24xx()
866 isp_prt(isp, ISP_LOGWARN, "Chan %d %s", chan, msg); in isp_handle_notify_24xx()
867 isp_async(isp, ISPASYNC_TARGET_NOTIFY_ACK, inot); in isp_handle_notify_24xx()