Lines Matching refs:vs_tpg

197 	struct vhost_scsi_tpg **vs_tpg;  member
1032 struct vhost_scsi_tpg **vs_tpg, *tpg = NULL; in vhost_scsi_get_req() local
1036 vs_tpg = vhost_vq_get_backend(vq); in vhost_scsi_get_req()
1037 tpg = READ_ONCE(vs_tpg[*vc->target]); in vhost_scsi_get_req()
1060 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local
1079 vs_tpg = vhost_vq_get_backend(vq); in vhost_scsi_handle_vq()
1080 if (!vs_tpg) in vhost_scsi_handle_vq()
1686 struct vhost_scsi_tpg **vs_tpg; in vhost_scsi_set_endpoint() local
1702 len = sizeof(vs_tpg[0]) * VHOST_SCSI_MAX_TARGET; in vhost_scsi_set_endpoint()
1703 vs_tpg = kzalloc(len, GFP_KERNEL); in vhost_scsi_set_endpoint()
1704 if (!vs_tpg) { in vhost_scsi_set_endpoint()
1708 if (vs->vs_tpg) in vhost_scsi_set_endpoint()
1709 memcpy(vs_tpg, vs->vs_tpg, len); in vhost_scsi_set_endpoint()
1725 if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { in vhost_scsi_set_endpoint()
1747 vs_tpg[tpg->tport_tpgt] = tpg; in vhost_scsi_set_endpoint()
1771 vhost_vq_set_backend(vq, vs_tpg); in vhost_scsi_set_endpoint()
1785 kfree(vs->vs_tpg); in vhost_scsi_set_endpoint()
1786 vs->vs_tpg = vs_tpg; in vhost_scsi_set_endpoint()
1796 tpg = vs_tpg[i]; in vhost_scsi_set_endpoint()
1805 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1832 if (!vs->vs_tpg) { in vhost_scsi_clear_endpoint()
1839 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1883 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1891 vs->vs_tpg[target] = NULL; in vhost_scsi_clear_endpoint()
1905 kfree(vs->vs_tpg); in vhost_scsi_clear_endpoint()
1906 vs->vs_tpg = NULL; in vhost_scsi_clear_endpoint()