Lines Matching defs:resp
777 struct status_msg *resp, unsigned int variable)
779 if (resp->scsi_status != SAM_STAT_GOOD) {
781 memcpy(ccb->sense_buffer, resp->variable,
788 scsi_sg_copy_from_buffer(ccb->cmd, resp->variable, variable);
792 struct st_ccb *ccb, struct status_msg *resp)
795 resp->scsi_status != SAM_STAT_CHECK_CONDITION)
797 le32_to_cpu(*(__le32 *)&resp->variable[0]));
803 struct status_msg *resp;
835 resp = stex_get_status(hba);
836 tag = le16_to_cpu(resp->tag);
853 size = resp->payload_sz * sizeof(u32); /* payload size */
854 if (unlikely(size < sizeof(*resp) - STATUS_VAR_LEN ||
855 size > sizeof(*resp))) {
859 size -= sizeof(*resp) - STATUS_VAR_LEN; /* copy size */
861 stex_copy_data(ccb, resp, size);
865 ccb->srb_status = resp->srb_status;
866 ccb->scsi_status = resp->scsi_status;
870 stex_check_cmd(hba, ccb, resp);
917 struct status_msg *resp;
935 resp = hba->status_buffer + hba->status_tail;
963 ccb->srb_status = resp->srb_status;
964 ccb->scsi_status = resp->scsi_status;
965 size = resp->payload_sz * sizeof(u32);
966 if (unlikely(size < sizeof(*resp) - STATUS_VAR_LEN ||
967 size > sizeof(*resp))) {
972 size -= sizeof(*resp) - STATUS_VAR_LEN;
974 stex_copy_data(ccb, resp, size);
977 stex_check_cmd(hba, ccb, resp);