Lines Matching refs:fc_port
342 struct fc_port *sess = container_of(kref, in tcm_qla2xxx_release_session()
343 struct fc_port, sess_kref); in tcm_qla2xxx_release_session()
348 static void tcm_qla2xxx_put_sess(struct fc_port *sess) in tcm_qla2xxx_put_sess()
359 struct fc_port *sess = se_sess->fabric_sess_ptr; in tcm_qla2xxx_close_session()
459 struct fc_port *sess; in tcm_qla2xxx_handle_cmd()
587 struct fc_port *sess = mcmd->sess; in tcm_qla2xxx_handle_tmr()
632 static struct qla_tgt_cmd *tcm_qla2xxx_find_cmd_by_tag(struct fc_port *sess, in tcm_qla2xxx_find_cmd_by_tag()
791 struct tcm_qla2xxx_nacl *, struct fc_port *);
795 static void tcm_qla2xxx_clear_nacl_from_fcport_map(struct fc_port *sess) in tcm_qla2xxx_clear_nacl_from_fcport_map()
834 static void tcm_qla2xxx_shutdown_sess(struct fc_port *sess) in tcm_qla2xxx_shutdown_sess()
1215 static struct fc_port *tcm_qla2xxx_find_sess_by_s_id( in tcm_qla2xxx_find_sess_by_s_id()
1243 if (!nacl->fc_port) { in tcm_qla2xxx_find_sess_by_s_id()
1248 return nacl->fc_port; in tcm_qla2xxx_find_sess_by_s_id()
1259 struct fc_port *fc_port, in tcm_qla2xxx_set_sess_by_s_id() argument
1283 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1284 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1288 if (nacl->fc_port) { in tcm_qla2xxx_set_sess_by_s_id()
1292 nacl->fc_port = NULL; in tcm_qla2xxx_set_sess_by_s_id()
1297 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1298 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1310 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1311 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1314 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname); in tcm_qla2xxx_set_sess_by_s_id()
1320 static struct fc_port *tcm_qla2xxx_find_sess_by_loop_id( in tcm_qla2xxx_find_sess_by_loop_id()
1348 if (!nacl->fc_port) { in tcm_qla2xxx_find_sess_by_loop_id()
1353 return nacl->fc_port; in tcm_qla2xxx_find_sess_by_loop_id()
1364 struct fc_port *fc_port, in tcm_qla2xxx_set_sess_by_loop_id() argument
1379 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1380 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1381 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1382 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1386 if (nacl->fc_port) { in tcm_qla2xxx_set_sess_by_loop_id()
1390 nacl->fc_port = NULL; in tcm_qla2xxx_set_sess_by_loop_id()
1396 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1397 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1398 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1399 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1411 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1412 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1413 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1414 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1417 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname); in tcm_qla2xxx_set_sess_by_loop_id()
1424 struct tcm_qla2xxx_nacl *nacl, struct fc_port *sess) in tcm_qla2xxx_clear_sess_lookup()
1439 static void tcm_qla2xxx_free_session(struct fc_port *sess) in tcm_qla2xxx_free_session()
1477 struct fc_port *qlat_sess = p; in tcm_qla2xxx_session_cb()
1507 struct fc_port *qlat_sess) in tcm_qla2xxx_check_initiator_node_acl()
1551 static void tcm_qla2xxx_update_sess(struct fc_port *sess, port_id_t s_id, in tcm_qla2xxx_update_sess()