Lines Matching refs:vs_tpg
191 struct vhost_scsi_tpg **vs_tpg; member
849 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local
870 vs_tpg = vq->private_data; in vhost_scsi_handle_vq()
871 if (!vs_tpg) in vhost_scsi_handle_vq()
948 tpg = ACCESS_ONCE(vs_tpg[*target]); in vhost_scsi_handle_vq()
1202 struct vhost_scsi_tpg **vs_tpg; in vhost_scsi_set_endpoint() local
1219 len = sizeof(vs_tpg[0]) * VHOST_SCSI_MAX_TARGET; in vhost_scsi_set_endpoint()
1220 vs_tpg = kzalloc(len, GFP_KERNEL); in vhost_scsi_set_endpoint()
1221 if (!vs_tpg) { in vhost_scsi_set_endpoint()
1225 if (vs->vs_tpg) in vhost_scsi_set_endpoint()
1226 memcpy(vs_tpg, vs->vs_tpg, len); in vhost_scsi_set_endpoint()
1241 if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { in vhost_scsi_set_endpoint()
1242 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1257 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1263 vs_tpg[tpg->tport_tpgt] = tpg; in vhost_scsi_set_endpoint()
1276 vq->private_data = vs_tpg; in vhost_scsi_set_endpoint()
1290 kfree(vs->vs_tpg); in vhost_scsi_set_endpoint()
1291 vs->vs_tpg = vs_tpg; in vhost_scsi_set_endpoint()
1321 if (!vs->vs_tpg) { in vhost_scsi_clear_endpoint()
1328 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1349 vs->vs_tpg[target] = NULL; in vhost_scsi_clear_endpoint()
1372 kfree(vs->vs_tpg); in vhost_scsi_clear_endpoint()
1373 vs->vs_tpg = NULL; in vhost_scsi_clear_endpoint()