Lines Matching defs:cmd_xp
17327 struct sd_xbuf *cmd_xp; /* sd_xbuf for the original command */
17350 cmd_xp = SD_GET_XBUF(cmd_bp);
17375 cmd_xp->xb_sense_status = *(sense_pktp->pkt_scbp);
17376 cmd_xp->xb_sense_state = sense_pktp->pkt_state;
17378 if ((cmd_xp->xb_pkt_flags & SD_XB_USCSICMD) &&
17379 (((struct uscsi_cmd *)cmd_xp->xb_pktinfo)->uscsi_rqlen >
17381 bcopy(sense_bp->b_un.b_addr, cmd_xp->xb_sense_data,
17383 cmd_xp->xb_sense_resid = sense_pktp->pkt_resid;
17385 bcopy(sense_bp->b_un.b_addr, cmd_xp->xb_sense_data,
17388 cmd_xp->xb_sense_resid = SENSE_LENGTH - actual_len;
17390 cmd_xp->xb_sense_resid = 0;
17413 if (sd_validate_sense_data(un, cmd_bp, cmd_xp, actual_len) ==
17415 sd_decode_sense(un, cmd_bp, cmd_xp, cmd_pktp);
17421 (uchar_t *)cmd_xp->xb_sense_data, SENSE_LENGTH, SD_LOG_HEX);