Lines Matching refs:vs_tpg

185 	struct vhost_scsi_tpg **vs_tpg;  member
902 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_get_req() local
904 vs_tpg = vhost_vq_get_backend(vq); /* validated at handler entry */ in vhost_scsi_get_req()
906 tpg = READ_ONCE(vs_tpg[*vc->target]); in vhost_scsi_get_req()
927 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local
946 vs_tpg = vhost_vq_get_backend(vq); in vhost_scsi_handle_vq()
947 if (!vs_tpg) in vhost_scsi_handle_vq()
1537 struct vhost_scsi_tpg **vs_tpg; in vhost_scsi_set_endpoint() local
1554 len = sizeof(vs_tpg[0]) * VHOST_SCSI_MAX_TARGET; in vhost_scsi_set_endpoint()
1555 vs_tpg = kzalloc(len, GFP_KERNEL); in vhost_scsi_set_endpoint()
1556 if (!vs_tpg) { in vhost_scsi_set_endpoint()
1560 if (vs->vs_tpg) in vhost_scsi_set_endpoint()
1561 memcpy(vs_tpg, vs->vs_tpg, len); in vhost_scsi_set_endpoint()
1576 if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { in vhost_scsi_set_endpoint()
1596 vs_tpg[tpg->tport_tpgt] = tpg; in vhost_scsi_set_endpoint()
1619 vhost_vq_set_backend(vq, vs_tpg); in vhost_scsi_set_endpoint()
1633 kfree(vs->vs_tpg); in vhost_scsi_set_endpoint()
1634 vs->vs_tpg = vs_tpg; in vhost_scsi_set_endpoint()
1644 tpg = vs_tpg[i]; in vhost_scsi_set_endpoint()
1650 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1679 if (!vs->vs_tpg) { in vhost_scsi_clear_endpoint()
1686 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1707 vs->vs_tpg[target] = NULL; in vhost_scsi_clear_endpoint()
1737 kfree(vs->vs_tpg); in vhost_scsi_clear_endpoint()
1738 vs->vs_tpg = NULL; in vhost_scsi_clear_endpoint()