Lines Matching refs:se_sess
339 static void efct_lio_close_session(struct se_session *se_sess) in efct_lio_close_session() argument
341 struct efc_node *node = se_sess->fabric_sess_ptr; in efct_lio_close_session()
343 pr_debug("se_sess=%p node=%p", se_sess, node); in efct_lio_close_session()
1066 struct se_session *se_sess, void *private) in efct_session_cb() argument
1079 tgt_node->session = se_sess; in efct_session_cb()
1164 struct se_session *se_sess; in efct_lio_setup_session() local
1190 se_sess = target_setup_session(se_tpg, 0, 0, TARGET_PROT_NORMAL, wwpn, in efct_lio_setup_session()
1192 if (IS_ERR(se_sess)) { in efct_lio_setup_session()
1203 se_sess, node, id); in efct_lio_setup_session()
1248 struct se_session *se_sess; in efct_lio_remove_session() local
1261 se_sess = tgt_node->session; in efct_lio_remove_session()
1263 se_sess, node); in efct_lio_remove_session()
1266 target_stop_session(se_sess); in efct_lio_remove_session()
1269 target_wait_for_sess_cmds(se_sess); in efct_lio_remove_session()
1270 target_remove_session(se_sess); in efct_lio_remove_session()
1329 struct se_session *se_sess; in efct_scsi_recv_cmd() local
1372 se_sess = tgt_node->session; in efct_scsi_recv_cmd()
1373 if (!se_sess) { in efct_scsi_recv_cmd()
1381 rc = target_init_cmd(se_cmd, se_sess, &io->tgt_io.sense_buffer[0], in efct_scsi_recv_cmd()
1405 struct se_session *se_sess; in efct_scsi_recv_tmf() local
1445 se_sess = tgt_node->session; in efct_scsi_recv_tmf()
1446 if (!se_sess) in efct_scsi_recv_tmf()
1449 rc = target_submit_tmr(&ocp->cmd, se_sess, NULL, lun, ocp, tmr_func, in efct_scsi_recv_tmf()