Lines Matching refs:vs_tpg
197 struct vhost_scsi_tpg **vs_tpg; member
1015 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_get_req() local
1017 vs_tpg = vhost_vq_get_backend(vq); /* validated at handler entry */ in vhost_scsi_get_req()
1019 tpg = READ_ONCE(vs_tpg[*vc->target]); in vhost_scsi_get_req()
1040 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local
1059 vs_tpg = vhost_vq_get_backend(vq); in vhost_scsi_handle_vq()
1060 if (!vs_tpg) in vhost_scsi_handle_vq()
1665 struct vhost_scsi_tpg **vs_tpg; in vhost_scsi_set_endpoint() local
1681 len = sizeof(vs_tpg[0]) * VHOST_SCSI_MAX_TARGET; in vhost_scsi_set_endpoint()
1682 vs_tpg = kzalloc(len, GFP_KERNEL); in vhost_scsi_set_endpoint()
1683 if (!vs_tpg) { in vhost_scsi_set_endpoint()
1687 if (vs->vs_tpg) in vhost_scsi_set_endpoint()
1688 memcpy(vs_tpg, vs->vs_tpg, len); in vhost_scsi_set_endpoint()
1704 if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { in vhost_scsi_set_endpoint()
1726 vs_tpg[tpg->tport_tpgt] = tpg; in vhost_scsi_set_endpoint()
1750 vhost_vq_set_backend(vq, vs_tpg); in vhost_scsi_set_endpoint()
1764 kfree(vs->vs_tpg); in vhost_scsi_set_endpoint()
1765 vs->vs_tpg = vs_tpg; in vhost_scsi_set_endpoint()
1775 tpg = vs_tpg[i]; in vhost_scsi_set_endpoint()
1784 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1811 if (!vs->vs_tpg) { in vhost_scsi_clear_endpoint()
1818 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1862 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1870 vs->vs_tpg[target] = NULL; in vhost_scsi_clear_endpoint()
1884 kfree(vs->vs_tpg); in vhost_scsi_clear_endpoint()
1885 vs->vs_tpg = NULL; in vhost_scsi_clear_endpoint()