Lines Matching refs:vs_tpg
203 struct vhost_scsi_tpg **vs_tpg; member
1007 struct vhost_scsi_tpg **vs_tpg, *tpg; in vhost_scsi_handle_vq() local
1028 vs_tpg = vq->private_data; in vhost_scsi_handle_vq()
1029 if (!vs_tpg) in vhost_scsi_handle_vq()
1106 tpg = ACCESS_ONCE(vs_tpg[*target]); in vhost_scsi_handle_vq()
1360 struct vhost_scsi_tpg **vs_tpg; in vhost_scsi_set_endpoint() local
1377 len = sizeof(vs_tpg[0]) * VHOST_SCSI_MAX_TARGET; in vhost_scsi_set_endpoint()
1378 vs_tpg = kzalloc(len, GFP_KERNEL); in vhost_scsi_set_endpoint()
1379 if (!vs_tpg) { in vhost_scsi_set_endpoint()
1383 if (vs->vs_tpg) in vhost_scsi_set_endpoint()
1384 memcpy(vs_tpg, vs->vs_tpg, len); in vhost_scsi_set_endpoint()
1399 if (vs->vs_tpg && vs->vs_tpg[tpg->tport_tpgt]) { in vhost_scsi_set_endpoint()
1400 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1415 kfree(vs_tpg); in vhost_scsi_set_endpoint()
1421 vs_tpg[tpg->tport_tpgt] = tpg; in vhost_scsi_set_endpoint()
1434 vq->private_data = vs_tpg; in vhost_scsi_set_endpoint()
1448 kfree(vs->vs_tpg); in vhost_scsi_set_endpoint()
1449 vs->vs_tpg = vs_tpg; in vhost_scsi_set_endpoint()
1479 if (!vs->vs_tpg) { in vhost_scsi_clear_endpoint()
1486 tpg = vs->vs_tpg[target]; in vhost_scsi_clear_endpoint()
1507 vs->vs_tpg[target] = NULL; in vhost_scsi_clear_endpoint()
1530 kfree(vs->vs_tpg); in vhost_scsi_clear_endpoint()
1531 vs->vs_tpg = NULL; in vhost_scsi_clear_endpoint()