• Home
  • Raw
  • Download

Lines Matching refs:rhdr

817 	struct iscsi_scsi_rsp *rhdr = (struct iscsi_scsi_rsp *)hdr;  in iscsi_scsi_cmd_rsp()  local
821 iscsi_update_cmdsn(session, (struct iscsi_nopin*)rhdr); in iscsi_scsi_cmd_rsp()
822 conn->exp_statsn = be32_to_cpu(rhdr->statsn) + 1; in iscsi_scsi_cmd_rsp()
824 sc->result = (DID_OK << 16) | rhdr->cmd_status; in iscsi_scsi_cmd_rsp()
826 if (rhdr->response != ISCSI_STATUS_CMD_COMPLETED) { in iscsi_scsi_cmd_rsp()
831 if (rhdr->cmd_status == SAM_STAT_CHECK_CONDITION) { in iscsi_scsi_cmd_rsp()
854 if (rhdr->flags & (ISCSI_FLAG_CMD_BIDI_UNDERFLOW | in iscsi_scsi_cmd_rsp()
856 int res_count = be32_to_cpu(rhdr->bi_residual_count); in iscsi_scsi_cmd_rsp()
859 (rhdr->flags & ISCSI_FLAG_CMD_BIDI_OVERFLOW || in iscsi_scsi_cmd_rsp()
863 sc->result = (DID_BAD_TARGET << 16) | rhdr->cmd_status; in iscsi_scsi_cmd_rsp()
866 if (rhdr->flags & (ISCSI_FLAG_CMD_UNDERFLOW | in iscsi_scsi_cmd_rsp()
868 int res_count = be32_to_cpu(rhdr->residual_count); in iscsi_scsi_cmd_rsp()
871 (rhdr->flags & ISCSI_FLAG_CMD_OVERFLOW || in iscsi_scsi_cmd_rsp()
876 sc->result = (DID_BAD_TARGET << 16) | rhdr->cmd_status; in iscsi_scsi_cmd_rsp()
895 struct iscsi_data_rsp *rhdr = (struct iscsi_data_rsp *)hdr; in iscsi_data_in_rsp() local
898 if (!(rhdr->flags & ISCSI_FLAG_DATA_STATUS)) in iscsi_data_in_rsp()
902 sc->result = (DID_OK << 16) | rhdr->cmd_status; in iscsi_data_in_rsp()
903 conn->exp_statsn = be32_to_cpu(rhdr->statsn) + 1; in iscsi_data_in_rsp()
904 if (rhdr->flags & (ISCSI_FLAG_DATA_UNDERFLOW | in iscsi_data_in_rsp()
906 int res_count = be32_to_cpu(rhdr->residual_count); in iscsi_data_in_rsp()
909 (rhdr->flags & ISCSI_FLAG_CMD_OVERFLOW || in iscsi_data_in_rsp()
913 sc->result = (DID_BAD_TARGET << 16) | rhdr->cmd_status; in iscsi_data_in_rsp()
942 static void iscsi_send_nopout(struct iscsi_conn *conn, struct iscsi_nopin *rhdr) in iscsi_send_nopout() argument
947 if (!rhdr && conn->ping_task) in iscsi_send_nopout()
954 if (rhdr) { in iscsi_send_nopout()
955 hdr.lun = rhdr->lun; in iscsi_send_nopout()
956 hdr.ttt = rhdr->ttt; in iscsi_send_nopout()
964 else if (!rhdr) { in iscsi_send_nopout()