Lines Matching refs:vs_tpg

189 	struct vhost_scsi_tpg **vs_tpg;  member
905 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_get_req() local
907 vs_tpg = vhost_vq_get_backend(vq); /* validated at handler entry */ in vhost_scsi_get_req()
909 tpg = READ_ONCE(vs_tpg[*vc->target]); in vhost_scsi_get_req()
930 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local
949 vs_tpg = vhost_vq_get_backend(vq); in vhost_scsi_handle_vq()
950 if (!vs_tpg) in vhost_scsi_handle_vq()
1539 struct vhost_scsi_tpg **vs_tpg; in vhost_scsi_set_endpoint() local
1556 len = sizeof(vs_tpg[0]) * VHOST_SCSI_MAX_TARGET; in vhost_scsi_set_endpoint()
1557 vs_tpg = kzalloc(len, GFP_KERNEL); in vhost_scsi_set_endpoint()
1558 if (!vs_tpg) { in vhost_scsi_set_endpoint()
1562 if (vs->vs_tpg) in vhost_scsi_set_endpoint()
1563 memcpy(vs_tpg, vs->vs_tpg, len); in vhost_scsi_set_endpoint()
1578 if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { in vhost_scsi_set_endpoint()
1598 vs_tpg[tpg->tport_tpgt] = tpg; in vhost_scsi_set_endpoint()
1621 vhost_vq_set_backend(vq, vs_tpg); in vhost_scsi_set_endpoint()
1635 kfree(vs->vs_tpg); in vhost_scsi_set_endpoint()
1636 vs->vs_tpg = vs_tpg; in vhost_scsi_set_endpoint()
1646 tpg = vs_tpg[i]; in vhost_scsi_set_endpoint()
1652 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1681 if (!vs->vs_tpg) { in vhost_scsi_clear_endpoint()
1688 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1709 vs->vs_tpg[target] = NULL; in vhost_scsi_clear_endpoint()
1739 kfree(vs->vs_tpg); in vhost_scsi_clear_endpoint()
1740 vs->vs_tpg = NULL; in vhost_scsi_clear_endpoint()