Lines Matching refs:tv_cmd
472 struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd, in vhost_scsi_release_cmd() local
474 struct se_session *se_sess = tv_cmd->tvc_nexus->tvn_se_sess; in vhost_scsi_release_cmd()
477 if (tv_cmd->tvc_sgl_count) { in vhost_scsi_release_cmd()
478 for (i = 0; i < tv_cmd->tvc_sgl_count; i++) in vhost_scsi_release_cmd()
479 put_page(sg_page(&tv_cmd->tvc_sgl[i])); in vhost_scsi_release_cmd()
481 if (tv_cmd->tvc_prot_sgl_count) { in vhost_scsi_release_cmd()
482 for (i = 0; i < tv_cmd->tvc_prot_sgl_count; i++) in vhost_scsi_release_cmd()
483 put_page(sg_page(&tv_cmd->tvc_prot_sgl[i])); in vhost_scsi_release_cmd()
486 vhost_scsi_put_inflight(tv_cmd->inflight); in vhost_scsi_release_cmd()
1872 struct vhost_scsi_cmd *tv_cmd; in vhost_scsi_free_cmd_map_res() local
1879 tv_cmd = &((struct vhost_scsi_cmd *)se_sess->sess_cmd_map)[i]; in vhost_scsi_free_cmd_map_res()
1881 kfree(tv_cmd->tvc_sgl); in vhost_scsi_free_cmd_map_res()
1882 kfree(tv_cmd->tvc_prot_sgl); in vhost_scsi_free_cmd_map_res()
1883 kfree(tv_cmd->tvc_upages); in vhost_scsi_free_cmd_map_res()
1932 struct vhost_scsi_cmd *tv_cmd; in vhost_scsi_make_nexus() local
1964 tv_cmd = &((struct vhost_scsi_cmd *)se_sess->sess_cmd_map)[i]; in vhost_scsi_make_nexus()
1966 tv_cmd->tvc_sgl = kzalloc(sizeof(struct scatterlist) * in vhost_scsi_make_nexus()
1968 if (!tv_cmd->tvc_sgl) { in vhost_scsi_make_nexus()
1974 tv_cmd->tvc_upages = kzalloc(sizeof(struct page *) * in vhost_scsi_make_nexus()
1976 if (!tv_cmd->tvc_upages) { in vhost_scsi_make_nexus()
1982 tv_cmd->tvc_prot_sgl = kzalloc(sizeof(struct scatterlist) * in vhost_scsi_make_nexus()
1984 if (!tv_cmd->tvc_prot_sgl) { in vhost_scsi_make_nexus()