Lines Matching defs:sp

4676 			isp24xx_statusreq_t *sp;
4723 sp = (isp24xx_statusreq_t *) local;
4724 isp_get_24xx_response(isp, &((isp24xx_statusreq_t *)isp->isp_iocb)[1], sp);
4725 if (sp->req_completion_status == 0) {
4728 isp_prt(isp, ISP_LOGWARN, "Chan %d reset of target %d returned 0x%x", chan, tgt, sp->req_completion_status);
5175 ispstatusreq_t *sp = (ispstatusreq_t *) qe;
5198 isp_get_hdr(isp, hp, &sp->req_header);
5199 etype = sp->req_header.rqs_entry_type;
5212 isp_get_response(isp, (ispstatusreq_t *) hp, sp);
5213 scsi_status = sp->req_scsi_status;
5214 completion_status = sp->req_completion_status;
5215 req_status_flags = sp->req_status_flags;
5216 req_state_flags = sp->req_state_flags;
5217 resid = sp->req_resid;
5236 isp_get_cont_response(isp, (ispstatus_cont_t *) hp, (ispstatus_cont_t *) sp);
5238 ispstatus_cont_t *scp = (ispstatus_cont_t *) sp;
5289 scsi_status = sp->req_scsi_status;
5290 completion_status = sp->req_completion_status;
5291 req_status_flags = sp->req_status_flags;
5292 req_state_flags = sp->req_state_flags;
5293 resid = sp->req_resid;
5296 if (sp->req_header.rqs_flags & RQSFLAG_MASK) {
5297 if (sp->req_header.rqs_flags & RQSFLAG_CONTINUATION) {
5303 if (sp->req_header.rqs_flags & RQSFLAG_FULL) {
5309 if (sp->req_header.rqs_flags & RQSFLAG_BADHEADER) {
5314 if (sp->req_header.rqs_flags & RQSFLAG_BADPACKET) {
5319 if (sp->req_header.rqs_flags & RQSFLAG_BADCOUNT) {
5324 if (sp->req_header.rqs_flags & RQSFLAG_BADORDER) {
5332 xs = isp_find_xs(isp, sp->req_handle);
5340 isp_prt(isp, ISP_LOGERR, "cannot find handle 0x%x (type 0x%x)", sp->req_handle, etype);
5342 isp_prt(isp, ISP_LOGERR, "cannot find handle 0x%x (status 0x%x)", sp->req_handle, ts);
5365 resp = ((isp24xx_statusreq_t *)sp)->req_rsp_sense;
5366 rlen = ((isp24xx_statusreq_t *)sp)->req_response_len;
5368 resp = sp->req_response;
5369 rlen = sp->req_response_len;
5379 snsp = ((isp24xx_statusreq_t *)sp)->req_rsp_sense;
5381 totslen = ((isp24xx_statusreq_t *)sp)->req_sense_len;
5382 slen = (sizeof (((isp24xx_statusreq_t *)sp)->req_rsp_sense)) - rlen;
5386 snsp = sp->req_sense_data;
5387 totslen = sp->req_sense_len;
5388 slen = sizeof (sp->req_sense_data);
5393 snsp = sp->req_sense_data;
5394 totslen = sp->req_sense_len;
5395 slen = sizeof (sp->req_sense_data);
5436 isp_parse_status_24xx(isp, (isp24xx_statusreq_t *)sp, xs, &resid);
5438 isp_parse_status(isp, (void *)sp, xs, &resid);
5494 if (!IS_24XX(isp) && (sp->req_header.rqs_flags & RQSFLAG_FULL)) {
5524 ISP_DMAFREE(isp, xs, sp->req_handle);
5526 isp_destroy_handle(isp, sp->req_handle);
6257 isp_parse_status(ispsoftc_t *isp, ispstatusreq_t *sp, XS_T *xs, long *rp)
6259 switch (sp->req_completion_status & 0xff) {
6267 if ((sp->req_state_flags & RQSF_GOT_TARGET) == 0) {
6275 isp_xs_prt(isp, xs, ISP_LOGERR, "Command Incomplete, state 0x%x", sp->req_state_flags);
6287 if (sp->req_state_flags & RQSF_GOT_BUS) {
6290 if (sp->req_state_flags & RQSF_GOT_TARGET) {
6293 if (sp->req_state_flags & RQSF_SENT_CDB) {
6296 if (sp->req_state_flags & RQSF_XFRD_DATA) {
6299 if (sp->req_state_flags & RQSF_GOT_STATUS) {
6302 if (sp->req_state_flags & RQSF_GOT_SENSE) {
6305 if (sp->req_state_flags & RQSF_XFER_COMPLETE) {
6309 if (sp->req_status_flags & RQSTF_DISCONNECT) {
6312 if (sp->req_status_flags & RQSTF_SYNCHRONOUS) {
6315 if (sp->req_status_flags & RQSTF_PARITY_ERROR) {
6318 if (sp->req_status_flags & RQSTF_BUS_RESET) {
6321 if (sp->req_status_flags & RQSTF_DEVICE_RESET) {
6324 if (sp->req_status_flags & RQSTF_ABORTED) {
6327 if (sp->req_status_flags & RQSTF_TIMEOUT) {
6330 if (sp->req_status_flags & RQSTF_NEGOTIATION) {
6369 XS_SET_RESID(xs, sp->req_resid);
6431 int ru_marked = (sp->req_scsi_status & RQCS_RU) != 0;
6432 if (!ru_marked || sp->req_resid > XS_XFRLEN(xs)) {
6433 isp_xs_prt(isp, xs, ISP_LOGWARN, bun, XS_XFRLEN(xs), sp->req_resid, (ru_marked)? "marked" : "not marked");
6440 XS_SET_RESID(xs, sp->req_resid);
6532 uint8_t sts = sp->req_completion_status & 0xff;
6586 isp_prt(isp, ISP_LOGERR, "Unknown Completion Status 0x%x", sp->req_completion_status);
6595 isp_parse_status_24xx(ispsoftc_t *isp, isp24xx_statusreq_t *sp, XS_T *xs, long *rp)
6600 switch (sp->req_completion_status) {
6639 XS_SET_RESID(xs, sp->req_resid);
6662 ru_marked = (sp->req_scsi_status & RQCS_RU) != 0;
6667 sv_marked = (sp->req_scsi_status & (RQCS_SV|RQCS_RV)) != 0;
6669 (sp->req_resid > XS_XFRLEN(xs))) {
6670 isp_xs_prt(isp, xs, ISP_LOGWARN, bun, XS_XFRLEN(xs), sp->req_resid, (ru_marked)? "marked" : "not marked");
6676 XS_SET_RESID(xs, sp->req_resid);
6677 isp_xs_prt(isp, xs, ISP_LOG_WARN1, "Data Underrun (%d) for command 0x%x", sp->req_resid, XS_CDBP(xs)[0] & 0xff);
6690 uint8_t sts = sp->req_completion_status & 0xff;
6744 isp_prt(isp, ISP_LOGERR, "Unknown Completion Status 0x%x on chan %d", sp->req_completion_status, chan);