Lines Matching refs:resp
721 struct status_msg *resp, unsigned int variable) in stex_copy_data() argument
723 if (resp->scsi_status != SAM_STAT_GOOD) { in stex_copy_data()
725 memcpy(ccb->sense_buffer, resp->variable, in stex_copy_data()
732 scsi_sg_copy_from_buffer(ccb->cmd, resp->variable, variable); in stex_copy_data()
736 struct st_ccb *ccb, struct status_msg *resp) in stex_check_cmd() argument
739 resp->scsi_status != SAM_STAT_CHECK_CONDITION) in stex_check_cmd()
741 le32_to_cpu(*(__le32 *)&resp->variable[0])); in stex_check_cmd()
747 struct status_msg *resp; in stex_mu_intr() local
779 resp = stex_get_status(hba); in stex_mu_intr()
780 tag = le16_to_cpu(resp->tag); in stex_mu_intr()
797 size = resp->payload_sz * sizeof(u32); /* payload size */ in stex_mu_intr()
798 if (unlikely(size < sizeof(*resp) - STATUS_VAR_LEN || in stex_mu_intr()
799 size > sizeof(*resp))) { in stex_mu_intr()
803 size -= sizeof(*resp) - STATUS_VAR_LEN; /* copy size */ in stex_mu_intr()
805 stex_copy_data(ccb, resp, size); in stex_mu_intr()
809 ccb->srb_status = resp->srb_status; in stex_mu_intr()
810 ccb->scsi_status = resp->scsi_status; in stex_mu_intr()
814 stex_check_cmd(hba, ccb, resp); in stex_mu_intr()
861 struct status_msg *resp; in stex_ss_mu_intr() local
879 resp = hba->status_buffer + hba->status_tail; in stex_ss_mu_intr()
907 ccb->srb_status = resp->srb_status; in stex_ss_mu_intr()
908 ccb->scsi_status = resp->scsi_status; in stex_ss_mu_intr()
909 size = resp->payload_sz * sizeof(u32); in stex_ss_mu_intr()
910 if (unlikely(size < sizeof(*resp) - STATUS_VAR_LEN || in stex_ss_mu_intr()
911 size > sizeof(*resp))) { in stex_ss_mu_intr()
916 size -= sizeof(*resp) - STATUS_VAR_LEN; in stex_ss_mu_intr()
918 stex_copy_data(ccb, resp, size); in stex_ss_mu_intr()
921 stex_check_cmd(hba, ccb, resp); in stex_ss_mu_intr()