Lines Matching refs:tv_cmd

311 	struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd,  in vhost_scsi_release_cmd()  local
313 struct se_session *se_sess = tv_cmd->tvc_nexus->tvn_se_sess; in vhost_scsi_release_cmd()
316 if (tv_cmd->tvc_sgl_count) { in vhost_scsi_release_cmd()
317 for (i = 0; i < tv_cmd->tvc_sgl_count; i++) in vhost_scsi_release_cmd()
318 put_page(sg_page(&tv_cmd->tvc_sgl[i])); in vhost_scsi_release_cmd()
320 if (tv_cmd->tvc_prot_sgl_count) { in vhost_scsi_release_cmd()
321 for (i = 0; i < tv_cmd->tvc_prot_sgl_count; i++) in vhost_scsi_release_cmd()
322 put_page(sg_page(&tv_cmd->tvc_prot_sgl[i])); in vhost_scsi_release_cmd()
325 vhost_scsi_put_inflight(tv_cmd->inflight); in vhost_scsi_release_cmd()
1625 struct vhost_scsi_cmd *tv_cmd; in vhost_scsi_free_cmd_map_res() local
1632 tv_cmd = &((struct vhost_scsi_cmd *)se_sess->sess_cmd_map)[i]; in vhost_scsi_free_cmd_map_res()
1634 kfree(tv_cmd->tvc_sgl); in vhost_scsi_free_cmd_map_res()
1635 kfree(tv_cmd->tvc_prot_sgl); in vhost_scsi_free_cmd_map_res()
1636 kfree(tv_cmd->tvc_upages); in vhost_scsi_free_cmd_map_res()
1682 struct vhost_scsi_cmd *tv_cmd; in vhost_scsi_nexus_cb() local
1686 tv_cmd = &((struct vhost_scsi_cmd *)se_sess->sess_cmd_map)[i]; in vhost_scsi_nexus_cb()
1688 tv_cmd->tvc_sgl = kcalloc(VHOST_SCSI_PREALLOC_SGLS, in vhost_scsi_nexus_cb()
1691 if (!tv_cmd->tvc_sgl) { in vhost_scsi_nexus_cb()
1696 tv_cmd->tvc_upages = kcalloc(VHOST_SCSI_PREALLOC_UPAGES, in vhost_scsi_nexus_cb()
1699 if (!tv_cmd->tvc_upages) { in vhost_scsi_nexus_cb()
1704 tv_cmd->tvc_prot_sgl = kcalloc(VHOST_SCSI_PREALLOC_PROT_SGLS, in vhost_scsi_nexus_cb()
1707 if (!tv_cmd->tvc_prot_sgl) { in vhost_scsi_nexus_cb()