Lines Matching refs:fc_port
271 static struct qla_tgt_cmd *tcm_qla2xxx_get_cmd(struct fc_port *sess) in tcm_qla2xxx_get_cmd()
349 struct fc_port *sess = container_of(kref, in tcm_qla2xxx_release_session()
350 struct fc_port, sess_kref); in tcm_qla2xxx_release_session()
355 static void tcm_qla2xxx_put_sess(struct fc_port *sess) in tcm_qla2xxx_put_sess()
365 struct fc_port *sess = se_sess->fabric_sess_ptr; in tcm_qla2xxx_close_session()
449 struct fc_port *sess; in tcm_qla2xxx_handle_cmd()
574 struct fc_port *sess = mcmd->sess; in tcm_qla2xxx_handle_tmr()
619 static struct qla_tgt_cmd *tcm_qla2xxx_find_cmd_by_tag(struct fc_port *sess, in tcm_qla2xxx_find_cmd_by_tag()
778 struct tcm_qla2xxx_nacl *, struct fc_port *);
782 static void tcm_qla2xxx_clear_nacl_from_fcport_map(struct fc_port *sess) in tcm_qla2xxx_clear_nacl_from_fcport_map()
821 static void tcm_qla2xxx_shutdown_sess(struct fc_port *sess) in tcm_qla2xxx_shutdown_sess()
1171 static struct fc_port *tcm_qla2xxx_find_sess_by_s_id(scsi_qla_host_t *vha, in tcm_qla2xxx_find_sess_by_s_id()
1198 if (!nacl->fc_port) { in tcm_qla2xxx_find_sess_by_s_id()
1203 return nacl->fc_port; in tcm_qla2xxx_find_sess_by_s_id()
1214 struct fc_port *fc_port, in tcm_qla2xxx_set_sess_by_s_id() argument
1238 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1239 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1243 if (nacl->fc_port) { in tcm_qla2xxx_set_sess_by_s_id()
1247 nacl->fc_port = NULL; in tcm_qla2xxx_set_sess_by_s_id()
1252 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1253 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1265 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_s_id()
1266 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_s_id()
1269 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname); in tcm_qla2xxx_set_sess_by_s_id()
1275 static struct fc_port *tcm_qla2xxx_find_sess_by_loop_id( in tcm_qla2xxx_find_sess_by_loop_id()
1303 if (!nacl->fc_port) { in tcm_qla2xxx_find_sess_by_loop_id()
1308 return nacl->fc_port; in tcm_qla2xxx_find_sess_by_loop_id()
1319 struct fc_port *fc_port, in tcm_qla2xxx_set_sess_by_loop_id() argument
1334 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1335 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1336 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1337 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1341 if (nacl->fc_port) { in tcm_qla2xxx_set_sess_by_loop_id()
1345 nacl->fc_port = NULL; in tcm_qla2xxx_set_sess_by_loop_id()
1351 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1352 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1353 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1354 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1366 if (fc_port->se_sess != se_sess) in tcm_qla2xxx_set_sess_by_loop_id()
1367 fc_port->se_sess = se_sess; in tcm_qla2xxx_set_sess_by_loop_id()
1368 if (nacl->fc_port != fc_port) in tcm_qla2xxx_set_sess_by_loop_id()
1369 nacl->fc_port = fc_port; in tcm_qla2xxx_set_sess_by_loop_id()
1372 nacl->fc_port, new_se_nacl, new_se_nacl->initiatorname); in tcm_qla2xxx_set_sess_by_loop_id()
1379 struct tcm_qla2xxx_nacl *nacl, struct fc_port *sess) in tcm_qla2xxx_clear_sess_lookup()
1389 static void tcm_qla2xxx_free_session(struct fc_port *sess) in tcm_qla2xxx_free_session()
1427 struct fc_port *qlat_sess = p; in tcm_qla2xxx_session_cb()
1452 struct fc_port *qlat_sess) in tcm_qla2xxx_check_initiator_node_acl()
1496 static void tcm_qla2xxx_update_sess(struct fc_port *sess, port_id_t s_id, in tcm_qla2xxx_update_sess()