Searched refs:v_rsp (Results 1 – 1 of 1) sorted by relevance
554 struct virtio_scsi_cmd_resp v_rsp; in vhost_scsi_complete_cmd_work() local568 memset(&v_rsp, 0, sizeof(v_rsp)); in vhost_scsi_complete_cmd_work()571 v_rsp.response = VIRTIO_SCSI_S_BAD_TARGET; in vhost_scsi_complete_cmd_work()573 v_rsp.resid = cpu_to_vhost32(cmd->tvc_vq, in vhost_scsi_complete_cmd_work()576 v_rsp.status = se_cmd->scsi_status; in vhost_scsi_complete_cmd_work()577 v_rsp.sense_len = cpu_to_vhost32(cmd->tvc_vq, in vhost_scsi_complete_cmd_work()579 memcpy(v_rsp.sense, cmd->tvc_sense_buf, in vhost_scsi_complete_cmd_work()584 cmd->tvc_in_iovs, sizeof(v_rsp)); in vhost_scsi_complete_cmd_work()585 ret = copy_to_iter(&v_rsp, sizeof(v_rsp), &iov_iter); in vhost_scsi_complete_cmd_work()586 if (likely(ret == sizeof(v_rsp))) { in vhost_scsi_complete_cmd_work()