Lines Matching refs:vs_tpg
199 struct vhost_scsi_tpg **vs_tpg; member
922 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_get_req() local
924 vs_tpg = vhost_vq_get_backend(vq); /* validated at handler entry */ in vhost_scsi_get_req()
926 tpg = READ_ONCE(vs_tpg[*vc->target]); in vhost_scsi_get_req()
947 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local
966 vs_tpg = vhost_vq_get_backend(vq); in vhost_scsi_handle_vq()
967 if (!vs_tpg) in vhost_scsi_handle_vq()
1572 struct vhost_scsi_tpg **vs_tpg; in vhost_scsi_set_endpoint() local
1589 len = sizeof(vs_tpg[0]) * VHOST_SCSI_MAX_TARGET; in vhost_scsi_set_endpoint()
1590 vs_tpg = kzalloc(len, GFP_KERNEL); in vhost_scsi_set_endpoint()
1591 if (!vs_tpg) { in vhost_scsi_set_endpoint()
1595 if (vs->vs_tpg) in vhost_scsi_set_endpoint()
1596 memcpy(vs_tpg, vs->vs_tpg, len); in vhost_scsi_set_endpoint()
1611 if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { in vhost_scsi_set_endpoint()
1631 vs_tpg[tpg->tport_tpgt] = tpg; in vhost_scsi_set_endpoint()
1654 vhost_vq_set_backend(vq, vs_tpg); in vhost_scsi_set_endpoint()
1668 kfree(vs->vs_tpg); in vhost_scsi_set_endpoint()
1669 vs->vs_tpg = vs_tpg; in vhost_scsi_set_endpoint()
1679 tpg = vs_tpg[i]; in vhost_scsi_set_endpoint()
1685 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1714 if (!vs->vs_tpg) { in vhost_scsi_clear_endpoint()
1721 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1742 vs->vs_tpg[target] = NULL; in vhost_scsi_clear_endpoint()
1771 kfree(vs->vs_tpg); in vhost_scsi_clear_endpoint()
1772 vs->vs_tpg = NULL; in vhost_scsi_clear_endpoint()