Lines Matching +defs:d +defs:notify

51 static const char prom3[] = "Chan %d [%u] PortID 0x%06x Departed because of %s";
161 "%s_%d", device_get_nameunit(isp->isp_osinfo.dev), chan)) {
169 snprintf(name, sizeof(name), "chan%d", chan);
313 "Chan %d Freeze simq (loopdown)", chan);
319 "Chan %d Mark simq frozen (loopdown)", chan);
335 "Chan %d Release simq", chan);
574 isp_prt(isp, ISP_LOGERR, "%s: TMF of chan %d error %d",
786 isp_prt(isp, ISP_LOGALL, "Chan %d ATP [0x%x] origdlen %u bytes_xfrd %u lun %jx nphdl 0x%04x s_id 0x%06x d_id 0x%06x oxid 0x%04x state %s",
948 isp_prt(isp, ISP_LOGTDEBUG0, "%s: ENTRY[0x%x] how %u xfrlen %u sendstatus %d sense_len %u", __func__, ccb->csio.tag_id, how, ccb->csio.dxfer_len,
1015 isp_prt(isp, ISP_LOGTINFO, "[0x%x] handling only %d CCBs at a time (flags for this ccb: 0x%x)", cso->tag_id, ATPD_CCB_OUTSTANDING, ccb->ccb_h.flags);
1177 isp_prt(isp, ISP_LOGTDEBUG0, "%s: CTIO7[0x%x] seq %u nc %d CDB0=%x sstatus=0x%x flags=0x%x resid=%d slen %u sense: %x %x/%x/%x", __func__,
1181 isp_prt(isp, ISP_LOGDEBUG0, "%s: CTIO7[0x%x] seq %u nc %d CDB0=%x sstatus=0x%x flags=0x%x resid=%d", __func__,
1203 isp_prt(isp, ISP_LOGWARN, "%s: truncating data frame with xfrlen %d to %d", __func__, xfrlen, xfrlen - (xfrlen >> 2));
1224 isp_prt(isp, ISP_LOGTDEBUG0, "%s: CTIO7[0x%x] seq %u nc %d CDB0=%x sstatus=0x%x flags=0x%x xfrlen=%u off=%u", __func__,
1339 isp_prt(isp, ISP_LOGTINFO, "%s: [RX_ID 0x%x] D_ID 0x%06x found on Chan %d for S_ID 0x%06x wasn't in PDB already",
1393 "0x%04x S_ID 0x%04x OX_ID 0x%04x) oatp state %d",
1476 * We get here when we've gotten the immediate notify
1579 isp_handle_platform_srr(ispsoftc_t *isp, isp_notify_t *notify)
1581 in_fcentry_24xx_t *inot = notify->nt_lreserved;
1583 uint32_t tag = notify->nt_tagval & 0xffffffff;
1585 atp = isp_find_atpd(isp, notify->nt_channel, tag);
1656 isp_prt(isp, ok? ISP_LOGTDEBUG0 : ISP_LOGWARN, "%s: CTIO7[%x] seq %u nc %d sts 0x%x flg 0x%x sns %d resid %d %s", __func__, ct->ct_rxid, ATPD_GET_SEQNO(ct),
1677 * We never *not* notify CAM when there has been any error (ok == 0),
1680 isp_prt(isp, ISP_LOGTDEBUG0, "%s CTIO[0x%x] done (ok=%d nc=%d nowsendstatus=%d ccb ss=%d)",
1710 isp_prt(isp, ISP_LOGTINFO, "Notify Code 0x%x (qevalid=%d) acked- h/w not ready (dropping)", mp->nt_ncode, mp->nt_lreserved != NULL);
1762 isp_prt(isp, ISP_LOGTINFO, "Notify Code 0x%x (qevalid=%d) being acked", mp->nt_ncode, mp->nt_lreserved != NULL);
1774 * We show up here with a notify structure filled out.
1779 isp_handle_platform_target_tmf(ispsoftc_t *isp, isp_notify_t *notify)
1788 isp_prt(isp, ISP_LOGTDEBUG0, "%s: code 0x%x sid 0x%x tagval 0x%016llx chan %d lun %jx", __func__, notify->nt_ncode,
1789 notify->nt_sid, (unsigned long long) notify->nt_tagval, notify->nt_channel, notify->nt_lun);
1790 if (notify->nt_lun == LUN_ANY) {
1791 if (notify->nt_tagval == TAG_ANY) {
1794 atp = isp_find_atpd(isp, notify->nt_channel,
1795 notify->nt_tagval & 0xffffffff);
1799 lun = notify->nt_lun;
1801 tptr = get_lun_statep(isp, notify->nt_channel, lun);
1803 tptr = get_lun_statep(isp, notify->nt_channel, CAM_LUN_WILDCARD);
1805 isp_prt(isp, ISP_LOGWARN, "%s: no state pointer found for chan %d lun %#jx", __func__, notify->nt_channel, (uintmax_t)lun);
1811 isp_prt(isp, ISP_LOGWARN, "%s: out of immediate notify structures for chan %d lun %#jx", __func__, notify->nt_channel, (uintmax_t)lun);
1817 if (isp_find_pdb_by_portid(isp, notify->nt_channel, notify->nt_sid, &lp) == 0 &&
1818 isp_find_pdb_by_handle(isp, notify->nt_channel, notify->nt_nphdl, &lp) == 0) {
1821 inot->initiator_id = FC_PORTDB_TGT(isp, notify->nt_channel, lp);
1823 inot->seq_id = notify->nt_tagval;
1824 inot->tag_id = notify->nt_tagval >> 32;
1826 switch (notify->nt_ncode) {
1828 isp_target_mark_aborted_early(isp, notify->nt_channel, tptr, inot->tag_id);
1832 isp_target_mark_aborted_early(isp, notify->nt_channel, tptr, TAG_ANY);
1854 isp_prt(isp, ISP_LOGWARN, "%s: unknown TMF code 0x%x for chan %d lun %#jx", __func__, notify->nt_ncode, notify->nt_channel, (uintmax_t)lun);
1858 ntp = isp_get_ntpd(isp, notify->nt_channel);
1863 ISP_MEMCPY(&ntp->nt, notify, sizeof (isp_notify_t));
1864 if (notify->nt_lreserved) {
1865 ISP_MEMCPY(&ntp->data, notify->nt_lreserved, QENTRY_LEN);
1868 ntp->seq_id = notify->nt_tagval;
1869 ntp->tag_id = notify->nt_tagval >> 32;
1877 if (notify->nt_need_ack) {
1878 if (((isphdr_t *)notify->nt_lreserved)->rqs_entry_type == RQSTYPE_ABTS_RCVD) {
1879 if (isp_acknak_abts(isp, notify->nt_lreserved, ENOMEM)) {
1883 isp_async(isp, ISPASYNC_TARGET_NOTIFY_ACK, notify->nt_lreserved);
1993 isp_prt(isp, ISP_LOGWARN, "Chan %d unable to alloc CCB for rescan", chan);
2046 isp_prt(isp, ISP_LOGDEBUG0, "Chan %d GDT timer expired", chan);
2080 isp_prt(isp, ISP_LOG_SANCFG, "Chan %d Stopping Gone Device Timer @ %lu", chan, (unsigned long) time_uptime);
2103 isp_prt(isp, ISP_LOG_SANCFG|ISP_LOGDEBUG0, "Chan %d Loop changed", chan);
2115 isp_prt(isp, ISP_LOG_SANCFG|ISP_LOGDEBUG0, "Chan %d Loop is up", chan);
2131 isp_prt(isp, ISP_LOG_SANCFG|ISP_LOGDEBUG0, "Chan %d Loop is dead", chan);
2154 isp_prt(isp, ISP_LOGWARN, "command handle 0x%x for %d.%d.%jx orphaned by loop down timeout",
2169 isp_prt(isp, ISP_LOGWARN, "command handle 0x%x for %d.%d.%jx could not be aborted and was destroyed",
2203 int slp = 0, d;
2209 "Chan %d Checking FC state", chan);
2212 "Chan %d FC got to %s state", chan,
2236 d = time_uptime - fc->loop_down_time;
2237 if (d >= lim)
2239 else if (d < 10)
2241 else if (d < 30)
2243 else if (d < 60)
2245 else if (d < 120)
2259 "Chan %d sleep for %d seconds", chan, slp);
2426 isp_prt(isp, ISP_LOGDEBUG0, "%d.%jx retry later",
2445 isp_prt(isp, ISP_LOGERR, "What's this? 0x%x at %d in file %s", error, __LINE__, __FILE__);
2493 case XPT_NOTIFY_ACKNOWLEDGE: /* notify ack */
2499 * XXX: Because we cannot guarantee that the path information in the notify acknowledge ccb
2500 * XXX: matches that for the immediate notify, we have to *search* for the notify structure
2503 * All the relevant path information is in the associated immediate notify
2653 xpt_print(ccb->ccb_h.path, "reset bus on channel %d\n", bus);
2673 isp_prt(isp, ISP_LOGALL, "Setting Channel %d wwns to 0x%jx 0x%jx", bus, fcp->isp_wwnn, fcp->isp_wwpn);
2707 ISP_PATH_PRT(isp, ISP_LOGCONFIG, ccb->ccb_h.path, "changing role on from %d to %d\n", fcp->role, newrole);
2843 static const char prom[] = "Chan %d [%d] WWPN 0x%16jx PortID 0x%06x handle 0x%x %s %s";
2865 isp_prt(isp, ISP_LOGINFO, "Chan %d LOOP Reset, LIP primitive %x", bus, lipp);
2897 isp_prt(isp, ISP_LOGINFO, "Chan %d %s", bus, msg);
2998 isp_prt(isp, ISP_LOG_SANCFG|ISP_LOGDEBUG0, "Chan %d Starting Gone Device Timer with %u seconds time now %lu", bus, lp->gone_timer, (unsigned long)time_uptime);
3029 "Chan %d %s (nphdl 0x%x state 0x%x reason 0x%x)",
3067 isp_prt(isp, ISP_LOGINFO, "Chan %d %s (PortID 0x%06x)",
3071 isp_prt(isp, ISP_LOGINFO, "Chan %d %s", bus, msg);
3079 isp_notify_t *notify;
3081 notify = va_arg(ap, isp_notify_t *);
3083 switch (notify->nt_ncode) {
3095 isp_handle_platform_target_tmf(isp, notify);
3106 isp_handle_platform_srr(isp, notify);
3109 isp_prt(isp, ISP_LOGALL, "target notify code 0x%x", notify->nt_ncode);
3110 isp_handle_platform_target_notify_ack(isp, notify, 0);
3131 isp_prt(isp, ISP_LOGERR, "you lose- cannot allocate a notify refire");
3170 isp_prt(isp, ISP_LOGERR, "unknown isp_async event %d", cmd);
3421 "Chan %d resetting CRN on all targets", chan);
3424 "Chan %d resetting CRN on target %u", chan, tgt);