Lines Matching refs:resp
52 } resp; member
152 struct virtio_scsi_cmd_resp *resp = &cmd->resp.cmd; in virtscsi_complete_cmd() local
158 sc, resp->response, resp->status, resp->sense_len); in virtscsi_complete_cmd()
160 sc->result = resp->status; in virtscsi_complete_cmd()
161 virtscsi_compute_resid(sc, virtio32_to_cpu(vscsi->vdev, resp->resid)); in virtscsi_complete_cmd()
162 switch (resp->response) { in virtscsi_complete_cmd()
192 resp->response); in virtscsi_complete_cmd()
199 WARN_ON(virtio32_to_cpu(vscsi->vdev, resp->sense_len) > in virtscsi_complete_cmd()
202 memcpy(sc->sense_buffer, resp->sense, in virtscsi_complete_cmd()
204 virtio32_to_cpu(vscsi->vdev, resp->sense_len), in virtscsi_complete_cmd()
206 if (resp->sense_len) in virtscsi_complete_cmd()
430 struct scatterlist *sgs[6], req, resp; in virtscsi_add_cmd() local
456 sg_init_one(&resp, &cmd->resp, resp_size); in virtscsi_add_cmd()
457 sgs[out_num + in_num++] = &resp; in virtscsi_add_cmd()
564 if (virtscsi_kick_cmd(req_vq, cmd, req_size, sizeof(cmd->resp.cmd)) != 0) in virtscsi_queuecommand()
649 sizeof cmd->req.tmf, sizeof cmd->resp.tmf) < 0) in virtscsi_tmf()
653 if (cmd->resp.tmf.response == VIRTIO_SCSI_S_OK || in virtscsi_tmf()
654 cmd->resp.tmf.response == VIRTIO_SCSI_S_FUNCTION_SUCCEEDED) in virtscsi_tmf()