Lines Matching refs:tv_nexus

608 	struct vhost_scsi_nexus *tv_nexus;  in vhost_scsi_get_cmd()  local
614 tv_nexus = tpg->tpg_nexus; in vhost_scsi_get_cmd()
615 if (!tv_nexus) { in vhost_scsi_get_cmd()
641 cmd->tvc_nexus = tv_nexus; in vhost_scsi_get_cmd()
891 struct vhost_scsi_nexus *tv_nexus; in vhost_scsi_target_queue_cmd() local
905 tv_nexus = cmd->tvc_nexus; in vhost_scsi_target_queue_cmd()
908 target_init_cmd(se_cmd, tv_nexus->tvn_se_sess, &cmd->tvc_sense_buf[0], in vhost_scsi_target_queue_cmd()
2248 struct vhost_scsi_nexus *tv_nexus; in vhost_scsi_make_nexus() local
2257 tv_nexus = kzalloc(sizeof(*tv_nexus), GFP_KERNEL); in vhost_scsi_make_nexus()
2258 if (!tv_nexus) { in vhost_scsi_make_nexus()
2268 tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, 0, 0, in vhost_scsi_make_nexus()
2270 (unsigned char *)name, tv_nexus, NULL); in vhost_scsi_make_nexus()
2271 if (IS_ERR(tv_nexus->tvn_se_sess)) { in vhost_scsi_make_nexus()
2273 kfree(tv_nexus); in vhost_scsi_make_nexus()
2276 tpg->tpg_nexus = tv_nexus; in vhost_scsi_make_nexus()
2285 struct vhost_scsi_nexus *tv_nexus; in vhost_scsi_drop_nexus() local
2288 tv_nexus = tpg->tpg_nexus; in vhost_scsi_drop_nexus()
2289 if (!tv_nexus) { in vhost_scsi_drop_nexus()
2294 se_sess = tv_nexus->tvn_se_sess; in vhost_scsi_drop_nexus()
2318 tv_nexus->tvn_se_sess->se_node_acl->initiatorname); in vhost_scsi_drop_nexus()
2327 kfree(tv_nexus); in vhost_scsi_drop_nexus()
2336 struct vhost_scsi_nexus *tv_nexus; in vhost_scsi_tpg_nexus_show() local
2340 tv_nexus = tpg->tpg_nexus; in vhost_scsi_tpg_nexus_show()
2341 if (!tv_nexus) { in vhost_scsi_tpg_nexus_show()
2346 tv_nexus->tvn_se_sess->se_node_acl->initiatorname); in vhost_scsi_tpg_nexus_show()