Lines Matching refs:vs_tpg
190 struct vhost_scsi_tpg **vs_tpg; member
806 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local
827 vs_tpg = vq->private_data; in vhost_scsi_handle_vq()
828 if (!vs_tpg) in vhost_scsi_handle_vq()
904 tpg = READ_ONCE(vs_tpg[*target]); in vhost_scsi_handle_vq()
1158 struct vhost_scsi_tpg **vs_tpg; in vhost_scsi_set_endpoint() local
1175 len = sizeof(vs_tpg[0]) * VHOST_SCSI_MAX_TARGET; in vhost_scsi_set_endpoint()
1176 vs_tpg = kzalloc(len, GFP_KERNEL); in vhost_scsi_set_endpoint()
1177 if (!vs_tpg) { in vhost_scsi_set_endpoint()
1181 if (vs->vs_tpg) in vhost_scsi_set_endpoint()
1182 memcpy(vs_tpg, vs->vs_tpg, len); in vhost_scsi_set_endpoint()
1197 if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { in vhost_scsi_set_endpoint()
1198 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1213 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1219 vs_tpg[tpg->tport_tpgt] = tpg; in vhost_scsi_set_endpoint()
1232 vq->private_data = vs_tpg; in vhost_scsi_set_endpoint()
1246 kfree(vs->vs_tpg); in vhost_scsi_set_endpoint()
1247 vs->vs_tpg = vs_tpg; in vhost_scsi_set_endpoint()
1277 if (!vs->vs_tpg) { in vhost_scsi_clear_endpoint()
1284 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1305 vs->vs_tpg[target] = NULL; in vhost_scsi_clear_endpoint()
1328 kfree(vs->vs_tpg); in vhost_scsi_clear_endpoint()
1329 vs->vs_tpg = NULL; in vhost_scsi_clear_endpoint()