Lines Matching refs:vs_tpg
197 struct vhost_scsi_tpg **vs_tpg; member
1021 struct vhost_scsi_tpg **vs_tpg, *tpg = NULL; in vhost_scsi_get_req() local
1025 vs_tpg = vhost_vq_get_backend(vq); in vhost_scsi_get_req()
1026 tpg = READ_ONCE(vs_tpg[*vc->target]); in vhost_scsi_get_req()
1049 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local
1068 vs_tpg = vhost_vq_get_backend(vq); in vhost_scsi_handle_vq()
1069 if (!vs_tpg) in vhost_scsi_handle_vq()
1675 struct vhost_scsi_tpg **vs_tpg; in vhost_scsi_set_endpoint() local
1691 len = sizeof(vs_tpg[0]) * VHOST_SCSI_MAX_TARGET; in vhost_scsi_set_endpoint()
1692 vs_tpg = kzalloc(len, GFP_KERNEL); in vhost_scsi_set_endpoint()
1693 if (!vs_tpg) { in vhost_scsi_set_endpoint()
1697 if (vs->vs_tpg) in vhost_scsi_set_endpoint()
1698 memcpy(vs_tpg, vs->vs_tpg, len); in vhost_scsi_set_endpoint()
1714 if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { in vhost_scsi_set_endpoint()
1736 vs_tpg[tpg->tport_tpgt] = tpg; in vhost_scsi_set_endpoint()
1760 vhost_vq_set_backend(vq, vs_tpg); in vhost_scsi_set_endpoint()
1774 kfree(vs->vs_tpg); in vhost_scsi_set_endpoint()
1775 vs->vs_tpg = vs_tpg; in vhost_scsi_set_endpoint()
1785 tpg = vs_tpg[i]; in vhost_scsi_set_endpoint()
1794 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1821 if (!vs->vs_tpg) { in vhost_scsi_clear_endpoint()
1828 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1872 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1880 vs->vs_tpg[target] = NULL; in vhost_scsi_clear_endpoint()
1894 kfree(vs->vs_tpg); in vhost_scsi_clear_endpoint()
1895 vs->vs_tpg = NULL; in vhost_scsi_clear_endpoint()