Lines Matching refs:rhdr
805 struct iscsi_scsi_rsp *rhdr = (struct iscsi_scsi_rsp *)hdr;
809 iscsi_update_cmdsn(session, (struct iscsi_nopin*)rhdr);
810 conn->exp_statsn = be32_to_cpu(rhdr->statsn) + 1;
812 sc->result = (DID_OK << 16) | rhdr->cmd_status;
838 if (rhdr->response != ISCSI_STATUS_CMD_COMPLETED) {
843 if (rhdr->cmd_status == SAM_STAT_CHECK_CONDITION) {
866 if (rhdr->flags & (ISCSI_FLAG_CMD_BIDI_UNDERFLOW |
868 sc->result = (DID_BAD_TARGET << 16) | rhdr->cmd_status;
871 if (rhdr->flags & (ISCSI_FLAG_CMD_UNDERFLOW |
873 int res_count = be32_to_cpu(rhdr->residual_count);
876 (rhdr->flags & ISCSI_FLAG_CMD_OVERFLOW ||
881 sc->result = (DID_BAD_TARGET << 16) | rhdr->cmd_status;
903 struct iscsi_data_rsp *rhdr = (struct iscsi_data_rsp *)hdr;
906 if (!(rhdr->flags & ISCSI_FLAG_DATA_STATUS))
910 sc->result = (DID_OK << 16) | rhdr->cmd_status;
911 conn->exp_statsn = be32_to_cpu(rhdr->statsn) + 1;
912 if (rhdr->flags & (ISCSI_FLAG_DATA_UNDERFLOW |
914 int res_count = be32_to_cpu(rhdr->residual_count);
917 (rhdr->flags & ISCSI_FLAG_CMD_OVERFLOW ||
921 sc->result = (DID_BAD_TARGET << 16) | rhdr->cmd_status;
951 static int iscsi_send_nopout(struct iscsi_conn *conn, struct iscsi_nopin *rhdr)
956 if (!rhdr) {
966 if (rhdr) {
967 hdr.lun = rhdr->lun;
968 hdr.ttt = rhdr->ttt;
975 if (!rhdr)
979 } else if (!rhdr) {