Lines Matching refs:resp
728 struct status_msg *resp, unsigned int variable) in stex_copy_data() argument
730 if (resp->scsi_status != SAM_STAT_GOOD) { in stex_copy_data()
732 memcpy(ccb->sense_buffer, resp->variable, in stex_copy_data()
739 scsi_sg_copy_from_buffer(ccb->cmd, resp->variable, variable); in stex_copy_data()
743 struct st_ccb *ccb, struct status_msg *resp) in stex_check_cmd() argument
746 resp->scsi_status != SAM_STAT_CHECK_CONDITION) in stex_check_cmd()
748 le32_to_cpu(*(__le32 *)&resp->variable[0])); in stex_check_cmd()
754 struct status_msg *resp; in stex_mu_intr() local
786 resp = stex_get_status(hba); in stex_mu_intr()
787 tag = le16_to_cpu(resp->tag); in stex_mu_intr()
804 size = resp->payload_sz * sizeof(u32); /* payload size */ in stex_mu_intr()
805 if (unlikely(size < sizeof(*resp) - STATUS_VAR_LEN || in stex_mu_intr()
806 size > sizeof(*resp))) { in stex_mu_intr()
810 size -= sizeof(*resp) - STATUS_VAR_LEN; /* copy size */ in stex_mu_intr()
812 stex_copy_data(ccb, resp, size); in stex_mu_intr()
816 ccb->srb_status = resp->srb_status; in stex_mu_intr()
817 ccb->scsi_status = resp->scsi_status; in stex_mu_intr()
821 stex_check_cmd(hba, ccb, resp); in stex_mu_intr()
868 struct status_msg *resp; in stex_ss_mu_intr() local
886 resp = hba->status_buffer + hba->status_tail; in stex_ss_mu_intr()
914 ccb->srb_status = resp->srb_status; in stex_ss_mu_intr()
915 ccb->scsi_status = resp->scsi_status; in stex_ss_mu_intr()
916 size = resp->payload_sz * sizeof(u32); in stex_ss_mu_intr()
917 if (unlikely(size < sizeof(*resp) - STATUS_VAR_LEN || in stex_ss_mu_intr()
918 size > sizeof(*resp))) { in stex_ss_mu_intr()
923 size -= sizeof(*resp) - STATUS_VAR_LEN; in stex_ss_mu_intr()
925 stex_copy_data(ccb, resp, size); in stex_ss_mu_intr()
928 stex_check_cmd(hba, ccb, resp); in stex_ss_mu_intr()