Lines Matching defs:resp
774 struct status_msg *resp, unsigned int variable)
776 if (resp->scsi_status != SAM_STAT_GOOD) {
778 memcpy(ccb->sense_buffer, resp->variable,
785 scsi_sg_copy_from_buffer(ccb->cmd, resp->variable, variable);
789 struct st_ccb *ccb, struct status_msg *resp)
792 resp->scsi_status != SAM_STAT_CHECK_CONDITION)
794 le32_to_cpu(*(__le32 *)&resp->variable[0]));
800 struct status_msg *resp;
832 resp = stex_get_status(hba);
833 tag = le16_to_cpu(resp->tag);
850 size = resp->payload_sz * sizeof(u32); /* payload size */
851 if (unlikely(size < sizeof(*resp) - STATUS_VAR_LEN ||
852 size > sizeof(*resp))) {
856 size -= sizeof(*resp) - STATUS_VAR_LEN; /* copy size */
858 stex_copy_data(ccb, resp, size);
862 ccb->srb_status = resp->srb_status;
863 ccb->scsi_status = resp->scsi_status;
867 stex_check_cmd(hba, ccb, resp);
914 struct status_msg *resp;
932 resp = hba->status_buffer + hba->status_tail;
960 ccb->srb_status = resp->srb_status;
961 ccb->scsi_status = resp->scsi_status;
962 size = resp->payload_sz * sizeof(u32);
963 if (unlikely(size < sizeof(*resp) - STATUS_VAR_LEN ||
964 size > sizeof(*resp))) {
969 size -= sizeof(*resp) - STATUS_VAR_LEN;
971 stex_copy_data(ccb, resp, size);
974 stex_check_cmd(hba, ccb, resp);