Lines Matching refs:tv_nexus

1044 	struct tcm_usbg_nexus *tv_nexus;  in usbg_cmd_work()  local
1050 tv_nexus = tpg->tpg_nexus; in usbg_cmd_work()
1054 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in usbg_cmd_work()
1055 tv_nexus->tvn_se_sess, cmd->data_len, DMA_NONE, in usbg_cmd_work()
1061 target_submit_cmd(se_cmd, tv_nexus->tvn_se_sess, cmd->cmd_buf, in usbg_cmd_work()
1073 struct tcm_usbg_nexus *tv_nexus, u32 scsi_tag) in usbg_get_cmd() argument
1075 struct se_session *se_sess = tv_nexus->tvn_se_sess; in usbg_get_cmd()
1101 struct tcm_usbg_nexus *tv_nexus; in usbg_submit_command() local
1110 tv_nexus = tpg->tpg_nexus; in usbg_submit_command()
1111 if (!tv_nexus) { in usbg_submit_command()
1121 cmd = usbg_get_cmd(fu, tv_nexus, scsi_tag); in usbg_submit_command()
1173 struct tcm_usbg_nexus *tv_nexus; in bot_cmd_work() local
1179 tv_nexus = tpg->tpg_nexus; in bot_cmd_work()
1183 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in bot_cmd_work()
1184 tv_nexus->tvn_se_sess, cmd->data_len, DMA_NONE, in bot_cmd_work()
1190 target_submit_cmd(se_cmd, tv_nexus->tvn_se_sess, in bot_cmd_work()
1207 struct tcm_usbg_nexus *tv_nexus; in bot_submit_command() local
1223 tv_nexus = tpg->tpg_nexus; in bot_submit_command()
1224 if (!tv_nexus) { in bot_submit_command()
1229 cmd = usbg_get_cmd(fu, tv_nexus, cbw->Tag); in bot_submit_command()
1498 struct tcm_usbg_nexus *tv_nexus; in tcm_usbg_tpg_nexus_show() local
1502 tv_nexus = tpg->tpg_nexus; in tcm_usbg_tpg_nexus_show()
1503 if (!tv_nexus) { in tcm_usbg_tpg_nexus_show()
1508 tv_nexus->tvn_se_sess->se_node_acl->initiatorname); in tcm_usbg_tpg_nexus_show()
1526 struct tcm_usbg_nexus *tv_nexus; in tcm_usbg_make_nexus() local
1536 tv_nexus = kzalloc(sizeof(*tv_nexus), GFP_KERNEL); in tcm_usbg_make_nexus()
1537 if (!tv_nexus) { in tcm_usbg_make_nexus()
1542 tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, in tcm_usbg_make_nexus()
1546 tv_nexus, usbg_alloc_sess_cb); in tcm_usbg_make_nexus()
1547 if (IS_ERR(tv_nexus->tvn_se_sess)) { in tcm_usbg_make_nexus()
1551 ret = PTR_ERR(tv_nexus->tvn_se_sess); in tcm_usbg_make_nexus()
1552 kfree(tv_nexus); in tcm_usbg_make_nexus()
1563 struct tcm_usbg_nexus *tv_nexus; in tcm_usbg_drop_nexus() local
1567 tv_nexus = tpg->tpg_nexus; in tcm_usbg_drop_nexus()
1568 if (!tv_nexus) in tcm_usbg_drop_nexus()
1571 se_sess = tv_nexus->tvn_se_sess; in tcm_usbg_drop_nexus()
1584 tv_nexus->tvn_se_sess->se_node_acl->initiatorname); in tcm_usbg_drop_nexus()
1591 kfree(tv_nexus); in tcm_usbg_drop_nexus()