Lines Matching refs:tv_cmd

418 	struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd,  in vhost_scsi_release_cmd_res()  local
420 struct vhost_scsi_virtqueue *svq = container_of(tv_cmd->tvc_vq, in vhost_scsi_release_cmd_res()
423 struct vhost_scsi_inflight *inflight = tv_cmd->inflight; in vhost_scsi_release_cmd_res()
428 if (tv_cmd->tvc_sgl_count) { in vhost_scsi_release_cmd_res()
429 for_each_sgtable_sg(&tv_cmd->table, sg, i) { in vhost_scsi_release_cmd_res()
434 if (tv_cmd->copied_iov) in vhost_scsi_release_cmd_res()
439 kfree(tv_cmd->read_iter); in vhost_scsi_release_cmd_res()
440 kfree(tv_cmd->read_iov); in vhost_scsi_release_cmd_res()
441 sg_free_table_chained(&tv_cmd->table, vs->inline_sg_cnt); in vhost_scsi_release_cmd_res()
443 if (tv_cmd->tvc_prot_sgl_count) { in vhost_scsi_release_cmd_res()
444 for_each_sgtable_sg(&tv_cmd->prot_table, sg, i) { in vhost_scsi_release_cmd_res()
449 sg_free_table_chained(&tv_cmd->prot_table, vs->inline_sg_cnt); in vhost_scsi_release_cmd_res()
452 if (tv_cmd->tvc_resp_iovs != &tv_cmd->tvc_resp_iov) in vhost_scsi_release_cmd_res()
453 kfree(tv_cmd->tvc_resp_iovs); in vhost_scsi_release_cmd_res()
1881 struct vhost_scsi_cmd *tv_cmd; in vhost_scsi_destroy_vq_log() local
1888 tv_cmd = &svq->scsi_cmds[i]; in vhost_scsi_destroy_vq_log()
1889 kfree(tv_cmd->tvc_log); in vhost_scsi_destroy_vq_log()
1890 tv_cmd->tvc_log = NULL; in vhost_scsi_destroy_vq_log()
1891 tv_cmd->tvc_log_num = 0; in vhost_scsi_destroy_vq_log()
1899 struct vhost_scsi_cmd *tv_cmd; in vhost_scsi_destroy_vq_cmds() local
1906 tv_cmd = &svq->scsi_cmds[i]; in vhost_scsi_destroy_vq_cmds()
1908 kfree(tv_cmd->sgl); in vhost_scsi_destroy_vq_cmds()
1909 kfree(tv_cmd->prot_sgl); in vhost_scsi_destroy_vq_cmds()
1924 struct vhost_scsi_cmd *tv_cmd; in vhost_scsi_setup_vq_cmds() local
1935 svq->scsi_cmds = kzalloc_objs(*tv_cmd, max_cmds); in vhost_scsi_setup_vq_cmds()
1946 tv_cmd = &svq->scsi_cmds[i]; in vhost_scsi_setup_vq_cmds()
1949 tv_cmd->sgl = kzalloc_objs(struct scatterlist, in vhost_scsi_setup_vq_cmds()
1951 if (!tv_cmd->sgl) { in vhost_scsi_setup_vq_cmds()
1959 tv_cmd->prot_sgl = kzalloc_objs(struct scatterlist, in vhost_scsi_setup_vq_cmds()
1961 if (!tv_cmd->prot_sgl) { in vhost_scsi_setup_vq_cmds()