Lines Matching refs:se_sess

278 	struct se_session *se_sess = sess->se_sess;  in tcm_qla2xxx_get_cmd()  local
282 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in tcm_qla2xxx_get_cmd()
286 cmd = &((struct qla_tgt_cmd *)se_sess->sess_cmd_map)[tag]; in tcm_qla2xxx_get_cmd()
296 target_free_tag(cmd->sess->se_sess, &cmd->se_cmd); in tcm_qla2xxx_rel_cmd()
368 static void tcm_qla2xxx_close_session(struct se_session *se_sess) in tcm_qla2xxx_close_session() argument
370 struct fc_port *sess = se_sess->fabric_sess_ptr; in tcm_qla2xxx_close_session()
374 target_stop_session(se_sess); in tcm_qla2xxx_close_session()
438 struct se_session *se_sess; in tcm_qla2xxx_handle_cmd() local
459 se_sess = sess->se_sess; in tcm_qla2xxx_handle_cmd()
460 if (!se_sess) { in tcm_qla2xxx_handle_cmd()
466 se_tpg = se_sess->se_tpg; in tcm_qla2xxx_handle_cmd()
479 rc = target_init_cmd(se_cmd, se_sess, &cmd->sense_buffer[0], in tcm_qla2xxx_handle_cmd()
617 return target_submit_tmr(se_cmd, sess->se_sess, NULL, lun, mcmd, in tcm_qla2xxx_handle_tmr()
627 if (!sess->se_sess) in tcm_qla2xxx_find_cmd_by_tag()
785 struct se_node_acl *se_nacl = sess->se_sess->se_node_acl; in tcm_qla2xxx_clear_nacl_from_fcport_map()
824 target_stop_session(sess->se_sess); in tcm_qla2xxx_shutdown_sess()
1164 struct se_session *se_sess, in tcm_qla2xxx_set_sess_by_s_id() argument
1189 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1203 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1216 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1269 struct se_session *se_sess, in tcm_qla2xxx_set_sess_by_loop_id() argument
1285 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1286 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1302 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1303 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1317 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1318 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1332 struct se_session *se_sess = sess->se_sess; in tcm_qla2xxx_clear_sess_lookup() local
1334 tcm_qla2xxx_set_sess_by_s_id(lport, NULL, nacl, se_sess, in tcm_qla2xxx_clear_sess_lookup()
1336 tcm_qla2xxx_set_sess_by_loop_id(lport, NULL, nacl, se_sess, in tcm_qla2xxx_clear_sess_lookup()
1345 struct se_session *se_sess; in tcm_qla2xxx_free_session() local
1348 se_sess = sess->se_sess; in tcm_qla2xxx_free_session()
1349 if (!se_sess) { in tcm_qla2xxx_free_session()
1361 target_wait_for_sess_cmds(se_sess); in tcm_qla2xxx_free_session()
1363 target_remove_session(se_sess); in tcm_qla2xxx_free_session()
1367 struct se_session *se_sess, void *p) in tcm_qla2xxx_session_cb() argument
1373 struct se_node_acl *se_nacl = se_sess->se_node_acl; in tcm_qla2xxx_session_cb()
1385 tcm_qla2xxx_set_sess_by_s_id(lport, se_nacl, nacl, se_sess, qlat_sess, in tcm_qla2xxx_session_cb()
1388 se_sess, qlat_sess, loop_id); in tcm_qla2xxx_session_cb()
1406 struct se_session *se_sess; in tcm_qla2xxx_check_initiator_node_acl() local
1435 se_sess = target_setup_session(&tpg->se_tpg, num_tags, in tcm_qla2xxx_check_initiator_node_acl()
1439 if (IS_ERR(se_sess)) in tcm_qla2xxx_check_initiator_node_acl()
1440 return PTR_ERR(se_sess); in tcm_qla2xxx_check_initiator_node_acl()
1452 struct se_node_acl *se_nacl = sess->se_sess->se_node_acl; in tcm_qla2xxx_update_sess()